Viewing File: /usr/local/cpanel/base/frontend/jupiter/team-manager/vendor-89d5c698.2130f0f56bfe0896.js
"use strict";(self.webpackChunkteam_manager=self.webpackChunkteam_manager||[]).push([[538],{9660:(_e,L,l)=>{l.r(L),l.d(L,{decode:()=>fe,default:()=>X,encode:()=>y,toASCII:()=>k,toUnicode:()=>ie,ucs2decode:()=>S,ucs2encode:()=>V});const t=2147483647,f=36,p=/^xn--/,b=/[^\0-\x7E]/,Y=/[\x2E\u3002\uFF0E\uFF61]/g,re={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=Math.floor,se=String.fromCharCode;function ge(H){throw new RangeError(re[H])}function ke(H,v){const N=H.split("@");let ce="";N.length>1&&(ce=N[0]+"@",H=N[1]);const J=function K(H,v){const N=[];let ce=H.length;for(;ce--;)N[ce]=v(H[ce]);return N}((H=H.replace(Y,".")).split("."),v).join(".");return ce+J}function S(H){const v=[];let N=0;const ce=H.length;for(;N<ce;){const ne=H.charCodeAt(N++);if(ne>=55296&&ne<=56319&&N<ce){const J=H.charCodeAt(N++);56320==(64512&J)?v.push(((1023&ne)<<10)+(1023&J)+65536):(v.push(ne),N--)}else v.push(ne)}return v}const V=H=>String.fromCodePoint(...H),x=function(H){return H-48<10?H-22:H-65<26?H-65:H-97<26?H-97:f},le=function(H,v){return H+22+75*(H<26)-((0!=v)<<5)},$=function(H,v,N){let ce=0;for(H=N?j(H/700):H>>1,H+=j(H/v);H>455;ce+=f)H=j(H/35);return j(ce+36*H/(H+38))},fe=function(H){const v=[],N=H.length;let ce=0,ne=128,J=72,R=H.lastIndexOf("-");R<0&&(R=0);for(let oe=0;oe<R;++oe)H.charCodeAt(oe)>=128&&ge("not-basic"),v.push(H.charCodeAt(oe));for(let oe=R>0?R+1:0;oe<N;){let ae=ce;for(let We=1,$e=f;;$e+=f){oe>=N&&ge("invalid-input");const Qe=x(H.charCodeAt(oe++));(Qe>=f||Qe>j((t-ce)/We))&&ge("overflow"),ce+=Qe*We;const Ee=$e<=J?1:$e>=J+26?26:$e-J;if(Qe<Ee)break;const vt=f-Ee;We>j(t/vt)&&ge("overflow"),We*=vt}const Me=v.length+1;J=$(ce-ae,Me,0==ae),j(ce/Me)>t-ne&&ge("overflow"),ne+=j(ce/Me),ce%=Me,v.splice(ce++,0,ne)}return String.fromCodePoint(...v)},y=function(H){const v=[];let N=(H=S(H)).length,ce=128,ne=0,J=72;for(const ae of H)ae<128&&v.push(se(ae));let R=v.length,oe=R;for(R&&v.push("-");oe<N;){let ae=t;for(const We of H)We>=ce&&We<ae&&(ae=We);const Me=oe+1;ae-ce>j((t-ne)/Me)&&ge("overflow"),ne+=(ae-ce)*Me,ce=ae;for(const We of H)if(We<ce&&++ne>t&&ge("overflow"),We==ce){let $e=ne;for(let Qe=f;;Qe+=f){const Ee=Qe<=J?1:Qe>=J+26?26:Qe-J;if($e<Ee)break;const vt=$e-Ee,ut=f-Ee;v.push(se(le(Ee+vt%ut,0))),$e=j(vt/ut)}v.push(se(le($e,0))),J=$(ne,Me,oe==R),ne=0,++oe}++ne,++ce}return v.join("")},ie=function(H){return ke(H,function(v){return p.test(v)?fe(v.slice(4).toLowerCase()):v})},k=function(H){return ke(H,function(v){return b.test(v)?"xn--"+y(v):v})},X={version:"2.1.0",ucs2:{decode:S,encode:V},decode:fe,encode:y,toASCII:k,toUnicode:ie}},4412:(_e,L,l)=>{l.d(L,{t:()=>f});var t=l(1413);class f extends t.B{constructor(T){super(),this._value=T}get value(){return this.getValue()}_subscribe(T){const D=super._subscribe(T);return!D.closed&&T.next(this._value),D}getValue(){const{hasError:T,thrownError:D,_value:E}=this;if(T)throw D;return this._throwIfClosed(),E}next(T){super.next(this._value=T)}}},1985:(_e,L,l)=>{l.d(L,{c:()=>C});var t=l(7707),f=l(8359),M=l(3494),T=l(1203),D=l(1026),E=l(8071),O=l(9786);let C=(()=>{class Y{constructor(z){z&&(this._subscribe=z)}lift(z){const j=new Y;return j.source=this,j.operator=z,j}subscribe(z,j,se){const ge=function b(Y){return Y&&Y instanceof t.vU||function p(Y){return Y&&(0,E.T)(Y.next)&&(0,E.T)(Y.error)&&(0,E.T)(Y.complete)}(Y)&&(0,f.Uv)(Y)}(z)?z:new t.Ms(z,j,se);return(0,O.Y)(()=>{const{operator:K,source:ke}=this;ge.add(K?K.call(ge,ke):ke?this._subscribe(ge):this._trySubscribe(ge))}),ge}_trySubscribe(z){try{return this._subscribe(z)}catch(j){z.error(j)}}forEach(z,j){return new(j=g(j))((se,ge)=>{const K=new t.Ms({next:ke=>{try{z(ke)}catch(S){ge(S),K.unsubscribe()}},error:ge,complete:se});this.subscribe(K)})}_subscribe(z){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(z)}[M.s](){return this}pipe(...z){return(0,T.m)(z)(this)}toPromise(z){return new(z=g(z))((j,se)=>{let ge;this.subscribe(K=>ge=K,K=>se(K),()=>j(ge))})}}return Y.create=re=>new Y(re),Y})();function g(Y){var re;return null!==(re=Y??D.$.Promise)&&void 0!==re?re:Promise}},1413:(_e,L,l)=>{l.d(L,{B:()=>O});var t=l(1985),f=l(8359);const T=(0,l(1853).L)(g=>function(){g(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var D=l(7908),E=l(9786);let O=(()=>{class g extends t.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(b){const Y=new C(this,this);return Y.operator=b,Y}_throwIfClosed(){if(this.closed)throw new T}next(b){(0,E.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Y of this.currentObservers)Y.next(b)}})}error(b){(0,E.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=b;const{observers:Y}=this;for(;Y.length;)Y.shift().error(b)}})}complete(){(0,E.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:b}=this;for(;b.length;)b.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var b;return(null===(b=this.observers)||void 0===b?void 0:b.length)>0}_trySubscribe(b){return this._throwIfClosed(),super._trySubscribe(b)}_subscribe(b){return this._throwIfClosed(),this._checkFinalizedStatuses(b),this._innerSubscribe(b)}_innerSubscribe(b){const{hasError:Y,isStopped:re,observers:z}=this;return Y||re?f.Kn:(this.currentObservers=null,z.push(b),new f.yU(()=>{this.currentObservers=null,(0,D.o)(z,b)}))}_checkFinalizedStatuses(b){const{hasError:Y,thrownError:re,isStopped:z}=this;Y?b.error(re):z&&b.complete()}asObservable(){const b=new t.c;return b.source=this,b}}return g.create=(p,b)=>new C(p,b),g})();class C extends O{constructor(p,b){super(),this.destination=p,this.source=b}next(p){var b,Y;null===(Y=null===(b=this.destination)||void 0===b?void 0:b.next)||void 0===Y||Y.call(b,p)}error(p){var b,Y;null===(Y=null===(b=this.destination)||void 0===b?void 0:b.error)||void 0===Y||Y.call(b,p)}complete(){var p,b;null===(b=null===(p=this.destination)||void 0===p?void 0:p.complete)||void 0===b||b.call(p)}_subscribe(p){var b,Y;return null!==(Y=null===(b=this.source)||void 0===b?void 0:b.subscribe(p))&&void 0!==Y?Y:f.Kn}}},7707:(_e,L,l)=>{l.d(L,{Ms:()=>se,vU:()=>Y});var t=l(8071),f=l(8359),M=l(1026),T=l(5334),D=l(5343);const E=g("C",void 0,void 0);function g(V,x,le){return{kind:V,value:x,error:le}}var p=l(9270),b=l(9786);class Y extends f.yU{constructor(x){super(),this.isStopped=!1,x?(this.destination=x,(0,f.Uv)(x)&&x.add(this)):this.destination=S}static create(x,le,$){return new se(x,le,$)}next(x){this.isStopped?ke(function C(V){return g("N",V,void 0)}(x),this):this._next(x)}error(x){this.isStopped?ke(function O(V){return g("E",void 0,V)}(x),this):(this.isStopped=!0,this._error(x))}complete(){this.isStopped?ke(E,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(x){this.destination.next(x)}_error(x){try{this.destination.error(x)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const re=Function.prototype.bind;function z(V,x){return re.call(V,x)}class j{constructor(x){this.partialObserver=x}next(x){const{partialObserver:le}=this;if(le.next)try{le.next(x)}catch($){ge($)}}error(x){const{partialObserver:le}=this;if(le.error)try{le.error(x)}catch($){ge($)}else ge(x)}complete(){const{partialObserver:x}=this;if(x.complete)try{x.complete()}catch(le){ge(le)}}}class se extends Y{constructor(x,le,$){let fe;if(super(),(0,t.T)(x)||!x)fe={next:x??void 0,error:le??void 0,complete:$??void 0};else{let y;this&&M.$.useDeprecatedNextContext?(y=Object.create(x),y.unsubscribe=()=>this.unsubscribe(),fe={next:x.next&&z(x.next,y),error:x.error&&z(x.error,y),complete:x.complete&&z(x.complete,y)}):fe=x}this.destination=new j(fe)}}function ge(V){M.$.useDeprecatedSynchronousErrorHandling?(0,b.l)(V):(0,T.m)(V)}function ke(V,x){const{onStoppedNotification:le}=M.$;le&&p.f.setTimeout(()=>le(V,x))}const S={closed:!0,next:D.l,error:function K(V){throw V},complete:D.l}},8359:(_e,L,l)=>{l.d(L,{Kn:()=>E,yU:()=>D,Uv:()=>O});var t=l(8071);const M=(0,l(1853).L)(g=>function(b){g(this),this.message=b?`${b.length} errors occurred during unsubscription:\n${b.map((Y,re)=>`${re+1}) ${Y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=b});var T=l(7908);class D{constructor(p){this.initialTeardown=p,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let p;if(!this.closed){this.closed=!0;const{_parentage:b}=this;if(b)if(this._parentage=null,Array.isArray(b))for(const z of b)z.remove(this);else b.remove(this);const{initialTeardown:Y}=this;if((0,t.T)(Y))try{Y()}catch(z){p=z instanceof M?z.errors:[z]}const{_finalizers:re}=this;if(re){this._finalizers=null;for(const z of re)try{C(z)}catch(j){p=p??[],j instanceof M?p=[...p,...j.errors]:p.push(j)}}if(p)throw new M(p)}}add(p){var b;if(p&&p!==this)if(this.closed)C(p);else{if(p instanceof D){if(p.closed||p._hasParent(this))return;p._addParent(this)}(this._finalizers=null!==(b=this._finalizers)&&void 0!==b?b:[]).push(p)}}_hasParent(p){const{_parentage:b}=this;return b===p||Array.isArray(b)&&b.includes(p)}_addParent(p){const{_parentage:b}=this;this._parentage=Array.isArray(b)?(b.push(p),b):b?[b,p]:p}_removeParent(p){const{_parentage:b}=this;b===p?this._parentage=null:Array.isArray(b)&&(0,T.o)(b,p)}remove(p){const{_finalizers:b}=this;b&&(0,T.o)(b,p),p instanceof D&&p._removeParent(this)}}D.EMPTY=(()=>{const g=new D;return g.closed=!0,g})();const E=D.EMPTY;function O(g){return g instanceof D||g&&"closed"in g&&(0,t.T)(g.remove)&&(0,t.T)(g.add)&&(0,t.T)(g.unsubscribe)}function C(g){(0,t.T)(g)?g():g.unsubscribe()}},4310:(_e,L,l)=>{l.d(L,{R:()=>j});var t=l(6354),f=l(1985);function M(v){switch(v.responseType){case"json":return"response"in v?v.response:JSON.parse(v.responseText);case"document":return v.responseXML;default:return"response"in v?v.response:v.responseText}}class T{constructor(N,ce,ne,J="download_load"){this.originalEvent=N,this.xhr=ce,this.request=ne,this.type=J;const{status:R,responseType:oe}=ce;this.status=R??0,this.responseType=oe??"";const ae=ce.getAllResponseHeaders();this.responseHeaders=ae?ae.split("\n").reduce(($e,Qe)=>{const Ee=Qe.indexOf(": ");return $e[Qe.slice(0,Ee)]=Qe.slice(Ee+2),$e},{}):{},this.response=M(ce);const{loaded:Me,total:We}=N;this.loaded=Me,this.total=We}}const E=(0,l(1853).L)(v=>function(ce,ne,J){let R;this.message=ce,this.name="AjaxError",this.xhr=ne,this.request=J,this.status=ne.status,this.responseType=ne.responseType;try{R=M(ne)}catch{R=ne.responseText}this.response=R}),O=(()=>{function v(N,ce){return E.call(this,"ajax timeout",N,ce),this.name="AjaxTimeoutError",this}return v.prototype=Object.create(E.prototype),v})();function C(v,N){return j({method:"GET",url:v,headers:N})}function g(v,N,ce){return j({method:"POST",url:v,body:N,headers:ce})}function p(v,N){return j({method:"DELETE",url:v,headers:N})}function b(v,N,ce){return j({method:"PUT",url:v,body:N,headers:ce})}function Y(v,N,ce){return j({method:"PATCH",url:v,body:N,headers:ce})}const re=(0,t.T)(v=>v.response);function z(v,N){return re(j({method:"GET",url:v,headers:N}))}const j=(()=>{const v=N=>function V(v){return new f.c(N=>{var ce,ne;const J=Object.assign({async:!0,crossDomain:!1,withCredentials:!1,method:"GET",timeout:0,responseType:"json"},v),{queryParams:R,body:oe,headers:ae}=J;let Me=J.url;if(!Me)throw new TypeError("url is required");if(R){let we;if(Me.includes("?")){const Ut=Me.split("?");if(2<Ut.length)throw new TypeError("invalid url");we=new URLSearchParams(Ut[1]),new URLSearchParams(R).forEach((en,Ot)=>we.set(Ot,en)),Me=Ut[0]+"?"+we}else we=new URLSearchParams(R),Me=Me+"?"+we}const We={};if(ae)for(const we in ae)ae.hasOwnProperty(we)&&(We[we.toLowerCase()]=ae[we]);const $e=J.crossDomain;!$e&&!("x-requested-with"in We)&&(We["x-requested-with"]="XMLHttpRequest");const{withCredentials:Qe,xsrfCookieName:Ee,xsrfHeaderName:vt}=J;if((Qe||!$e)&&Ee&&vt){const we=null!==(ne=null===(ce=document?.cookie.match(new RegExp(`(^|;\\s*)(${Ee})=([^;]*)`)))||void 0===ce?void 0:ce.pop())&&void 0!==ne?ne:"";we&&(We[vt]=we)}const ut=function x(v,N){var ce;if(!v||"string"==typeof v||function F(v){return typeof FormData<"u"&&v instanceof FormData}(v)||function X(v){return typeof URLSearchParams<"u"&&v instanceof URLSearchParams}(v)||function fe(v){return $(v,"ArrayBuffer")}(v)||function y(v){return $(v,"File")}(v)||function ie(v){return $(v,"Blob")}(v)||function H(v){return typeof ReadableStream<"u"&&v instanceof ReadableStream}(v))return v;if(function k(v){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(v)}(v))return v.buffer;if("object"==typeof v)return N["content-type"]=null!==(ce=N["content-type"])&&void 0!==ce?ce:"application/json;charset=utf-8",JSON.stringify(v);throw new TypeError("Unknown body type")}(oe,We),_t=Object.assign(Object.assign({},J),{url:Me,headers:We,body:ut});let lt;lt=v.createXHR?v.createXHR():new XMLHttpRequest;{const{progressSubscriber:we,includeDownloadProgress:Ut=!1,includeUploadProgress:en=!1}=v,Ot=(q,ue)=>{lt.addEventListener(q,()=>{var he;const ve=ue();null===(he=we?.error)||void 0===he||he.call(we,ve),N.error(ve)})};Ot("timeout",()=>new O(lt,_t)),Ot("abort",()=>new E("aborted",lt,_t));const u=(q,ue)=>new T(ue,lt,_t,`${q}_${ue.type}`),Z=(q,ue,he)=>{q.addEventListener(ue,ve=>{N.next(u(he,ve))})};en&&[K,ke,S].forEach(q=>Z(lt.upload,q,se)),we&&[K,ke].forEach(q=>lt.upload.addEventListener(q,ue=>{var he;return null===(he=we?.next)||void 0===he?void 0:he.call(we,ue)})),Ut&&[K,ke].forEach(q=>Z(lt,q,ge));const Q=q=>{N.error(new E("ajax error"+(q?" "+q:""),lt,_t))};lt.addEventListener("error",q=>{var ue;null===(ue=we?.error)||void 0===ue||ue.call(we,q),Q()}),lt.addEventListener(S,q=>{var ue,he;const{status:ve}=lt;if(ve<400){let De;null===(ue=we?.complete)||void 0===ue||ue.call(we);try{De=u(ge,q)}catch(Ae){return void N.error(Ae)}N.next(De),N.complete()}else null===(he=we?.error)||void 0===he||he.call(we,q),Q(ve)})}const{user:kt,method:Pt,async:Ze}=_t;kt?lt.open(Pt,Me,Ze,kt,_t.password):lt.open(Pt,Me,Ze),Ze&&(lt.timeout=_t.timeout,lt.responseType=_t.responseType),"withCredentials"in lt&&(lt.withCredentials=_t.withCredentials);for(const we in We)We.hasOwnProperty(we)&<.setRequestHeader(we,We[we]);return ut?lt.send(ut):lt.send(),()=>{lt&&4!==lt.readyState&<.abort()}})}("string"==typeof N?{url:N}:N);return v.get=C,v.post=g,v.delete=p,v.put=b,v.patch=Y,v.getJSON=z,v})(),se="upload",ge="download",K="loadstart",ke="progress",S="load",le=Object.prototype.toString;function $(v,N){return le.call(v)===`[object ${N}]`}},1026:(_e,L,l)=>{l.d(L,{$:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(_e,L,l)=>{l.d(L,{G:()=>E});var t=l(1985),f=l(8359),M=l(9898),T=l(4360),D=l(9974);class E extends t.c{constructor(C,g){super(),this.source=C,this.subjectFactory=g,this._subject=null,this._refCount=0,this._connection=null,(0,D.S)(C)&&(this.lift=C.lift)}_subscribe(C){return this.getSubject().subscribe(C)}getSubject(){const C=this._subject;return(!C||C.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:C}=this;this._subject=this._connection=null,C?.unsubscribe()}connect(){let C=this._connection;if(!C){C=this._connection=new f.yU;const g=this.getSubject();C.add(this.source.subscribe((0,T._)(g,void 0,()=>{this._teardown(),g.complete()},p=>{this._teardown(),g.error(p)},()=>this._teardown()))),C.closed&&(this._connection=null,C=f.yU.EMPTY)}return C}refCount(){return(0,M.B)()(this)}}},4572:(_e,L,l)=>{l.d(L,{z:()=>p});var t=l(1985),f=l(3073),M=l(2806),T=l(3669),D=l(6450),E=l(9326),O=l(8496),C=l(4360),g=l(5225);function p(...re){const z=(0,E.lI)(re),j=(0,E.ms)(re),{args:se,keys:ge}=(0,f.D)(re);if(0===se.length)return(0,M.H)([],z);const K=new t.c(function b(re,z,j=T.D){return se=>{Y(z,()=>{const{length:ge}=re,K=new Array(ge);let ke=ge,S=ge;for(let V=0;V<ge;V++)Y(z,()=>{const x=(0,M.H)(re[V],z);let le=!1;x.subscribe((0,C._)(se,$=>{K[V]=$,le||(le=!0,S--),S||se.next(j(K.slice()))},()=>{--ke||se.complete()}))},se)},se)}}(se,z,ge?ke=>(0,O.e)(ge,ke):T.D));return j?K.pipe((0,D.I)(j)):K}function Y(re,z,j){re?(0,g.N)(j,re,z):z()}},8793:(_e,L,l)=>{l.d(L,{x:()=>D});var t=l(6365),M=l(9326),T=l(2806);function D(...E){return function f(){return(0,t.U)(1)}()((0,T.H)(E,(0,M.lI)(E)))}},9030:(_e,L,l)=>{l.d(L,{v:()=>M});var t=l(1985),f=l(8750);function M(T){return new t.c(D=>{(0,f.Tg)(T()).subscribe(D)})}},983:(_e,L,l)=>{l.d(L,{w:()=>f});const f=new(l(1985).c)(D=>D.complete())},7468:(_e,L,l)=>{l.d(L,{p:()=>C});var t=l(1985),f=l(3073),M=l(8750),T=l(9326),D=l(4360),E=l(6450),O=l(8496);function C(...g){const p=(0,T.ms)(g),{args:b,keys:Y}=(0,f.D)(g),re=new t.c(z=>{const{length:j}=b;if(!j)return void z.complete();const se=new Array(j);let ge=j,K=j;for(let ke=0;ke<j;ke++){let S=!1;(0,M.Tg)(b[ke]).subscribe((0,D._)(z,V=>{S||(S=!0,K--),se[ke]=V},()=>ge--,void 0,()=>{(!ge||!S)&&(K||z.next(Y?(0,O.e)(Y,se):se),z.complete())}))}});return p?re.pipe((0,E.I)(p)):re}},2806:(_e,L,l)=>{l.d(L,{H:()=>le});var t=l(8750),f=l(941),M=l(9974);function T($,fe=0){return(0,M.N)((y,ie)=>{ie.add($.schedule(()=>y.subscribe(ie),fe))})}var O=l(1985),g=l(4761),p=l(8071),b=l(5225);function re($,fe){if(!$)throw new Error("Iterable cannot be null");return new O.c(y=>{(0,b.N)(y,fe,()=>{const ie=$[Symbol.asyncIterator]();(0,b.N)(y,fe,()=>{ie.next().then(k=>{k.done?y.complete():y.next(k.value)})},0,!0)})})}var z=l(5055),j=l(9858),se=l(7441),ge=l(5397),K=l(7953),ke=l(591),S=l(5196);function le($,fe){return fe?function x($,fe){if(null!=$){if((0,z.l)($))return function D($,fe){return(0,t.Tg)($).pipe(T(fe),(0,f.Q)(fe))}($,fe);if((0,se.X)($))return function C($,fe){return new O.c(y=>{let ie=0;return fe.schedule(function(){ie===$.length?y.complete():(y.next($[ie++]),y.closed||this.schedule())})})}($,fe);if((0,j.y)($))return function E($,fe){return(0,t.Tg)($).pipe(T(fe),(0,f.Q)(fe))}($,fe);if((0,K.T)($))return re($,fe);if((0,ge.x)($))return function Y($,fe){return new O.c(y=>{let ie;return(0,b.N)(y,fe,()=>{ie=$[g.l](),(0,b.N)(y,fe,()=>{let k,F;try{({value:k,done:F}=ie.next())}catch(X){return void y.error(X)}F?y.complete():y.next(k)},0,!0)}),()=>(0,p.T)(ie?.return)&&ie.return()})}($,fe);if((0,S.U)($))return function V($,fe){return re((0,S.C)($),fe)}($,fe)}throw(0,ke.L)($)}($,fe):(0,t.Tg)($)}},3726:(_e,L,l)=>{l.d(L,{R:()=>p});var t=l(8750),f=l(1985),M=l(1397),T=l(7441),D=l(8071),E=l(6450);const O=["addListener","removeListener"],C=["addEventListener","removeEventListener"],g=["on","off"];function p(j,se,ge,K){if((0,D.T)(ge)&&(K=ge,ge=void 0),K)return p(j,se,ge).pipe((0,E.I)(K));const[ke,S]=function z(j){return(0,D.T)(j.addEventListener)&&(0,D.T)(j.removeEventListener)}(j)?C.map(V=>x=>j[V](se,x,ge)):function Y(j){return(0,D.T)(j.addListener)&&(0,D.T)(j.removeListener)}(j)?O.map(b(j,se)):function re(j){return(0,D.T)(j.on)&&(0,D.T)(j.off)}(j)?g.map(b(j,se)):[];if(!ke&&(0,T.X)(j))return(0,M.Z)(V=>p(V,se,ge))((0,t.Tg)(j));if(!ke)throw new TypeError("Invalid event target");return new f.c(V=>{const x=(...le)=>V.next(1<le.length?le:le[0]);return ke(x),()=>S(x)})}function b(j,se){return ge=>K=>j[ge](se,K)}},8750:(_e,L,l)=>{l.d(L,{Tg:()=>re});var t=l(5215),f=l(7441),M=l(9858),T=l(1985),D=l(5055),E=l(7953),O=l(591),C=l(5397),g=l(5196),p=l(8071),b=l(5334),Y=l(3494);function re(V){if(V instanceof T.c)return V;if(null!=V){if((0,D.l)(V))return function z(V){return new T.c(x=>{const le=V[Y.s]();if((0,p.T)(le.subscribe))return le.subscribe(x);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(V);if((0,f.X)(V))return function j(V){return new T.c(x=>{for(let le=0;le<V.length&&!x.closed;le++)x.next(V[le]);x.complete()})}(V);if((0,M.y)(V))return function se(V){return new T.c(x=>{V.then(le=>{x.closed||(x.next(le),x.complete())},le=>x.error(le)).then(null,b.m)})}(V);if((0,E.T)(V))return K(V);if((0,C.x)(V))return function ge(V){return new T.c(x=>{for(const le of V)if(x.next(le),x.closed)return;x.complete()})}(V);if((0,g.U)(V))return function ke(V){return K((0,g.C)(V))}(V)}throw(0,O.L)(V)}function K(V){return new T.c(x=>{(function S(V,x){var le,$,fe,y;return(0,t.sH)(this,void 0,void 0,function*(){try{for(le=(0,t.xN)(V);!($=yield le.next()).done;)if(x.next($.value),x.closed)return}catch(ie){fe={error:ie}}finally{try{$&&!$.done&&(y=le.return)&&(yield y.call(le))}finally{if(fe)throw fe.error}}x.complete()})})(V,x).catch(le=>x.error(le))})}},7786:(_e,L,l)=>{l.d(L,{h:()=>E});var t=l(6365),f=l(8750),M=l(983),T=l(9326),D=l(2806);function E(...O){const C=(0,T.lI)(O),g=(0,T.R0)(O,1/0),p=O;return p.length?1===p.length?(0,f.Tg)(p[0]):(0,t.U)(g)((0,D.H)(p,C)):M.w}},7673:(_e,L,l)=>{l.d(L,{of:()=>M});var t=l(9326),f=l(2806);function M(...T){const D=(0,t.lI)(T);return(0,f.H)(T,D)}},8810:(_e,L,l)=>{l.d(L,{$:()=>M});var t=l(1985),f=l(8071);function M(T,D){const E=(0,f.T)(T)?T:()=>T,O=C=>C.error(E());return new t.c(D?C=>D.schedule(O,0,C):O)}},1584:(_e,L,l)=>{l.d(L,{O:()=>D});var t=l(1985),f=l(3236),M=l(9470);function D(E=0,O,C=f.b){let g=-1;return null!=O&&((0,M.m)(O)?C=O:g=O),new t.c(p=>{let b=function T(E){return E instanceof Date&&!isNaN(E)}(E)?+E-C.now():E;b<0&&(b=0);let Y=0;return C.schedule(function(){p.closed||(p.next(Y++),0<=g?this.schedule(void 0,g):p.complete())},b)})}},4360:(_e,L,l)=>{l.d(L,{_:()=>f});var t=l(7707);function f(T,D,E,O,C){return new M(T,D,E,O,C)}class M extends t.vU{constructor(D,E,O,C,g,p){super(D),this.onFinalize=g,this.shouldUnsubscribe=p,this._next=E?function(b){try{E(b)}catch(Y){D.error(Y)}}:super._next,this._error=C?function(b){try{C(b)}catch(Y){D.error(Y)}finally{this.unsubscribe()}}:super._error,this._complete=O?function(){try{O()}catch(b){D.error(b)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var D;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:E}=this;super.unsubscribe(),!E&&(null===(D=this.onFinalize)||void 0===D||D.call(this))}}}},9437:(_e,L,l)=>{l.d(L,{W:()=>T});var t=l(8750),f=l(4360),M=l(9974);function T(D){return(0,M.N)((E,O)=>{let p,C=null,g=!1;C=E.subscribe((0,f._)(O,void 0,void 0,b=>{p=(0,t.Tg)(D(b,T(D)(E))),C?(C.unsubscribe(),C=null,p.subscribe(O)):g=!0})),g&&(C.unsubscribe(),C=null,p.subscribe(O))})}},274:(_e,L,l)=>{l.d(L,{H:()=>M});var t=l(1397),f=l(8071);function M(T,D){return(0,f.T)(D)?(0,t.Z)(T,D,1):(0,t.Z)(T,1)}},152:(_e,L,l)=>{l.d(L,{B:()=>T});var t=l(3236),f=l(9974),M=l(4360);function T(D,E=t.E){return(0,f.N)((O,C)=>{let g=null,p=null,b=null;const Y=()=>{if(g){g.unsubscribe(),g=null;const z=p;p=null,C.next(z)}};function re(){const z=b+D,j=E.now();if(j<z)return g=this.schedule(void 0,z-j),void C.add(g);Y()}O.subscribe((0,M._)(C,z=>{p=z,b=E.now(),g||(g=E.schedule(re,D),C.add(g))},()=>{Y(),C.complete()},void 0,()=>{p=g=null}))})}},9901:(_e,L,l)=>{l.d(L,{U:()=>M});var t=l(9974),f=l(4360);function M(T){return(0,t.N)((D,E)=>{let O=!1;D.subscribe((0,f._)(E,C=>{O=!0,E.next(C)},()=>{O||E.next(T),E.complete()}))})}},3294:(_e,L,l)=>{l.d(L,{F:()=>T});var t=l(3669),f=l(9974),M=l(4360);function T(E,O=t.D){return E=E??D,(0,f.N)((C,g)=>{let p,b=!0;C.subscribe((0,M._)(g,Y=>{const re=O(Y);(b||!E(p,re))&&(b=!1,p=re,g.next(Y))}))})}function D(E,O){return E===O}},5964:(_e,L,l)=>{l.d(L,{p:()=>M});var t=l(9974),f=l(4360);function M(T,D){return(0,t.N)((E,O)=>{let C=0;E.subscribe((0,f._)(O,g=>T.call(D,g,C++)&&O.next(g)))})}},980:(_e,L,l)=>{l.d(L,{j:()=>f});var t=l(9974);function f(M){return(0,t.N)((T,D)=>{try{T.subscribe(D)}finally{D.add(M)}})}},1594:(_e,L,l)=>{l.d(L,{$:()=>O});var t=l(9350),f=l(5964),M=l(6697),T=l(9901),D=l(3774),E=l(3669);function O(C,g){const p=arguments.length>=2;return b=>b.pipe(C?(0,f.p)((Y,re)=>C(Y,re,b)):E.D,(0,M.s)(1),p?(0,T.U)(g):(0,D.v)(()=>new t.G))}},7018:(_e,L,l)=>{l.d(L,{H:()=>O});var t=l(9350),f=l(5964),M=l(5109),T=l(3774),D=l(9901),E=l(3669);function O(C,g){const p=arguments.length>=2;return b=>b.pipe(C?(0,f.p)((Y,re)=>C(Y,re,b)):E.D,(0,M.o)(1),p?(0,D.U)(g):(0,T.v)(()=>new t.G))}},6354:(_e,L,l)=>{l.d(L,{T:()=>M});var t=l(9974),f=l(4360);function M(T,D){return(0,t.N)((E,O)=>{let C=0;E.subscribe((0,f._)(O,g=>{O.next(T.call(D,g,C++))}))})}},3703:(_e,L,l)=>{l.d(L,{u:()=>f});var t=l(6354);function f(M){return(0,t.T)(()=>M)}},6365:(_e,L,l)=>{l.d(L,{U:()=>M});var t=l(1397),f=l(3669);function M(T=1/0){return(0,t.Z)(f.D,T)}},1397:(_e,L,l)=>{l.d(L,{Z:()=>C});var t=l(6354),f=l(8750),M=l(9974),T=l(5225),D=l(4360),O=l(8071);function C(g,p,b=1/0){return(0,O.T)(p)?C((Y,re)=>(0,t.T)((z,j)=>p(Y,z,re,j))((0,f.Tg)(g(Y,re))),b):("number"==typeof p&&(b=p),(0,M.N)((Y,re)=>function E(g,p,b,Y,re,z,j,se){const ge=[];let K=0,ke=0,S=!1;const V=()=>{S&&!ge.length&&!K&&p.complete()},x=$=>K<Y?le($):ge.push($),le=$=>{z&&p.next($),K++;let fe=!1;(0,f.Tg)(b($,ke++)).subscribe((0,D._)(p,y=>{re?.(y),z?x(y):p.next(y)},()=>{fe=!0},void 0,()=>{if(fe)try{for(K--;ge.length&&K<Y;){const y=ge.shift();j?(0,T.N)(p,j,()=>le(y)):le(y)}V()}catch(y){p.error(y)}}))};return g.subscribe((0,D._)(p,x,()=>{S=!0,V()})),()=>{se?.()}}(Y,re,g,b)))}},941:(_e,L,l)=>{l.d(L,{Q:()=>T});var t=l(5225),f=l(9974),M=l(4360);function T(D,E=0){return(0,f.N)((O,C)=>{O.subscribe((0,M._)(C,g=>(0,t.N)(C,D,()=>C.next(g),E),()=>(0,t.N)(C,D,()=>C.complete(),E),g=>(0,t.N)(C,D,()=>C.error(g),E)))})}},9898:(_e,L,l)=>{l.d(L,{B:()=>M});var t=l(9974),f=l(4360);function M(){return(0,t.N)((T,D)=>{let E=null;T._refCount++;const O=(0,f._)(D,void 0,void 0,void 0,()=>{if(!T||T._refCount<=0||0<--T._refCount)return void(E=null);const C=T._connection,g=E;E=null,C&&(!g||C===g)&&C.unsubscribe(),D.unsubscribe()});T.subscribe(O),O.closed||(E=T.connect())})}},2816:(_e,L,l)=>{l.d(L,{S:()=>T});var t=l(9974),f=l(4360);function T(D,E){return(0,t.N)(function M(D,E,O,C,g){return(p,b)=>{let Y=O,re=E,z=0;p.subscribe((0,f._)(b,j=>{const se=z++;re=Y?D(re,j,se):(Y=!0,j),C&&b.next(re)},g&&(()=>{Y&&b.next(re),b.complete()})))}}(D,E,arguments.length>=2,!0))}},9172:(_e,L,l)=>{l.d(L,{Z:()=>T});var t=l(8793),f=l(9326),M=l(9974);function T(...D){const E=(0,f.lI)(D);return(0,M.N)((O,C)=>{(E?(0,t.x)(D,O,E):(0,t.x)(D,O)).subscribe(C)})}},5558:(_e,L,l)=>{l.d(L,{n:()=>T});var t=l(8750),f=l(9974),M=l(4360);function T(D,E){return(0,f.N)((O,C)=>{let g=null,p=0,b=!1;const Y=()=>b&&!g&&C.complete();O.subscribe((0,M._)(C,re=>{g?.unsubscribe();let z=0;const j=p++;(0,t.Tg)(D(re,j)).subscribe(g=(0,M._)(C,se=>C.next(E?E(re,se,j,z++):se),()=>{g=null,Y()}))},()=>{b=!0,Y()}))})}},6697:(_e,L,l)=>{l.d(L,{s:()=>T});var t=l(983),f=l(9974),M=l(4360);function T(D){return D<=0?()=>t.w:(0,f.N)((E,O)=>{let C=0;E.subscribe((0,M._)(O,g=>{++C<=D&&(O.next(g),D<=C&&O.complete())}))})}},5109:(_e,L,l)=>{l.d(L,{o:()=>T});var t=l(983),f=l(9974),M=l(4360);function T(D){return D<=0?()=>t.w:(0,f.N)((E,O)=>{let C=[];E.subscribe((0,M._)(O,g=>{C.push(g),D<C.length&&C.shift()},()=>{for(const g of C)O.next(g);O.complete()},void 0,()=>{C=null}))})}},6977:(_e,L,l)=>{l.d(L,{Q:()=>D});var t=l(9974),f=l(4360),M=l(8750),T=l(5343);function D(E){return(0,t.N)((O,C)=>{(0,M.Tg)(E).subscribe((0,f._)(C,()=>C.complete(),T.l)),!C.closed&&O.subscribe(C)})}},8141:(_e,L,l)=>{l.d(L,{M:()=>D});var t=l(8071),f=l(9974),M=l(4360),T=l(3669);function D(E,O,C){const g=(0,t.T)(E)||O||C?{next:E,error:O,complete:C}:E;return g?(0,f.N)((p,b)=>{var Y;null===(Y=g.subscribe)||void 0===Y||Y.call(g);let re=!0;p.subscribe((0,M._)(b,z=>{var j;null===(j=g.next)||void 0===j||j.call(g,z),b.next(z)},()=>{var z;re=!1,null===(z=g.complete)||void 0===z||z.call(g),b.complete()},z=>{var j;re=!1,null===(j=g.error)||void 0===j||j.call(g,z),b.error(z)},()=>{var z,j;re&&(null===(z=g.unsubscribe)||void 0===z||z.call(g)),null===(j=g.finalize)||void 0===j||j.call(g)}))}):T.D}},3774:(_e,L,l)=>{l.d(L,{v:()=>T});var t=l(9350),f=l(9974),M=l(4360);function T(E=D){return(0,f.N)((O,C)=>{let g=!1;O.subscribe((0,M._)(C,p=>{g=!0,C.next(p)},()=>g?C.complete():C.error(E())))})}function D(){return new t.G}},6780:(_e,L,l)=>{l.d(L,{R:()=>D});var t=l(8359);class f extends t.yU{constructor(O,C){super()}schedule(O,C=0){return this}}const M={setInterval(E,O,...C){const{delegate:g}=M;return g?.setInterval?g.setInterval(E,O,...C):setInterval(E,O,...C)},clearInterval(E){const{delegate:O}=M;return(O?.clearInterval||clearInterval)(E)},delegate:void 0};var T=l(7908);class D extends f{constructor(O,C){super(O,C),this.scheduler=O,this.work=C,this.pending=!1}schedule(O,C=0){var g;if(this.closed)return this;this.state=O;const p=this.id,b=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(b,p,C)),this.pending=!0,this.delay=C,this.id=null!==(g=this.id)&&void 0!==g?g:this.requestAsyncId(b,this.id,C),this}requestAsyncId(O,C,g=0){return M.setInterval(O.flush.bind(O,this),g)}recycleAsyncId(O,C,g=0){if(null!=g&&this.delay===g&&!1===this.pending)return C;null!=C&&M.clearInterval(C)}execute(O,C){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const g=this._execute(O,C);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(O,C){let p,g=!1;try{this.work(O)}catch(b){g=!0,p=b||new Error("Scheduled action threw falsy error")}if(g)return this.unsubscribe(),p}unsubscribe(){if(!this.closed){const{id:O,scheduler:C}=this,{actions:g}=C;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.o)(g,this),null!=O&&(this.id=this.recycleAsyncId(C,O,null)),this.delay=null,super.unsubscribe()}}}},3604:(_e,L,l)=>{l.d(L,{q:()=>M});const t={now:()=>(t.delegate||Date).now(),delegate:void 0};class f{constructor(D,E=f.now){this.schedulerActionCtor=D,this.now=E}schedule(D,E=0,O){return new this.schedulerActionCtor(this,D).schedule(O,E)}}f.now=t.now;class M extends f{constructor(D,E=f.now){super(D,E),this.actions=[],this._active=!1}flush(D){const{actions:E}=this;if(this._active)return void E.push(D);let O;this._active=!0;do{if(O=D.execute(D.state,D.delay))break}while(D=E.shift());if(this._active=!1,O){for(;D=E.shift();)D.unsubscribe();throw O}}}},536:(_e,L,l)=>{l.d(L,{X:()=>O});var t=l(6780),f=l(8359);const M={schedule(g){let p=requestAnimationFrame,b=cancelAnimationFrame;const{delegate:Y}=M;Y&&(p=Y.requestAnimationFrame,b=Y.cancelAnimationFrame);const re=p(z=>{b=void 0,g(z)});return new f.yU(()=>b?.(re))},requestAnimationFrame(...g){const{delegate:p}=M;return(p?.requestAnimationFrame||requestAnimationFrame)(...g)},cancelAnimationFrame(...g){const{delegate:p}=M;return(p?.cancelAnimationFrame||cancelAnimationFrame)(...g)},delegate:void 0};var D=l(3604);const O=new class E extends D.q{flush(p){this._active=!0;const b=this._scheduled;this._scheduled=void 0;const{actions:Y}=this;let re;p=p||Y.shift();do{if(re=p.execute(p.state,p.delay))break}while((p=Y[0])&&p.id===b&&Y.shift());if(this._active=!1,re){for(;(p=Y[0])&&p.id===b&&Y.shift();)p.unsubscribe();throw re}}}(class T extends t.R{constructor(p,b){super(p,b),this.scheduler=p,this.work=b}requestAsyncId(p,b,Y=0){return null!==Y&&Y>0?super.requestAsyncId(p,b,Y):(p.actions.push(this),p._scheduled||(p._scheduled=M.requestAnimationFrame(()=>p.flush(void 0))))}recycleAsyncId(p,b,Y=0){var re;if(null!=Y?Y>0:this.delay>0)return super.recycleAsyncId(p,b,Y);const{actions:z}=p;null!=b&&(null===(re=z[z.length-1])||void 0===re?void 0:re.id)!==b&&(M.cancelAnimationFrame(b),p._scheduled=void 0)}})},3236:(_e,L,l)=>{l.d(L,{E:()=>M,b:()=>T});var t=l(6780);const M=new(l(3604).q)(t.R),T=M},9270:(_e,L,l)=>{l.d(L,{f:()=>t});const t={setTimeout(f,M,...T){const{delegate:D}=t;return D?.setTimeout?D.setTimeout(f,M,...T):setTimeout(f,M,...T)},clearTimeout(f){const{delegate:M}=t;return(M?.clearTimeout||clearTimeout)(f)},delegate:void 0}},4761:(_e,L,l)=>{l.d(L,{l:()=>f});const f=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(_e,L,l)=>{l.d(L,{s:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(_e,L,l)=>{l.d(L,{G:()=>f});const f=(0,l(1853).L)(M=>function(){M(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(_e,L,l)=>{l.d(L,{R0:()=>E,lI:()=>D,ms:()=>T});var t=l(8071),f=l(9470);function M(O){return O[O.length-1]}function T(O){return(0,t.T)(M(O))?O.pop():void 0}function D(O){return(0,f.m)(M(O))?O.pop():void 0}function E(O,C){return"number"==typeof M(O)?O.pop():C}},3073:(_e,L,l)=>{l.d(L,{D:()=>D});const{isArray:t}=Array,{getPrototypeOf:f,prototype:M,keys:T}=Object;function D(O){if(1===O.length){const C=O[0];if(t(C))return{args:C,keys:null};if(function E(O){return O&&"object"==typeof O&&f(O)===M}(C)){const g=T(C);return{args:g.map(p=>C[p]),keys:g}}}return{args:O,keys:null}}},7908:(_e,L,l)=>{function t(f,M){if(f){const T=f.indexOf(M);0<=T&&f.splice(T,1)}}l.d(L,{o:()=>t})},1853:(_e,L,l)=>{function t(f){const T=f(D=>{Error.call(D),D.stack=(new Error).stack});return T.prototype=Object.create(Error.prototype),T.prototype.constructor=T,T}l.d(L,{L:()=>t})},8496:(_e,L,l)=>{function t(f,M){return f.reduce((T,D,E)=>(T[D]=M[E],T),{})}l.d(L,{e:()=>t})},9786:(_e,L,l)=>{l.d(L,{Y:()=>M,l:()=>T});var t=l(1026);let f=null;function M(D){if(t.$.useDeprecatedSynchronousErrorHandling){const E=!f;if(E&&(f={errorThrown:!1,error:null}),D(),E){const{errorThrown:O,error:C}=f;if(f=null,O)throw C}}else D()}function T(D){t.$.useDeprecatedSynchronousErrorHandling&&f&&(f.errorThrown=!0,f.error=D)}},5225:(_e,L,l)=>{function t(f,M,T,D=0,E=!1){const O=M.schedule(function(){T(),E?f.add(this.schedule(null,D)):this.unsubscribe()},D);if(f.add(O),!E)return O}l.d(L,{N:()=>t})},3669:(_e,L,l)=>{function t(f){return f}l.d(L,{D:()=>t})},7441:(_e,L,l)=>{l.d(L,{X:()=>t});const t=f=>f&&"number"==typeof f.length&&"function"!=typeof f},7953:(_e,L,l)=>{l.d(L,{T:()=>f});var t=l(8071);function f(M){return Symbol.asyncIterator&&(0,t.T)(M?.[Symbol.asyncIterator])}},8071:(_e,L,l)=>{function t(f){return"function"==typeof f}l.d(L,{T:()=>t})},5055:(_e,L,l)=>{l.d(L,{l:()=>M});var t=l(3494),f=l(8071);function M(T){return(0,f.T)(T[t.s])}},5397:(_e,L,l)=>{l.d(L,{x:()=>M});var t=l(4761),f=l(8071);function M(T){return(0,f.T)(T?.[t.l])}},4402:(_e,L,l)=>{l.d(L,{A:()=>M});var t=l(1985),f=l(8071);function M(T){return!!T&&(T instanceof t.c||(0,f.T)(T.lift)&&(0,f.T)(T.subscribe))}},9858:(_e,L,l)=>{l.d(L,{y:()=>f});var t=l(8071);function f(M){return(0,t.T)(M?.then)}},5196:(_e,L,l)=>{l.d(L,{C:()=>M,U:()=>T});var t=l(5215),f=l(8071);function M(D){return(0,t.AQ)(this,arguments,function*(){const O=D.getReader();try{for(;;){const{value:C,done:g}=yield(0,t.N3)(O.read());if(g)return yield(0,t.N3)(void 0);yield yield(0,t.N3)(C)}}finally{O.releaseLock()}})}function T(D){return(0,f.T)(D?.getReader)}},9470:(_e,L,l)=>{l.d(L,{m:()=>f});var t=l(8071);function f(M){return M&&(0,t.T)(M.schedule)}},9974:(_e,L,l)=>{l.d(L,{N:()=>M,S:()=>f});var t=l(8071);function f(T){return(0,t.T)(T?.lift)}function M(T){return D=>{if(f(D))return D.lift(function(E){try{return T(E,this)}catch(O){this.error(O)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(_e,L,l)=>{l.d(L,{I:()=>T});var t=l(6354);const{isArray:f}=Array;function T(D){return(0,t.T)(E=>function M(D,E){return f(E)?D(...E):D(E)}(D,E))}},5343:(_e,L,l)=>{function t(){}l.d(L,{l:()=>t})},1203:(_e,L,l)=>{l.d(L,{F:()=>f,m:()=>M});var t=l(3669);function f(...T){return M(T)}function M(T){return 0===T.length?t.D:1===T.length?T[0]:function(E){return T.reduce((O,C)=>C(O),E)}}},5334:(_e,L,l)=>{l.d(L,{m:()=>M});var t=l(1026),f=l(9270);function M(T){f.f.setTimeout(()=>{const{onUnhandledError:D}=t.$;if(!D)throw T;D(T)})}},591:(_e,L,l)=>{function t(f){return new TypeError(`You provided ${null!==f&&"object"==typeof f?"an invalid object":`'${f}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(L,{L:()=>t})},6935:()=>{const _e=globalThis;function L(w){return(_e.__Zone_symbol_prefix||"__zone_symbol__")+w}const f=Object.getOwnPropertyDescriptor,M=Object.defineProperty,T=Object.getPrototypeOf,D=Object.create,E=Array.prototype.slice,O="addEventListener",C="removeEventListener",g=L(O),p=L(C),b="true",Y="false",re=L("");function z(w,A){return Zone.current.wrap(w,A)}function j(w,A,te,P,ee){return Zone.current.scheduleMacroTask(w,A,te,P,ee)}const se=L,ge=typeof window<"u",K=ge?window:void 0,ke=ge&&K||globalThis,S="removeAttribute";function V(w,A){for(let te=w.length-1;te>=0;te--)"function"==typeof w[te]&&(w[te]=z(w[te],A+"_"+te));return w}function le(w){return!w||!1!==w.writable&&!("function"==typeof w.get&&typeof w.set>"u")}const $=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,fe=!("nw"in ke)&&typeof ke.process<"u"&&"[object process]"===ke.process.toString(),y=!fe&&!$&&!(!ge||!K.HTMLElement),ie=typeof ke.process<"u"&&"[object process]"===ke.process.toString()&&!$&&!(!ge||!K.HTMLElement),k={},F=se("enable_beforeunload"),X=function(w){if(!(w=w||ke.event))return;let A=k[w.type];A||(A=k[w.type]=se("ON_PROPERTY"+w.type));const te=this||w.target||ke,P=te[A];let ee;return y&&te===K&&"error"===w.type?(ee=P&&P.call(this,w.message,w.filename,w.lineno,w.colno,w.error),!0===ee&&w.preventDefault()):(ee=P&&P.apply(this,arguments),"beforeunload"===w.type&&ke[F]&&"string"==typeof ee?w.returnValue=ee:null!=ee&&!ee&&w.preventDefault()),ee};function H(w,A,te){let P=f(w,A);if(!P&&te&&f(te,A)&&(P={enumerable:!0,configurable:!0}),!P||!P.configurable)return;const ee=se("on"+A+"patched");if(w.hasOwnProperty(ee)&&w[ee])return;delete P.writable,delete P.value;const be=P.get,Pe=P.set,Se=A.slice(2);let Ie=k[Se];Ie||(Ie=k[Se]=se("ON_PROPERTY"+Se)),P.set=function(de){let ye=this;!ye&&w===ke&&(ye=ke),ye&&("function"==typeof ye[Ie]&&ye.removeEventListener(Se,X),Pe&&Pe.call(ye,null),ye[Ie]=de,"function"==typeof de&&ye.addEventListener(Se,X,!1))},P.get=function(){let de=this;if(!de&&w===ke&&(de=ke),!de)return null;const ye=de[Ie];if(ye)return ye;if(be){let Ve=be.call(this);if(Ve)return P.set.call(this,Ve),"function"==typeof de[S]&&de.removeAttribute(A),Ve}return null},M(w,A,P),w[ee]=!0}function v(w,A,te){if(A)for(let P=0;P<A.length;P++)H(w,"on"+A[P],te);else{const P=[];for(const ee in w)"on"==ee.slice(0,2)&&P.push(ee);for(let ee=0;ee<P.length;ee++)H(w,P[ee],te)}}const N=se("originalInstance");function ce(w){const A=ke[w];if(!A)return;ke[se(w)]=A,ke[w]=function(){const ee=V(arguments,w);switch(ee.length){case 0:this[N]=new A;break;case 1:this[N]=new A(ee[0]);break;case 2:this[N]=new A(ee[0],ee[1]);break;case 3:this[N]=new A(ee[0],ee[1],ee[2]);break;case 4:this[N]=new A(ee[0],ee[1],ee[2],ee[3]);break;default:throw new Error("Arg list too long.")}},R(ke[w],A);const te=new A(function(){});let P;for(P in te)"XMLHttpRequest"===w&&"responseBlob"===P||function(ee){"function"==typeof te[ee]?ke[w].prototype[ee]=function(){return this[N][ee].apply(this[N],arguments)}:M(ke[w].prototype,ee,{set:function(be){"function"==typeof be?(this[N][ee]=z(be,w+"."+ee),R(this[N][ee],be)):this[N][ee]=be},get:function(){return this[N][ee]}})}(P);for(P in A)"prototype"!==P&&A.hasOwnProperty(P)&&(ke[w][P]=A[P])}function ne(w,A,te){let P=w;for(;P&&!P.hasOwnProperty(A);)P=T(P);!P&&w[A]&&(P=w);const ee=se(A);let be=null;if(P&&(!(be=P[ee])||!P.hasOwnProperty(ee))&&(be=P[ee]=P[A],le(P&&f(P,A)))){const Se=te(be,ee,A);P[A]=function(){return Se(this,arguments)},R(P[A],be)}return be}function J(w,A,te){let P=null;function ee(be){const Pe=be.data;return Pe.args[Pe.cbIdx]=function(){be.invoke.apply(this,arguments)},P.apply(Pe.target,Pe.args),be}P=ne(w,A,be=>function(Pe,Se){const Ie=te(Pe,Se);return Ie.cbIdx>=0&&"function"==typeof Se[Ie.cbIdx]?j(Ie.name,Se[Ie.cbIdx],Ie,ee):be.apply(Pe,Se)})}function R(w,A){w[se("OriginalDelegate")]=A}let oe=!1,ae=!1;function We(){if(oe)return ae;oe=!0;try{const w=K.navigator.userAgent;(-1!==w.indexOf("MSIE ")||-1!==w.indexOf("Trident/")||-1!==w.indexOf("Edge/"))&&(ae=!0)}catch{}return ae}function $e(w){return"function"==typeof w}function Qe(w){return"number"==typeof w}let Ee=!1;if(typeof window<"u")try{const w=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",w,w),window.removeEventListener("test",w,w)}catch{Ee=!1}const vt={useG:!0},ut={},_t={},lt=new RegExp("^"+re+"(\\w+)(true|false)$"),kt=se("propagationStopped");function Pt(w,A){const te=(A?A(w):w)+Y,P=(A?A(w):w)+b,ee=re+te,be=re+P;ut[w]={},ut[w][Y]=ee,ut[w][b]=be}function Ze(w,A,te,P){const ee=P&&P.add||O,be=P&&P.rm||C,Pe=P&&P.listeners||"eventListeners",Se=P&&P.rmAll||"removeAllListeners",Ie=se(ee),de="."+ee+":",ye="prependListener",Ve="."+ye+":",Ke=function(Ce,Te,at){if(Ce.isRemoved)return;const Le=Ce.callback;let ht;"object"==typeof Le&&Le.handleEvent&&(Ce.callback=Ye=>Le.handleEvent(Ye),Ce.originalDelegate=Le);try{Ce.invoke(Ce,Te,[at])}catch(Ye){ht=Ye}const dt=Ce.options;return dt&&"object"==typeof dt&&dt.once&&Te[be].call(Te,at.type,Ce.originalDelegate?Ce.originalDelegate:Ce.callback,dt),ht};function st(Ce,Te,at){if(!(Te=Te||w.event))return;const Le=Ce||Te.target||w,ht=Le[ut[Te.type][at?b:Y]];if(ht){const dt=[];if(1===ht.length){const Ye=Ke(ht[0],Le,Te);Ye&&dt.push(Ye)}else{const Ye=ht.slice();for(let ct=0;ct<Ye.length&&(!Te||!0!==Te[kt]);ct++){const Je=Ke(Ye[ct],Le,Te);Je&&dt.push(Je)}}if(1===dt.length)throw dt[0];for(let Ye=0;Ye<dt.length;Ye++){const ct=dt[Ye];A.nativeScheduleMicroTask(()=>{throw ct})}}}const Ne=function(Ce){return st(this,Ce,!1)},ft=function(Ce){return st(this,Ce,!0)};function wt(Ce,Te){if(!Ce)return!1;let at=!0;Te&&void 0!==Te.useG&&(at=Te.useG);const Le=Te&&Te.vh;let ht=!0;Te&&void 0!==Te.chkDup&&(ht=Te.chkDup);let dt=!1;Te&&void 0!==Te.rt&&(dt=Te.rt);let Ye=Ce;for(;Ye&&!Ye.hasOwnProperty(ee);)Ye=T(Ye);if(!Ye&&Ce[ee]&&(Ye=Ce),!Ye||Ye[Ie])return!1;const ct=Te&&Te.eventNameToString,Je={},He=Ye[Ie]=Ye[ee],je=Ye[se(be)]=Ye[be],Xe=Ye[se(Pe)]=Ye[Pe],rt=Ye[se(Se)]=Ye[Se];let ot;Te&&Te.prepend&&(ot=Ye[se(Te.prepend)]=Ye[Te.prepend]);const mt=at?function(o){if(!Je.isExisting)return He.call(Je.target,Je.eventName,Je.capture?ft:Ne,Je.options)}:function(o){return He.call(Je.target,Je.eventName,o.invoke,Je.options)},tt=at?function(o){if(!o.isRemoved){const c=ut[o.eventName];let m;c&&(m=c[o.capture?b:Y]);const B=m&&o.target[m];if(B)for(let U=0;U<B.length;U++)if(B[U]===o){B.splice(U,1),o.isRemoved=!0,o.removeAbortListener&&(o.removeAbortListener(),o.removeAbortListener=null),0===B.length&&(o.allRemoved=!0,o.target[m]=null);break}}if(o.allRemoved)return je.call(o.target,o.eventName,o.capture?ft:Ne,o.options)}:function(o){return je.call(o.target,o.eventName,o.invoke,o.options)},Vt=Te&&Te.diff?Te.diff:function(o,c){const m=typeof c;return"function"===m&&o.callback===c||"object"===m&&o.originalDelegate===c},Ct=Zone[se("UNPATCHED_EVENTS")],Dt=w[se("PASSIVE_EVENTS")],_=function(o,c,m,B,U=!1,pe=!1){return function(){const Re=this||w;let Oe=arguments[0];Te&&Te.transferEventName&&(Oe=Te.transferEventName(Oe));let et=arguments[1];if(!et)return o.apply(this,arguments);if(fe&&"uncaughtException"===Oe)return o.apply(this,arguments);let qe=!1;if("function"!=typeof et){if(!et.handleEvent)return o.apply(this,arguments);qe=!0}if(Le&&!Le(o,et,Re,arguments))return;const yt=Ee&&!!Dt&&-1!==Dt.indexOf(Oe),Yt=function d(o){if("object"==typeof o&&null!==o){const c={...o};return o.signal&&(c.signal=o.signal),c}return o}(function Ge(o,c){return!Ee&&"object"==typeof o&&o?!!o.capture:Ee&&c?"boolean"==typeof o?{capture:o,passive:!0}:o?"object"==typeof o&&!1!==o.passive?{...o,passive:!0}:o:{passive:!0}:o}(arguments[2],yt)),cn=Yt?.signal;if(cn?.aborted)return;if(Ct)for(let Gt=0;Gt<Ct.length;Gt++)if(Oe===Ct[Gt])return yt?o.call(Re,Oe,et,Yt):o.apply(this,arguments);const An=!!Yt&&("boolean"==typeof Yt||Yt.capture),qn=!(!Yt||"object"!=typeof Yt)&&Yt.once,_s=Zone.current;let Bn=ut[Oe];Bn||(Pt(Oe,ct),Bn=ut[Oe]);const Fn=Bn[An?b:Y];let Vn,Ht=Re[Fn],hs=!1;if(Ht){if(hs=!0,ht)for(let Gt=0;Gt<Ht.length;Gt++)if(Vt(Ht[Gt],et))return}else Ht=Re[Fn]=[];const ms=Re.constructor.name,ps=_t[ms];ps&&(Vn=ps[Oe]),Vn||(Vn=ms+c+(ct?ct(Oe):Oe)),Je.options=Yt,qn&&(Je.options.once=!1),Je.target=Re,Je.capture=An,Je.eventName=Oe,Je.isExisting=hs;const Mn=at?vt:void 0;Mn&&(Mn.taskData=Je),cn&&(Je.options.signal=void 0);const jt=_s.scheduleEventTask(Vn,et,Mn,m,B);if(cn){Je.options.signal=cn;const Gt=()=>jt.zone.cancelTask(jt);o.call(cn,"abort",Gt,{once:!0}),jt.removeAbortListener=()=>cn.removeEventListener("abort",Gt)}return Je.target=null,Mn&&(Mn.taskData=null),qn&&(Je.options.once=!0),!Ee&&"boolean"==typeof jt.options||(jt.options=Yt),jt.target=Re,jt.capture=An,jt.eventName=Oe,qe&&(jt.originalDelegate=et),pe?Ht.unshift(jt):Ht.push(jt),U?Re:void 0}};return Ye[ee]=_(He,de,mt,tt,dt),ot&&(Ye[ye]=_(ot,Ve,function(o){return ot.call(Je.target,Je.eventName,o.invoke,Je.options)},tt,dt,!0)),Ye[be]=function(){const o=this||w;let c=arguments[0];Te&&Te.transferEventName&&(c=Te.transferEventName(c));const m=arguments[2],B=!!m&&("boolean"==typeof m||m.capture),U=arguments[1];if(!U)return je.apply(this,arguments);if(Le&&!Le(je,U,o,arguments))return;const pe=ut[c];let Re;pe&&(Re=pe[B?b:Y]);const Oe=Re&&o[Re];if(Oe)for(let et=0;et<Oe.length;et++){const qe=Oe[et];if(Vt(qe,U))return Oe.splice(et,1),qe.isRemoved=!0,0!==Oe.length||(qe.allRemoved=!0,o[Re]=null,B||"string"!=typeof c)||(o[re+"ON_PROPERTY"+c]=null),qe.zone.cancelTask(qe),dt?o:void 0}return je.apply(this,arguments)},Ye[Pe]=function(){const o=this||w;let c=arguments[0];Te&&Te.transferEventName&&(c=Te.transferEventName(c));const m=[],B=we(o,ct?ct(c):c);for(let U=0;U<B.length;U++){const pe=B[U];m.push(pe.originalDelegate?pe.originalDelegate:pe.callback)}return m},Ye[Se]=function(){const o=this||w;let c=arguments[0];if(c){Te&&Te.transferEventName&&(c=Te.transferEventName(c));const m=ut[c];if(m){const pe=o[m[Y]],Re=o[m[b]];if(pe){const Oe=pe.slice();for(let et=0;et<Oe.length;et++){const qe=Oe[et];this[be].call(this,c,qe.originalDelegate?qe.originalDelegate:qe.callback,qe.options)}}if(Re){const Oe=Re.slice();for(let et=0;et<Oe.length;et++){const qe=Oe[et];this[be].call(this,c,qe.originalDelegate?qe.originalDelegate:qe.callback,qe.options)}}}}else{const m=Object.keys(o);for(let B=0;B<m.length;B++){const pe=lt.exec(m[B]);let Re=pe&&pe[1];Re&&"removeListener"!==Re&&this[Se].call(this,Re)}this[Se].call(this,"removeListener")}if(dt)return this},R(Ye[ee],He),R(Ye[be],je),rt&&R(Ye[Se],rt),Xe&&R(Ye[Pe],Xe),!0}let gt=[];for(let Ce=0;Ce<te.length;Ce++)gt[Ce]=wt(te[Ce],P);return gt}function we(w,A){if(!A){const be=[];for(let Pe in w){const Se=lt.exec(Pe);let Ie=Se&&Se[1];if(Ie&&(!A||Ie===A)){const de=w[Pe];if(de)for(let ye=0;ye<de.length;ye++)be.push(de[ye])}}return be}let te=ut[A];te||(Pt(A),te=ut[A]);const P=w[te[Y]],ee=w[te[b]];return P?ee?P.concat(ee):P.slice():ee?ee.slice():[]}function Ut(w,A){const te=w.Event;te&&te.prototype&&A.patchMethod(te.prototype,"stopImmediatePropagation",P=>function(ee,be){ee[kt]=!0,P&&P.apply(ee,be)})}const Ot=se("zoneTask");function u(w,A,te,P){let ee=null,be=null;te+=P;const Pe={};function Se(de){const ye=de.data;ye.args[0]=function(){return de.invoke.apply(this,arguments)};const Ve=ee.apply(w,ye.args);return Qe(Ve)?ye.handleId=Ve:(ye.handle=Ve,ye.isRefreshable=$e(Ve.refresh)),de}function Ie(de){const{handle:ye,handleId:Ve}=de.data;return be.call(w,ye??Ve)}ee=ne(w,A+=P,de=>function(ye,Ve){if($e(Ve[0])){const Ke={isRefreshable:!1,isPeriodic:"Interval"===P,delay:"Timeout"===P||"Interval"===P?Ve[1]||0:void 0,args:Ve},st=Ve[0];Ve[0]=function(){try{return st.apply(this,arguments)}finally{const{handle:at,handleId:Le,isPeriodic:ht,isRefreshable:dt}=Ke;!ht&&!dt&&(Le?delete Pe[Le]:at&&(at[Ot]=null))}};const Ne=j(A,Ve[0],Ke,Se,Ie);if(!Ne)return Ne;const{handleId:ft,handle:wt,isRefreshable:gt,isPeriodic:Ce}=Ne.data;if(ft)Pe[ft]=Ne;else if(wt&&(wt[Ot]=Ne,gt&&!Ce)){const Te=wt.refresh;wt.refresh=function(){const{zone:at,state:Le}=Ne;return"notScheduled"===Le?(Ne._state="scheduled",at._updateTaskCount(Ne,1)):"running"===Le&&(Ne._state="scheduling"),Te.call(this)}}return wt??ft??Ne}return de.apply(w,Ve)}),be=ne(w,te,de=>function(ye,Ve){const Ke=Ve[0];let st;Qe(Ke)?(st=Pe[Ke],delete Pe[Ke]):(st=Ke?.[Ot],st?Ke[Ot]=null:st=Ke),st?.type?st.cancelFn&&st.zone.cancelTask(st):de.apply(w,Ve)})}function ue(w,A,te){if(!te||0===te.length)return A;const P=te.filter(be=>be.target===w);if(!P||0===P.length)return A;const ee=P[0].ignoreProperties;return A.filter(be=>-1===ee.indexOf(be))}function he(w,A,te,P){w&&v(w,ue(w,A,te),P)}function ve(w){return Object.getOwnPropertyNames(w).filter(A=>A.startsWith("on")&&A.length>2).map(A=>A.substring(2))}function ze(w,A,te,P,ee){const be=Zone.__symbol__(P);if(A[be])return;const Pe=A[be]=A[P];A[P]=function(Se,Ie,de){return Ie&&Ie.prototype&&ee.forEach(function(ye){const Ve=`${te}.${P}::`+ye,Ke=Ie.prototype;try{if(Ke.hasOwnProperty(ye)){const st=w.ObjectGetOwnPropertyDescriptor(Ke,ye);st&&st.value?(st.value=w.wrapWithCurrentZone(st.value,Ve),w._redefineProperty(Ie.prototype,ye,st)):Ke[ye]&&(Ke[ye]=w.wrapWithCurrentZone(Ke[ye],Ve))}else Ke[ye]&&(Ke[ye]=w.wrapWithCurrentZone(Ke[ye],Ve))}catch{}}),Pe.call(A,Se,Ie,de)},w.attachOriginToPatched(A[P],Pe)}const Mt=function t(){const w=globalThis,A=!0===w[L("forceDuplicateZoneCheck")];if(w.Zone&&(A||"function"!=typeof w.Zone.__symbol__))throw new Error("Zone already loaded.");return w.Zone??=function l(){const w=_e.performance;function A(Ge){w&&w.mark&&w.mark(Ge)}function te(Ge,xe){w&&w.measure&&w.measure(Ge,xe)}A("Zone");let P=(()=>{class Ge{static#e=this.__symbol__=L;static assertZonePatched(){if(_e.Promise!==Je.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 I=Ge.current;for(;I.parent;)I=I.parent;return I}static get current(){return je.zone}static get currentTask(){return Xe}static __load_patch(I,G,Fe=!1){if(Je.hasOwnProperty(I)){const Ue=!0===_e[L("forceDuplicateZoneCheck")];if(!Fe&&Ue)throw Error("Already loaded patch: "+I)}else if(!_e["__Zone_disable_"+I]){const Ue="Zone:"+I;A(Ue),Je[I]=G(_e,Ge,He),te(Ue,Ue)}}get parent(){return this._parent}get name(){return this._name}constructor(I,G){this._parent=I,this._name=G?G.name||"unnamed":"<root>",this._properties=G&&G.properties||{},this._zoneDelegate=new be(this,this._parent&&this._parent._zoneDelegate,G)}get(I){const G=this.getZoneWith(I);if(G)return G._properties[I]}getZoneWith(I){let G=this;for(;G;){if(G._properties.hasOwnProperty(I))return G;G=G._parent}return null}fork(I){if(!I)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,I)}wrap(I,G){if("function"!=typeof I)throw new Error("Expecting function got: "+I);const Fe=this._zoneDelegate.intercept(this,I,G),Ue=this;return function(){return Ue.runGuarded(Fe,this,arguments,G)}}run(I,G,Fe,Ue){je={parent:je,zone:this};try{return this._zoneDelegate.invoke(this,I,G,Fe,Ue)}finally{je=je.parent}}runGuarded(I,G=null,Fe,Ue){je={parent:je,zone:this};try{try{return this._zoneDelegate.invoke(this,I,G,Fe,Ue)}catch(mt){if(this._zoneDelegate.handleError(this,mt))throw mt}}finally{je=je.parent}}runTask(I,G,Fe){if(I.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(I.zone||wt).name+"; Execution: "+this.name+")");const Ue=I,{type:mt,data:{isPeriodic:tt=!1,isRefreshable:Ft=!1}={}}=I;if(I.state===gt&&(mt===ct||mt===Ye))return;const Vt=I.state!=at;Vt&&Ue._transitionTo(at,Te);const Ct=Xe;Xe=Ue,je={parent:je,zone:this};try{mt==Ye&&I.data&&!tt&&!Ft&&(I.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,Ue,G,Fe)}catch(Dt){if(this._zoneDelegate.handleError(this,Dt))throw Dt}}finally{const Dt=I.state;if(Dt!==gt&&Dt!==ht)if(mt==ct||tt||Ft&&Dt===Ce)Vt&&Ue._transitionTo(Te,at,Ce);else{const d=Ue._zoneDelegates;this._updateTaskCount(Ue,-1),Vt&&Ue._transitionTo(gt,at,gt),Ft&&(Ue._zoneDelegates=d)}je=je.parent,Xe=Ct}}scheduleTask(I){if(I.zone&&I.zone!==this){let Fe=this;for(;Fe;){if(Fe===I.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${I.zone.name}`);Fe=Fe.parent}}I._transitionTo(Ce,gt);const G=[];I._zoneDelegates=G,I._zone=this;try{I=this._zoneDelegate.scheduleTask(this,I)}catch(Fe){throw I._transitionTo(ht,Ce,gt),this._zoneDelegate.handleError(this,Fe),Fe}return I._zoneDelegates===G&&this._updateTaskCount(I,1),I.state==Ce&&I._transitionTo(Te,Ce),I}scheduleMicroTask(I,G,Fe,Ue){return this.scheduleTask(new Pe(dt,I,G,Fe,Ue,void 0))}scheduleMacroTask(I,G,Fe,Ue,mt){return this.scheduleTask(new Pe(Ye,I,G,Fe,Ue,mt))}scheduleEventTask(I,G,Fe,Ue,mt){return this.scheduleTask(new Pe(ct,I,G,Fe,Ue,mt))}cancelTask(I){if(I.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(I.zone||wt).name+"; Execution: "+this.name+")");if(I.state===Te||I.state===at){I._transitionTo(Le,Te,at);try{this._zoneDelegate.cancelTask(this,I)}catch(G){throw I._transitionTo(ht,Le),this._zoneDelegate.handleError(this,G),G}return this._updateTaskCount(I,-1),I._transitionTo(gt,Le),I.runCount=-1,I}}_updateTaskCount(I,G){const Fe=I._zoneDelegates;-1==G&&(I._zoneDelegates=null);for(let Ue=0;Ue<Fe.length;Ue++)Fe[Ue]._updateTaskCount(I.type,G)}}return Ge})();const ee={name:"",onHasTask:(Ge,xe,I,G)=>Ge.hasTask(I,G),onScheduleTask:(Ge,xe,I,G)=>Ge.scheduleTask(I,G),onInvokeTask:(Ge,xe,I,G,Fe,Ue)=>Ge.invokeTask(I,G,Fe,Ue),onCancelTask:(Ge,xe,I,G)=>Ge.cancelTask(I,G)};class be{get zone(){return this._zone}constructor(xe,I,G){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=xe,this._parentDelegate=I,this._forkZS=G&&(G&&G.onFork?G:I._forkZS),this._forkDlgt=G&&(G.onFork?I:I._forkDlgt),this._forkCurrZone=G&&(G.onFork?this._zone:I._forkCurrZone),this._interceptZS=G&&(G.onIntercept?G:I._interceptZS),this._interceptDlgt=G&&(G.onIntercept?I:I._interceptDlgt),this._interceptCurrZone=G&&(G.onIntercept?this._zone:I._interceptCurrZone),this._invokeZS=G&&(G.onInvoke?G:I._invokeZS),this._invokeDlgt=G&&(G.onInvoke?I:I._invokeDlgt),this._invokeCurrZone=G&&(G.onInvoke?this._zone:I._invokeCurrZone),this._handleErrorZS=G&&(G.onHandleError?G:I._handleErrorZS),this._handleErrorDlgt=G&&(G.onHandleError?I:I._handleErrorDlgt),this._handleErrorCurrZone=G&&(G.onHandleError?this._zone:I._handleErrorCurrZone),this._scheduleTaskZS=G&&(G.onScheduleTask?G:I._scheduleTaskZS),this._scheduleTaskDlgt=G&&(G.onScheduleTask?I:I._scheduleTaskDlgt),this._scheduleTaskCurrZone=G&&(G.onScheduleTask?this._zone:I._scheduleTaskCurrZone),this._invokeTaskZS=G&&(G.onInvokeTask?G:I._invokeTaskZS),this._invokeTaskDlgt=G&&(G.onInvokeTask?I:I._invokeTaskDlgt),this._invokeTaskCurrZone=G&&(G.onInvokeTask?this._zone:I._invokeTaskCurrZone),this._cancelTaskZS=G&&(G.onCancelTask?G:I._cancelTaskZS),this._cancelTaskDlgt=G&&(G.onCancelTask?I:I._cancelTaskDlgt),this._cancelTaskCurrZone=G&&(G.onCancelTask?this._zone:I._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const Fe=G&&G.onHasTask;(Fe||I&&I._hasTaskZS)&&(this._hasTaskZS=Fe?G:ee,this._hasTaskDlgt=I,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,G.onScheduleTask||(this._scheduleTaskZS=ee,this._scheduleTaskDlgt=I,this._scheduleTaskCurrZone=this._zone),G.onInvokeTask||(this._invokeTaskZS=ee,this._invokeTaskDlgt=I,this._invokeTaskCurrZone=this._zone),G.onCancelTask||(this._cancelTaskZS=ee,this._cancelTaskDlgt=I,this._cancelTaskCurrZone=this._zone))}fork(xe,I){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,xe,I):new P(xe,I)}intercept(xe,I,G){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,xe,I,G):I}invoke(xe,I,G,Fe,Ue){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,xe,I,G,Fe,Ue):I.apply(G,Fe)}handleError(xe,I){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,xe,I)}scheduleTask(xe,I){let G=I;if(this._scheduleTaskZS)this._hasTaskZS&&G._zoneDelegates.push(this._hasTaskDlgtOwner),G=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,xe,I),G||(G=I);else if(I.scheduleFn)I.scheduleFn(I);else{if(I.type!=dt)throw new Error("Task is missing scheduleFn.");Ne(I)}return G}invokeTask(xe,I,G,Fe){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,xe,I,G,Fe):I.callback.apply(G,Fe)}cancelTask(xe,I){let G;if(this._cancelTaskZS)G=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,xe,I);else{if(!I.cancelFn)throw Error("Task is not cancelable");G=I.cancelFn(I)}return G}hasTask(xe,I){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,xe,I)}catch(G){this.handleError(xe,G)}}_updateTaskCount(xe,I){const G=this._taskCounts,Fe=G[xe],Ue=G[xe]=Fe+I;if(Ue<0)throw new Error("More tasks executed then were scheduled.");0!=Fe&&0!=Ue||this.hasTask(this._zone,{microTask:G.microTask>0,macroTask:G.macroTask>0,eventTask:G.eventTask>0,change:xe})}}class Pe{constructor(xe,I,G,Fe,Ue,mt){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=xe,this.source=I,this.data=Fe,this.scheduleFn=Ue,this.cancelFn=mt,!G)throw new Error("callback is not defined");this.callback=G;const tt=this;this.invoke=xe===ct&&Fe&&Fe.useG?Pe.invokeTask:function(){return Pe.invokeTask.call(_e,tt,this,arguments)}}static invokeTask(xe,I,G){xe||(xe=this),rt++;try{return xe.runCount++,xe.zone.runTask(xe,I,G)}finally{1==rt&&ft(),rt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(gt,Ce)}_transitionTo(xe,I,G){if(this._state!==I&&this._state!==G)throw new Error(`${this.type} '${this.source}': can not transition to '${xe}', expecting state '${I}'${G?" or '"+G+"'":""}, was '${this._state}'.`);this._state=xe,xe==gt&&(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 Se=L("setTimeout"),Ie=L("Promise"),de=L("then");let Ke,ye=[],Ve=!1;function st(Ge){if(Ke||_e[Ie]&&(Ke=_e[Ie].resolve(0)),Ke){let xe=Ke[de];xe||(xe=Ke.then),xe.call(Ke,Ge)}else _e[Se](Ge,0)}function Ne(Ge){0===rt&&0===ye.length&&st(ft),Ge&&ye.push(Ge)}function ft(){if(!Ve){for(Ve=!0;ye.length;){const Ge=ye;ye=[];for(let xe=0;xe<Ge.length;xe++){const I=Ge[xe];try{I.zone.runTask(I,null,null)}catch(G){He.onUnhandledError(G)}}}He.microtaskDrainDone(),Ve=!1}}const wt={name:"NO ZONE"},gt="notScheduled",Ce="scheduling",Te="scheduled",at="running",Le="canceling",ht="unknown",dt="microTask",Ye="macroTask",ct="eventTask",Je={},He={symbol:L,currentZoneFrame:()=>je,onUnhandledError:ot,microtaskDrainDone:ot,scheduleMicroTask:Ne,showUncaughtError:()=>!P[L("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ot,patchMethod:()=>ot,bindArguments:()=>[],patchThen:()=>ot,patchMacroTask:()=>ot,patchEventPrototype:()=>ot,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ot,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ot,wrapWithCurrentZone:()=>ot,filterProperties:()=>[],attachOriginToPatched:()=>ot,_redefineProperty:()=>ot,patchCallbacks:()=>ot,nativeScheduleMicroTask:st};let je={parent:null,zone:new P(null,null)},Xe=null,rt=0;function ot(){}return te("Zone","Zone"),P}(),w.Zone}();(function pt(w){(function Be(w){w.__load_patch("ZoneAwarePromise",(A,te,P)=>{const ee=Object.getOwnPropertyDescriptor,be=Object.defineProperty,Se=P.symbol,Ie=[],de=!1!==A[Se("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],ye=Se("Promise"),Ve=Se("then"),Ke="__creationTrace__";P.onUnhandledError=d=>{if(P.showUncaughtError()){const _=d&&d.rejection;_?console.error("Unhandled Promise rejection:",_ instanceof Error?_.message:_,"; Zone:",d.zone.name,"; Task:",d.task&&d.task.source,"; Value:",_,_ instanceof Error?_.stack:void 0):console.error(d)}},P.microtaskDrainDone=()=>{for(;Ie.length;){const d=Ie.shift();try{d.zone.runGuarded(()=>{throw d.throwOriginal?d.rejection:d})}catch(_){Ne(_)}}};const st=Se("unhandledPromiseRejectionHandler");function Ne(d){P.onUnhandledError(d);try{const _=te[st];"function"==typeof _&&_.call(this,d)}catch{}}function ft(d){return d&&d.then}function wt(d){return d}function gt(d){return tt.reject(d)}const Ce=Se("state"),Te=Se("value"),at=Se("finally"),Le=Se("parentPromiseValue"),ht=Se("parentPromiseState"),dt="Promise.then",Ye=null,ct=!0,Je=!1,He=0;function je(d,_){return o=>{try{Ge(d,_,o)}catch(c){Ge(d,!1,c)}}}const Xe=function(){let d=!1;return function(o){return function(){d||(d=!0,o.apply(null,arguments))}}},rt="Promise resolved with itself",ot=Se("currentTaskTrace");function Ge(d,_,o){const c=Xe();if(d===o)throw new TypeError(rt);if(d[Ce]===Ye){let m=null;try{("object"==typeof o||"function"==typeof o)&&(m=o&&o.then)}catch(B){return c(()=>{Ge(d,!1,B)})(),d}if(_!==Je&&o instanceof tt&&o.hasOwnProperty(Ce)&&o.hasOwnProperty(Te)&&o[Ce]!==Ye)I(o),Ge(d,o[Ce],o[Te]);else if(_!==Je&&"function"==typeof m)try{m.call(o,c(je(d,_)),c(je(d,!1)))}catch(B){c(()=>{Ge(d,!1,B)})()}else{d[Ce]=_;const B=d[Te];if(d[Te]=o,d[at]===at&&_===ct&&(d[Ce]=d[ht],d[Te]=d[Le]),_===Je&&o instanceof Error){const U=te.currentTask&&te.currentTask.data&&te.currentTask.data[Ke];U&&be(o,ot,{configurable:!0,enumerable:!1,writable:!0,value:U})}for(let U=0;U<B.length;)G(d,B[U++],B[U++],B[U++],B[U++]);if(0==B.length&&_==Je){d[Ce]=He;let U=o;try{throw new Error("Uncaught (in promise): "+function Pe(d){return d&&d.toString===Object.prototype.toString?(d.constructor&&d.constructor.name||"")+": "+JSON.stringify(d):d?d.toString():Object.prototype.toString.call(d)}(o)+(o&&o.stack?"\n"+o.stack:""))}catch(pe){U=pe}de&&(U.throwOriginal=!0),U.rejection=o,U.promise=d,U.zone=te.current,U.task=te.currentTask,Ie.push(U),P.scheduleMicroTask()}}}return d}const xe=Se("rejectionHandledHandler");function I(d){if(d[Ce]===He){try{const _=te[xe];_&&"function"==typeof _&&_.call(this,{rejection:d[Te],promise:d})}catch{}d[Ce]=Je;for(let _=0;_<Ie.length;_++)d===Ie[_].promise&&Ie.splice(_,1)}}function G(d,_,o,c,m){I(d);const B=d[Ce],U=B?"function"==typeof c?c:wt:"function"==typeof m?m:gt;_.scheduleMicroTask(dt,()=>{try{const pe=d[Te],Re=!!o&&at===o[at];Re&&(o[Le]=pe,o[ht]=B);const Oe=_.run(U,void 0,Re&&U!==gt&&U!==wt?[]:[pe]);Ge(o,!0,Oe)}catch(pe){Ge(o,!1,pe)}},o)}const Ue=function(){},mt=A.AggregateError;class tt{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(_){return _ instanceof tt?_:Ge(new this(null),ct,_)}static reject(_){return Ge(new this(null),Je,_)}static withResolvers(){const _={};return _.promise=new tt((o,c)=>{_.resolve=o,_.reject=c}),_}static any(_){if(!_||"function"!=typeof _[Symbol.iterator])return Promise.reject(new mt([],"All promises were rejected"));const o=[];let c=0;try{for(let U of _)c++,o.push(tt.resolve(U))}catch{return Promise.reject(new mt([],"All promises were rejected"))}if(0===c)return Promise.reject(new mt([],"All promises were rejected"));let m=!1;const B=[];return new tt((U,pe)=>{for(let Re=0;Re<o.length;Re++)o[Re].then(Oe=>{m||(m=!0,U(Oe))},Oe=>{B.push(Oe),c--,0===c&&(m=!0,pe(new mt(B,"All promises were rejected")))})})}static race(_){let o,c,m=new this((pe,Re)=>{o=pe,c=Re});function B(pe){o(pe)}function U(pe){c(pe)}for(let pe of _)ft(pe)||(pe=this.resolve(pe)),pe.then(B,U);return m}static all(_){return tt.allWithCallback(_)}static allSettled(_){return(this&&this.prototype instanceof tt?this:tt).allWithCallback(_,{thenCallback:c=>({status:"fulfilled",value:c}),errorCallback:c=>({status:"rejected",reason:c})})}static allWithCallback(_,o){let c,m,B=new this((Oe,et)=>{c=Oe,m=et}),U=2,pe=0;const Re=[];for(let Oe of _){ft(Oe)||(Oe=this.resolve(Oe));const et=pe;try{Oe.then(qe=>{Re[et]=o?o.thenCallback(qe):qe,U--,0===U&&c(Re)},qe=>{o?(Re[et]=o.errorCallback(qe),U--,0===U&&c(Re)):m(qe)})}catch(qe){m(qe)}U++,pe++}return U-=2,0===U&&c(Re),B}constructor(_){const o=this;if(!(o instanceof tt))throw new Error("Must be an instanceof Promise.");o[Ce]=Ye,o[Te]=[];try{const c=Xe();_&&_(c(je(o,ct)),c(je(o,Je)))}catch(c){Ge(o,!1,c)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return tt}then(_,o){let c=this.constructor?.[Symbol.species];(!c||"function"!=typeof c)&&(c=this.constructor||tt);const m=new c(Ue),B=te.current;return this[Ce]==Ye?this[Te].push(B,m,_,o):G(this,B,m,_,o),m}catch(_){return this.then(null,_)}finally(_){let o=this.constructor?.[Symbol.species];(!o||"function"!=typeof o)&&(o=tt);const c=new o(Ue);c[at]=at;const m=te.current;return this[Ce]==Ye?this[Te].push(m,c,_,_):G(this,m,c,_,_),c}}tt.resolve=tt.resolve,tt.reject=tt.reject,tt.race=tt.race,tt.all=tt.all;const Ft=A[ye]=A.Promise;A.Promise=tt;const Vt=Se("thenPatched");function Ct(d){const _=d.prototype,o=ee(_,"then");if(o&&(!1===o.writable||!o.configurable))return;const c=_.then;_[Ve]=c,d.prototype.then=function(m,B){return new tt((pe,Re)=>{c.call(this,pe,Re)}).then(m,B)},d[Vt]=!0}return P.patchThen=Ct,Ft&&(Ct(Ft),ne(A,"fetch",d=>function Dt(d){return function(_,o){let c=d.apply(_,o);if(c instanceof tt)return c;let m=c.constructor;return m[Vt]||Ct(m),c}}(d))),Promise[te.__symbol__("uncaughtPromiseErrors")]=Ie,tt})})(w),function nt(w){w.__load_patch("toString",A=>{const te=Function.prototype.toString,P=se("OriginalDelegate"),ee=se("Promise"),be=se("Error"),Pe=function(){if("function"==typeof this){const ye=this[P];if(ye)return"function"==typeof ye?te.call(ye):Object.prototype.toString.call(ye);if(this===Promise){const Ve=A[ee];if(Ve)return te.call(Ve)}if(this===Error){const Ve=A[be];if(Ve)return te.call(Ve)}}return te.call(this)};Pe[P]=te,Function.prototype.toString=Pe;const Se=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":Se.call(this)}})}(w),function It(w){w.__load_patch("util",(A,te,P)=>{const ee=ve(A);P.patchOnProperties=v,P.patchMethod=ne,P.bindArguments=V,P.patchMacroTask=J;const be=te.__symbol__("BLACK_LISTED_EVENTS"),Pe=te.__symbol__("UNPATCHED_EVENTS");A[Pe]&&(A[be]=A[Pe]),A[be]&&(te[be]=te[Pe]=A[be]),P.patchEventPrototype=Ut,P.patchEventTarget=Ze,P.isIEOrEdge=We,P.ObjectDefineProperty=M,P.ObjectGetOwnPropertyDescriptor=f,P.ObjectCreate=D,P.ArraySlice=E,P.patchClass=ce,P.wrapWithCurrentZone=z,P.filterProperties=ue,P.attachOriginToPatched=R,P._redefineProperty=Object.defineProperty,P.patchCallbacks=ze,P.getGlobalObjects=()=>({globalSources:_t,zoneSymbolEventNames:ut,eventNames:ee,isBrowser:y,isMix:ie,isNode:fe,TRUE_STR:b,FALSE_STR:Y,ZONE_SYMBOL_PREFIX:re,ADD_EVENT_LISTENER_STR:O,REMOVE_EVENT_LISTENER_STR:C})})}(w)})(Mt),function Ae(w){w.__load_patch("legacy",A=>{const te=A[w.__symbol__("legacyPatch")];te&&te()}),w.__load_patch("timers",A=>{const P="clear";u(A,"set",P,"Timeout"),u(A,"set",P,"Interval"),u(A,"set",P,"Immediate")}),w.__load_patch("requestAnimationFrame",A=>{u(A,"request","cancel","AnimationFrame"),u(A,"mozRequest","mozCancel","AnimationFrame"),u(A,"webkitRequest","webkitCancel","AnimationFrame")}),w.__load_patch("blocking",(A,te)=>{const P=["alert","prompt","confirm"];for(let ee=0;ee<P.length;ee++)ne(A,P[ee],(Pe,Se,Ie)=>function(de,ye){return te.current.run(Pe,A,ye,Ie)})}),w.__load_patch("EventTarget",(A,te,P)=>{(function q(w,A){A.patchEventPrototype(w,A)})(A,P),function Q(w,A){if(Zone[A.symbol("patchEventTarget")])return;const{eventNames:te,zoneSymbolEventNames:P,TRUE_STR:ee,FALSE_STR:be,ZONE_SYMBOL_PREFIX:Pe}=A.getGlobalObjects();for(let Ie=0;Ie<te.length;Ie++){const de=te[Ie],Ke=Pe+(de+be),st=Pe+(de+ee);P[de]={},P[de][be]=Ke,P[de][ee]=st}const Se=w.EventTarget;Se&&Se.prototype&&A.patchEventTarget(w,A,[Se&&Se.prototype])}(A,P);const ee=A.XMLHttpRequestEventTarget;ee&&ee.prototype&&P.patchEventTarget(A,P,[ee.prototype])}),w.__load_patch("MutationObserver",(A,te,P)=>{ce("MutationObserver"),ce("WebKitMutationObserver")}),w.__load_patch("IntersectionObserver",(A,te,P)=>{ce("IntersectionObserver")}),w.__load_patch("FileReader",(A,te,P)=>{ce("FileReader")}),w.__load_patch("on_property",(A,te,P)=>{!function De(w,A){if(fe&&!ie||Zone[w.symbol("patchEvents")])return;const te=A.__Zone_ignore_on_properties;let P=[];if(y){const ee=window;P=P.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const be=function Me(){try{const w=K.navigator.userAgent;if(-1!==w.indexOf("MSIE ")||-1!==w.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:ee,ignoreProperties:["error"]}]:[];he(ee,ve(ee),te&&te.concat(be),T(ee))}P=P.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let ee=0;ee<P.length;ee++){const be=A[P[ee]];be&&be.prototype&&he(be.prototype,ve(be.prototype),te)}}(P,A)}),w.__load_patch("customElements",(A,te,P)=>{!function Z(w,A){const{isBrowser:te,isMix:P}=A.getGlobalObjects();(te||P)&&w.customElements&&"customElements"in w&&A.patchCallbacks(A,w.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(A,P)}),w.__load_patch("XHR",(A,te)=>{!function de(ye){const Ve=ye.XMLHttpRequest;if(!Ve)return;const Ke=Ve.prototype;let Ne=Ke[g],ft=Ke[p];if(!Ne){const He=ye.XMLHttpRequestEventTarget;if(He){const je=He.prototype;Ne=je[g],ft=je[p]}}const wt="readystatechange",gt="scheduled";function Ce(He){const je=He.data,Xe=je.target;Xe[Pe]=!1,Xe[Ie]=!1;const rt=Xe[be];Ne||(Ne=Xe[g],ft=Xe[p]),rt&&ft.call(Xe,wt,rt);const ot=Xe[be]=()=>{if(Xe.readyState===Xe.DONE)if(!je.aborted&&Xe[Pe]&&He.state===gt){const xe=Xe[te.__symbol__("loadfalse")];if(0!==Xe.status&&xe&&xe.length>0){const I=He.invoke;He.invoke=function(){const G=Xe[te.__symbol__("loadfalse")];for(let Fe=0;Fe<G.length;Fe++)G[Fe]===He&&G.splice(Fe,1);!je.aborted&&He.state===gt&&I.call(He)},xe.push(He)}else He.invoke()}else!je.aborted&&!1===Xe[Pe]&&(Xe[Ie]=!0)};return Ne.call(Xe,wt,ot),Xe[P]||(Xe[P]=He),ct.apply(Xe,je.args),Xe[Pe]=!0,He}function Te(){}function at(He){const je=He.data;return je.aborted=!0,Je.apply(je.target,je.args)}const Le=ne(Ke,"open",()=>function(He,je){return He[ee]=0==je[2],He[Se]=je[1],Le.apply(He,je)}),dt=se("fetchTaskAborting"),Ye=se("fetchTaskScheduling"),ct=ne(Ke,"send",()=>function(He,je){if(!0===te.current[Ye]||He[ee])return ct.apply(He,je);{const Xe={target:He,url:He[Se],isPeriodic:!1,args:je,aborted:!1},rt=j("XMLHttpRequest.send",Te,Xe,Ce,at);He&&!0===He[Ie]&&!Xe.aborted&&rt.state===gt&&rt.invoke()}}),Je=ne(Ke,"abort",()=>function(He,je){const Xe=function st(He){return He[P]}(He);if(Xe&&"string"==typeof Xe.type){if(null==Xe.cancelFn||Xe.data&&Xe.data.aborted)return;Xe.zone.cancelTask(Xe)}else if(!0===te.current[dt])return Je.apply(He,je)})}(A);const P=se("xhrTask"),ee=se("xhrSync"),be=se("xhrListener"),Pe=se("xhrScheduled"),Se=se("xhrURL"),Ie=se("xhrErrorBeforeScheduled")}),w.__load_patch("geolocation",A=>{A.navigator&&A.navigator.geolocation&&function x(w,A){const te=w.constructor.name;for(let P=0;P<A.length;P++){const ee=A[P],be=w[ee];if(be){if(!le(f(w,ee)))continue;w[ee]=(Se=>{const Ie=function(){return Se.apply(this,V(arguments,te+"."+ee))};return R(Ie,Se),Ie})(be)}}}(A.navigator.geolocation,["getCurrentPosition","watchPosition"])}),w.__load_patch("PromiseRejectionEvent",(A,te)=>{function P(ee){return function(be){we(A,ee).forEach(Se=>{const Ie=A.PromiseRejectionEvent;if(Ie){const de=new Ie(ee,{promise:be.promise,reason:be.rejection});Se.invoke(de)}})}}A.PromiseRejectionEvent&&(te[se("unhandledPromiseRejectionHandler")]=P("unhandledrejection"),te[se("rejectionHandledHandler")]=P("rejectionhandled"))}),w.__load_patch("queueMicrotask",(A,te,P)=>{!function en(w,A){A.patchMethod(w,"queueMicrotask",te=>function(P,ee){Zone.current.scheduleMicroTask("queueMicrotask",ee[0])})}(A,P)})}(Mt)},1763:()=>{},5215:(_e,L,l)=>{function D(k,F,X,H){var ce,v=arguments.length,N=v<3?F:null===H?H=Object.getOwnPropertyDescriptor(F,X):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(k,F,X,H);else for(var ne=k.length-1;ne>=0;ne--)(ce=k[ne])&&(N=(v<3?ce(N):v>3?ce(F,X,N):ce(F,X))||N);return v>3&&N&&Object.defineProperty(F,X,N),N}function O(k,F){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,F)}function C(k,F,X,H){return new(X||(X=Promise))(function(N,ce){function ne(oe){try{R(H.next(oe))}catch(ae){ce(ae)}}function J(oe){try{R(H.throw(oe))}catch(ae){ce(ae)}}function R(oe){oe.done?N(oe.value):function v(N){return N instanceof X?N:new X(function(ce){ce(N)})}(oe.value).then(ne,J)}R((H=H.apply(k,F||[])).next())})}function ge(k){return this instanceof ge?(this.v=k,this):new ge(k)}function K(k,F,X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,H=X.apply(k,F||[]),N=[];return v={},ce("next"),ce("throw"),ce("return"),v[Symbol.asyncIterator]=function(){return this},v;function ce(Me){H[Me]&&(v[Me]=function(We){return new Promise(function($e,Qe){N.push([Me,We,$e,Qe])>1||ne(Me,We)})})}function ne(Me,We){try{!function J(Me){Me.value instanceof ge?Promise.resolve(Me.value.v).then(R,oe):ae(N[0][2],Me)}(H[Me](We))}catch($e){ae(N[0][3],$e)}}function R(Me){ne("next",Me)}function oe(Me){ne("throw",Me)}function ae(Me,We){Me(We),N.shift(),N.length&&ne(N[0][0],N[0][1])}}function S(k){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,F=k[Symbol.asyncIterator];return F?F.call(k):(k=function Y(k){var F="function"==typeof Symbol&&Symbol.iterator,X=F&&k[F],H=0;if(X)return X.call(k);if(k&&"number"==typeof k.length)return{next:function(){return k&&H>=k.length&&(k=void 0),{value:k&&k[H++],done:!k}}};throw new TypeError(F?"Object is not iterable.":"Symbol.iterator is not defined.")}(k),X={},H("next"),H("throw"),H("return"),X[Symbol.asyncIterator]=function(){return this},X);function H(N){X[N]=k[N]&&function(ce){return new Promise(function(ne,J){!function v(N,ce,ne,J){Promise.resolve(J).then(function(R){N({value:R,done:ne})},ce)}(ne,J,(ce=k[N](ce)).done,ce.value)})}}}l.d(L,{AQ:()=>K,Cg:()=>D,N3:()=>ge,Sn:()=>O,sH:()=>C,xN:()=>S})},7013:(_e,L,l)=>{l.d(L,{Uq:()=>ft,vr:()=>Ct,MQ:()=>Dt});var t=l(3953),f=l(9417),M=l(6977),T=l(3236),D=l(9974),E=l(8750),O=l(4360),g=l(1584);var b=l(9172),Y=l(8141),re=l(152),z=l(5964),j=l(6354),se=l(536),ge=l(6780);let ke,K=1;const S={};function V(d){return d in S&&(delete S[d],!0)}const x={setImmediate(d){const _=K++;return S[_]=!0,ke||(ke=Promise.resolve()),ke.then(()=>V(_)&&d()),_},clearImmediate(d){V(d)}},{setImmediate:$,clearImmediate:fe}=x,y={setImmediate(...d){const{delegate:_}=y;return(_?.setImmediate||$)(...d)},clearImmediate(d){const{delegate:_}=y;return(_?.clearImmediate||fe)(d)},delegate:void 0};var k=l(3604);const X=new class F extends k.q{flush(_){this._active=!0;const o=this._scheduled;this._scheduled=void 0;const{actions:c}=this;let m;_=_||c.shift();do{if(m=_.execute(_.state,_.delay))break}while((_=c[0])&&_.id===o&&c.shift());if(this._active=!1,m){for(;(_=c[0])&&_.id===o&&c.shift();)_.unsubscribe();throw m}}}(class ie extends ge.R{constructor(_,o){super(_,o),this.scheduler=_,this.work=o}requestAsyncId(_,o,c=0){return null!==c&&c>0?super.requestAsyncId(_,o,c):(_.actions.push(this),_._scheduled||(_._scheduled=y.setImmediate(_.flush.bind(_,void 0))))}recycleAsyncId(_,o,c=0){var m;if(null!=c?c>0:this.delay>0)return super.recycleAsyncId(_,o,c);const{actions:B}=_;null!=o&&(null===(m=B[B.length-1])||void 0===m?void 0:m.id)!==o&&(y.clearImmediate(o),_._scheduled=void 0)}});var v=l(1413),N=l(3726),ce=l(7786),ne=l(177);const J=["content"],R=["scroll"],oe=["padding"],ae=["*"],Me=d=>({searchTerm:d});function We(d,_){if(1&d&&(t.j41(0,"div",3),t.eu8(1,6),t.k0s()),2&d){const o=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",o.headerTemplate)("ngTemplateOutletContext",t.eq3(2,Me,o.filterValue))}}function $e(d,_){if(1&d&&(t.j41(0,"div",5),t.eu8(1,6),t.k0s()),2&d){const o=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",o.footerTemplate)("ngTemplateOutletContext",t.eq3(2,Me,o.filterValue))}}const Qe=["searchInput"],Ee=["clearButton"],vt=(d,_,o)=>({item:d,clear:_,label:o}),ut=(d,_)=>({items:d,clear:_}),_t=(d,_,o,c)=>({item:d,item$:_,index:o,searchTerm:c});function lt(d,_){if(1&d&&(t.j41(0,"div",20),t.EFF(1),t.k0s()),2&d){const o=t.XpG(2);t.R7$(),t.JRh(o.placeholder)}}function kt(d,_){}function Pt(d,_){if(1&d&&t.DNE(0,lt,2,1,"ng-template",null,1,t.C5r)(2,kt,0,0,"ng-template",19),2&d){const o=t.sdS(1),c=t.XpG();t.R7$(2),t.Y8G("ngTemplateOutlet",c.placeholderTemplate||o)}}function Ze(d,_){if(1&d){const o=t.RV6();t.j41(0,"span",23),t.bIt("click",function(){t.eBV(o);const m=t.XpG().$implicit,B=t.XpG(2);return t.Njj(B.unselect(m))}),t.EFF(1,"\xd7"),t.k0s(),t.nrm(2,"span",24)}if(2&d){const o=t.XpG().$implicit,c=t.XpG(2);t.R7$(2),t.Y8G("ngItemLabel",o.label)("escape",c.escapeHTML)}}function we(d,_){}function Ut(d,_){if(1&d&&(t.j41(0,"div",22),t.DNE(1,Ze,3,2,"ng-template",null,2,t.C5r)(3,we,0,0,"ng-template",12),t.k0s()),2&d){const o=_.$implicit,c=t.sdS(2),m=t.XpG(2);t.AVh("ng-value-disabled",o.disabled),t.R7$(3),t.Y8G("ngTemplateOutlet",m.labelTemplate||c)("ngTemplateOutletContext",t.sMw(4,vt,o.value,m.clearItem,o.label))}}function en(d,_){if(1&d&&t.Z7z(0,Ut,4,8,"div",21,t.BUC().trackByOption,!0),2&d){const o=t.XpG();t.Dyx(o.selectedItems)}}function Ot(d,_){}function u(d,_){if(1&d&&t.DNE(0,Ot,0,0,"ng-template",12),2&d){const o=t.XpG();t.Y8G("ngTemplateOutlet",o.multiLabelTemplate)("ngTemplateOutletContext",t.l_i(2,ut,o.selectedValues,o.clearItem))}}function Z(d,_){1&d&&t.nrm(0,"div",25)}function Q(d,_){}function q(d,_){if(1&d&&t.DNE(0,Z,1,0,"ng-template",null,3,t.C5r)(2,Q,0,0,"ng-template",19),2&d){const o=t.sdS(1),c=t.XpG();t.R7$(2),t.Y8G("ngTemplateOutlet",c.loadingSpinnerTemplate||o)}}function ue(d,_){if(1&d&&(t.j41(0,"span",15,4)(2,"span",26),t.EFF(3,"\xd7"),t.k0s()()),2&d){const o=t.XpG();t.FS9("title",o.clearAllText)}}function he(d,_){if(1&d&&t.nrm(0,"span",31),2&d){const o=t.XpG().$implicit,c=t.XpG(2);t.Y8G("ngItemLabel",o.label)("escape",c.escapeHTML)}}function ve(d,_){}function De(d,_){if(1&d){const o=t.RV6();t.j41(0,"div",30),t.bIt("click",function(){const m=t.eBV(o).$implicit,B=t.XpG(2);return t.Njj(B.toggleItem(m))})("mouseover",function(){const m=t.eBV(o).$implicit,B=t.XpG(2);return t.Njj(B.onItemHover(m))}),t.DNE(1,he,1,2,"ng-template",null,5,t.C5r)(3,ve,0,0,"ng-template",12),t.k0s()}if(2&d){const o=_.$implicit,c=t.sdS(2),m=t.XpG(2);t.AVh("ng-option-disabled",o.disabled)("ng-option-selected",o.selected)("ng-optgroup",o.children)("ng-option",!o.children)("ng-option-child",!!o.parent)("ng-option-marked",o===m.itemsList.markedItem),t.BMQ("role",o.children?"group":"option")("aria-selected",o.selected)("id",null==o?null:o.htmlId),t.R7$(3),t.Y8G("ngTemplateOutlet",o.children?m.optgroupTemplate||c:m.optionTemplate||c)("ngTemplateOutletContext",t.ziG(17,_t,o.value,o,o.index,m.searchTerm))}}function Ae(d,_){if(1&d&&(t.j41(0,"span")(1,"span",33),t.EFF(2),t.k0s(),t.EFF(3),t.k0s()),2&d){const o=t.XpG(3);t.R7$(2),t.JRh(o.addTagText),t.R7$(),t.SpI('"',o.searchTerm,'"')}}function Be(d,_){}function nt(d,_){if(1&d){const o=t.RV6();t.j41(0,"div",32),t.bIt("mouseover",function(){t.eBV(o);const m=t.XpG(2);return t.Njj(m.itemsList.unmarkItem())})("click",function(){t.eBV(o);const m=t.XpG(2);return t.Njj(m.selectTag())}),t.DNE(1,Ae,4,2,"ng-template",null,6,t.C5r)(3,Be,0,0,"ng-template",12),t.k0s()}if(2&d){const o=t.sdS(2),c=t.XpG(2);t.AVh("ng-option-marked",!c.itemsList.markedItem),t.R7$(3),t.Y8G("ngTemplateOutlet",c.tagTemplate||o)("ngTemplateOutletContext",t.eq3(4,Me,c.searchTerm))}}function ze(d,_){if(1&d&&(t.j41(0,"div",34),t.EFF(1),t.k0s()),2&d){const o=t.XpG(3);t.R7$(),t.JRh(o.notFoundText)}}function It(d,_){}function pt(d,_){if(1&d&&t.DNE(0,ze,2,1,"ng-template",null,7,t.C5r)(2,It,0,0,"ng-template",12),2&d){const o=t.sdS(1),c=t.XpG(2);t.R7$(2),t.Y8G("ngTemplateOutlet",c.notFoundTemplate||o)("ngTemplateOutletContext",t.eq3(2,Me,c.searchTerm))}}function Mt(d,_){if(1&d&&(t.j41(0,"div",34),t.EFF(1),t.k0s()),2&d){const o=t.XpG(3);t.R7$(),t.JRh(o.typeToSearchText)}}function w(d,_){}function A(d,_){if(1&d&&t.DNE(0,Mt,2,1,"ng-template",null,8,t.C5r)(2,w,0,0,"ng-template",19),2&d){const o=t.sdS(1),c=t.XpG(2);t.R7$(2),t.Y8G("ngTemplateOutlet",c.typeToSearchTemplate||o)}}function te(d,_){if(1&d&&(t.j41(0,"div",34),t.EFF(1),t.k0s()),2&d){const o=t.XpG(3);t.R7$(),t.JRh(o.loadingText)}}function P(d,_){}function ee(d,_){if(1&d&&t.DNE(0,te,2,1,"ng-template",null,9,t.C5r)(2,P,0,0,"ng-template",12),2&d){const o=t.sdS(1),c=t.XpG(2);t.R7$(2),t.Y8G("ngTemplateOutlet",c.loadingTextTemplate||o)("ngTemplateOutletContext",t.eq3(2,Me,c.searchTerm))}}function be(d,_){if(1&d){const o=t.RV6();t.j41(0,"ng-dropdown-panel",27),t.bIt("update",function(m){t.eBV(o);const B=t.XpG();return t.Njj(B.viewPortItems=m)})("scroll",function(m){t.eBV(o);const B=t.XpG();return t.Njj(B.scroll.emit(m))})("scrollToEnd",function(m){t.eBV(o);const B=t.XpG();return t.Njj(B.scrollToEnd.emit(m))})("outsideClick",function(){t.eBV(o);const m=t.XpG();return t.Njj(m.close())}),t.qex(1),t.Z7z(2,De,4,22,"div",28,t.BUC().trackByOption,!0),t.DNE(4,nt,4,6,"div",29),t.bVm(),t.DNE(5,pt,3,4)(6,A,3,1)(7,ee,3,4),t.k0s()}if(2&d){const o=t.XpG();t.AVh("ng-select-multiple",o.multiple),t.Y8G("virtualScroll",o.virtualScroll)("bufferAmount",o.bufferAmount)("appendTo",o.appendTo)("position",o.dropdownPosition)("headerTemplate",o.headerTemplate)("footerTemplate",o.footerTemplate)("filterValue",o.searchTerm)("items",o.itemsList.filteredItems)("markedItem",o.itemsList.markedItem)("ngClass",o.appendTo?o.ngClass?o.ngClass:o.classes:null)("id",o.dropdownId),t.R7$(2),t.Dyx(o.viewPortItems),t.R7$(2),t.vxM(o.showAddTag?4:-1),t.R7$(),t.vxM(o.showNoItemsFound()?5:-1),t.R7$(),t.vxM(o.showTypeToSearch()?6:-1),t.R7$(),t.vxM(o.loading&&0===o.itemsList.filteredItems.length?7:-1)}}const Pe=/[&<>"']/g,Se=RegExp(Pe.source),Ie={"&":"&","<":"<",">":">",'"':""","'":"'"};function ye(d){return null!=d}function Ve(d){return"object"==typeof d&&ye(d)}function st(d){return d instanceof Function}let Ne=(()=>{class d{constructor(o){this.element=o,this.escape=!0}ngOnChanges(o){this.element.nativeElement.innerHTML=this.escape?function de(d){return d&&Se.test(d)?d.replace(Pe,_=>Ie[_]):d}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[t.OA$]})}return d})(),ft=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-option-tmp",""]],standalone:!0})}return d})(),wt=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}return d})(),gt=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-label-tmp",""]],standalone:!0})}return d})(),Ce=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}return d})(),Te=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-header-tmp",""]],standalone:!0})}return d})(),at=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-footer-tmp",""]],standalone:!0})}return d})(),Le=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}return d})(),ht=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}return d})(),dt=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}return d})(),Ye=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}return d})(),ct=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-tag-tmp",""]],standalone:!0})}return d})(),Je=(()=>{class d{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:d,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}return d})();function He(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const je={"\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 Xe(d){return d.replace(/[^\u0000-\u007E]/g,o=>je[o]||o)}class rt{constructor(_,o){this._ngSelect=_,this._selectionModel=o,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 _=this.selectedItems.length-1;for(;_>=0;_--){const o=this.selectedItems[_];if(!o.disabled)return o}return null}setItems(_){this._items=_.map((o,c)=>this.mapItem(o,c)),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(_){if(_.selected||this.maxItemsSelected)return;const o=this._ngSelect.multiple;o||this.clearSelected(),this._selectionModel.select(_,o,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(_)}unselect(_){_.selected&&(this._selectionModel.unselect(_,this._ngSelect.multiple),this._ngSelect.hideSelected&&ye(_.index)&&this._ngSelect.multiple&&this._showSelected(_))}findItem(_){let o;return o=this._ngSelect.compareWith?c=>this._ngSelect.compareWith(c.value,_):this._ngSelect.bindValue?c=>!c.children&&this.resolveNested(c.value,this._ngSelect.bindValue)===_:c=>c.value===_||!c.children&&c.label&&c.label===this.resolveNested(_,this._ngSelect.bindLabel),this._items.find(c=>o(c))}addItem(_){const o=this.mapItem(_,this._items.length);return this._items.push(o),this._filteredItems.push(o),o}clearSelected(_=!1){this._selectionModel.clear(_),this._items.forEach(o=>{o.selected=_&&o.selected&&o.disabled,o.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(_){return _=Xe(_).toLocaleLowerCase(),this.filteredItems.find(o=>Xe(o.label).toLocaleLowerCase().substr(0,_.length)===_)}filter(_){if(!_)return void this.resetFilteredItems();this._filteredItems=[],_=this._ngSelect.searchFn?_:Xe(_).toLocaleLowerCase();const o=this._ngSelect.searchFn||this._defaultSearchFn,c=this._ngSelect.hideSelected;for(const m of Array.from(this._groups.keys())){const B=[];for(const U of this._groups.get(m))c&&(U.parent&&U.parent.selected||U.selected)||o(_,this._ngSelect.searchFn?U.value:U)&&B.push(U);if(B.length>0){const[U]=B.slice(-1);if(U.parent){const pe=this._items.find(Re=>Re===U.parent);this._filteredItems.push(pe)}this._filteredItems.push(...B)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(_=>!_.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(_){this._markedIndex=this._filteredItems.indexOf(_)}markSelectedOrDefault(_){if(0===this._filteredItems.length)return;const o=this._getLastMarkedIndex();this._markedIndex=o>-1?o:_?this.filteredItems.findIndex(c=>!c.disabled):-1}resolveNested(_,o){if(!Ve(_))return _;if(-1===o.indexOf("."))return _[o];{const c=o.split(".");let m=_;for(let B=0,U=c.length;B<U;++B){if(null==m)return null;m=m[c[B]]}return m}}mapItem(_,o){const c=ye(_.$ngOptionLabel)?_.$ngOptionLabel:this.resolveNested(_,this._ngSelect.bindLabel),m=ye(_.$ngOptionValue)?_.$ngOptionValue:_;return{index:o,label:ye(c)?c.toString():"",value:m,disabled:_.disabled,htmlId:`${this._ngSelect.dropdownId}-${o}`}}mapSelectedItems(){const _=this._ngSelect.multiple;for(const o of this.selectedItems){const c=this._ngSelect.bindValue?this.resolveNested(o.value,this._ngSelect.bindValue):o.value,m=ye(c)?this.findItem(c):null;this._selectionModel.unselect(o,_),this._selectionModel.select(m||o,_,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(o=>-1===this.selectedItems.indexOf(o)))}_showSelected(_){if(this._filteredItems.push(_),_.parent){const o=_.parent;this._filteredItems.find(m=>m===o)||this._filteredItems.push(o)}else if(_.children)for(const o of _.children)o.selected=!1,this._filteredItems.push(o);this._filteredItems=[...this._filteredItems.sort((o,c)=>o.index-c.index)]}_hideSelected(_){this._filteredItems=this._filteredItems.filter(o=>o!==_),_.parent?_.parent.children.every(c=>c.selected)&&(this._filteredItems=this._filteredItems.filter(c=>c!==_.parent)):_.children&&(this._filteredItems=this.filteredItems.filter(o=>o.parent!==_))}_defaultSearchFn(_,o){return Xe(o.label).toLocaleLowerCase().indexOf(_)>-1}_getNextItemIndex(_){return _>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(_){0===this._filteredItems.length||this._filteredItems.every(o=>o.disabled)||(this._markedIndex=this._getNextItemIndex(_),this.markedItem.disabled&&this._stepToItem(_))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const _=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&_<0?-1:Math.max(this.markedIndex,_)}_groupBy(_,o){const c=new Map;if(0===_.length)return c;if(Array.isArray(_[0].value[o])){for(const U of _){const pe=(U.value[o]||[]).map((Re,Oe)=>this.mapItem(Re,Oe));c.set(U,pe)}return c}const m=st(this._ngSelect.groupBy),B=U=>{const pe=m?o(U.value):U.value[o];return ye(pe)?pe:void 0};for(const U of _){const pe=B(U),Re=c.get(pe);Re?Re.push(U):c.set(pe,[U])}return c}_flatten(_){const o=st(this._ngSelect.groupBy),c=[];for(const m of Array.from(_.keys())){let B=c.length;if(void 0===m){const qe=_.get(void 0)||[];c.push(...qe.map(yt=>(yt.index=B++,yt)));continue}const U=Ve(m),pe={label:U?"":String(m),children:void 0,parent:null,index:B++,disabled:!this._ngSelect.selectableGroup,htmlId:He()},Re=o?this._ngSelect.bindLabel:this._ngSelect.groupBy,Oe=this._ngSelect.groupValue||(()=>U?m.value:{[Re]:m}),et=_.get(m).map(qe=>(qe.parent=pe,qe.children=void 0,qe.index=B++,qe));pe.children=et,pe.value=Oe(m,et.map(qe=>qe.value)),c.push(pe),c.push(...et)}return c}}var ot=function(d){return d[d.Tab=9]="Tab",d[d.Enter=13]="Enter",d[d.Esc=27]="Esc",d[d.Space=32]="Space",d[d.ArrowUp=38]="ArrowUp",d[d.ArrowDown=40]="ArrowDown",d[d.Backspace=8]="Backspace",d}(ot||{});let Ge=(()=>{class d{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(o,c,m){const B=this._dimensions,U=B.itemHeight*c,Re=Math.max(0,o)/U*c;let Oe=Math.min(c,Math.ceil(Re)+(B.itemsPerViewport+1));const qe=Math.max(0,Oe-B.itemsPerViewport);let yt=Math.min(qe,Math.floor(Re)),Yt=B.itemHeight*Math.ceil(yt)-B.itemHeight*Math.min(yt,m);return Yt=isNaN(Yt)?0:Yt,yt=isNaN(yt)?-1:yt,Oe=isNaN(Oe)?-1:Oe,yt-=m,yt=Math.max(0,yt),Oe+=m,Oe=Math.min(c,Oe),{topPadding:Yt,scrollHeight:U,start:yt,end:Oe}}setDimensions(o,c){const m=Math.max(1,Math.floor(c/o));this._dimensions={itemHeight:o,panelHeight:c,itemsPerViewport:m}}getScrollTo(o,c,m){const{panelHeight:B}=this.dimensions,U=o+c,Re=m+B;return B>=U&&m===o?null:U>Re?m+U-Re:o<=m?o:null}static#e=this.\u0275fac=function(c){return new(c||d)};static#t=this.\u0275prov=t.jDH({token:d,factory:d.\u0275fac})}return d})();const xe=["top","right","bottom","left"],I=typeof requestAnimationFrame<"u"?se.X:X;let G=(()=>{class d{constructor(o,c,m,B,U){this._renderer=o,this._zone=c,this._panelService=m,this._document=U,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new t.bkB,this.scroll=new t.bkB,this.scrollToEnd=new t.bkB,this.outsideClick=new t.bkB,this._destroy$=new v.B,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=B.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(o){o!==this._itemsLength&&(this._itemsLength=o,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:o,panelHeight:c}=this._panelService.dimensions,m=this.markedItem.index*o;return c>m?0:m}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(o){if(o.items){const c=o.items;this._onItemsChange(c.currentValue,c.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(o,c=!1){if(!o)return;const m=this.items.indexOf(o);if(m<0||m>=this.itemsLength)return;let B;if(this.virtualScroll){const U=this._panelService.dimensions.itemHeight;B=this._panelService.getScrollTo(m*U,U,this._lastScrollPosition)}else{const U=this._dropdown.querySelector(`#${o.htmlId}`);B=this._panelService.getScrollTo(U.offsetTop,U.clientHeight,c?U.offsetTop:this._lastScrollPosition)}ye(B)&&(this._scrollablePanel.scrollTop=B)}scrollToTag(){const o=this._scrollablePanel;o.scrollTop=o.scrollHeight-o.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),xe.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(o){xe.forEach(m=>{const B=`ng-select-${m}`;this._renderer.removeClass(this._dropdown,B),this._renderer.removeClass(this._select,B)});const c=`ng-select-${o}`;this._renderer.addClass(this._dropdown,c),this._renderer.addClass(this._select,c)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,N.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,M.Q)(this._destroy$),function p(d,_=T.E){return function C(d){return(0,D.N)((_,o)=>{let c=!1,m=null,B=null,U=!1;const pe=()=>{if(B?.unsubscribe(),B=null,c){c=!1;const Oe=m;m=null,o.next(Oe)}U&&o.complete()},Re=()=>{B=null,U&&o.complete()};_.subscribe((0,O._)(o,Oe=>{c=!0,m=Oe,B||(0,E.Tg)(d(Oe)).subscribe(B=(0,O._)(o,pe,Re))},()=>{U=!0,(!c||!B||B.closed)&&o.complete()}))})}(()=>(0,g.O)(d,_))}(0,I)).subscribe(o=>{const c=o.path||o.composedPath&&o.composedPath();c&&(0!==c.length||o.target)&&this._onContentScrolled(c&&0!==c.length?c[0].scrollTop:o.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,ce.h)((0,N.R)(this._document,"touchstart",{capture:!0}),(0,N.R)(this._document,"click",{capture:!0})).pipe((0,M.Q)(this._destroy$)).subscribe(o=>this._checkToClose(o))})}_checkToClose(o){if(this._select.contains(o.target)||this._dropdown.contains(o.target))return;const c=o.path||o.composedPath&&o.composedPath();o.target&&o.target.shadowRoot&&c&&c[0]&&this._select.contains(c[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(o,c){this.items=o||[],this._scrollToEndFired=!1,this.itemsLength=o.length,this.virtualScroll?this._updateItemsRange(c):(this._setVirtualHeight(),this._updateItems(c))}_updateItems(o){this.update.emit(this.items),!1!==o&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,o)})})}_updateItemsRange(o){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{o?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(o){this.virtualScroll&&this._renderItemsRange(o),this._lastScrollPosition=o,this._fireScrollToEnd(o)}_updateVirtualHeight(o){this._updateScrollHeight&&(this._virtualPadding.style.height=`${o}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(o=null){if(o&&this._lastScrollPosition===o)return;const c=this._panelService.calculateItems(o=o||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(c.scrollHeight),this._contentPanel.style.transform=`translateY(${c.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(c.start,c.end)),this.scroll.emit({start:c.start,end:c.end})}),ye(o)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=o,this._lastScrollPosition=o)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[o]=this.items;return this.update.emit([o]),Promise.resolve().then(()=>{const m=this._dropdown.querySelector(`#${o.htmlId}`).clientHeight;return this._virtualPadding.style.height=m*this.itemsLength+"px",this._panelService.setDimensions(m,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(o){this._scrollToEndFired||0===o||o+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(o){if("auto"!==this.position)return this.position;const c=this._select.getBoundingClientRect(),m=document.documentElement.scrollTop||document.body.scrollTop;return c.top+window.pageYOffset+c.height+o.getBoundingClientRect().height>m+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 o=this._select.getBoundingClientRect(),c=this._parent.getBoundingClientRect();this._dropdown.style.left=o.left-c.left+"px",this._dropdown.style.width=o.width+"px",this._dropdown.style.minWidth=o.width+"px"}_updateYPosition(){const o=this._select.getBoundingClientRect(),c=this._parent.getBoundingClientRect(),m=o.height;"top"===this._currentPosition?(this._dropdown.style.bottom=c.bottom-o.bottom+m+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=o.top-c.top+m+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,N.R)(this._dropdown,"mousedown").pipe((0,M.Q)(this._destroy$)).subscribe(o=>{"INPUT"!==o.target.tagName&&o.preventDefault()})})}static#e=this.\u0275fac=function(c){return new(c||d)(t.rXU(t.sFG),t.rXU(t.SKi),t.rXU(Ge),t.rXU(t.aKT),t.rXU(ne.qQ,8))};static#t=this.\u0275cmp=t.VBU({type:d,selectors:[["ng-dropdown-panel"]],viewQuery:function(c,m){if(1&c&&(t.GBs(J,7,t.aKT),t.GBs(R,7,t.aKT),t.GBs(oe,7,t.aKT)),2&c){let B;t.mGM(B=t.lsd())&&(m.contentElementRef=B.first),t.mGM(B=t.lsd())&&(m.scrollElementRef=B.first),t.mGM(B=t.lsd())&&(m.paddingElementRef=B.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",t.L39],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:ae,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(c,m){1&c&&(t.NAR(),t.DNE(0,We,2,4,"div",3),t.j41(1,"div",4,0),t.nrm(3,"div",null,1),t.j41(5,"div",null,2),t.SdG(7),t.k0s()(),t.DNE(8,$e,2,4,"div",5)),2&c&&(t.vxM(m.headerTemplate?0:-1),t.R7$(3),t.AVh("total-padding",m.virtualScroll),t.R7$(2),t.AVh("scrollable-content",m.virtualScroll&&m.items.length),t.R7$(3),t.vxM(m.footerTemplate?8:-1))},dependencies:[ne.T3],encapsulation:2,changeDetection:0})}return d})(),Fe=(()=>{class d{constructor(o){this.elementRef=o,this.disabled=!1,this.stateChange$=new v.B}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(o){o.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(c){return new(c||d)(t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({type:d,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",t.L39]},standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:ae,decls:1,vars:0,template:function(c,m){1&c&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return d})();function Ue(){return new mt}class mt{constructor(){this._selected=[]}get value(){return this._selected}select(_,o,c){if(_.selected=!0,(!_.children||!o&&c)&&this._selected.push(_),o)if(_.parent){const m=_.parent.children.length,B=_.parent.children.filter(U=>U.selected).length;_.parent.selected=m===B}else _.children&&(this._setChildrenSelectedState(_.children,!0),this._removeChildren(_),this._selected=c&&this._activeChildren(_)?[...this._selected.filter(m=>m.parent!==_),_]:[...this._selected,..._.children.filter(m=>!m.disabled)])}unselect(_,o){if(this._selected=this._selected.filter(c=>c!==_),_.selected=!1,o)if(_.parent&&_.parent.selected){const c=_.parent.children;this._removeParent(_.parent),this._removeChildren(_.parent),this._selected.push(...c.filter(m=>m!==_&&!m.disabled)),_.parent.selected=!1}else _.children&&(this._setChildrenSelectedState(_.children,!1),this._removeChildren(_))}clear(_){this._selected=_?this._selected.filter(o=>o.disabled):[]}_setChildrenSelectedState(_,o){for(const c of _)c.disabled||(c.selected=o)}_removeChildren(_){this._selected=[...this._selected.filter(o=>o.parent!==_),..._.children.filter(o=>o.parent===_&&o.disabled&&o.selected)]}_removeParent(_){this._selected=this._selected.filter(o=>o!==_)}_activeChildren(_){return _.children.every(o=>!o.disabled||o.selected)}}let tt=(()=>{class d{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(c){return new(c||d)};static#t=this.\u0275prov=t.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})(),Ft=(()=>{class d{warn(o){console.warn(o)}static#e=this.\u0275fac=function(c){return new(c||d)};static#t=this.\u0275prov=t.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();const Vt=new t.nKC("ng-select-selection-model");let Ct=(()=>{class d{constructor(o,c,m,B,U,pe,Re){this.classes=o,this.autoFocus=c,this.config=m,this._cd=pe,this._console=Re,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 t.bkB,this.focusEvent=new t.bkB,this.changeEvent=new t.bkB,this.openEvent=new t.bkB,this.closeEvent=new t.bkB,this.searchEvent=new t.bkB,this.clearEvent=new t.bkB,this.addEvent=new t.bkB,this.removeEvent=new t.bkB,this.scroll=new t.bkB,this.scrollToEnd=new t.bkB,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=He(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new v.B,this._keyPress$=new v.B,this._items=[],this.keyDownFn=Oe=>!0,this.clearItem=Oe=>{const et=this.selectedItems.find(qe=>qe.value===Oe);this.unselect(et)},this.trackByOption=(Oe,et)=>this.trackByFn?this.trackByFn(et.value):et,this._onChange=Oe=>{},this._onTouched=()=>{},this._mergeGlobalConfig(m),this.itemsList=new rt(this,B?B():Ue()),this.element=U.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(o){this._itemsAreUsed=!0,this._items=o??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(o){if(null!=o&&!st(o))throw Error("`compareWith` must be a function.");this._compareWith=o}get clearSearchOnAdd(){return ye(this._clearSearchOnAdd)?this._clearSearchOnAdd:ye(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(o){this._clearSearchOnAdd=o}get deselectOnClick(){return ye(this._deselectOnClick)?this._deselectOnClick:ye(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(o){this._deselectOnClick=o}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(o=>o.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 o=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(c=>c.label.toLowerCase()===o)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(c=>c.label.toLowerCase()===o))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const o=this.searchTerm&&this.searchTerm.trim();return o&&o.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(o){o.multiple&&this.itemsList.clearSelected(),o.items&&this._setItems(o.items.currentValue||[]),o.isOpen&&(this._manualOpen=ye(o.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),ye(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(o){if(ot[o.which]){if(!1===this.keyDownFn(o))return;this.handleKeyCode(o)}else o.key&&1===o.key.length&&this._keyPress$.next(o.key.toLocaleLowerCase())}handleKeyCode(o){this.clearButton&&this.clearButton.nativeElement===o.target?this.handleKeyCodeClear(o):this.handleKeyCodeInput(o)}handleKeyCodeInput(o){switch(o.which){case ot.ArrowDown:this._handleArrowDown(o);break;case ot.ArrowUp:this._handleArrowUp(o);break;case ot.Space:this._handleSpace(o);break;case ot.Enter:this._handleEnter(o);break;case ot.Tab:this._handleTab(o);break;case ot.Esc:this.close(),o.preventDefault();break;case ot.Backspace:this._handleBackspace()}}handleKeyCodeClear(o){o.which===ot.Enter&&(this.handleClearClick(),o.preventDefault())}handleMousedown(o){if(this.preventToggleOnRightClick&&2===o.button)return!1;const c=o.target;"INPUT"!==c.tagName&&o.preventDefault(),c.classList.contains("ng-clear-wrapper")?this.handleClearClick():c.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():c.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(o){this.itemsList.clearSelected(),this._handleWriteValue(o),this._cd.markForCheck()}registerOnChange(o){this._onChange=o}registerOnTouched(o){this._onTouched=o}setDisabledState(o){this._disabled=o,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(o){!o||o.disabled||this.disabled||(this.deselectOnClick&&o.selected?this.unselect(o):this.select(o),this._editableSearchTerm&&this._setSearchTermFromItems())}select(o){o.selected||(this.itemsList.select(o),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(o.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(o){o&&(this.itemsList.unselect(o),this.focus(),this._updateNgModel(),this.removeEvent.emit(o.value),this._onSelectionChanged())}selectTag(){let o;o=st(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const c=m=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(m,null):this.itemsList.addItem(m);!function Ke(d){return d instanceof Promise}(o)?o&&this.select(c(o)):o.then(m=>this.select(c(m))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){const o=0===this.itemsList.filteredItems.length;return(o&&!this._isTypeahead&&!this.loading||o&&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(o){this._isComposing=!1,!this.searchWhileComposing&&this.filter(o)}filter(o){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=o,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(o),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:o,items:this.itemsList.filteredItems.map(c=>c.value)}),this.open())}onInputFocus(o){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(o),this.focused=!0)}onInputBlur(o){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(o),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(o){o.disabled||this.itemsList.markItem(o)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const o=this.selectedItems&&this.selectedItems[0];this.searchTerm=o&&o.label||null}_setItems(o){const c=o[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=ye(c)?!Ve(c):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(o),o.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&ye(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const o=m=>{this.items=m.map(B=>({$ngOptionValue:B.value,$ngOptionLabel:B.elementRef.nativeElement.innerHTML,disabled:B.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},c=()=>{const m=(0,ce.h)(this.ngOptions.changes,this._destroy$);(0,ce.h)(...this.ngOptions.map(B=>B.stateChange$)).pipe((0,M.Q)(m)).subscribe(B=>{const U=this.itemsList.findItem(B.value);U.disabled=B.disabled,U.label=B.label||U.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,b.Z)(this.ngOptions),(0,M.Q)(this._destroy$)).subscribe(m=>{this.bindLabel=this._defaultLabel,o(m),c()})}_isValidWriteValue(o){if(!ye(o)||this.multiple&&""===o||Array.isArray(o)&&0===o.length)return!1;const c=m=>!(!ye(this.compareWith)&&Ve(m)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(m)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(o)?o.every(m=>c(m)):(this._console.warn("Multiple select ngModel should be array."),!1):c(o)}_handleWriteValue(o){if(!this._isValidWriteValue(o))return;const c=m=>{let B=this.itemsList.findItem(m);if(B)this.itemsList.select(B);else{const U=Ve(m);U||!U&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(m,null)):this.bindValue&&(B={[this.bindLabel]:null,[this.bindValue]:m},this.itemsList.select(this.itemsList.mapItem(B,null)))}};this.multiple?o.forEach(m=>c(m)):c(o)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,M.Q)(this._destroy$),(0,Y.M)(o=>this._pressedKeys.push(o)),(0,re.B)(200),(0,z.p)(()=>this._pressedKeys.length>0),(0,j.T)(()=>this._pressedKeys.join(""))).subscribe(o=>{const c=this.itemsList.findByLabel(o);c&&(this.isOpen?(this.itemsList.markItem(c),this._scrollToMarked(),this._cd.markForCheck()):this.select(c)),this._pressedKeys=[]})}_setInputAttributes(){const o=this.searchInput.nativeElement,c={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const m of Object.keys(c))o.setAttribute(m,c[m])}_updateNgModel(){const o=[];for(const m of this.selectedItems)if(this.bindValue){let B=null;B=m.children?m.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(m.value,this.bindValue),o.push(B)}else o.push(m.value);const c=this.selectedItems.map(m=>m.value);this.multiple?(this._onChange(o),this.changeEvent.emit(c)):(this._onChange(ye(o[0])?o[0]:null),this.changeEvent.emit(c[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(o){this.searchTerm=o,this._isTypeahead&&this.typeahead.next(o)}_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(o){if(!1===this.isOpen)if(this.showClear()&&!o.shiftKey)this.focusOnClear(),o.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),o.preventDefault()):this.showAddTag?(this.selectTag(),o.preventDefault()):this.close():this.close()}_handleEnter(o){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}o.preventDefault()}_handleSpace(o){this.isOpen||this._manualOpen||(this.open(),o.preventDefault())}_handleArrowDown(o){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),o.preventDefault()}_handleArrowUp(o){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),o.preventDefault())}_nextItemIsTag(o){const c=this.itemsList.markedIndex+o;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(c<0||c===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(o){this.placeholder=this.placeholder||o.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||o.fixedPlaceholder,this.notFoundText=this.notFoundText||o.notFoundText,this.typeToSearchText=this.typeToSearchText||o.typeToSearchText,this.addTagText=this.addTagText||o.addTagText,this.loadingText=this.loadingText||o.loadingText,this.clearAllText=this.clearAllText||o.clearAllText,this.virtualScroll=ye(this.virtualScroll)?this.virtualScroll:!!ye(o.disableVirtualScroll)&&!o.disableVirtualScroll,this.openOnEnter=ye(this.openOnEnter)?this.openOnEnter:o.openOnEnter,this.appendTo=this.appendTo||o.appendTo,this.bindValue=this.bindValue||o.bindValue,this.bindLabel=this.bindLabel||o.bindLabel,this.appearance=this.appearance||o.appearance}static#e=this.\u0275fac=function(c){return new(c||d)(t.kS0("class"),t.kS0("autofocus"),t.rXU(tt),t.rXU(Vt,8),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(Ft))};static#t=this.\u0275cmp=t.VBU({type:d,selectors:[["ng-select"]],contentQueries:function(c,m,B){if(1&c&&(t.wni(B,ft,5,t.C4Q),t.wni(B,wt,5,t.C4Q),t.wni(B,gt,5,t.C4Q),t.wni(B,Ce,5,t.C4Q),t.wni(B,Te,5,t.C4Q),t.wni(B,at,5,t.C4Q),t.wni(B,Le,5,t.C4Q),t.wni(B,ht,5,t.C4Q),t.wni(B,dt,5,t.C4Q),t.wni(B,Ye,5,t.C4Q),t.wni(B,ct,5,t.C4Q),t.wni(B,Je,5,t.C4Q),t.wni(B,Fe,5)),2&c){let U;t.mGM(U=t.lsd())&&(m.optionTemplate=U.first),t.mGM(U=t.lsd())&&(m.optgroupTemplate=U.first),t.mGM(U=t.lsd())&&(m.labelTemplate=U.first),t.mGM(U=t.lsd())&&(m.multiLabelTemplate=U.first),t.mGM(U=t.lsd())&&(m.headerTemplate=U.first),t.mGM(U=t.lsd())&&(m.footerTemplate=U.first),t.mGM(U=t.lsd())&&(m.notFoundTemplate=U.first),t.mGM(U=t.lsd())&&(m.placeholderTemplate=U.first),t.mGM(U=t.lsd())&&(m.typeToSearchTemplate=U.first),t.mGM(U=t.lsd())&&(m.loadingTextTemplate=U.first),t.mGM(U=t.lsd())&&(m.tagTemplate=U.first),t.mGM(U=t.lsd())&&(m.loadingSpinnerTemplate=U.first),t.mGM(U=t.lsd())&&(m.ngOptions=U)}},viewQuery:function(c,m){if(1&c&&(t.GBs(G,5),t.GBs(Qe,7),t.GBs(Ee,5)),2&c){let B;t.mGM(B=t.lsd())&&(m.dropdownPanel=B.first),t.mGM(B=t.lsd())&&(m.searchInput=B.first),t.mGM(B=t.lsd())&&(m.clearButton=B.first)}},hostVars:20,hostBindings:function(c,m){1&c&&t.bIt("keydown",function(U){return m.handleKeyDown(U)}),2&c&&t.AVh("ng-select-typeahead",m.typeahead)("ng-select-multiple",m.multiple)("ng-select-taggable",m.addTag)("ng-select-searchable",m.searchable)("ng-select-clearable",m.clearable)("ng-select-opened",m.isOpen)("ng-select",m.useDefaultClass)("ng-select-filtered",m.filtered)("ng-select-single",m.single)("ng-select-disabled",m.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:[2,"markFirst","markFirst",t.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",t.L39],closeOnSelect:[2,"closeOnSelect","closeOnSelect",t.L39],hideSelected:[2,"hideSelected","hideSelected",t.L39],selectOnTab:[2,"selectOnTab","selectOnTab",t.L39],openOnEnter:[2,"openOnEnter","openOnEnter",t.L39],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",t.Udg],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",t.Udg],virtualScroll:[2,"virtualScroll","virtualScroll",t.L39],selectableGroup:[2,"selectableGroup","selectableGroup",t.L39],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",t.L39],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",t.L39],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",t.Udg],readonly:[2,"readonly","readonly",t.L39],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",t.L39],minTermLength:[2,"minTermLength","minTermLength",t.Udg],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",t.L39],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",t.L39],addTag:"addTag",searchable:[2,"searchable","searchable",t.L39],clearable:[2,"clearable","clearable",t.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:[t.Jv_([{provide:f.kq,useExisting:(0,t.Rfq)(()=>d),multi:!0},Ge]),t.GFd,t.OA$,t.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(c,m){if(1&c){const B=t.RV6();t.j41(0,"div",10),t.bIt("mousedown",function(pe){return t.eBV(B),t.Njj(m.handleMousedown(pe))}),t.j41(1,"div",11),t.DNE(2,Pt,3,1)(3,en,2,0)(4,u,1,5,null,12),t.j41(5,"div",13)(6,"input",14,0),t.bIt("blur",function(pe){return t.eBV(B),t.Njj(m.onInputBlur(pe))})("change",function(pe){return t.eBV(B),t.Njj(pe.stopPropagation())})("compositionend",function(){t.eBV(B);const pe=t.sdS(7);return t.Njj(m.onCompositionEnd(pe.value))})("compositionstart",function(){return t.eBV(B),t.Njj(m.onCompositionStart())})("focus",function(pe){return t.eBV(B),t.Njj(m.onInputFocus(pe))})("input",function(){t.eBV(B);const pe=t.sdS(7);return t.Njj(m.filter(pe.value))}),t.k0s()()(),t.DNE(8,q,3,1)(9,ue,4,1,"span",15),t.j41(10,"span",16),t.nrm(11,"span",17),t.k0s()(),t.DNE(12,be,8,17,"ng-dropdown-panel",18)}2&c&&(t.AVh("ng-appearance-outline","outline"===m.appearance)("ng-has-value",m.hasValue),t.R7$(2),t.vxM(0===m.selectedItems.length&&!m.searchTerm||!0===m.fixedPlaceholder?2:-1),t.R7$(),t.vxM(m.multiLabelTemplate&&m.multiple||!(m.selectedItems.length>0)?-1:3),t.R7$(),t.vxM(m.multiple&&m.multiLabelTemplate&&m.selectedValues.length>0?4:-1),t.R7$(2),t.Y8G("disabled",m.disabled)("readOnly",!m.searchable||m.itemsList.maxItemsSelected)("value",m.searchTerm?m.searchTerm:""),t.BMQ("aria-activedescendant",m.isOpen?null==m.itemsList||null==m.itemsList.markedItem?null:m.itemsList.markedItem.htmlId:null)("aria-controls",m.isOpen?m.dropdownId:null)("aria-expanded",m.isOpen)("id",m.labelForId)("tabindex",m.tabIndex),t.R7$(2),t.vxM(m.loading?8:-1),t.R7$(),t.vxM(m.showClear()?9:-1),t.R7$(3),t.vxM(m.isOpen?12:-1))},dependencies:[ne.T3,Ne,G,ne.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 d})(),Dt=(()=>{class d{static#e=this.\u0275fac=function(c){return new(c||d)};static#t=this.\u0275mod=t.$C({type:d});static#n=this.\u0275inj=t.G2t({providers:[{provide:Vt,useValue:Ue}]})}return d})()},4304:(_e,L,l)=>{l.d(L,{Mj:()=>j,h6:()=>ge,kt:()=>se});var t=l(3953),f=l(177),M=l(9969);const T="400ms cubic-bezier(0.4,0.0,0.2,1)",D=[(0,M.iF)({height:0,visibility:"hidden"}),(0,M.i0)(T,(0,M.iF)({height:"*",visibility:"visible"}))],E=[(0,M.iF)({height:"*",visibility:"visible"}),(0,M.i0)(T,(0,M.iF)({height:0,visibility:"hidden"}))];let O=(()=>{class K{set display(S){this._display=S,"none"!==S?this.isAnimated?this.toggle():this.show():this.hide()}set collapse(S){this.collapseNewValue=S,(!this._player||this._isAnimationDone)&&(this.isExpanded=S,this.toggle())}get collapse(){return this.isExpanded}constructor(S,V,x){this._el=S,this._renderer=V,this.collapsed=new t.bkB,this.collapses=new t.bkB,this.expanded=new t.bkB,this.expands=new t.bkB,this.isExpanded=!0,this.collapseNewValue=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1,this.isAnimated=!1,this._display="block",this._stylesLoaded=!1,this._COLLAPSE_ACTION_NAME="collapse",this._EXPAND_ACTION_NAME="expand",this._factoryCollapseAnimation=x.build(E),this._factoryExpandAnimation=x.build(D)}ngAfterViewChecked(){this._stylesLoaded=!0,this._player&&this._isAnimationDone&&(this._player.reset(),this._renderer.setStyle(this._el.nativeElement,"height","*"))}toggle(){this.isExpanded?this.hide():this.show()}hide(){this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,this.isCollapsing=!1,this.collapses.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._COLLAPSE_ACTION_NAME)(()=>{this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated?this.show():(this.collapsed.emit(this),this._renderer.setStyle(this._el.nativeElement,"display","none"))})}show(){this._renderer.setStyle(this._el.nativeElement,"display",this._display),this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,this.isCollapsing=!1,this.expands.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._EXPAND_ACTION_NAME)(()=>{this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated?this.hide():(this.expanded.emit(this),this._renderer.removeStyle(this._el.nativeElement,"overflow"))})}animationRun(S,V){if(!S||!this._stylesLoaded)return le=>le();this._renderer.setStyle(this._el.nativeElement,"overflow","hidden"),this._renderer.addClass(this._el.nativeElement,"collapse");const x=V===this._EXPAND_ACTION_NAME?this._factoryExpandAnimation:this._factoryCollapseAnimation;return this._player&&this._player.reset(),this._player=x.create(this._el.nativeElement),this._player.play(),le=>this._player?.onDone(le)}static#e=this.\u0275fac=function(V){return new(V||K)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(M.S6))};static#t=this.\u0275dir=t.FsC({type:K,selectors:[["","collapse",""]],hostVars:9,hostBindings:function(V,x){2&V&&(t.BMQ("aria-hidden",x.isCollapsed),t.AVh("collapse",x.isCollapse)("in",x.isExpanded)("show",x.isExpanded)("collapsing",x.isCollapsing))},inputs:{display:"display",isAnimated:"isAnimated",collapse:"collapse"},outputs:{collapsed:"collapsed",collapses:"collapses",expanded:"expanded",expands:"expands"},exportAs:["bs-collapse"]})}return K})(),C=(()=>{class K{static forRoot(){return{ngModule:K,providers:[]}}static#e=this.\u0275fac=function(V){return new(V||K)};static#t=this.\u0275mod=t.$C({type:K});static#n=this.\u0275inj=t.G2t({})}return K})();const g=["*"],p=[[["","accordion-heading",""]],"*"],b=["[accordion-heading]","*"],Y=K=>({"text-muted":K});function re(K,ke){if(1&K&&(t.j41(0,"button",7),t.EFF(1),t.k0s()),2&K){const S=t.XpG();t.Y8G("ngClass",t.eq3(2,Y,S.isDisabled)),t.R7$(),t.SpI(" ",S.heading," ")}}let z=(()=>{class K{constructor(){this.closeOthers=!1,this.isAnimated=!1}static#e=this.\u0275fac=function(V){return new(V||K)};static#t=this.\u0275prov=t.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})(),j=(()=>{class K{constructor(S){this.isAnimated=!1,this.closeOthers=!1,this.groups=[],Object.assign(this,S)}closeOtherPanels(S){this.closeOthers&&this.groups.forEach(V=>{V!==S&&(V.isOpen=!1)})}addGroup(S){S.isAnimated=this.isAnimated,this.groups.push(S)}removeGroup(S){const V=this.groups.indexOf(S);-1!==V&&this.groups.splice(V,1)}static#e=this.\u0275fac=function(V){return new(V||K)(t.rXU(z))};static#t=this.\u0275cmp=t.VBU({type:K,selectors:[["accordion"]],hostAttrs:["role","tablist",1,"panel-group",2,"display","block"],hostVars:1,hostBindings:function(V,x){2&V&&t.BMQ("aria-multiselectable",x.closeOthers)},inputs:{isAnimated:"isAnimated",closeOthers:"closeOthers"},ngContentSelectors:g,decls:1,vars:0,template:function(V,x){1&V&&(t.NAR(),t.SdG(0))},encapsulation:2})}return K})(),se=(()=>{class K{get isOpen(){return this._isOpen}set isOpen(S){S!==this.isOpen&&(S&&this.accordion.closeOtherPanels(this),this._isOpen=S,Promise.resolve(null).then(()=>{this.isOpenChange.emit(S)}))}constructor(S){this.isAnimated=!1,this.panelClass="panel-default",this.isDisabled=!1,this.isOpenChange=new t.bkB,this._isOpen=!1,this.accordion=S}ngOnInit(){this.accordion.addGroup(this)}ngOnDestroy(){this.accordion.removeGroup(this)}toggleOpen(){this.isDisabled||(this.isOpen=!this.isOpen)}static#e=this.\u0275fac=function(V){return new(V||K)(t.rXU(j))};static#t=this.\u0275cmp=t.VBU({type:K,selectors:[["accordion-group"],["accordion-panel"]],hostAttrs:[1,"panel",2,"display","block"],hostVars:2,hostBindings:function(V,x){2&V&&t.AVh("panel-open",x.isOpen)},inputs:{heading:"heading",panelClass:"panelClass",isDisabled:"isDisabled",isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange"},ngContentSelectors:b,decls:9,vars:6,consts:[[1,"panel","card",3,"ngClass"],["role","tab",1,"panel-heading","card-header",3,"click","ngClass"],[1,"panel-title"],["role","button",1,"accordion-toggle"],["class","btn btn-link","type","button",3,"ngClass",4,"ngIf"],["role","tabpanel",1,"panel-collapse","collapse",3,"collapse","isAnimated"],[1,"panel-body","card-block","card-body"],["type","button",1,"btn","btn-link",3,"ngClass"]],template:function(V,x){1&V&&(t.NAR(p),t.j41(0,"div",0)(1,"div",1),t.bIt("click",function(){return x.toggleOpen()}),t.j41(2,"div",2)(3,"div",3),t.DNE(4,re,2,4,"button",4),t.SdG(5),t.k0s()()(),t.j41(6,"div",5)(7,"div",6),t.SdG(8,1),t.k0s()()()),2&V&&(t.Y8G("ngClass",x.panelClass),t.R7$(),t.Y8G("ngClass",x.isDisabled?"panel-disabled":"panel-enabled"),t.R7$(2),t.BMQ("aria-expanded",x.isOpen),t.R7$(),t.Y8G("ngIf",x.heading),t.R7$(2),t.Y8G("collapse",!x.isOpen)("isAnimated",x.isAnimated))},dependencies:[f.YU,f.bT,O],styles:["[_nghost-%COMP%] .card-header.panel-enabled[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] .card-header.panel-disabled[_ngcontent-%COMP%] .btn.btn-link[_ngcontent-%COMP%]{cursor:default;text-decoration:none}"]})}return K})(),ge=(()=>{class K{static forRoot(){return{ngModule:K,providers:[]}}static#e=this.\u0275fac=function(V){return new(V||K)};static#t=this.\u0275mod=t.$C({type:K});static#n=this.\u0275inj=t.G2t({imports:[f.MD,C]})}return K})()},6932:(_e,L,l)=>{l.d(L,{Li:()=>C});var t=l(3953),f=l(425),M=l(1946),T=l(177);class E{constructor(p,b,Y){this.nodes=p,this.viewRef=b,this.componentRef=Y}}class O{constructor(p,b,Y,re,z,j,se,ge,K){this._viewContainerRef=p,this._renderer=b,this._elementRef=Y,this._injector=re,this._componentFactoryResolver=z,this._ngZone=j,this._applicationRef=se,this._posService=ge,this._document=K,this.onBeforeShow=new t.bkB,this.onShown=new t.bkB,this.onBeforeHide=new t.bkB,this.onHidden=new t.bkB,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(p){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(p),this}to(p){return this.container=p||this.container,this}position(p){return p?(this.attachment=p.attachment||this.attachment,this._elementRef=p.target||this._elementRef,this):this}provide(p){return this._providers.push(p),this}show(p={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(p.content,p.context,p.initialState);const b=t.zZn.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(b,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,p),this.container instanceof t.aKT&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const Y=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!Y)return;Y.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(p.id?{id:p.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(p){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const b=this._componentRef.location.nativeElement;return b.parentNode?.removeChild(b),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(p?{id:p}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(p){this.triggers=p.triggers||this.triggers,this._listenOpts.outsideClick=p.outsideClick,this._listenOpts.outsideEsc=p.outsideEsc,p.target=p.target||this._elementRef?.nativeElement;const b=this._listenOpts.hide=()=>p.hide?p.hide():void this.hide(),Y=this._listenOpts.show=z=>{p.show?p.show(z):this.show(z),z()};return this._renderer&&(this._unregisterListenersFn=(0,f.GL)(this._renderer,{target:p.target,triggers:p.triggers,show:Y,hide:b,toggle:z=>{this.isShown?b():Y(z)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(p,b){return p&&b&&(this._inlineViewRef=p.createEmbeddedView(b)),this}_registerOutsideClick(){if(!this._componentRef||!this._componentRef.location)return;let p=Function.prototype,b=Function.prototype;if(this._listenOpts.outsideClick){const Y=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(p=(0,f.Xt)(this._renderer,{targets:[Y,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(b=(0,f.Fv)(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()})),this._globalListener=()=>{p(),b()}}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(p,b,Y){if(!p)return new E([]);if(p instanceof t.C4Q){if(this._viewContainerRef){const j=this._viewContainerRef.createEmbeddedView(p,b);return j.markForCheck(),new E([j.rootNodes],j)}const z=p.createEmbeddedView({});return this._applicationRef.attachView(z),new E([z.rootNodes],z)}if("function"==typeof p){const z=this._componentFactoryResolver.resolveComponentFactory(p),j=t.zZn.create({providers:this._providers,parent:this._injector}),se=z.create(j);return Object.assign(se.instance,Y),this._applicationRef.attachView(se.hostView),new E([[se.location.nativeElement]],se.hostView,se)}const re=this._renderer?[this._renderer.createText(`${p}`)]:[];return new E([re])}}let C=(()=>{class g{constructor(b,Y,re,z,j,se){this._componentFactoryResolver=b,this._ngZone=Y,this._injector=re,this._posService=z,this._applicationRef=j,this._document=se}createLoader(b,Y,re){return new O(Y,re,b,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static#e=this.\u0275fac=function(Y){return new(Y||g)(t.KVO(t.OM3),t.KVO(t.SKi),t.KVO(t.zZn),t.KVO(M.DF),t.KVO(t.o8S),t.KVO(T.qQ))};static#t=this.\u0275prov=t.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},9375:(_e,L,l)=>{l.d(L,{pc:()=>Or,p0:()=>ni,YN:()=>qc});var t=l(3953),f=l(5964),M=l(6354),T=l(6697),D=l(6977),E=l(3294);function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){return"string"==typeof e}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Y(e){return e&&e.getTime&&!isNaN(e.getTime())}function re(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function z(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function j(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function se(e,s){return Object.prototype.hasOwnProperty.call(e,s)}function ge(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function ke(e){return void 0===e}function S(e){const s=+e;let n=0;return 0!==s&&isFinite(s)&&(n=C(s)),n}const V={},x={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function le(e,s){const n=e.toLowerCase();let i=e;n in x&&(i=x[n]),V[n]=V[`${n}s`]=V[s]=i}function $(e){return g(e)?V[e]||V[e.toLowerCase()]:void 0}const y=0,ie=1,k=2,F=3,X=4,H=5,v=6,N=7,ce=8;function ne(e,s,n){const i=`${Math.abs(e)}`;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s-i.length)).toString().substr(1)+i}const J={},R={},oe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function ae(e,s,n,i){e&&(R[e]=i),s&&(R[s[0]]=function(){return ne(i.apply(null,arguments),s[1],s[2])}),n&&(R[n]=function(r,a){return a.locale.ordinal(i.apply(null,arguments),e)})}function We(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $e(e,s,n){const i=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(i.getUTCFullYear())&&i.setUTCFullYear(e),i}function Qe(e,s=0,n=1,i=0,r=0,a=0,h=0){const W=new Date(e,s,n,i,r,a,h);return e<100&&e>=0&&isFinite(W.getFullYear())&&W.setFullYear(e),W}function Ee(e,s=!1){return s?e.getUTCHours():e.getHours()}function vt(e,s=!1){return s?e.getUTCMinutes():e.getMinutes()}function ut(e,s=!1){return s?e.getUTCSeconds():e.getSeconds()}function _t(e,s=!1){return s?e.getUTCMilliseconds():e.getMilliseconds()}function kt(e,s=!1){return s?e.getUTCDay():e.getDay()}function Pt(e,s=!1){return s?e.getUTCDate():e.getDate()}function Ze(e,s=!1){return s?e.getUTCMonth():e.getMonth()}function we(e,s=!1){return s?e.getUTCFullYear():e.getFullYear()}function q(e,s){return!(!e||!s)&&ue(e,s)&&Ze(e)===Ze(s)}function ue(e,s){return!(!e||!s)&&we(e)===we(s)}function he(e,s){return!(!e||!s)&&ue(e,s)&&q(e,s)&&Pt(e)===Pt(s)}const ve=/\d/,De=/\d\d/,Ae=/\d{3}/,Be=/\d{4}/,nt=/[+-]?\d{6}/,ze=/\d\d?/,It=/\d\d\d\d?/,pt=/\d\d\d\d\d\d?/,Mt=/\d{1,3}/,w=/\d{1,4}/,A=/[+-]?\d{1,6}/,te=/\d+/,P=/[+-]?\d+/,be=/Z|[+-]\d\d(?::?\d\d)?/gi,Pe=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ie={};function de(e,s,n){Ie[e]=re(s)?s:function(i,r){return i&&n?n:s}}function ye(e,s){return se(Ie,e)?Ie[e](!1,s):new RegExp(function Ve(e){return Ke(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(s,n,i,r,a)=>n||i||r||a))}(e))}function Ke(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const st={};function Ne(e,s){const n=g(e)?[e]:e;let i=s;if(z(s)&&(i=function(r,a,h){return a[s]=S(r),h}),j(n)&&re(i)){let r;for(r=0;r<n.length;r++)st[n[r]]=i}}function ft(e,s){Ne(e,function(n,i,r,a){return r._w=r._w||{},s(n,r._w,r,a)})}function wt(e,s,n){return null!=s&&se(st,e)&&st[e](s,n._a,n,e),n}const gt={};function Ce(e,s){gt[e]=s}function Le(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function ht(e,s){return s.locale.getFullYear?s.locale.getFullYear(e,s.isUTC).toString():we(e,s.isUTC).toString()}function Ye(e){return S(e)+(S(e)>68?1900:2e3)}function ct(e){return Je(e)?366:365}function Je(e){return e%4==0&&e%100!=0||e%400==0}function He(e,s){if(isNaN(e)||isNaN(s))return NaN;const n=function O(e,s){return(e%s+s)%s}(s,12);return 1===n?Je(e+(s-n)/12)?29:28:31-n%7%2}const Xe={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function rt(e,s){const n=Object.assign({},Xe,s),i=e.getFullYear()+(n.year||0),r=e.getMonth()+(n.month||0);let a=e.getDate()+(n.day||0);return n.month&&!n.day&&(a=Math.min(a,He(i,r))),Qe(i,r,a,e.getHours()+(n.hour||0),e.getMinutes()+(n.minute||0),e.getSeconds()+(n.seconds||0))}function Ge(e,s){return z(s)?s:e}function I(e,s,n){const i=Math.min(Pt(e),He(we(e),s));return n?e.setUTCMonth(s,i):e.setMonth(s,i),e}function Ft(e,s,n){return n?e.setUTCDate(s):e.setDate(s),e}function Ct(e){return new Date(e.getTime())}function Dt(e,s,n){const i=Ct(e);switch(s){case"year":I(i,0,n);case"quarter":case"month":Ft(i,1,n);case"week":case"isoWeek":case"day":case"date":!function Fe(e,s,n){n?e.setUTCHours(s):e.setHours(s)}(i,0,n);case"hours":!function Ue(e,s,n){n?e.setUTCMinutes(s):e.setMinutes(s)}(i,0,n);case"minutes":!function mt(e,s,n){n?e.setUTCSeconds(s):e.setSeconds(s)}(i,0,n);case"seconds":!function tt(e,s,n){n?e.setUTCMilliseconds(s):e.setMilliseconds(s)}(i,0,n)}return"week"===s&&function Ro(e,s,n={}){on(e,s-Es(e,n.locale,n.isUTC),"day")}(i,0,{isUTC:n}),"isoWeek"===s&&function Ao(e,s,n={}){const i=function Yo(e,s=Lt()){return g(e)?s.weekdaysParse(e)%7||7:z(e)&&isNaN(e)?null:e}(s,n.locale);Gn(e,function Et(e,s){return kt(e,s)}(e)%7?i:i-7)}(i,1),"quarter"===s&&I(i,3*Math.floor(Ze(i,n)/3),n),i}function d(e,s,n){let i=s;return"date"===i&&(i="day"),function xo(e,s,n,i){return Ci(e,ws(s,n),-1,i)}(on(Dt(e,i,n),1,"isoWeek"===i?"week":i,n),1,"milliseconds",n)}function o(e,s){const n=+Dt(e,"day",s),i=+Dt(e,"year",s);return Math.round((n-i)/864e5)+1}function m(e,s,n){const i=s-n+7;return-($e(e,0,i).getUTCDay()-s+7)%7+i-1}function U(e,s,n,i){const r=m(we(e,i),s,n),a=Math.floor((o(e,i)-r-1)/7)+1;let h,W;return a<1?(W=we(e,i)-1,h=a+pe(W,s,n)):a>pe(we(e,i),s,n)?(h=a-pe(we(e,i),s,n),W=we(e,i)+1):(W=we(e,i),h=a),{week:h,year:W}}function pe(e,s,n){const i=m(e,s,n),r=m(e+1,s,n);return(ct(e)-i+r)/7}const Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},_s=Se,Bn=Se;class Fn{constructor(s){s&&this.set(s)}set(s){let n;for(n in s){if(!s.hasOwnProperty(n))continue;const i=s[n];this[re(i)?n:`_${n}`]=i}this._config=s}calendar(s,n,i){const r=this._calendar[s]||this._calendar.sameElse;return re(r)?r.call(null,n,i):r}longDateFormat(s){const n=this._longDateFormat[s],i=this._longDateFormat[s.toUpperCase()];return n||!i?n:(this._longDateFormat[s]=i.replace(/MMMM|MM|DD|dddd/g,function(r){return r.slice(1)}),this._longDateFormat[s])}get invalidDate(){return this._invalidDate}set invalidDate(s){this._invalidDate=s}ordinal(s,n){return this._ordinal.replace("%d",s.toString(10))}preparse(s,n){return s}getFullYear(s,n=!1){return we(s,n)}postformat(s){return s}relativeTime(s,n,i,r){const a=this._relativeTime[i];return re(a)?a(s,n,i,r):a.replace(/%d/i,s.toString(10))}pastFuture(s,n){const i=this._relativeTime[s>0?"future":"past"];return re(i)?i(n):i.replace(/%s/i,n)}months(s,n,i=!1){if(!s)return j(this._months)?this._months:this._months.standalone;if(j(this._months))return this._months[Ze(s,i)];const r=(this._months.isFormat||Re).test(n)?"format":"standalone";return this._months[r][Ze(s,i)]}monthsShort(s,n,i=!1){if(!s)return j(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(j(this._monthsShort))return this._monthsShort[Ze(s,i)];const r=Re.test(n)?"format":"standalone";return this._monthsShort[r][Ze(s,i)]}monthsParse(s,n,i){let r,a,h;if(this._monthsParseExact)return this.handleMonthStrictParse(s,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),h=0;h<12;h++){if(r=new Date(Date.UTC(2e3,h)),i&&!this._longMonthsParse[h]){const W=this.months(r,"",!0).replace(".",""),me=this.monthsShort(r,"",!0).replace(".","");this._longMonthsParse[h]=new RegExp(`^${W}$`,"i"),this._shortMonthsParse[h]=new RegExp(`^${me}$`,"i")}if(!i&&!this._monthsParse[h]&&(a=`^${this.months(r,"",!0)}|^${this.monthsShort(r,"",!0)}`,this._monthsParse[h]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[h].test(s)||i&&"MMM"===n&&this._shortMonthsParse[h].test(s)||!i&&this._monthsParse[h].test(s))return h}}monthsRegex(s){return this._monthsParseExact?(se(this,"_monthsRegex")||this.computeMonthsParse(),s?this._monthsStrictRegex:this._monthsRegex):(se(this,"_monthsRegex")||(this._monthsRegex=Bn),this._monthsStrictRegex&&s?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(s){return this._monthsParseExact?(se(this,"_monthsRegex")||this.computeMonthsParse(),s?this._monthsShortStrictRegex:this._monthsShortRegex):(se(this,"_monthsShortRegex")||(this._monthsShortRegex=_s),this._monthsShortStrictRegex&&s?this._monthsShortStrictRegex:this._monthsShortRegex)}week(s,n){return U(s,this._week.dow,this._week.doy,n).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(s,n,i){if(!s)return j(this._weekdays)?this._weekdays:this._weekdays.standalone;if(j(this._weekdays))return this._weekdays[kt(s,i)];const r=this._weekdays.isFormat.test(n)?"format":"standalone";return this._weekdays[r][kt(s,i)]}weekdaysMin(s,n,i){return s?this._weekdaysMin[kt(s,i)]:this._weekdaysMin}weekdaysShort(s,n,i){return s?this._weekdaysShort[kt(s,i)]:this._weekdaysShort}weekdaysParse(s,n,i){let r,a;if(this._weekdaysParseExact)return this.handleWeekStrictParse(s,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){const h=Gn(new Date(Date.UTC(2e3,1)),r,null,!0);if(i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp(`^${this.weekdays(h,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[r]=new RegExp(`^${this.weekdaysShort(h,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[r]=new RegExp(`^${this.weekdaysMin(h,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[r]||(a=`^${this.weekdays(h,"",!0)}|^${this.weekdaysShort(h,"",!0)}|^${this.weekdaysMin(h,"",!0)}`,this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),!(j(this._fullWeekdaysParse)&&j(this._shortWeekdaysParse)&&j(this._minWeekdaysParse)&&j(this._weekdaysParse)))return;if(i&&"dddd"===n&&this._fullWeekdaysParse[r].test(s))return r;if(i&&"ddd"===n&&this._shortWeekdaysParse[r].test(s))return r;if(i&&"dd"===n&&this._minWeekdaysParse[r].test(s))return r;if(!i&&this._weekdaysParse[r].test(s))return r}}weekdaysRegex(s){return this._weekdaysParseExact?(se(this,"_weekdaysRegex")||this.computeWeekdaysParse(),s?this._weekdaysStrictRegex:this._weekdaysRegex):(se(this,"_weekdaysRegex")||(this._weekdaysRegex=Se),this._weekdaysStrictRegex&&s?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(s){return this._weekdaysParseExact?(se(this,"_weekdaysRegex")||this.computeWeekdaysParse(),s?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(se(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Se),this._weekdaysShortStrictRegex&&s?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(s){return this._weekdaysParseExact?(se(this,"_weekdaysRegex")||this.computeWeekdaysParse(),s?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(se(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Se),this._weekdaysMinStrictRegex&&s?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(s){return"p"===s.toLowerCase().charAt(0)}meridiem(s,n,i){return s>11?i?"pm":"PM":i?"am":"AM"}formatLongDate(s){this._longDateFormat=this._longDateFormat?this._longDateFormat:cn;const n=this._longDateFormat[s],i=this._longDateFormat[s.toUpperCase()];return n||!i?n:(this._longDateFormat[s]=i.replace(/MMMM|MM|DD|dddd/g,r=>r.slice(1)),this._longDateFormat[s])}handleMonthStrictParse(s,n,i){const r=s.toLocaleLowerCase();let a,h,W;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)W=new Date(2e3,a),this._shortMonthsParse[a]=this.monthsShort(W,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(W,"").toLocaleLowerCase();return i?"MMM"===n?(h=this._shortMonthsParse.indexOf(r),-1!==h?h:null):(h=this._longMonthsParse.indexOf(r),-1!==h?h:null):"MMM"===n?(h=this._shortMonthsParse.indexOf(r),-1!==h?h:(h=this._longMonthsParse.indexOf(r),-1!==h?h:null)):(h=this._longMonthsParse.indexOf(r),-1!==h?h:(h=this._shortMonthsParse.indexOf(r),-1!==h?h:null))}handleWeekStrictParse(s,n,i){let r;const a=s.toLocaleLowerCase();if(!this._weekdaysParse){let h;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],h=0;h<7;++h){const W=Gn(new Date(Date.UTC(2e3,1)),h,null,!0);this._minWeekdaysParse[h]=this.weekdaysMin(W).toLocaleLowerCase(),this._shortWeekdaysParse[h]=this.weekdaysShort(W).toLocaleLowerCase(),this._weekdaysParse[h]=this.weekdays(W,"").toLocaleLowerCase()}}if(j(this._weekdaysParse)&&j(this._shortWeekdaysParse)&&j(this._minWeekdaysParse))return i?"dddd"===n?(r=this._weekdaysParse.indexOf(a),-1!==r?r:null):"ddd"===n?(r=this._shortWeekdaysParse.indexOf(a),-1!==r?r:null):(r=this._minWeekdaysParse.indexOf(a),-1!==r?r:null):"dddd"===n?(r=this._weekdaysParse.indexOf(a),-1!==r||(r=this._shortWeekdaysParse.indexOf(a),-1!==r)?r:(r=this._minWeekdaysParse.indexOf(a),-1!==r?r:null)):"ddd"===n?(r=this._shortWeekdaysParse.indexOf(a),-1!==r||(r=this._weekdaysParse.indexOf(a),-1!==r)?r:(r=this._minWeekdaysParse.indexOf(a),-1!==r?r:null)):(r=this._minWeekdaysParse.indexOf(a),-1!==r||(r=this._weekdaysParse.indexOf(a),-1!==r)?r:(r=this._shortWeekdaysParse.indexOf(a),-1!==r?r:null))}computeMonthsParse(){const s=[],n=[],i=[];let r,a;for(a=0;a<12;a++)r=new Date(2e3,a),s.push(this.monthsShort(r,"")),n.push(this.months(r,"")),i.push(this.months(r,"")),i.push(this.monthsShort(r,""));for(s.sort(Ht),n.sort(Ht),i.sort(Ht),a=0;a<12;a++)s[a]=Ke(s[a]),n[a]=Ke(n[a]);for(a=0;a<24;a++)i[a]=Ke(i[a]);this._monthsRegex=new RegExp(`^(${i.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${n.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${s.join("|")})`,"i")}computeWeekdaysParse(){const s=[],n=[],i=[],r=[];let a;for(a=0;a<7;a++){const h=Gn(new Date(Date.UTC(2e3,1)),a,null,!0),W=this.weekdaysMin(h),me=this.weekdaysShort(h),it=this.weekdays(h);s.push(W),n.push(me),i.push(it),r.push(W),r.push(me),r.push(it)}for(s.sort(Ht),n.sort(Ht),i.sort(Ht),r.sort(Ht),a=0;a<7;a++)n[a]=Ke(n[a]),i[a]=Ke(i[a]),r[a]=Ke(r[a]);this._weekdaysRegex=new RegExp(`^(${r.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${i.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${n.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${s.join("|")})`,"i")}}function Ht(e,s){return s.length-e.length}const jt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:cn,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:et,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Yt,weekdaysShort:yt,meridiemParse:/[ap]\.?m?\.?/i};function Gt(e,s,n){const i=Math.min(e.length,s.length),r=Math.abs(e.length-s.length);let h,a=0;for(h=0;h<i;h++)(n&&e[h]!==s[h]||!n&&S(e[h])!==S(s[h]))&&a++;return a+r}function es(e,s){ae(null,[e,e.length,!1],null,s)}function ri(e,s){return gs(e,s.locale).toString()}function oi(e){return ai(e).toString()}function gs(e,s=Lt(),n){return U(e,s.firstDayOfWeek(),s.firstDayOfYear(),n).year}function ai(e,s){return U(e,1,4,s).year}function ci(e,s){ae(e,null,null,function(n,i){let r=function gn(e,s={}){return s._isUTC?s._offset||0:function di(e){return 15*-Math.round(e.getTimezoneOffset()/15)}(e)}(n,{_isUTC:i.isUTC,_offset:i.offset}),a="+";return r<0&&(r=-r,a="-"),a+ne(~~(r/60),2)+s+ne(~~r%60,2)})}const jr=/([\+\-]|\d\d)/gi;const xt={},Hn={};let jn;function ui(e){return e&&e.toLowerCase().replace("_","-")}function hi(e){return xt[e]||console.error(`Khronos locale error: please load locale "${e}" before using it`),xt[e]}function vs(e,s){let n;return e&&(ke(s)?n=Lt(e):g(e)&&(n=mi(e,s)),n&&(jn=n)),jn&&jn._abbr}function mi(e,s){if(null===s)return delete xt[e],jn=Lt("en"),null;if(!s)return;let n=jt;if(s.abbr=e,null!=s.parentLocale){if(null==xt[s.parentLocale])return Hn[s.parentLocale]||(Hn[s.parentLocale]=[]),Hn[s.parentLocale].push({name:e,config:s}),null;n=xt[s.parentLocale]._config}return xt[e]=new Fn(function _i(e,s){const n=Object.assign({},e);for(const i in s)se(s,i)&&(ge(e[i])&&ge(s[i])?(n[i]={},Object.assign(n[i],e[i]),Object.assign(n[i],s[i])):null!=s[i]?n[i]=s[i]:delete n[i]);for(const i in e)se(e,i)&&!se(s,i)&&ge(e[i])&&(n[i]=Object.assign({},n[i]));return n}(n,s)),Hn[e]&&Hn[e].forEach(function(i){mi(i.name,i.config)}),vs(e),xt[e]}function Lt(e){return function Xr(){xt.en||(vs("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(e){const s=e%10;return e+(1===S(e%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")}}),function Pr(){ae("w",["ww",2,!1],"wo",function(e,s){return function fn(e,s=Lt(),n){return s.week(e,n)}(e,s.locale).toString(10)}),ae("W",["WW",2,!1],"Wo",function(e){return function fs(e,s){return U(e,1,4,s).week}(e).toString(10)}),le("week","w"),le("isoWeek","W"),Ce("week",5),Ce("isoWeek",5),de("w",ze),de("ww",ze,De),de("W",ze),de("WW",ze,De),ft(["w","ww","W","WW"],function(e,s,n,i){return s[i.substr(0,1)]=S(e),n})}(),function Ir(){ae(null,["gg",2,!1],null,function(e,s){return(gs(e,s.locale)%100).toString()}),ae(null,["GG",2,!1],null,function(e){return(ai(e)%100).toString()}),es("gggg",ri),es("ggggg",ri),es("GGGG",oi),es("GGGGG",oi),le("weekYear","gg"),le("isoWeekYear","GG"),Ce("weekYear",1),Ce("isoWeekYear",1),de("G",P),de("g",P),de("GG",ze,De),de("gg",ze,De),de("GGGG",w,Be),de("gggg",w,Be),de("GGGGG",A,nt),de("ggggg",A,nt),ft(["gggg","ggggg","GGGG","GGGGG"],function(e,s,n,i){return s[i.substr(0,2)]=S(e),n}),ft(["gg","GG"],function(e,s,n,i){return s[i]=Ye(e),n})}(),function dt(){ae("Y",null,null,function(e,s){const n=we(e,s.isUTC);return n<=9999?n.toString(10):`+${n}`}),ae(null,["YY",2,!1],null,function(e,s){return(we(e,s.isUTC)%100).toString(10)}),ae(null,["YYYY",4,!1],null,ht),ae(null,["YYYYY",5,!1],null,ht),ae(null,["YYYYYY",6,!0],null,ht),le("year","y"),Ce("year",1),de("Y",P),de("YY",ze,De),de("YYYY",w,Be),de("YYYYY",A,nt),de("YYYYYY",A,nt),Ne(["YYYYY","YYYYYY"],y),Ne("YYYY",function(e,s,n){return s[y]=2===e.length?Ye(e):S(e),n}),Ne("YY",function(e,s,n){return s[y]=Ye(e),n}),Ne("Y",function(e,s,n){return s[y]=parseInt(e,10),n})}(),function Rr(){ae("z",null,null,function(e,s){return s.isUTC?"UTC":""}),ae("zz",null,null,function(e,s){return s.isUTC?"Coordinated Universal Time":""})}(),function Ar(){ae("X",null,null,function(e){return function en(e){return Math.floor(e.valueOf()/1e3)}(e).toString(10)}),ae("x",null,null,function(e){return e.valueOf().toString(10)}),de("x",P),de("X",Pe),Ne("X",function(e,s,n){return n._d=new Date(1e3*parseFloat(e)),n}),Ne("x",function(e,s,n){return n._d=new Date(S(e)),n})}(),function Br(){ae("s",["ss",2,!1],null,function(e,s){return ut(e,s.isUTC).toString(10)}),le("second","s"),Ce("second",15),de("s",ze),de("ss",ze,De),Ne(["s","ss"],H)}(),function Fr(){ae("Q",null,"Qo",function(e,s){return function Vr(e,s=!1){return Math.ceil((Ze(e,s)+1)/3)}(e,s.isUTC).toString(10)}),le("quarter","Q"),Ce("quarter",7),de("Q",ve),Ne("Q",function(e,s,n){return s[ie]=3*(S(e)-1),n})}(),function Hr(){ci("Z",":"),ci("ZZ",""),de("Z",be),de("ZZ",be),Ne(["Z","ZZ"],function(e,s,n){return n._useUTC=!0,n._tzm=function bs(e,s){const n=(s||"").match(e);if(null===n)return null;const r=n[n.length-1].match(jr)||["-","0","0"],a=60*parseInt(r[1],10)+S(r[2]);return 0===a?0:"+"===r[0]?a:-a}(be,e),n})}(),function je(){ae("M",["MM",2,!1],"Mo",function(e,s){return(Ze(e,s.isUTC)+1).toString(10)}),ae("MMM",null,null,function(e,s){return s.locale.monthsShort(e,s.format,s.isUTC)}),ae("MMMM",null,null,function(e,s){return s.locale.months(e,s.format,s.isUTC)}),le("month","M"),Ce("month",8),de("M",ze),de("MM",ze,De),de("MMM",function(e,s){return s.monthsShortRegex(e)}),de("MMMM",function(e,s){return s.monthsRegex(e)}),Ne(["M","MM"],function(e,s,n){return s[ie]=S(e)-1,n}),Ne(["MMM","MMMM"],function(e,s,n,i){const r=n._locale.monthsParse(e,i,n._strict);return null!=r?s[ie]=r:Le(n).invalidMonth=!!e,n})}(),function Ur(){ae("m",["mm",2,!1],null,function(e,s){return vt(e,s.isUTC).toString(10)}),le("minute","m"),Ce("minute",14),de("m",ze),de("mm",ze,De),Ne(["m","mm"],X)}(),function Gr(){let e;for(ae("S",null,null,function(n,i){return(~~(_t(n,i.isUTC)/100)).toString(10)}),ae(null,["SS",2,!1],null,function(n,i){return(~~(_t(n,i.isUTC)/10)).toString(10)}),ae(null,["SSS",3,!1],null,function(n,i){return _t(n,i.isUTC).toString(10)}),ae(null,["SSSS",4,!1],null,function(n,i){return(10*_t(n,i.isUTC)).toString(10)}),ae(null,["SSSSS",5,!1],null,function(n,i){return(100*_t(n,i.isUTC)).toString(10)}),ae(null,["SSSSSS",6,!1],null,function(n,i){return(1e3*_t(n,i.isUTC)).toString(10)}),ae(null,["SSSSSSS",7,!1],null,function(n,i){return(1e4*_t(n,i.isUTC)).toString(10)}),ae(null,["SSSSSSSS",8,!1],null,function(n,i){return(1e5*_t(n,i.isUTC)).toString(10)}),ae(null,["SSSSSSSSS",9,!1],null,function(n,i){return(1e6*_t(n,i.isUTC)).toString(10)}),le("millisecond","ms"),Ce("millisecond",16),de("S",Mt,ve),de("SS",Mt,De),de("SSS",Mt,Ae),e="SSSS";e.length<=9;e+="S")de(e,te);function s(n,i,r){return i[v]=S(1e3*parseFloat(`0.${n}`)),r}for(e="S";e.length<=9;e+="S")Ne(e,s)}(),function Wr(){function e(r,a){return Ee(r,a)%12||12}function n(r,a){ae(r,null,null,function(h,W){return W.locale.meridiem(Ee(h,W.isUTC),vt(h,W.isUTC),a)})}function i(r,a){return a._meridiemParse}ae("H",["HH",2,!1],null,function(r,a){return Ee(r,a.isUTC).toString(10)}),ae("h",["hh",2,!1],null,function(r,a){return e(r,a.isUTC).toString(10)}),ae("k",["kk",2,!1],null,function(r,a){return function s(r,a){return Ee(r,a)||24}(r,a.isUTC).toString(10)}),ae("hmm",null,null,function(r,a){return`${e(r,a.isUTC)}${ne(vt(r,a.isUTC),2)}`}),ae("hmmss",null,null,function(r,a){return`${e(r,a.isUTC)}${ne(vt(r,a.isUTC),2)}${ne(ut(r,a.isUTC),2)}`}),ae("Hmm",null,null,function(r,a){return`${Ee(r,a.isUTC)}${ne(vt(r,a.isUTC),2)}`}),ae("Hmmss",null,null,function(r,a){return`${Ee(r,a.isUTC)}${ne(vt(r,a.isUTC),2)}${ne(ut(r,a.isUTC),2)}`}),n("a",!0),n("A",!1),le("hour","h"),Ce("hour",13),de("a",i),de("A",i),de("H",ze),de("h",ze),de("k",ze),de("HH",ze,De),de("hh",ze,De),de("kk",ze,De),de("hmm",It),de("hmmss",pt),de("Hmm",It),de("Hmmss",pt),Ne(["H","HH"],F),Ne(["k","kk"],function(r,a,h){const W=S(r);return a[F]=24===W?0:W,h}),Ne(["a","A"],function(r,a,h){return h._isPm=h._locale.isPM(r),h._meridiem=r,h}),Ne(["h","hh"],function(r,a,h){return a[F]=S(r),Le(h).bigHour=!0,h}),Ne("hmm",function(r,a,h){const W=r.length-2;return a[F]=S(r.substr(0,W)),a[X]=S(r.substr(W)),Le(h).bigHour=!0,h}),Ne("hmmss",function(r,a,h){const W=r.length-4,me=r.length-2;return a[F]=S(r.substr(0,W)),a[X]=S(r.substr(W,2)),a[H]=S(r.substr(me)),Le(h).bigHour=!0,h}),Ne("Hmm",function(r,a,h){const W=r.length-2;return a[F]=S(r.substr(0,W)),a[X]=S(r.substr(W)),h}),Ne("Hmmss",function(r,a,h){const W=r.length-4,me=r.length-2;return a[F]=S(r.substr(0,W)),a[X]=S(r.substr(W,2)),a[H]=S(r.substr(me)),h})}(),function _(){ae("DDD",["DDDD",3,!1],"DDDo",function(e){return o(e).toString(10)}),le("dayOfYear","DDD"),Ce("dayOfYear",4),de("DDD",Mt),de("DDDD",Ae),Ne(["DDD","DDDD"],function(e,s,n){return n._dayOfYear=S(e),n})}(),function Po(){ae("d",null,"do",function(e,s){return kt(e,s.isUTC).toString(10)}),ae("dd",null,null,function(e,s){return s.locale.weekdaysMin(e,s.format,s.isUTC)}),ae("ddd",null,null,function(e,s){return s.locale.weekdaysShort(e,s.format,s.isUTC)}),ae("dddd",null,null,function(e,s){return s.locale.weekdays(e,s.format,s.isUTC)}),ae("e",null,null,function(e,s){return Es(e,s.locale,s.isUTC).toString(10)}),ae("E",null,null,function(e,s){return function ki(e,s){return kt(e,s)||7}(e,s.isUTC).toString(10)}),le("day","d"),le("weekday","e"),le("isoWeekday","E"),Ce("day",11),Ce("weekday",11),Ce("isoWeekday",11),de("d",ze),de("e",ze),de("E",ze),de("dd",function(e,s){return s.weekdaysMinRegex(e)}),de("ddd",function(e,s){return s.weekdaysShortRegex(e)}),de("dddd",function(e,s){return s.weekdaysRegex(e)}),ft(["dd","ddd","dddd"],function(e,s,n,i){const r=n._locale.weekdaysParse(e,i,n._strict);return null!=r?s.d=r:Le(n).invalidWeekday=!!e,n}),ft(["d","e","E"],function(e,s,n,i){return s[i]=S(e),n})}(),function Te(){ae("D",["DD",2,!1],"Do",function(e,s){return Pt(e,s.isUTC).toString(10)}),le("date","D"),Ce("date",9),de("D",ze),de("DD",ze,De),de("Do",function(e,s){return s._dayOfMonthOrdinalParse||s._ordinalParse}),Ne(["D","DD"],k),Ne("Do",function(e,s,n){return s[k]=S(e.match(ze)[0]),n})}())}(),e?function $r(e){let s,n,i=0;for(;i<e.length;){const r=ui(e[i]).split("-");let a=r.length;for(s=ui(e[i+1]),s=s?s.split("-"):null;a>0;){if(n=hi(r.slice(0,a).join("-")),n)return n;if(s&&s.length>=a&&Gt(r,s,!0)>=a-1)break;a--}i++}return null}(j(e)?e:[e]):jn}const Nn=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],zr=Nn.reduce((e,s)=>(e[s]=!0,e),{});function pi(e){return e<0?Math.floor(e):Math.ceil(e)}function fi(e){return 4800*e/146097}function ys(e){return 146097*e/4800}let _n=Math.round;const sn_ss=44,sn_s=45,sn_m=45,sn_h=22,sn_d=26,sn_M=11;function Jr(e,s,n,i,r){return r.relativeTime(s||1,!!n,e,i)}class gi{constructor(s,n={}){this._data={},this._locale=Lt(),this._locale=n&&n._locale||Lt();const r=s.year||0,a=s.quarter||0,h=s.month||0,W=s.week||0,me=s.day||0,it=s.hours||0,bt=s.minutes||0,At=s.seconds||0,Bt=s.milliseconds||0;return this._isValid=function Kr(e){if(Object.keys(e).some(i=>i in zr&&null===e[i]||isNaN(e[i])))return!1;let n=!1;for(let i=0;i<Nn.length;++i)if(e[Nn[i]]){if(n)return!1;e[Nn[i]]!==S(e[Nn[i]])&&(n=!0)}return!0}(s),this._milliseconds=+Bt+1e3*At+60*bt*1e3+1e3*it*60*60,this._days=+me+7*W,this._months=+h+3*a+12*r,function Zr(e){let s=e._milliseconds,n=e._days,i=e._months;const r=e._data;s>=0&&n>=0&&i>=0||s<=0&&n<=0&&i<=0||(s+=864e5*pi(ys(i)+n),n=0,i=0),r.milliseconds=s%1e3;const a=C(s/1e3);r.seconds=a%60;const h=C(a/60);r.minutes=h%60;const W=C(h/60);r.hours=W%24,n+=C(W/24);const me=C(fi(n));i+=me,n-=pi(ys(me));const it=C(i/12);return i%=12,r.day=n,r.month=i,r.year=it,e}(this)}isValid(){return this._isValid}humanize(s){if(!this.isValid())return this.localeData().invalidDate;const n=this.localeData();let i=function Qr(e,s,n){const i=ws(e).abs(),r=_n(i.as("s")),a=_n(i.as("m")),h=_n(i.as("h")),W=_n(i.as("d")),me=_n(i.as("M")),it=_n(i.as("y")),bt=r<=sn_ss&&["s",r]||r<sn_s&&["ss",r]||a<=1&&["m"]||a<sn_m&&["mm",a]||h<=1&&["h"]||h<sn_h&&["hh",h]||W<=1&&["d"]||W<sn_d&&["dd",W]||me<=1&&["M"]||me<sn_M&&["MM",me]||it<=1&&["y"]||["yy",it];return Jr.apply(null,[bt[0],bt[1],s,+e>0,n])}(this,!s,n);return s&&(i=n.pastFuture(+this,i)),n.postformat(i)}localeData(){return this._locale}locale(s){return s?(this._locale=Lt(s)||this._locale,this):this._locale._abbr}abs(){const s=Math.abs,n=this._data;return this._milliseconds=s(this._milliseconds),this._days=s(this._days),this._months=s(this._months),n.milliseconds=s(n.milliseconds),n.seconds=s(n.seconds),n.minutes=s(n.minutes),n.hours=s(n.hours),n.month=s(n.month),n.year=s(n.year),this}as(s){if(!this.isValid())return NaN;let n,i;const r=this._milliseconds,a=$(s);if("month"===a||"year"===a)return n=this._days+r/864e5,i=this._months+fi(n),"month"===a?i:i/12;switch(n=this._days+Math.round(ys(this._months)),a){case"week":return n/7+r/6048e5;case"day":return n+r/864e5;case"hours":return 24*n+r/36e5;case"minutes":return 1440*n+r/6e4;case"seconds":return 86400*n+r/1e3;case"milliseconds":return Math.floor(864e5*n)+r;default:throw new Error(`Unknown unit ${a}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN}}function Ds(e){if(null==e._isValid){const s=Le(e),n=Array.prototype.some.call(s.parsedDateParts,function(r){return null!=r});let i=!isNaN(e._d&&e._d.getTime())&&s.overflow<0&&!s.empty&&!s.invalidMonth&&!s.invalidWeekday&&!s.weekdayMismatch&&!s.nullInput&&!s.invalidFormat&&!s.userInvalidated&&(!s.meridiem||s.meridiem&&n);if(e._strict&&(i=i&&0===s.charsLeftOver&&0===s.unusedTokens.length&&void 0===s.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function ns(e,s){return e._d=new Date(NaN),Object.assign(Le(e),s||{userInvalidated:!0}),e}const to=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,no=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,so=/Z|[+-]\d\d(?::?\d\d)?/,ss=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],Ts=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],io=/^\/?Date\((\-?\d+)/i,ro={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},oo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function bi(e){if(!g(e._i))return e;const s=e._i,n=to.exec(s)||no.exec(s);let i,r,a,h,W,me;if(!n)return e._isValid=!1,e;for(W=0,me=ss.length;W<me;W++)if(ss[W][1].exec(n[1])){r=ss[W][0],i=!1!==ss[W][2];break}if(null==r)return e._isValid=!1,e;if(n[3]){for(W=0,me=Ts.length;W<me;W++)if(Ts[W][1].exec(n[3])){a=(n[2]||" ")+Ts[W][0];break}if(null==a)return e._isValid=!1,e}if(!i&&null!=a)return e._isValid=!1,e;if(n[4]){if(!so.exec(n[4]))return e._isValid=!1,e;h="Z"}return e._f=r+(a||"")+(h||""),Cs(e)}function lo(e){const s=parseInt(e,10);return s<=49?s+2e3:s}function vi(e){if(!g(e._i))return e;const s=oo.exec(function co(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e._i));if(!s)return function eo(e){return e._isValid=!1,e}(e);const n=function ao(e,s,n,i,r,a){const h=[lo(e),et.indexOf(s),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return a&&h.push(parseInt(a,10)),h}(s[4],s[3],s[2],s[5],s[6],s[7]);return function uo(e,s,n){return!e||yt.indexOf(e)===new Date(s[0],s[1],s[2]).getDay()||(Le(n).weekdayMismatch=!0,n._isValid=!1,!1)}(s[1],n,e)&&(e._a=n,e._tzm=function _o(e,s,n){if(e)return ro[e];if(s)return 0;{const i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}}(s[8],s[9],s[10]),e._d=$e.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Le(e).rfc2822=!0),e}function Wt(e,s,n,i,r=0){const a=Lt(n||"en");if(!a)throw new Error(`Locale "${n}" is not defined, please add it with "defineLocale(...)"`);const W=function mo(e,s,n,i,r=0){if(!Y(e))return n.invalidDate;const a=yi(s,n);return J[a]=J[a]||function Me(e){const s=e.match(oe),n=s.length,i=new Array(n);for(let r=0;r<n;r++)i[r]=R[s[r]]?R[s[r]]:We(s[r]);return function(r,a,h,W=0){let me="";for(let it=0;it<n;it++)me+=re(i[it])?i[it].call(null,r,{format:e,locale:a,isUTC:h,offset:W}):i[it];return me}}(a),J[a](e,n,i,r)}(e,s||(i?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),a,i,r);return W&&a.postformat(W)}function yi(e,s){let n=e,i=5;const r=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,a=h=>s.formatLongDate(h)||h;for(r.lastIndex=0;i>=0&&r.test(n);)n=n.replace(r,a),r.lastIndex=0,i-=1;return n}function Cn(e,s,n){return e??s??n}function Ms(e){const s=[];let n,i,r;if(e._d)return e;const a=function po(e){const s=new Date;return e._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()]}(e);for(e._w&&null==e._a[k]&&null==e._a[ie]&&function fo(e){let s,n,i,r,a,h,W;const me=e._w;if(null!=me.GG||null!=me.W||null!=me.E)r=1,a=4,s=Cn(me.GG,e._a[y],U(new Date,1,4).year),n=Cn(me.W,1),i=Cn(me.E,1),(i<1||i>7)&&(W=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;const it=U(new Date,r,a);s=Cn(me.gg,e._a[y],it.year),n=Cn(me.w,it.week),null!=me.d?(i=me.d,(i<0||i>6)&&(W=!0)):null!=me.e?(i=me.e+r,(me.e<0||me.e>6)&&(W=!0)):i=r}n<1||n>pe(s,r,a)?Le(e)._overflowWeeks=!0:null!=W?Le(e)._overflowWeekday=!0:(h=function B(e,s,n,i,r){const W=1+7*(s-1)+(7+n-i)%7+m(e,i,r);let me,it;return W<=0?(me=e-1,it=ct(me)+W):W>ct(e)?(me=e+1,it=W-ct(e)):(me=e,it=W),{year:me,dayOfYear:it}}(s,n,i,r,a),e._a[y]=h.year,e._dayOfYear=h.dayOfYear)}(e),null!=e._dayOfYear&&(r=Cn(e._a[y],a[y]),(e._dayOfYear>ct(r)||0===e._dayOfYear)&&(Le(e)._overflowDayOfYear=!0),i=new Date(Date.UTC(r,0,e._dayOfYear)),e._a[ie]=i.getUTCMonth(),e._a[k]=i.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=s[n]=a[n];for(;n<7;n++)e._a[n]=s[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[F]&&0===e._a[X]&&0===e._a[H]&&0===e._a[v]&&(e._nextDay=!0,e._a[F]=0),e._d=(e._useUTC?$e:Qe).apply(null,s);const h=e._useUTC?e._d.getUTCDay():e._d.getDay();return null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[F]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==h&&(Le(e).weekdayMismatch=!0),e}function Di(e){let s;const n=e._a;return n&&-2===Le(e).overflow&&(s=n[ie]<0||n[ie]>11?ie:n[k]<1||n[k]>He(n[y],n[ie])?k:n[F]<0||n[F]>24||24===n[F]&&(0!==n[X]||0!==n[H]||0!==n[v])?F:n[X]<0||n[X]>59?X:n[H]<0||n[H]>59?H:n[v]<0||n[v]>999?v:-1,Le(e)._overflowDayOfYear&&(s<y||s>k)&&(s=k),Le(e)._overflowWeeks&&-1===s&&(s=N),Le(e)._overflowWeekday&&-1===s&&(s=ce),Le(e).overflow=s),e}const go="ISO_8601",bo="RFC_2822";function Cs(e){if(e._f===go)return bi(e);if(e._f===bo)return vi(e);if(e._a=[],Le(e).empty=!0,j(e._f)||!e._i&&0!==e._i)return e;let s=e._i.toString(),n=0;const i=s.length,r=yi(e._f,e._locale).match(oe)||[];let a,h,W,me;for(a=0;a<r.length;a++)h=r[a],W=(s.match(ye(h,e._locale))||[])[0],W&&(me=s.substr(0,s.indexOf(W)),me.length>0&&Le(e).unusedInput.push(me),s=s.slice(s.indexOf(W)+W.length),n+=W.length),R[h]?(W?Le(e).empty=!1:Le(e).unusedTokens.push(h),wt(h,W,e)):e._strict&&!W&&Le(e).unusedTokens.push(h);return Le(e).charsLeftOver=i-n,s.length>0&&Le(e).unusedInput.push(s),e._a[F]<=12&&!0===Le(e).bigHour&&e._a[F]>0&&(Le(e).bigHour=void 0),Le(e).parsedDateParts=e._a.slice(0),Le(e).meridiem=e._meridiem,e._a[F]=function vo(e,s,n){let i=s;if(null==n)return i;if(null!=e.meridiemHour)return e.meridiemHour(i,n);if(null==e.isPM)return i;const r=e.isPM(n);return r&&i<12&&(i+=12),!r&&12===i&&(i=0),i}(e._locale,e._a[F],e._meridiem),Ms(e),Di(e)}function To(e){const s=Di(function Mo(e){let s=e._i;const n=e._f;return e._locale=e._locale||Lt(e._l),null===s||void 0===n&&""===s?ns(e,{nullInput:!0}):(g(s)&&(e._i=s=e._locale.preparse(s,n)),p(s)?(e._d=Ct(s),e):(j(n)?function yo(e){let s,n,i,r,a;if(!e._f||0===e._f.length)return Le(e).invalidFormat=!0,ns(e);for(a=0;a<e._f.length;a++)r=0,s=Object.assign({},e),null!=e._useUTC&&(s._useUTC=e._useUTC),s._f=e._f[a],Cs(s),Ds(s)&&(r+=Le(s).charsLeftOver,r+=10*Le(s).unusedTokens.length,Le(s).score=r,(null==i||r<i)&&(i=r,n=s));Object.assign(e,n||s)}(e):n?Cs(e):function Co(e){const s=e._i;if(ke(s))e._d=new Date;else if(p(s))e._d=Ct(s);else if(g(s))!function ho(e){if(!g(e._i))return e;const s=io.exec(e._i);null!==s?e._d=new Date(+s[1]):(bi(e),!1!==e._isValid||(delete e._isValid,vi(e),!1!==e._isValid||(delete e._isValid,ns(e))))}(e);else if(j(s)&&s.length){const n=s.slice(0);e._a=n.map(i=>g(i)?parseInt(i,10):i),Ms(e)}else if(ge(s))!function Do(e){if(e._d)return e;const s=e._i;if(ge(s)){const n=function fe(e){const s={};let n,i;for(i in e)se(e,i)&&(n=$(i),n&&(s[n]=e[i]));return s}(s);e._a=[n.year,n.month,n.day,n.hours,n.minutes,n.seconds,n.milliseconds].map(i=>g(i)?parseInt(i,10):i)}return Ms(e)}(e);else{if(!z(s))return ns(e);e._d=new Date(s)}}(e),Ds(e)||(e._d=null),e))}(e));return s._d=new Date(null!=s._d?s._d.getTime():NaN),Ds(Object.assign({},s,{_isValid:null}))||(s._d=new Date(NaN)),s}function Un(e,s,n,i,r){return p(e)?e:function ko(e,s,n,i,r){const a={};let h=e;return(ge(h)&&function K(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;let s;for(s in e)if(e.hasOwnProperty(s))return!1;return!0}(h)||j(h)&&0===h.length)&&(h=void 0),a._useUTC=a._isUTC=r,a._l=n,a._i=h,a._f=s,a._strict=i,To(a)}(e,s,n,i,r)._d}function Ti(e){return e instanceof Date?new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()):null}function ks(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tn(e,s,n="milliseconds"){return!(!e||!s)&&("milliseconds"===n?e.valueOf()>s.valueOf():s.valueOf()<Dt(e,n).valueOf())}function rn(e,s,n="milliseconds"){return!(!e||!s)&&("milliseconds"===n?e.valueOf()<s.valueOf():d(e,n).valueOf()<s.valueOf())}function kn(e,s,n="milliseconds"){if(!e||!s)return!1;if("milliseconds"===n)return e.valueOf()===s.valueOf();const i=s.valueOf();return Dt(e,n).valueOf()<=i&&i<=d(e,n).valueOf()}const Eo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,So=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ws(e,s,n={}){const i=function Lo(e,s){if(null==e)return{};if(function qr(e){return e instanceof gi}(e))return{milliseconds:e._milliseconds,day:e._days,month:e._months};if(z(e))return s?{[s]:e}:{milliseconds:e};if(g(e)){let n=Eo.exec(e);if(n){const i="-"===n[1]?-1:1;return{year:0,day:S(n[k])*i,hours:S(n[F])*i,minutes:S(n[X])*i,seconds:S(n[H])*i,milliseconds:S(ks(1e3*S(n[v])))*i}}if(n=So.exec(e),n){const i="-"===n[1]?-1:1;return{year:bn(n[2],i),month:bn(n[3],i),week:bn(n[4],i),day:bn(n[5],i),hours:bn(n[6],i),minutes:bn(n[7],i),seconds:bn(n[8],i)}}}if(ge(e)&&("from"in e||"to"in e)){const n=function Oo(e,s){if(!Y(e)||!Y(s))return{milliseconds:0,months:0};let n;const i=function Nr(e,s,n={}){if(!n._isUTC)return e;const i=Ct(s),r=6e4*(n._offset||0),a=e.valueOf()-i.valueOf()+r;return i.setTime(i.valueOf()+a),i}(s,e,{_offset:e.getTimezoneOffset()});return rn(e,i)?n=Mi(e,i):(n=Mi(i,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}(Un(e.from),Un(e.to));return{milliseconds:n.milliseconds,month:n.months}}return e}(e,s);return new gi(i,n)}function bn(e,s){const n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*s}function Mi(e,s){const n={milliseconds:0,months:0};return n.months=Ze(s)-Ze(e)+12*(we(s)-we(e)),tn(on(Ct(e),n.months,"month"),s)&&--n.months,n.milliseconds=+s-+on(Ct(e),n.months,"month"),n}function on(e,s,n,i){return Ci(e,ws(s,n),1,i)}function Ci(e,s,n,i){const r=s._milliseconds,a=ks(s._days),h=ks(s._months);return h&&I(e,Ze(e,i)+h*n,i),a&&Ft(e,Pt(e,i)+a*n,i),r&&function Vt(e,s){e.setTime(s)}(e,function lt(e){return e.getTime()}(e)+r*n),Ct(e)}function Gn(e,s,n=Lt(),i){const r=kt(e,i),a=function Io(e,s){if(!g(e))return e;const n=parseInt(e,10);if(!isNaN(n))return n;const i=s.weekdaysParse(e);return z(i)?i:null}(s,n);return on(e,a-r,"day")}function Es(e,s=Lt(),n){return(kt(e,n)+7-s.firstDayOfWeek())%7}const wi=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},Vo={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},$t=function(e){return function(s,n){const i=wi(s);let r=Vo[e][wi(s)];return 2===i&&(r=r[n?0:1]),r.replace(/%d/i,s.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),$t("s"),$t("s"),$t("m"),$t("m"),$t("h"),$t("h"),$t("d"),$t("d"),$t("M"),$t("M"),$t("y"),$t("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const Ls="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),Os="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(e,s){let n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+e[n]+"$|^"+s[n]+"$","i")})(Ls,Os),function(e){let s,n=[];for(s=0;s<12;s++)n[s]=new RegExp("^"+e[s]+"$","i")}(Os),function(e){let s,n=[];for(s=0;s<12;s++)n[s]=new RegExp("^"+e[s]+"$","i")}(Ls),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const Wi={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:e=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e,meridiem:(e,s,n)=>e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(e,s){const n=Wi.longDateFormat[s]?Wi.longDateFormat[s]:s;return-1!==n.indexOf("YYYY",n.length-4)?e.substr(0,e.length-4)+(parseInt(e.substr(e.length-4),10)-543):e},getFullYear:(e,s=!1)=>543+(s?e.getUTCFullYear():e.getFullYear())};function xn(e){return function(s){return e+"\u043e"+(11===Ee(s)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),xn("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),xn("[\u0417\u0430\u0432\u0442\u0440\u0430 "),xn("[\u0412\u0447\u043e\u0440\u0430 "),xn("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");var Pn=l(1946),$n=l(9417),In=l(4412),oa=l(6780),la=l(3604);const da=new class ca extends la.q{}(class aa extends oa.R{constructor(s,n){super(s,n),this.scheduler=s,this.work=n}schedule(s,n=0){return n>0?super.schedule(s,n):(this.delay=n,this.state=s,this.scheduler.flush(this),this)}execute(s,n){return n>0||this.closed?super.execute(s,n):this._execute(s,n)}requestAsyncId(s,n,i=0){return null!=i&&i>0||null==i&&this.delay>0?super.requestAsyncId(s,n,i):(s.flush(this),0)}});var $i=l(1985),ua=l(941),_a=l(2816);class Xi extends In.t{constructor(s,n,i){super(s),n.pipe((0,ua.Q)(da)).pipe((0,_a.S)((h,W)=>W?i(h,W):h,s)).subscribe(h=>this.next(h))}}class rs extends $i.c{constructor(s,n,i){super(),this._dispatcher=s,this._reducer=n,this.source=i}select(s){return(this.source?.pipe((0,M.T)(s))||(new $i.c).pipe((0,M.T)(s))).pipe((0,E.F)())}lift(s){const n=new rs(this._dispatcher,this._reducer,this);return n.operator=s,n}dispatch(s){this._dispatcher.next(s)}next(s){this._dispatcher.next(s)}error(s){this._dispatcher.error(s)}complete(){}}var Tt=l(177);function ha(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0\xa0\xa0"),t.k0s())}function ma(e,s){if(1&e){const n=t.RV6();t.j41(0,"td")(1,"a",1),t.bIt("click",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.changeMinutes(r.minuteStep))}),t.nrm(2,"span",2),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(),t.AVh("disabled",!n.canIncrementMinutes||!n.isEditable)}}function pa(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0"),t.k0s())}function fa(e,s){if(1&e){const n=t.RV6();t.j41(0,"td")(1,"a",1),t.bIt("click",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.changeSeconds(r.secondsStep))}),t.nrm(2,"span",2),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(),t.AVh("disabled",!n.canIncrementSeconds||!n.isEditable)}}function ga(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0\xa0\xa0"),t.k0s())}function ba(e,s){1&e&&t.nrm(0,"td")}function va(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0:\xa0"),t.k0s())}function ya(e,s){if(1&e){const n=t.RV6();t.j41(0,"td",4)(1,"input",5),t.bIt("wheel",function(r){t.eBV(n);const a=t.XpG();return a.prevDef(r),t.Njj(a.changeMinutes(a.minuteStep*a.wheelSign(r),"wheel"))})("keydown.ArrowUp",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.changeMinutes(r.minuteStep,"key"))})("keydown.ArrowDown",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.changeMinutes(-r.minuteStep,"key"))})("change",function(r){t.eBV(n);const a=t.XpG();return t.Njj(a.updateMinutes(r.target))}),t.k0s()()}if(2&e){const n=t.XpG();t.AVh("has-error",n.invalidMinutes),t.R7$(),t.AVh("is-invalid",n.invalidMinutes),t.Y8G("placeholder",n.minutesPlaceholder)("readonly",n.readonlyInput)("disabled",n.disabled)("value",n.minutes),t.BMQ("aria-label",n.labelMinutes)}}function Da(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0:\xa0"),t.k0s())}function Ta(e,s){if(1&e){const n=t.RV6();t.j41(0,"td",4)(1,"input",5),t.bIt("wheel",function(r){t.eBV(n);const a=t.XpG();return a.prevDef(r),t.Njj(a.changeSeconds(a.secondsStep*a.wheelSign(r),"wheel"))})("keydown.ArrowUp",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.changeSeconds(r.secondsStep,"key"))})("keydown.ArrowDown",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.changeSeconds(-r.secondsStep,"key"))})("change",function(r){t.eBV(n);const a=t.XpG();return t.Njj(a.updateSeconds(r.target))}),t.k0s()()}if(2&e){const n=t.XpG();t.AVh("has-error",n.invalidSeconds),t.R7$(),t.AVh("is-invalid",n.invalidSeconds),t.Y8G("placeholder",n.secondsPlaceholder)("readonly",n.readonlyInput)("disabled",n.disabled)("value",n.seconds),t.BMQ("aria-label",n.labelSeconds)}}function Ma(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0\xa0\xa0"),t.k0s())}function Ca(e,s){if(1&e){const n=t.RV6();t.j41(0,"td")(1,"button",8),t.bIt("click",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.toggleMeridian())}),t.EFF(2),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(),t.AVh("disabled",!n.isEditable||!n.canToggleMeridian),t.Y8G("disabled",!n.isEditable||!n.canToggleMeridian),t.R7$(),t.SpI("",n.meridian," ")}}function ka(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0\xa0\xa0"),t.k0s())}function wa(e,s){if(1&e){const n=t.RV6();t.j41(0,"td")(1,"a",1),t.bIt("click",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.changeMinutes(-r.minuteStep))}),t.nrm(2,"span",7),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(),t.AVh("disabled",!n.canDecrementMinutes||!n.isEditable)}}function Ea(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0"),t.k0s())}function Sa(e,s){if(1&e){const n=t.RV6();t.j41(0,"td")(1,"a",1),t.bIt("click",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.changeSeconds(-r.secondsStep))}),t.nrm(2,"span",7),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(),t.AVh("disabled",!n.canDecrementSeconds||!n.isEditable)}}function La(e,s){1&e&&(t.j41(0,"td"),t.EFF(1,"\xa0\xa0\xa0"),t.k0s())}function Oa(e,s){1&e&&t.nrm(0,"td")}let dn=(()=>{class e{static#e=this.WRITE_VALUE="[timepicker] write value from ng model";static#t=this.CHANGE_HOURS="[timepicker] change hours";static#n=this.CHANGE_MINUTES="[timepicker] change minutes";static#s=this.CHANGE_SECONDS="[timepicker] change seconds";static#i=this.SET_TIME_UNIT="[timepicker] set time unit";static#r=this.UPDATE_CONTROLS="[timepicker] update controls";writeValue(n){return{type:e.WRITE_VALUE,payload:n}}changeHours(n){return{type:e.CHANGE_HOURS,payload:n}}changeMinutes(n){return{type:e.CHANGE_MINUTES,payload:n}}changeSeconds(n){return{type:e.CHANGE_SECONDS,payload:n}}setTime(n){return{type:e.SET_TIME_UNIT,payload:n}}updateControls(n){return{type:e.UPDATE_CONTROLS,payload:n}}static#o=this.\u0275fac=function(i){return new(i||e)};static#a=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const xa=10,Pa=24,zi=12,Ia=60,Ya=60;function Hs(e){return!(!e||e instanceof Date&&isNaN(e.getHours()))&&("string"!=typeof e||Hs(new Date(e)))}function js(e,s){return!(e.min&&s<e.min||e.max&&s>e.max)}function Tn(e){return typeof e>"u"?NaN:"number"==typeof e?e:parseInt(e,xa)}function Ki(e,s=!1){const n=Tn(e);return isNaN(n)||n<0||n>(s?zi:Pa)?NaN:n}function Zi(e){const s=Tn(e);return isNaN(s)||s<0||s>Ia?NaN:s}function Ji(e){const s=Tn(e);return isNaN(s)||s<0||s>Ya?NaN:s}function Qi(e){return"string"==typeof e?new Date(e):e}function qt(e,s){if(!e)return qt(os(new Date,0,0,0),s);if(!s)return e;let n=e.getHours(),i=e.getMinutes(),r=e.getSeconds();return s.hour&&(n+=Tn(s.hour)),s.minute&&(i+=Tn(s.minute)),s.seconds&&(r+=Tn(s.seconds)),os(e,n,i,r)}function qi(e,s){let n=Ki(s.hour);const i=Zi(s.minute),r=Ji(s.seconds)||0;return s.isPM&&12!==n&&(n+=zi),e?isNaN(n)||isNaN(i)?e:os(e,n,i,r):isNaN(n)||isNaN(i)?e:os(new Date,n,i,r)}function os(e,s,n,i){const r=new Date(e.getFullYear(),e.getMonth(),e.getDate(),s,n,i,e.getMilliseconds());return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}function Ns(e){const s=e.toString();return s.length>1?s:`0${s}`}function er(e,s){return!isNaN(Ki(e,s))}function tr(e){return!isNaN(Zi(e))}function nr(e){return!isNaN(Ji(e))}function sr(e,s="0",n="0",i){return er(e,i)&&tr(s)&&nr(n)}function as(e,s){return!(e.readonlyInput||e.disabled||s&&("wheel"===s.source&&!e.mousewheel||"key"===s.source&&!e.arrowkeys))}function ir(e){const{hourStep:s,minuteStep:n,secondsStep:i,readonlyInput:r,disabled:a,mousewheel:h,arrowkeys:W,showSpinners:me,showMeridian:it,showSeconds:bt,meridians:At,min:Bt,max:si}=e;return{hourStep:s,minuteStep:n,secondsStep:i,readonlyInput:r,disabled:a,mousewheel:h,arrowkeys:W,showSpinners:me,showMeridian:it,showSeconds:bt,meridians:At,min:Bt,max:si}}let rr=(()=>{class e{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const or={value:void 0,config:new rr,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function ar(e=or,s){switch(s.type){case dn.WRITE_VALUE:return Object.assign({},e,{value:s.payload});case dn.CHANGE_HOURS:{if(!as(e.config,s.payload)||!function Ba(e,s){return!(!e.step||e.step>0&&!s.canIncrementHours||e.step<0&&!s.canDecrementHours)}(s.payload,e.controls))return e;const n=qt(e.value,{hour:s.payload.step});return!e.config.max&&!e.config.min||js(e.config,n)?Object.assign({},e,{value:n}):e}case dn.CHANGE_MINUTES:{if(!as(e.config,s.payload)||!function Fa(e,s){return!(!e.step||e.step>0&&!s.canIncrementMinutes||e.step<0&&!s.canDecrementMinutes)}(s.payload,e.controls))return e;const n=qt(e.value,{minute:s.payload.step});return!e.config.max&&!e.config.min||js(e.config,n)?Object.assign({},e,{value:n}):e}case dn.CHANGE_SECONDS:{if(!as(e.config,s.payload)||!function Va(e,s){return!(!e.step||e.step>0&&!s.canIncrementSeconds||e.step<0&&!s.canDecrementSeconds)}(s.payload,e.controls))return e;const n=qt(e.value,{seconds:s.payload.step});return!e.config.max&&!e.config.min||js(e.config,n)?Object.assign({},e,{value:n}):e}case dn.SET_TIME_UNIT:{if(!as(e.config))return e;const n=qi(e.value,s.payload);return Object.assign({},e,{value:n})}case dn.UPDATE_CONTROLS:{const n=function Ha(e,s){const{min:r,max:a,hourStep:h,minuteStep:W,secondsStep:me,showSeconds:it}=s,bt={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!e)return bt;if(a){const At=qt(e,{hour:h});if(bt.canIncrementHours=a>At&&e.getHours()+h<24,!bt.canIncrementHours){const Bt=qt(e,{minute:W});bt.canIncrementMinutes=it?a>Bt:a>=Bt}if(!bt.canIncrementMinutes){const Bt=qt(e,{seconds:me});bt.canIncrementSeconds=a>=Bt}e.getHours()<12&&(bt.canToggleMeridian=qt(e,{hour:12})<a)}if(r){const At=qt(e,{hour:-h});if(bt.canDecrementHours=r<At,!bt.canDecrementHours){const Bt=qt(e,{minute:-W});bt.canDecrementMinutes=it?r<Bt:r<=Bt}if(!bt.canDecrementMinutes){const Bt=qt(e,{seconds:-me});bt.canDecrementSeconds=r<=Bt}e.getHours()>=12&&(bt.canToggleMeridian=qt(e,{hour:-12})>r)}return bt}(e.value,s.payload),i={value:e.value,config:s.payload,controls:n};return e.config.showMeridian!==i.config.showMeridian&&e.value&&(i.value=new Date(e.value)),Object.assign({},e,i)}default:return e}}let ls=(()=>{class e extends rs{constructor(){const n=new In.t({type:"[mini-ngrx] dispatcher init"});super(n,ar,new Xi(or,n,ar))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const ja={provide:$n.kq,useExisting:(0,t.Rfq)(()=>Us),multi:!0};let Us=(()=>{class e{constructor(n,i,r,a){this._cd=i,this._store=r,this._timepickerActions=a,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new t.bkB,this.meridianChange=new t.bkB,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=n,Object.assign(this,this.config),this.timepickerSub=r.select(h=>h.value).subscribe(h=>{this._renderTime(h),this.onChange(h),this._store.dispatch(this._timepickerActions.updateControls(ir(this)))}),r.select(h=>h.controls).subscribe(h=>{const W=sr(this.hours,this.minutes,this.seconds,this.isPM()),me=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||W;this.isValid.emit(me),Object.assign(this,h),i.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(n){n.preventDefault()}wheelSign(n){return-1*Math.sign(n.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(ir(this)))}changeHours(n,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:n,source:i}))}changeMinutes(n,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:n,source:i}))}changeSeconds(n,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:n,source:i}))}updateHours(n){this.resetValidation(),this.hours=n.value;const i=er(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(n){this.resetValidation(),this.minutes=n.value;const i=tr(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(n){this.resetValidation(),this.seconds=n.value;const i=nr(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function Ra(e,s,n){const i=qi(new Date,e);return!(!i||s&&i>s||n&&i<n)}({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()},this.max,this.min)}isOneOfDatesIsEmpty(){return function Aa(e,s,n){return 0===e.length||0===s.length||0===n.length}(this.hours,this.minutes,this.seconds)}_updateTime(){const r=sr(this.hours,this.showMinutes?this.minutes:void 0,this.showSeconds?this.seconds:void 0,this.isPM());if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||r))return this.isValid.emit(!1),void this.onChange(null);this._store.dispatch(this._timepickerActions.setTime({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()}))}toggleMeridian(){this.showMeridian&&this.isEditable&&this._store.dispatch(this._timepickerActions.changeHours({step:12,source:""}))}writeValue(n){Hs(n)?(this.resetValidation(),this._store.dispatch(this._timepickerActions.writeValue(Qi(n)))):null==n&&this._store.dispatch(this._timepickerActions.writeValue())}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n,this._cd.markForCheck()}ngOnDestroy(){this.timepickerSub?.unsubscribe()}_renderTime(n){if(!n||!Hs(n))return this.hours="",this.minutes="",this.seconds="",this.meridian=this.meridians[0],void this.meridianChange.emit(this.meridian);const i=Qi(n);if(!i)return;let a=i.getHours();this.showMeridian&&(this.meridian=this.meridians[a>=12?1:0],this.meridianChange.emit(this.meridian),a%=12,0===a&&(a=12)),this.hours=Ns(a),this.minutes=Ns(i.getMinutes()),this.seconds=Ns(i.getUTCSeconds())}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(rr),t.rXU(t.gRc),t.rXU(ls),t.rXU(dn))};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[t.Jv_([ja,ls]),t.OA$],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"wheel","keydown.ArrowUp","keydown.ArrowDown","change","placeholder","readonly","disabled","value"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"click","disabled"]],template:function(i,r){1&i&&(t.j41(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),t.bIt("click",function(){return r.changeHours(r.hourStep)}),t.nrm(5,"span",2),t.k0s()(),t.DNE(6,ha,2,0,"td",3)(7,ma,3,2,"td",3)(8,pa,2,0,"td",3)(9,fa,3,2,"td",3)(10,ga,2,0,"td",3)(11,ba,1,0,"td",3),t.k0s(),t.j41(12,"tr")(13,"td",4)(14,"input",5),t.bIt("wheel",function(h){return r.prevDef(h),r.changeHours(r.hourStep*r.wheelSign(h),"wheel")})("keydown.ArrowUp",function(){return r.changeHours(r.hourStep,"key")})("keydown.ArrowDown",function(){return r.changeHours(-r.hourStep,"key")})("change",function(h){return r.updateHours(h.target)}),t.k0s()(),t.DNE(15,va,2,0,"td",3)(16,ya,2,9,"td",6)(17,Da,2,0,"td",3)(18,Ta,2,9,"td",6)(19,Ma,2,0,"td",3)(20,Ca,3,4,"td",3),t.k0s(),t.j41(21,"tr",0)(22,"td")(23,"a",1),t.bIt("click",function(){return r.changeHours(-r.hourStep)}),t.nrm(24,"span",7),t.k0s()(),t.DNE(25,ka,2,0,"td",3)(26,wa,3,2,"td",3)(27,Ea,2,0,"td",3)(28,Sa,3,2,"td",3)(29,La,2,0,"td",3)(30,Oa,1,0,"td",3),t.k0s()()()),2&i&&(t.R7$(2),t.Y8G("hidden",!r.showSpinners),t.R7$(2),t.AVh("disabled",!r.canIncrementHours||!r.isEditable),t.R7$(2),t.Y8G("ngIf",r.showMinutes),t.R7$(),t.Y8G("ngIf",r.showMinutes),t.R7$(),t.Y8G("ngIf",r.showSeconds),t.R7$(),t.Y8G("ngIf",r.showSeconds),t.R7$(),t.Y8G("ngIf",r.showMeridian),t.R7$(),t.Y8G("ngIf",r.showMeridian),t.R7$(2),t.AVh("has-error",r.invalidHours),t.R7$(),t.AVh("is-invalid",r.invalidHours),t.Y8G("placeholder",r.hoursPlaceholder)("readonly",r.readonlyInput)("disabled",r.disabled)("value",r.hours),t.BMQ("aria-label",r.labelHours),t.R7$(),t.Y8G("ngIf",r.showMinutes),t.R7$(),t.Y8G("ngIf",r.showMinutes),t.R7$(),t.Y8G("ngIf",r.showSeconds),t.R7$(),t.Y8G("ngIf",r.showSeconds),t.R7$(),t.Y8G("ngIf",r.showMeridian),t.R7$(),t.Y8G("ngIf",r.showMeridian),t.R7$(),t.Y8G("hidden",!r.showSpinners),t.R7$(2),t.AVh("disabled",!r.canDecrementHours||!r.isEditable),t.R7$(2),t.Y8G("ngIf",r.showMinutes),t.R7$(),t.Y8G("ngIf",r.showMinutes),t.R7$(),t.Y8G("ngIf",r.showSeconds),t.R7$(),t.Y8G("ngIf",r.showSeconds),t.R7$(),t.Y8G("ngIf",r.showMeridian),t.R7$(),t.Y8G("ngIf",r.showMeridian))},dependencies:[Tt.bT],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{-webkit-transform:rotate(45deg);transform:rotate(45deg);top:2px}.bs-chevron-down{-webkit-transform:rotate(-135deg);transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}return e})(),Na=(()=>{class e{static forRoot(){return{ngModule:e,providers:[dn,ls]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({providers:[ls],imports:[Tt.MD]})}return e})();var Nt=l(9969),cs=l(8359),Ua=l(4572),Xn=l(1413),Rt=l(425),lr=l(5215),zn=l(6932),Ga=l(1584);const Wa=["*"];let Gs=(()=>{class e{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$a=(()=>{class e{get _bsVersions(){return(0,Rt.Bu)()}constructor(n){Object.assign(this,n)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=Pn.Rz[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(Gs))};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(i,r){2&i&&(t.BMQ("id",r.id),t.HbH("show tooltip in tooltip-"+r.placement+" bs-tooltip-"+r.placement+" "+r.placement+" "+r.containerClass))},ngContentSelectors:Wa,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(i,r){1&i&&(t.NAR(),t.nrm(0,"div",0),t.j41(1,"div",1),t.SdG(2),t.k0s())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}return e})(),Xa=0,za=(()=>{class e{get isOpen(){return this._tooltip.isShown}set isOpen(n){n?this.show():this.hide()}set htmlContent(n){(0,Rt.mc)("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=n}set _placement(n){(0,Rt.mc)("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=n}set _isOpen(n){(0,Rt.mc)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=n}get _isOpen(){return(0,Rt.mc)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(n){(0,Rt.mc)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!n}get _enable(){return(0,Rt.mc)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(n){(0,Rt.mc)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=n?"body":this.container}get _appendToBody(){return(0,Rt.mc)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(n){(0,Rt.mc)("tooltipClass deprecated")}set _tooltipContext(n){(0,Rt.mc)("tooltipContext deprecated")}set _tooltipPopupDelay(n){(0,Rt.mc)("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=n}get _tooltipTrigger(){return(0,Rt.mc)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(n){(0,Rt.mc)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(n||"").toString()}constructor(n,i,r,a,h,W){this._elementRef=a,this._renderer=h,this._positionService=W,this.tooltipId=Xa++,this.adaptivePosition=!0,this.tooltipChange=new t.bkB,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new t.bkB,this._tooltip=i.createLoader(this._elementRef,n,this._renderer).provide({provide:Gs,useValue:r}),Object.assign(this,r),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(n=>{n||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const n=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach($a).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},i=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,Ga.O)(this.delay).subscribe(()=>{n(),i()}),this.triggers&&(0,Rt.Zu)(this.triggers).forEach(r=>{r.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,r.close,()=>{this._delaySubscription?.unsubscribe(),i()}))})):n()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.c1b),t.rXU(zn.Li),t.rXU(Gs),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(Pn.DF))};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:[0,"tooltipHtml","htmlContent"],_placement:[0,"tooltipPlacement","_placement"],_isOpen:[0,"tooltipIsOpen","_isOpen"],_enable:[0,"tooltipEnable","_enable"],_appendToBody:[0,"tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:[0,"tooltipClass","_popupClass"],_tooltipContext:[0,"tooltipContext","_tooltipContext"],_tooltipPopupDelay:[0,"tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:[0,"tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}return(0,lr.Cg)([(0,Rt.Yr)(),(0,lr.Sn)("design:type",Object)],e.prototype,"tooltip",void 0),e})(),Ka=(()=>{class e{static forRoot(){return{ngModule:e,providers:[zn.Li,Pn.DF]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[Tt.MD]})}return e})();function Za(e,s){if(1&e){const n=t.RV6();t.j41(0,"button",2),t.bIt("click",function(){const r=t.eBV(n).$implicit,a=t.XpG();return t.Njj(a.selectFromRanges(r))}),t.EFF(1),t.k0s()}if(2&e){const n=s.$implicit,i=t.XpG();t.AVh("selected",n.value===i.selectedRange),t.R7$(),t.SpI(" ",n.label," ")}}const Ja=[[["bs-datepicker-navigation-view"]],"*"],Qa=["bs-datepicker-navigation-view","*"];function qa(e,s){1&e&&t.nrm(0,"bs-current-date",4)}function el(e,s){1&e&&t.nrm(0,"bs-timepicker")}const tl=["bsDatepickerDayDecorator",""];function nl(e,s){if(1&e){const n=t.RV6();t.qex(0),t.EFF(1," \u200b "),t.j41(2,"button",2),t.bIt("click",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.view("month"))}),t.j41(3,"span"),t.EFF(4),t.k0s()(),t.bVm()}if(2&e){const n=t.XpG();t.R7$(2),t.Y8G("disabled",n.isDisabled),t.R7$(2),t.JRh(n.calendar.monthTitle)}}function sl(e,s){1&e&&t.nrm(0,"th")}function il(e,s){if(1&e&&(t.j41(0,"th",5),t.EFF(1),t.k0s()),2&e){const n=s.index,i=t.XpG();t.R7$(),t.SpI("",i.calendar.weekdays[n]," ")}}function rl(e,s){if(1&e){const n=t.RV6();t.j41(0,"span",11),t.bIt("click",function(){t.eBV(n);const r=t.XpG(2).$implicit,a=t.XpG();return t.Njj(a.selectWeek(r))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG(2).index,i=t.XpG();t.R7$(),t.JRh(i.calendar.weekNumbers[n])}}function ol(e,s){if(1&e){const n=t.RV6();t.j41(0,"span",12),t.bIt("click",function(){t.eBV(n);const r=t.XpG(2).$implicit,a=t.XpG();return t.Njj(a.selectWeek(r))})("mouseenter",function(){t.eBV(n);const r=t.XpG(2).$implicit,a=t.XpG();return t.Njj(a.weekHoverHandler(r,!0))})("mouseleave",function(){t.eBV(n);const r=t.XpG(2).$implicit,a=t.XpG();return t.Njj(a.weekHoverHandler(r,!1))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG(2).index,i=t.XpG();t.R7$(),t.JRh(i.calendar.weekNumbers[n])}}function al(e,s){if(1&e&&(t.j41(0,"td",8),t.DNE(1,rl,2,1,"span",9)(2,ol,2,1,"span",10),t.k0s()),2&e){const n=t.XpG(2);t.AVh("active-week",n.isWeekHovered),t.R7$(),t.Y8G("ngIf",n.isiOS),t.R7$(),t.Y8G("ngIf",!n.isiOS)}}function ll(e,s){if(1&e){const n=t.RV6();t.j41(0,"span",17),t.bIt("click",function(){t.eBV(n);const r=t.XpG().$implicit,a=t.XpG(2);return t.Njj(a.selectDay(r))})("mouseenter",function(){t.eBV(n);const r=t.XpG().$implicit,a=t.XpG(2);return t.Njj(a.hoverDay(r,!0))})("mouseleave",function(){t.eBV(n);const r=t.XpG().$implicit,a=t.XpG(2);return t.Njj(a.hoverDay(r,!1))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG().$implicit;t.FS9("tooltip",n.tooltipText),t.Y8G("day",n),t.R7$(),t.SpI("",n.label," 3")}}function cl(e,s){if(1&e){const n=t.RV6();t.j41(0,"span",18),t.bIt("click",function(){t.eBV(n);const r=t.XpG().$implicit,a=t.XpG(2);return t.Njj(a.selectDay(r))})("mouseenter",function(){t.eBV(n);const r=t.XpG().$implicit,a=t.XpG(2);return t.Njj(a.hoverDay(r,!0))})("mouseleave",function(){t.eBV(n);const r=t.XpG().$implicit,a=t.XpG(2);return t.Njj(a.hoverDay(r,!1))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG().$implicit;t.Y8G("day",n),t.R7$(),t.SpI("",n.label," 2")}}function dl(e,s){if(1&e){const n=t.RV6();t.j41(0,"span",19),t.bIt("click",function(){t.eBV(n);const r=t.XpG().$implicit,a=t.XpG(2);return t.Njj(a.selectDay(r))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG().$implicit;t.Y8G("day",n),t.R7$(),t.SpI("",n.label," 1")}}function ul(e,s){if(1&e&&(t.j41(0,"td",13),t.DNE(1,ll,2,3,"span",14)(2,cl,2,2,"span",15)(3,dl,2,2,"span",16),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",!n.isiOS&&n.isShowTooltip),t.R7$(),t.Y8G("ngIf",!n.isiOS&&!n.isShowTooltip),t.R7$(),t.Y8G("ngIf",n.isiOS)}}function _l(e,s){if(1&e&&(t.j41(0,"tr"),t.DNE(1,al,3,4,"td",6)(2,ul,4,3,"td",7),t.k0s()),2&e){const n=s.$implicit,i=t.XpG();t.R7$(),t.Y8G("ngIf",i.options&&i.options.showWeekNumbers),t.R7$(),t.Y8G("ngForOf",n.days)}}function hl(e,s){if(1&e){const n=t.RV6();t.j41(0,"td",4),t.bIt("click",function(){const r=t.eBV(n).$implicit,a=t.XpG(2);return t.Njj(a.viewMonth(r))})("mouseenter",function(){const r=t.eBV(n).$implicit,a=t.XpG(2);return t.Njj(a.hoverMonth(r,!0))})("mouseleave",function(){const r=t.eBV(n).$implicit,a=t.XpG(2);return t.Njj(a.hoverMonth(r,!1))}),t.j41(1,"span"),t.EFF(2),t.k0s()()}if(2&e){const n=s.$implicit;t.AVh("disabled",n.isDisabled)("is-highlighted",n.isHovered),t.R7$(),t.AVh("selected",n.isSelected),t.R7$(),t.JRh(n.label)}}function ml(e,s){if(1&e&&(t.j41(0,"tr"),t.DNE(1,hl,3,7,"td",3),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngForOf",n)}}function pl(e,s){if(1&e){const n=t.RV6();t.j41(0,"td",4),t.bIt("click",function(){const r=t.eBV(n).$implicit,a=t.XpG(2);return t.Njj(a.viewYear(r))})("mouseenter",function(){const r=t.eBV(n).$implicit,a=t.XpG(2);return t.Njj(a.hoverYear(r,!0))})("mouseleave",function(){const r=t.eBV(n).$implicit,a=t.XpG(2);return t.Njj(a.hoverYear(r,!1))}),t.j41(1,"span"),t.EFF(2),t.k0s()()}if(2&e){const n=s.$implicit;t.AVh("disabled",n.isDisabled)("is-highlighted",n.isHovered),t.R7$(),t.AVh("selected",n.isSelected),t.R7$(),t.JRh(n.label)}}function fl(e,s){if(1&e&&(t.j41(0,"tr"),t.DNE(1,pl,3,7,"td",3),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngForOf",n)}}const cr=["startTP"];function gl(e,s){if(1&e){const n=t.RV6();t.j41(0,"bs-days-calendar-view",13),t.nI1(1,"async"),t.bIt("onNavigate",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.navigateTo(r))})("onViewMode",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.setViewMode(r))})("onHover",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.dayHoverHandler(r))})("onHoverWeek",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.weekHoverHandler(r))})("onSelect",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.daySelectHandler(r))}),t.k0s()}if(2&e){const n=s.$implicit,i=t.XpG(3);t.AVh("bs-datepicker-multiple",i.multipleCalendars),t.Y8G("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",t.bMT(1,5,i.options$))}}function bl(e,s){if(1&e&&t.nrm(0,"timepicker",15,1),2&e){const n=t.XpG(4);t.Y8G("disabled",n.isDatePickerDisabled)}}function vl(e,s){if(1&e&&(t.j41(0,"div",14),t.nrm(1,"timepicker",15,0),t.DNE(3,bl,2,1,"timepicker",16),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("disabled",n.isDatePickerDisabled),t.R7$(2),t.Y8G("ngIf",n.isRangePicker)}}function yl(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",10),t.DNE(2,gl,2,7,"bs-days-calendar-view",11),t.nI1(3,"async"),t.k0s(),t.DNE(4,vl,4,2,"div",12),t.bVm()),2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",t.bMT(3,2,n.daysCalendar$)),t.R7$(2),t.Y8G("ngIf",n.withTimepicker)}}function Dl(e,s){if(1&e){const n=t.RV6();t.j41(0,"bs-month-calendar-view",18),t.bIt("onNavigate",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.navigateTo(r))})("onViewMode",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.setViewMode(r))})("onHover",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.monthHoverHandler(r))})("onSelect",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.monthSelectHandler(r))}),t.k0s()}if(2&e){const n=s.$implicit,i=t.XpG(3);t.AVh("bs-datepicker-multiple",i.multipleCalendars),t.Y8G("calendar",n)}}function Tl(e,s){if(1&e&&(t.j41(0,"div",10),t.DNE(1,Dl,1,3,"bs-month-calendar-view",17),t.nI1(2,"async"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,n.monthsCalendar))}}function Ml(e,s){if(1&e){const n=t.RV6();t.j41(0,"bs-years-calendar-view",18),t.bIt("onNavigate",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.navigateTo(r))})("onViewMode",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.setViewMode(r))})("onHover",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.yearHoverHandler(r))})("onSelect",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.yearSelectHandler(r))}),t.k0s()}if(2&e){const n=s.$implicit,i=t.XpG(3);t.AVh("bs-datepicker-multiple",i.multipleCalendars),t.Y8G("calendar",n)}}function Cl(e,s){if(1&e&&(t.j41(0,"div",10),t.DNE(1,Ml,1,3,"bs-years-calendar-view",17),t.nI1(2,"async"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,n.yearsCalendar))}}function kl(e,s){1&e&&(t.j41(0,"div",19)(1,"button",20),t.EFF(2,"Apply"),t.k0s(),t.j41(3,"button",21),t.EFF(4,"Cancel"),t.k0s()())}function wl(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",24)(1,"button",25),t.bIt("click",function(){t.eBV(n);const r=t.XpG(3);return t.Njj(r.setToday())}),t.EFF(2),t.k0s()()}if(2&e){const n=t.XpG(3);t.AVh("today-left","left"===n.todayPos)("today-right","right"===n.todayPos)("today-center","center"===n.todayPos),t.R7$(2),t.JRh(n.todayBtnLbl)}}function El(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",26)(1,"button",25),t.bIt("click",function(){t.eBV(n);const r=t.XpG(3);return t.Njj(r.clearDate())}),t.EFF(2),t.k0s()()}if(2&e){const n=t.XpG(3);t.AVh("clear-left","left"===n.clearPos)("clear-right","right"===n.clearPos)("clear-center","center"===n.clearPos),t.R7$(2),t.JRh(n.clearBtnLbl)}}function Sl(e,s){if(1&e&&(t.j41(0,"div",19),t.DNE(1,wl,3,7,"div",22)(2,El,3,7,"div",23),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.showTodayBtn),t.R7$(),t.Y8G("ngIf",n.showClearBtn)}}function Ll(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",27)(1,"bs-custom-date-view",28),t.bIt("onSelect",function(r){t.eBV(n);const a=t.XpG(2);return t.Njj(a.setRangeOnCalendar(r))}),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(),t.Y8G("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function Ol(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",3)(1,"div",4),t.bIt("@datepickerAnimation.done",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.positionServiceEnable())}),t.j41(2,"div",5),t.nI1(3,"async"),t.DNE(4,yl,5,4,"ng-container",6)(5,Tl,3,3,"div",7)(6,Cl,3,3,"div",7),t.k0s(),t.DNE(7,kl,5,0,"div",8)(8,Sl,3,2,"div",8),t.k0s(),t.DNE(9,Ll,2,3,"div",9),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("ngClass",n.containerClass),t.R7$(),t.Y8G("@datepickerAnimation",n.animationState),t.R7$(),t.Y8G("ngSwitch",t.bMT(3,9,n.viewMode)),t.R7$(2),t.Y8G("ngSwitchCase","day"),t.R7$(),t.Y8G("ngSwitchCase","month"),t.R7$(),t.Y8G("ngSwitchCase","year"),t.R7$(),t.Y8G("ngIf",!1),t.R7$(),t.Y8G("ngIf",n.showTodayBtn||n.showClearBtn),t.R7$(),t.Y8G("ngIf",n.customRanges&&n.customRanges.length>0)}}const Gl=["endTP"];function Wl(e,s){if(1&e){const n=t.RV6();t.j41(0,"bs-days-calendar-view",13),t.nI1(1,"async"),t.bIt("onNavigate",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.navigateTo(r))})("onViewMode",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.setViewMode(r))})("onHover",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.dayHoverHandler(r))})("onHoverWeek",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.weekHoverHandler(r))})("onSelect",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.daySelectHandler(r))}),t.k0s()}if(2&e){const n=s.$implicit,i=t.XpG(3);t.AVh("bs-datepicker-multiple",i.multipleCalendars),t.Y8G("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",t.bMT(1,5,i.options$))}}function $l(e,s){if(1&e&&t.nrm(0,"timepicker",15,1),2&e){const n=t.XpG(4);t.Y8G("disabled",n.isDatePickerDisabled)}}function Xl(e,s){if(1&e&&(t.j41(0,"div",14),t.nrm(1,"timepicker",15,0),t.DNE(3,$l,2,1,"timepicker",16),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("disabled",n.isDatePickerDisabled),t.R7$(2),t.Y8G("ngIf",n.isRangePicker)}}function zl(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",10),t.DNE(2,Wl,2,7,"bs-days-calendar-view",11),t.nI1(3,"async"),t.k0s(),t.DNE(4,Xl,4,2,"div",12),t.bVm()),2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",t.bMT(3,2,n.daysCalendar$)),t.R7$(2),t.Y8G("ngIf",n.withTimepicker)}}function Kl(e,s){if(1&e){const n=t.RV6();t.j41(0,"bs-month-calendar-view",18),t.bIt("onNavigate",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.navigateTo(r))})("onViewMode",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.setViewMode(r))})("onHover",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.monthHoverHandler(r))})("onSelect",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.monthSelectHandler(r))}),t.k0s()}if(2&e){const n=s.$implicit,i=t.XpG(3);t.AVh("bs-datepicker-multiple",i.multipleCalendars),t.Y8G("calendar",n)}}function Zl(e,s){if(1&e&&(t.j41(0,"div",10),t.DNE(1,Kl,1,3,"bs-month-calendar-view",17),t.nI1(2,"async"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,n.monthsCalendar))}}function Jl(e,s){if(1&e){const n=t.RV6();t.j41(0,"bs-years-calendar-view",18),t.bIt("onNavigate",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.navigateTo(r))})("onViewMode",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.setViewMode(r))})("onHover",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.yearHoverHandler(r))})("onSelect",function(r){t.eBV(n);const a=t.XpG(3);return t.Njj(a.yearSelectHandler(r))}),t.k0s()}if(2&e){const n=s.$implicit,i=t.XpG(3);t.AVh("bs-datepicker-multiple",i.multipleCalendars),t.Y8G("calendar",n)}}function Ql(e,s){if(1&e&&(t.j41(0,"div",10),t.DNE(1,Jl,1,3,"bs-years-calendar-view",17),t.nI1(2,"async"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,n.yearsCalendar))}}function ql(e,s){1&e&&(t.j41(0,"div",19)(1,"button",20),t.EFF(2,"Apply"),t.k0s(),t.j41(3,"button",21),t.EFF(4,"Cancel"),t.k0s()())}function ec(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",24)(1,"button",25),t.bIt("click",function(){t.eBV(n);const r=t.XpG(3);return t.Njj(r.setToday())}),t.EFF(2),t.k0s()()}if(2&e){const n=t.XpG(3);t.AVh("today-left","left"===n.todayPos)("today-right","right"===n.todayPos)("today-center","center"===n.todayPos),t.R7$(2),t.JRh(n.todayBtnLbl)}}function tc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",26)(1,"button",25),t.bIt("click",function(){t.eBV(n);const r=t.XpG(3);return t.Njj(r.clearDate())}),t.EFF(2),t.k0s()()}if(2&e){const n=t.XpG(3);t.AVh("clear-left","left"===n.clearPos)("clear-right","right"===n.clearPos)("clear-center","center"===n.clearPos),t.R7$(2),t.JRh(n.clearBtnLbl)}}function nc(e,s){if(1&e&&(t.j41(0,"div",19),t.DNE(1,ec,3,7,"div",22)(2,tc,3,7,"div",23),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.showTodayBtn),t.R7$(),t.Y8G("ngIf",n.showClearBtn)}}function sc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",27)(1,"bs-custom-date-view",28),t.bIt("onSelect",function(r){t.eBV(n);const a=t.XpG(2);return t.Njj(a.setRangeOnCalendar(r))}),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(),t.Y8G("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function ic(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",3)(1,"div",4),t.bIt("@datepickerAnimation.done",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.positionServiceEnable())}),t.j41(2,"div",5),t.nI1(3,"async"),t.DNE(4,zl,5,4,"ng-container",6)(5,Zl,3,3,"div",7)(6,Ql,3,3,"div",7),t.k0s(),t.DNE(7,ql,5,0,"div",8)(8,nc,3,2,"div",8),t.k0s(),t.DNE(9,sc,2,3,"div",9),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("ngClass",n.containerClass),t.R7$(),t.Y8G("@datepickerAnimation",n.animationState),t.R7$(),t.Y8G("ngSwitch",t.bMT(3,9,n.viewMode)),t.R7$(2),t.Y8G("ngSwitchCase","day"),t.R7$(),t.Y8G("ngSwitchCase","month"),t.R7$(),t.Y8G("ngSwitchCase","year"),t.R7$(),t.Y8G("ngIf",!1),t.R7$(),t.Y8G("ngIf",n.showTodayBtn||n.showClearBtn),t.R7$(),t.Y8G("ngIf",n.customRanges&&n.customRanges.length>0)}}let un=(()=>{class e{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const dr="220ms cubic-bezier(0, 0, 0.2, 1)",ur=(0,Nt.hZ)("datepickerAnimation",[(0,Nt.wk)("animated-down",(0,Nt.iF)({height:"*",overflow:"hidden"})),(0,Nt.kY)("* => animated-down",[(0,Nt.iF)({height:0,overflow:"hidden"}),(0,Nt.i0)(dr)]),(0,Nt.wk)("animated-up",(0,Nt.iF)({height:"*",overflow:"hidden"})),(0,Nt.kY)("* => animated-up",[(0,Nt.iF)({height:"*",overflow:"hidden"}),(0,Nt.i0)(dr)]),(0,Nt.kY)("* => unanimated",(0,Nt.i0)("0s"))]);class _r{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new cs.yU,this.selectedTimeSub=new cs.yU}set minDate(s){this._effects?.setMinDate(s)}set maxDate(s){this._effects?.setMaxDate(s)}set daysDisabled(s){this._effects?.setDaysDisabled(s)}set datesDisabled(s){this._effects?.setDatesDisabled(s)}set datesEnabled(s){this._effects?.setDatesEnabled(s)}set isDisabled(s){this._effects?.setDisabled(s)}set dateCustomClasses(s){this._effects?.setDateCustomClasses(s)}set dateTooltipTexts(s){this._effects?.setDateTooltipTexts(s)}set daysCalendar$(s){this._daysCalendar$=s,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(n=>{this.multipleCalendars=!!n&&n.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(s){}navigateTo(s){}dayHoverHandler(s){}weekHoverHandler(s){}monthHoverHandler(s){}yearHoverHandler(s){}timeSelectHandler(s,n){}daySelectHandler(s){}monthSelectHandler(s){}yearSelectHandler(s){}setRangeOnCalendar(s){}setToday(){}clearDate(){}_stopPropagation(s){s.stopPropagation()}}let St=(()=>{class e{static#e=this.CALCULATE="[datepicker] calculate dates matrix";static#t=this.FORMAT="[datepicker] format datepicker values";static#n=this.FLAG="[datepicker] set flags";static#s=this.SELECT="[datepicker] select date";static#i=this.NAVIGATE_OFFSET="[datepicker] shift view date";static#r=this.NAVIGATE_TO="[datepicker] change view date";static#o=this.SET_OPTIONS="[datepicker] update render options";static#a=this.HOVER="[datepicker] hover date";static#l=this.CHANGE_VIEWMODE="[datepicker] switch view mode";static#c=this.SET_MIN_DATE="[datepicker] set min date";static#d=this.SET_MAX_DATE="[datepicker] set max date";static#u=this.SET_DAYSDISABLED="[datepicker] set days disabled";static#_=this.SET_DATESDISABLED="[datepicker] set dates disabled";static#h=this.SET_DATESENABLED="[datepicker] set dates enabled";static#m=this.SET_IS_DISABLED="[datepicker] set is disabled";static#p=this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes";static#f=this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts";static#g=this.SET_LOCALE="[datepicker] set datepicker locale";static#b=this.SELECT_TIME="[datepicker] select time";static#v=this.SELECT_RANGE="[daterangepicker] select dates range";calculate(){return{type:e.CALCULATE}}format(){return{type:e.FORMAT}}flag(){return{type:e.FLAG}}select(n){return{type:e.SELECT,payload:n}}selectTime(n,i){return{type:e.SELECT_TIME,payload:{date:n,index:i}}}changeViewMode(n){return{type:e.CHANGE_VIEWMODE,payload:n}}navigateTo(n){return{type:e.NAVIGATE_TO,payload:n}}navigateStep(n){return{type:e.NAVIGATE_OFFSET,payload:n}}setOptions(n){return{type:e.SET_OPTIONS,payload:n}}selectRange(n){return{type:e.SELECT_RANGE,payload:n}}hoverDay(n){return{type:e.HOVER,payload:n.isHovered?n.cell.date:null}}minDate(n){return{type:e.SET_MIN_DATE,payload:n}}maxDate(n){return{type:e.SET_MAX_DATE,payload:n}}daysDisabled(n){return{type:e.SET_DAYSDISABLED,payload:n}}datesDisabled(n){return{type:e.SET_DATESDISABLED,payload:n}}datesEnabled(n){return{type:e.SET_DATESENABLED,payload:n}}isDisabled(n){return{type:e.SET_IS_DISABLED,payload:n}}setDateCustomClasses(n){return{type:e.SET_DATE_CUSTOM_CLASSES,payload:n}}setDateTooltipTexts(n){return{type:e.SET_DATE_TOOLTIP_TEXTS,payload:n}}setLocale(n){return{type:e.SET_LOCALE,payload:n}}static#y=this.\u0275fac=function(i){return new(i||e)};static#D=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ds=(()=>{class e{constructor(){this._defaultLocale="en",this._locale=new In.t(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(n){n!==this.currentLocale&&this._locale.next(n)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Kn=(()=>{class e{constructor(n,i){this._actions=n,this._localeService=i,this._subs=[]}init(n){return this._store=n,this}setValue(n){this._store?.dispatch(this._actions.select(n))}setRangeValue(n){this._store?.dispatch(this._actions.selectRange(n))}setMinDate(n){return this._store?.dispatch(this._actions.minDate(n)),this}setMaxDate(n){return this._store?.dispatch(this._actions.maxDate(n)),this}setDaysDisabled(n){return this._store?.dispatch(this._actions.daysDisabled(n)),this}setDatesDisabled(n){return this._store?.dispatch(this._actions.datesDisabled(n)),this}setDatesEnabled(n){return this._store?.dispatch(this._actions.datesEnabled(n)),this}setDisabled(n){return this._store?.dispatch(this._actions.isDisabled(n)),this}setDateCustomClasses(n){return this._store?.dispatch(this._actions.setDateCustomClasses(n)),this}setDateTooltipTexts(n){return this._store?.dispatch(this._actions.setDateTooltipTexts(n)),this}setOptions(n){const i=Object.assign({locale:this._localeService.currentLocale},n);return this._store?.dispatch(this._actions.setOptions(i)),this}setBindings(n){return this._store?(n.selectedTime=this._store.select(i=>i.selectedTime).pipe((0,f.p)(i=>!!i)),n.daysCalendar$=this._store.select(i=>i.flaggedMonths).pipe((0,f.p)(i=>!!i)),n.monthsCalendar=this._store.select(i=>i.flaggedMonthsCalendar).pipe((0,f.p)(i=>!!i)),n.yearsCalendar=this._store.select(i=>i.yearsCalendarFlagged).pipe((0,f.p)(i=>!!i)),n.viewMode=this._store.select(i=>i.view?.mode),n.options$=(0,Ua.z)([this._store.select(i=>i.showWeekNumbers),this._store.select(i=>i.displayMonths)]).pipe((0,M.T)(i=>({showWeekNumbers:i[0],displayMonths:i[1]}))),this):this}setEventHandlers(n){return n.setViewMode=i=>{this._store?.dispatch(this._actions.changeViewMode(i))},n.navigateTo=i=>{this._store?.dispatch(this._actions.navigateStep(i.step))},n.dayHoverHandler=i=>{const r=i.cell;r.isOtherMonth||r.isDisabled||(this._store?.dispatch(this._actions.hoverDay(i)),r.isHovered=i.isHovered)},n.monthHoverHandler=i=>{i.cell.isHovered=i.isHovered},n.yearHoverHandler=i=>{i.cell.isHovered=i.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(n=>n.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(n=>n.monthsModel).pipe((0,f.p)(n=>!!n)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(n=>n.formattedMonths).pipe((0,f.p)(n=>!!n)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(n=>n.selectedDate).pipe((0,f.p)(n=>!!n)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(n=>n.selectedRange).pipe((0,f.p)(n=>!!n)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(n=>n.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(n=>n.yearsCalendarModel).pipe((0,f.p)(n=>!!n)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(n=>n.hoveredDate).pipe((0,f.p)(n=>!!n)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(n=>n.dateCustomClasses).pipe((0,f.p)(n=>!!n)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(n=>n.dateTooltipTexts).pipe((0,f.p)(n=>!!n)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(n=>this._store?.dispatch(this._actions.setLocale(n)))),this):this}destroy(){for(const n of this._subs)n.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)(t.KVO(St),t.KVO(ds))};static#t=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const yc={date:new Date,mode:"day"},hr=Object.assign(new un,{locale:"en",view:yc,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function Ws(e,s,n){const i=s&&rn(d(e,"month"),s,"day"),r=n&&tn(Dt(e,"month"),n,"day");return i||r||!1}function Zn(e,s,n){const i=s&&rn(d(e,"year"),s,"day"),r=n&&tn(Dt(e,"year"),n,"day");return i||r||!1}function $s(e,s,n){return!!(s&&j(s)&&s.length)&&(n&&"year"===n&&!s[0].getDate()?s.some(i=>kn(e,i,"year")):s.some(i=>kn(e,i,"date")))}function Xs(e,s,n){return!!(s&&j(s)&&s.length)&&!s.some(i=>kn(e,i,n||"date"))}function mr(e,s=0){const n=e&&e.yearsCalendarModel&&e.yearsCalendarModel[s];return n?.years[0]&&n.years[0][0]&&n.years[0][0].date}function Mc(e,s){return!e||!s||!e.length&&!e[0].value||e.forEach(n=>(!n||!n.value||n.value instanceof Date||!(n.value instanceof Array&&n.value.length)||(n.value=fr(n.value,s)),e)),e}function pr(e,s){return!e||!s||e instanceof Array&&!e.length||e instanceof Date?e:fr(e,s)}function fr(e,s){return e instanceof Array?e.map(i=>i&&(tn(i,s,"date")&&(i=s),i)):e}function gr(e){return e&&vr(e)}function br(e){return e?.length&&e.map(s=>s&&vr(s)),e}function vr(e){const s=new Date;return e.setMilliseconds(s.getMilliseconds()),e.setSeconds(s.getSeconds()),e.setMinutes(s.getMinutes()),e.setHours(s.getHours()),e}function zs(e,s){let n=e.initialDate;const i=new Array(e.height);for(let r=0;r<e.height;r++){i[r]=new Array(e.width);for(let a=0;a<e.width;a++)i[r][a]=s(n),n=rt(n,e.shift)}return i}function Ks(e,s){const n=function Ot(e){return Qe(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds())}(e),i=function Dc(e,s){if(function Q(e,s){return e.getDay()===Number(s)}(e,s.firstDayOfWeek))return e;const i=function Tc(e,s){const n=Number(s);if(isNaN(n))return 0;if(0===n)return e;const i=e-n%7;return i<0?i+7:i}(kt(e),s.firstDayOfWeek);return rt(e,{day:-i})}(n,s);return{daysMatrix:zs({width:s.width||0,height:s.height||0,initialDate:i,shift:{day:1}},h=>h),month:n}}function kc(e,s,n){return e.map(i=>i[0]?Wt(i[0],s,n):"")}function wc(e){const s=Lt(e),n=s.weekdaysShort(),i=s.firstDayOfWeek();return[...n.slice(i),...n.slice(0,i)]}function yr(e,s){return!s||e>=s}const Lc=4,Oc=3,xc={month:1};function Dr(e,s){const n=Dt(e,"year");return{months:zs({width:Oc,height:Lc,initialDate:n,shift:xc},a=>({date:a,label:Wt(a,s.monthLabel,s.locale)})),monthTitle:"",yearTitle:Wt(e,s.yearTitle,s.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const Zs=4,Js=4,us=Zs*Js,Tr=-1*(Math.floor(us/2)-1),Ic={year:1};function Mr(e,s,n){const i=function Yc(e,s){return s&&e.getFullYear()>=s.getFullYear()&&e.getFullYear()<s.getFullYear()+us?s:rt(e,{year:Tr})}(e,n),a=zs({width:Js,height:Zs,initialDate:i,shift:Ic},W=>({date:W,label:Wt(W,s.yearLabel,s.locale)})),h=function Rc(e,s){return`${Wt(e[0][0].date,s.yearTitle,s.locale)} - ${Wt(e[Zs-1][Js-1].date,s.yearTitle,s.locale)}`}(a,s);return{years:a,monthTitle:"",yearTitle:h,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function Qs(e,s){!e||!isNaN(e.getTime())||(e.setHours(s.getHours()),e.setMinutes(s.getMinutes()),e.setSeconds(s.getSeconds()),e.setMilliseconds(s.getMilliseconds()))}function Cr(e=hr,s){switch(s.type){case St.CALCULATE:return function Bc(e){if(!e.view)return e;let s;s=e.displayOneMonthRange&&kr(e.view.date,e.minDate,e.maxDate)?1:e.displayMonths||1;let n=e.view.date;if("day"===e.view.mode&&e.monthViewOptions){e.showPreviousMonth&&e.selectedRange&&0===e.selectedRange.length&&(n=rt(n,{month:-1})),e.monthViewOptions.firstDayOfWeek=Lt(e.locale).firstDayOfWeek();let i=new Array(s);for(let r=0;r<s;r++)i[r]=Ks(n,e.monthViewOptions),n=rt(n,{month:1});if(e.preventChangeToNextMonth&&e.flaggedMonths&&e.hoveredDate){const r=Ks(e.view.date,e.monthViewOptions);e.flaggedMonths.length&&e.flaggedMonths[1].month.getMonth()===r.month.getMonth()&&(i=e.flaggedMonths.map(a=>e.monthViewOptions?Ks(a.month,e.monthViewOptions):null).filter(a=>null!==a))}return Object.assign({},e,{monthsModel:i})}if("month"===e.view.mode){const i=new Array(s);for(let r=0;r<s;r++)i[r]=Dr(n,Jn(e)),n=rt(n,{year:1});return Object.assign({},e,{monthsCalendar:i})}if("year"===e.view.mode){const i=new Array(s);for(let r=0;r<s;r++)i[r]=Mr(n,Jn(e),"year"===e.minMode?mr(e,r):void 0),n=rt(n,{year:us});return Object.assign({},e,{yearsCalendarModel:i})}return e}(e);case St.FORMAT:return function Fc(e){if(!e.view)return e;if("day"===e.view.mode&&e.monthsModel){const i=e.monthsModel.map((r,a)=>function Cc(e,s,n){return{month:e.month,monthTitle:Wt(e.month,s.monthTitle,s.locale),yearTitle:Wt(e.month,s.yearTitle,s.locale),weekNumbers:kc(e.daysMatrix,s.weekNumbers,s.locale),weekdays:wc(s.locale),weeks:e.daysMatrix.map((i,r)=>({days:i.map((a,h)=>({date:a,label:Wt(a,s.dayLabel,s.locale),monthIndex:n,weekIndex:r,dayIndex:h}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(r,Jn(e),a));return Object.assign({},e,{formattedMonths:i})}const s=e.displayMonths||1;let n=e.view.date;if("month"===e.view.mode){const i=new Array(s);for(let r=0;r<s;r++)i[r]=Dr(n,Jn(e)),n=rt(n,{year:1});return Object.assign({},e,{monthsCalendar:i})}if("year"===e.view.mode){const i=new Array(s);for(let r=0;r<s;r++)i[r]=Mr(n,Jn(e)),n=rt(n,{year:16});return Object.assign({},e,{yearsCalendarModel:i})}return e}(e);case St.FLAG:return function Vc(e){if(!e.view)return e;const s=kr(e.view.date,e.minDate,e.maxDate)?1:e.displayMonths;if(e.formattedMonths&&"day"===e.view.mode){const n=e.formattedMonths.map((i,r)=>function Ec(e,s){return e.weeks.forEach(n=>{n.days.forEach((i,r)=>{const a=!q(i.date,e.month),h=!a&&he(i.date,s.hoveredDate),W=!a&&s.selectedRange&&he(i.date,s.selectedRange[0]),me=!a&&s.selectedRange&&he(i.date,s.selectedRange[1]),it=!a&&he(i.date,s.selectedDate)||W||me,bt=!a&&s.selectedRange&&function Sc(e,s,n){return!!(e&&s&&s[0])&&(s[1]?e>s[0]&&e<=s[1]:!!n&&e>s[0]&&e<=n)}(i.date,s.selectedRange,s.hoveredDate),At=s.isDisabled||rn(i.date,s.minDate,"day")||tn(i.date,s.maxDate,"day")||function wo(e,s){return!(typeof s>"u"||!s||!s.length)&&s.some(n=>n===e.getDay())}(i.date,s.daysDisabled)||$s(i.date,s.datesDisabled)||Xs(i.date,s.datesEnabled),si=!a&&he(i.date,new Date),ed=s.dateCustomClasses&&s.dateCustomClasses.map(ln=>he(i.date,ln.date)?ln.classes:[]).reduce((ln,ii)=>ln.concat(ii),[]).join(" ")||"",td=s.dateTooltipTexts&&s.dateTooltipTexts.map(ln=>he(i.date,ln.date)?ln.tooltipText:"").reduce((ln,ii)=>(ln.push(ii),ln),[]).join(" ")||"",an=Object.assign({},i,{isOtherMonth:a,isHovered:h,isSelected:it,isSelectionStart:W,isSelectionEnd:me,isInRange:bt,isDisabled:At,isToday:si,customClasses:ed,tooltipText:td});(i.isOtherMonth!==an.isOtherMonth||i.isHovered!==an.isHovered||i.isSelected!==an.isSelected||i.isSelectionStart!==an.isSelectionStart||i.isSelectionEnd!==an.isSelectionEnd||i.isDisabled!==an.isDisabled||i.isInRange!==an.isInRange||i.customClasses!==an.customClasses||i.tooltipText!==an.tooltipText)&&(n.days[r]=an)})}),e.hideLeftArrow=s.isDisabled||!!s.monthIndex&&s.monthIndex>0&&s.monthIndex!==s.displayMonths,e.hideRightArrow=s.isDisabled||(!!s.monthIndex||0===s.monthIndex)&&!!s.displayMonths&&s.monthIndex<s.displayMonths&&s.monthIndex+1!==s.displayMonths,e.disableLeftArrow=Ws(rt(e.month,{month:-1}),s.minDate,s.maxDate),e.disableRightArrow=Ws(rt(e.month,{month:1}),s.minDate,s.maxDate),e}(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,daysDisabled:e.daysDisabled,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,hoveredDate:e.hoveredDate,selectedDate:e.selectedDate,selectedRange:e.selectedRange,displayMonths:s,dateCustomClasses:e.dateCustomClasses,dateTooltipTexts:e.dateTooltipTexts,monthIndex:r}));return Object.assign({},e,{flaggedMonths:n})}if("month"===e.view.mode&&e.monthsCalendar){const n=e.monthsCalendar.map((i,r)=>function Pc(e,s){return e.months.forEach((n,i)=>{n.forEach((r,a)=>{let h;const W=q(r.date,s.hoveredMonth),me=s.isDisabled||$s(r.date,s.datesDisabled)||Xs(r.date,s.datesEnabled,"month")||Ws(r.date,s.minDate,s.maxDate);!s.selectedDate&&s.selectedRange?(h=q(r.date,s.selectedRange[0]),h||(h=q(r.date,s.selectedRange[1]))):h=q(r.date,s.selectedDate);const it=Object.assign(r,{isHovered:W,isDisabled:me,isSelected:h});(r.isHovered!==it.isHovered||r.isDisabled!==it.isDisabled||r.isSelected!==it.isSelected)&&(e.months[i][a]=it)})}),e.hideLeftArrow=!!s.monthIndex&&s.monthIndex>0&&s.monthIndex!==s.displayMonths,e.hideRightArrow=(!!s.monthIndex||0===s.monthIndex)&&(!!s.displayMonths||0===s.displayMonths)&&s.monthIndex<s.displayMonths&&s.monthIndex+1!==s.displayMonths,e.disableLeftArrow=Zn(rt(e.months[0][0].date,{year:-1}),s.minDate,s.maxDate),e.disableRightArrow=Zn(rt(e.months[0][0].date,{year:1}),s.minDate,s.maxDate),e}(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,hoveredMonth:e.hoveredMonth,selectedDate:e.selectedDate,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,selectedRange:e.selectedRange,displayMonths:s,monthIndex:r}));return Object.assign({},e,{flaggedMonthsCalendar:n})}if("year"===e.view.mode&&e.yearsCalendarModel){const n=e.yearsCalendarModel.map((i,r)=>function Ac(e,s){e.years.forEach((r,a)=>{r.forEach((h,W)=>{let me;const it=ue(h.date,s.hoveredYear),bt=s.isDisabled||$s(h.date,s.datesDisabled,"year")||Xs(h.date,s.datesEnabled,"year")||Zn(h.date,s.minDate,s.maxDate);!s.selectedDate&&s.selectedRange?(me=ue(h.date,s.selectedRange[0]),me||(me=ue(h.date,s.selectedRange[1]))):me=ue(h.date,s.selectedDate);const At=Object.assign(h,{isHovered:it,isDisabled:bt,isSelected:me});(h.isHovered!==At.isHovered||h.isDisabled!==At.isDisabled||h.isSelected!==At.isSelected)&&(e.years[a][W]=At)})}),e.hideLeftArrow=!!s.yearIndex&&s.yearIndex>0&&s.yearIndex!==s.displayMonths,e.hideRightArrow=!!s.yearIndex&&!!s.displayMonths&&s.yearIndex<s.displayMonths&&s.yearIndex+1!==s.displayMonths,e.disableLeftArrow=Zn(rt(e.years[0][0].date,{year:-1}),s.minDate,s.maxDate);const n=e.years.length-1;return e.disableRightArrow=Zn(rt(e.years[n][e.years[n].length-1].date,{year:1}),s.minDate,s.maxDate),e}(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,hoveredYear:e.hoveredYear,selectedDate:e.selectedDate,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,selectedRange:e.selectedRange,displayMonths:s,yearIndex:r}));return Object.assign({},e,{yearsCalendarFlagged:n})}return e}(e);case St.NAVIGATE_OFFSET:return function Hc(e,s){if(!e.view)return e;const n=function jc(e,s){if(e.view){if("year"===e.view.mode&&"year"===e.minMode){const n=mr(e,0);if(n){const i=rt(n,{year:-Tr});return rt(i,s.payload)}}return rt(Dt(e.view.date,"month"),s.payload)}}(e,s);if(!n)return e;return Object.assign({},e,{view:{mode:e.view.mode,date:n}})}(e,s);case St.NAVIGATE_TO:{const n=s.payload;if(!e.view||!n.unit)return e;const i=function ot(e,s){return Qe(Ge(e.getFullYear(),s.year),Ge(e.getMonth(),s.month),1,Ge(e.getHours(),s.hour),Ge(e.getMinutes(),s.minute),Ge(e.getSeconds(),s.seconds),Ge(e.getMilliseconds(),s.milliseconds))}(e.view.date,n.unit);let r,a;return yr(n.viewMode,e.minMode)?(a=n.viewMode,r={view:{date:i,mode:a}}):(a=e.view.mode,r={selectedDate:i,view:{date:i,mode:a}}),Object.assign({},e,r)}case St.CHANGE_VIEWMODE:return yr(s.payload,e.minMode)&&e.view?Object.assign({},e,{view:{date:e.view.date,mode:s.payload}}):e;case St.HOVER:return Object.assign({},e,{hoveredDate:s.payload});case St.SELECT:{if(!e.view)return e;const n={selectedDate:s.payload,view:e.view};if(Array.isArray(e.selectedTime)){const h=e.selectedTime[0];n.selectedDate&&h&&Qs(n.selectedDate,h)}const i=e.view.mode,a=qs(s.payload||e.view.date,e.minDate,e.maxDate);return n.view={mode:i,date:a},Object.assign({},e,n)}case St.SELECT_TIME:{const{date:n,index:i}=s.payload,r=e.selectedTime?[...e.selectedTime]:[];return r[i]=n,Object.assign({},e,{selectedTime:r})}case St.SET_OPTIONS:{if(!e.view)return e;const n=s.payload,i=n.minMode?n.minMode:e.view.mode,a=qs(Y(n.value)&&n.value||j(n.value)&&Y(n.value[0])&&n.value[0]||e.view.date,n.minDate,n.maxDate);return n.view={mode:i,date:a},n.value&&(j(n.value)&&(n.selectedRange=n.value,n.selectedTime=n.value.map(h=>h)),n.value instanceof Date&&(n.selectedDate=n.value,n.selectedTime=[n.value])),Object.assign({},e,n)}case St.SELECT_RANGE:{if(!e.view)return e;const n={selectedRange:s.payload,view:e.view};n.selectedRange?.forEach((h,W)=>{if(Array.isArray(e.selectedTime)){const me=e.selectedTime[W];me&&Qs(h,me)}});const i=e.view.mode,a=qs(s.payload&&s.payload[0]||e.view.date,e.minDate,e.maxDate);return n.view={mode:i,date:a},Object.assign({},e,n)}case St.SET_MIN_DATE:return Object.assign({},e,{minDate:s.payload});case St.SET_MAX_DATE:return Object.assign({},e,{maxDate:s.payload});case St.SET_IS_DISABLED:return Object.assign({},e,{isDisabled:s.payload});case St.SET_DATE_CUSTOM_CLASSES:return Object.assign({},e,{dateCustomClasses:s.payload});case St.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},e,{dateTooltipTexts:s.payload});default:return e}}function Jn(e){return{locale:e.locale,monthTitle:e.monthTitle,yearTitle:e.yearTitle,dayLabel:e.dayLabel,monthLabel:e.monthLabel,yearLabel:e.yearLabel,weekNumbers:e.weekNumbers}}function qs(e,s,n){const i=Array.isArray(e)?e[0]:e;return s&&tn(s,i,"day")?s:n&&rn(n,i,"day")?n:i}function kr(e,s,n){return!(!n||!kn(n,e,"day"))||s&&n&&s.getMonth()===n.getMonth()}let Qn=(()=>{class e extends rs{constructor(){const n=new In.t({type:"[datepicker] dispatcher init"});super(n,Cr,new Xi(hr,n,Cr))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),wr=(()=>{class e{constructor(){this.onSelect=new t.bkB}selectFromRanges(n){this.onSelect.emit(n)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(i,r){1&i&&(t.j41(0,"div",0),t.DNE(1,Za,2,3,"button",1),t.k0s()),2&i&&(t.R7$(),t.Y8G("ngForOf",r.ranges))},dependencies:[Tt.Sq],encapsulation:2,changeDetection:0})}return e})();var Yn=function(e){return e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e}(Yn||{});let Rn,Nc=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(i,r){1&i&&(t.j41(0,"div",0)(1,"span"),t.EFF(2),t.k0s()()),2&i&&(t.R7$(2),t.JRh(r.title))},encapsulation:2})}return e})(),Uc=(()=>{class e{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(i,r){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.EFF(3,"-"),t.k0s(),t.nrm(4,"input",3),t.j41(5,"button",4),t.EFF(6,"+"),t.k0s()(),t.j41(7,"div",1)(8,"button",2),t.EFF(9,"-"),t.k0s(),t.nrm(10,"input",3),t.j41(11,"button",4),t.EFF(12,"+"),t.k0s()(),t.j41(13,"button",5),t.EFF(14),t.nrm(15,"img",6),t.k0s()()),2&i&&(t.R7$(4),t.Y8G("value",r.hours),t.R7$(6),t.Y8G("value",r.minutes),t.R7$(4),t.SpI("",r.ampm," "))},encapsulation:2})}return e})(),ei=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-calendar-layout"]],ngContentSelectors:Qa,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(i,r){1&i&&(t.NAR(Ja),t.DNE(0,qa,1,0,"bs-current-date",0),t.j41(1,"div",1),t.SdG(2),t.k0s(),t.j41(3,"div",2),t.SdG(4,1),t.k0s(),t.DNE(5,el,1,0,"bs-timepicker",3)),2&i&&(t.Y8G("ngIf",!1),t.R7$(5),t.Y8G("ngIf",!1))},dependencies:[Tt.bT,Nc,Uc],encapsulation:2})}return e})(),Gc=(()=>{class e{constructor(n,i,r){this._config=n,this._elRef=i,this._renderer=r,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(n=>n).forEach(n=>{this._renderer.addClass(this._elRef.nativeElement,n)})}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(un),t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(i,r){2&i&&t.AVh("disabled",r.day.isDisabled)("is-highlighted",r.day.isHovered)("is-other-month",r.day.isOtherMonth)("is-active-other-month",r.day.isOtherMonthHovered)("in-range",r.day.isInRange)("select-start",r.day.isSelectionStart)("select-end",r.day.isSelectionEnd)("selected",r.day.isSelected)},inputs:{day:"day"},attrs:tl,decls:1,vars:1,template:function(i,r){1&i&&t.EFF(0),2&i&&t.JRh(r.day&&r.day.label||"")},encapsulation:2,changeDetection:0})}return e})(),ti=(()=>{class e{constructor(){this.isDisabled=!1,this.onNavigate=new t.bkB,this.onViewMode=new t.bkB}navTo(n){this.onNavigate.emit(n?Yn.DOWN:Yn.UP)}view(n){this.isDisabled||this.onViewMode.emit(n)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"click","disabled"],[4,"ngIf"],["type","button",1,"current",3,"click","disabled"],["type","button",1,"next",3,"click","disabled"]],template:function(i,r){1&i&&(t.j41(0,"button",0),t.bIt("click",function(){return r.navTo(!0)}),t.j41(1,"span"),t.EFF(2,"\u2039"),t.k0s()(),t.DNE(3,nl,5,2,"ng-container",1),t.EFF(4," \u200b "),t.j41(5,"button",2),t.bIt("click",function(){return r.view("year")}),t.j41(6,"span"),t.EFF(7),t.k0s()(),t.EFF(8," \u200b "),t.j41(9,"button",3),t.bIt("click",function(){return r.navTo(!1)}),t.j41(10,"span"),t.EFF(11,"\u203a"),t.k0s()()),2&i&&(t.xc7("visibility",r.calendar.hideLeftArrow?"hidden":"visible"),t.Y8G("disabled",r.calendar.disableLeftArrow),t.R7$(3),t.Y8G("ngIf",r.calendar&&r.calendar.monthTitle),t.R7$(2),t.Y8G("disabled",r.isDisabled),t.R7$(2),t.JRh(r.calendar.yearTitle),t.R7$(2),t.xc7("visibility",r.calendar.hideRightArrow?"hidden":"visible"),t.Y8G("disabled",r.calendar.disableRightArrow))},dependencies:[Tt.bT],encapsulation:2,changeDetection:0})}return e})(),Er=(()=>{class e{constructor(n){this._config=n,this.onNavigate=new t.bkB,this.onViewMode=new t.bkB,this.onSelect=new t.bkB,this.onHover=new t.bkB,this.onHoverWeek=new t.bkB,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(n){this.onNavigate.emit({step:{month:Yn.DOWN===n?-1:1}})}changeViewMode(n){this.onViewMode.emit(n)}selectDay(n){this.onSelect.emit(n)}selectWeek(n){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===n.days.length)return;if(this._config.selectWeek&&n.days[0]&&!n.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(n.days[0]);const i=n.days.find(r=>(this._config.selectFromOtherMonth||!r.isOtherMonth)&&!r.isDisabled);if(this.onSelect.emit(i),this._config.selectWeekDateRange){const a=n.days.slice(0).reverse().find(h=>(this._config.selectFromOtherMonth||!h.isOtherMonth)&&!h.isDisabled);this.onSelect.emit(a)}}weekHoverHandler(n,i){(this._config.selectWeek||this._config.selectWeekDateRange)&&n.days.find(a=>(this._config.selectFromOtherMonth||!a.isOtherMonth)&&!a.isDisabled)&&(n.isHovered=i,this.isWeekHovered=i,this.onHoverWeek.emit(n))}hoverDay(n,i){this._config.selectFromOtherMonth&&n.isOtherMonth&&(n.isOtherMonthHovered=i),this._config.dateTooltipTexts&&(n.tooltipText="",this._config.dateTooltipTexts.forEach(r=>{he(r.date,n.date)&&(n.tooltipText=r.tooltipText)})),this.onHover.emit({cell:n,isHovered:i})}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(un))};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"onNavigate","onViewMode","calendar","isDisabled"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day","tooltip"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day"],["bsDatepickerDayDecorator","",3,"click","day"]],template:function(i,r){1&i&&(t.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),t.bIt("onNavigate",function(h){return r.navigateTo(h)})("onViewMode",function(h){return r.changeViewMode(h)}),t.k0s(),t.j41(2,"table",1)(3,"thead")(4,"tr"),t.DNE(5,sl,1,0,"th",2)(6,il,2,1,"th",3),t.k0s()(),t.j41(7,"tbody"),t.DNE(8,_l,3,2,"tr",4),t.k0s()()()),2&i&&(t.R7$(),t.Y8G("calendar",r.calendar)("isDisabled",!!r.isDisabled),t.R7$(4),t.Y8G("ngIf",r.options&&r.options.showWeekNumbers),t.R7$(),t.Y8G("ngForOf",r.calendar.weekdays),t.R7$(2),t.Y8G("ngForOf",r.calendar.weeks))},dependencies:[Tt.Sq,Tt.bT,za,ei,Gc,ti],encapsulation:2})}return e})(),Sr=(()=>{class e{constructor(){this.onNavigate=new t.bkB,this.onViewMode=new t.bkB,this.onSelect=new t.bkB,this.onHover=new t.bkB}navigateTo(n){this.onNavigate.emit({step:{year:Yn.DOWN===n?-1:1}})}viewMonth(n){this.onSelect.emit(n)}hoverMonth(n,i){this.onHover.emit({cell:n,isHovered:i})}changeViewMode(n){this.onViewMode.emit(n)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(i,r){1&i&&(t.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),t.bIt("onNavigate",function(h){return r.navigateTo(h)})("onViewMode",function(h){return r.changeViewMode(h)}),t.k0s(),t.j41(2,"table",1)(3,"tbody"),t.DNE(4,ml,2,1,"tr",2),t.k0s()()()),2&i&&(t.R7$(),t.Y8G("calendar",r.calendar),t.R7$(3),t.Y8G("ngForOf",null==r.calendar?null:r.calendar.months))},dependencies:[Tt.Sq,ei,ti],encapsulation:2})}return e})(),Lr=(()=>{class e{constructor(){this.onNavigate=new t.bkB,this.onViewMode=new t.bkB,this.onSelect=new t.bkB,this.onHover=new t.bkB}navigateTo(n){this.onNavigate.emit({step:{year:(Yn.DOWN===n?-1:1)*us}})}viewYear(n){this.onSelect.emit(n)}hoverYear(n,i){this.onHover.emit({cell:n,isHovered:i})}changeViewMode(n){this.onViewMode.emit(n)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(i,r){1&i&&(t.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),t.bIt("onNavigate",function(h){return r.navigateTo(h)})("onViewMode",function(h){return r.changeViewMode(h)}),t.k0s(),t.j41(2,"table",1)(3,"tbody"),t.DNE(4,fl,2,1,"tr",2),t.k0s()()()),2&i&&(t.R7$(),t.Y8G("calendar",r.calendar),t.R7$(3),t.Y8G("ngForOf",null==r.calendar?null:r.calendar.years))},dependencies:[Tt.Sq,ei,ti],encapsulation:2})}return e})(),Wc=(()=>{class e extends _r{set value(n){this._effects?.setValue(n)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(n,i,r,a,h,W,me){super(),this._config=i,this._store=r,this._element=a,this._actions=h,this._positionService=me,this.valueChange=new t.bkB,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=W,n.setStyle(a.nativeElement,"display","block"),n.setStyle(a.nativeElement,"position","absolute")}ngOnInit(){let n;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,T.s)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(i=>i.selectedDate).subscribe(i=>{n=i,this.valueChange.emit(i)})),this._subs.push(this._store.select(i=>i.selectedTime).subscribe(i=>{!i||!i[0]||!(i[0]instanceof Date)||i[0]===n||this.valueChange.emit(i[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(n=>{Array.isArray(n)&&n.length>=1&&this.startTimepicker?.writeValue(n[0])})),this.startTimepicker?.registerOnChange(n=>{this.timeSelectHandler(n,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(n,i){this._store.dispatch(this._actions.selectTime(n,i))}daySelectHandler(n){!n||(this.isOtherMonthsActive?n.isDisabled:n.isOtherMonth||n.isDisabled)||this._store.dispatch(this._actions.select(n.date))}monthSelectHandler(n){!n||n.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:Ze(n.date),year:we(n.date)},viewMode:"day"}))}yearSelectHandler(n){!n||n.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:we(n.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const n of this._subs)n.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.sFG),t.rXU(un),t.rXU(Qn),t.rXU(t.aKT),t.rXU(St),t.rXU(Kn),t.rXU(Pn.DF))};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-datepicker-container"]],viewQuery:function(i,r){if(1&i&&t.GBs(cr,5),2&i){let a;t.mGM(a=t.lsd())&&(r.startTimepicker=a.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(i,r){1&i&&t.bIt("click",function(h){return r._stopPropagation(h)}),2&i&&t.BMQ("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[t.Jv_([Qn,Kn]),t.Vt3],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(i,r){1&i&&(t.DNE(0,Ol,10,11,"div",2),t.nI1(1,"async")),2&i&&t.Y8G("ngIf",t.bMT(1,1,r.viewMode))},dependencies:[Tt.YU,Tt.Sq,Tt.bT,Tt.ux,Tt.e1,Us,wr,Er,Sr,Lr,Tt.Jj],encapsulation:2,data:{animation:[ur]}})}return e})(),Or=(()=>{class e{get readonlyValue(){return this.isDisabled?"":null}constructor(n,i,r,a,h){this._config=n,this._elementRef=i,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Xn.B,this.isDisabled=!1,this.bsValueChange=new t.bkB,this._subs=[],this._dateInputFormat$=new Xn.B,Object.assign(this,this._config),this._datepicker=h.createLoader(i,a,r),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new In.t(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(n){this.isOpen$.next(n)}set bsValue(n){this._bsValue&&n&&this._bsValue.getTime()===n.getTime()||(!this._bsValue&&n&&!this._config.withTimepicker&&Qs(n,new Date),n&&this.bsConfig?.initCurrentTime&&(n=gr(n)),this.initPreviousValue(),this._bsValue=n,this.bsValueChange.emit(n))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){Rn=this._bsValue}ngOnChanges(n){n.bsConfig&&(n.bsConfig.currentValue?.initCurrentTime&&n.bsConfig.currentValue?.initCurrentTime!==n.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=gr(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(n.minDate&&(this._datepickerRef.instance.minDate=this.minDate),n.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),n.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),n.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),n.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),n.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),n.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),n.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(n=>{this._datepickerRef&&(this._datepickerRef.instance.value=n)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(n=>{this.initPreviousValue(),this.bsValue=n,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(Rn&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return Rn instanceof Date&&this._bsValue?.getDate()===Rn?.getDate()&&this._bsValue?.getMonth()===Rn?.getMonth()&&this._bsValue?.getFullYear()===Rn?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe((0,f.p)(n=>n!==this.isOpen),(0,D.Q)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:un,useValue:this._config}).attach(Wc).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const n of this._subs)n.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:pr(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(n=>n.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(un),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(t.c1b),t.rXU(zn.Li))};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(i,r){2&i&&t.BMQ("readonly",r.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[t.OA$]})}return e})(),$c=(()=>{class e extends _r{set value(n){this._effects?.setRangeValue(n)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(n,i,r,a,h,W,me){super(),this._config=i,this._store=r,this._element=a,this._actions=h,this._positionService=me,this.valueChange=new t.bkB,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=W,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,n.setStyle(a.nativeElement,"display","block"),n.setStyle(a.nativeElement,"position","absolute")}ngOnInit(){let n;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,T.s)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(i=>i.selectedRange).subscribe(i=>{n=i,this.valueChange.emit(i),this.chosenRange=i||[]})),this._subs.push(this._store.select(i=>i.selectedTime).subscribe(i=>{!i||!i[0]||!i[1]||!(i[0]instanceof Date)||!(i[1]instanceof Date)||n&&i[0]===n[0]&&i[1]===n[1]||(this.valueChange.emit(i),this.chosenRange=i||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(n=>{Array.isArray(n)&&n.length>=2&&(this.startTimepicker?.writeValue(n[0]),this.endTimepicker?.writeValue(n[1]))})),this.startTimepicker?.registerOnChange(n=>{this.timeSelectHandler(n,0)}),this.endTimepicker?.registerOnChange(n=>{this.timeSelectHandler(n,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(n,i){this._store.dispatch(this._actions.selectTime(n,i))}daySelectHandler(n){!n||(this.isOtherMonthsActive?n.isDisabled:n.isOtherMonth||n.isDisabled)||this.rangesProcessing(n)}monthSelectHandler(n){if(n&&!n.isDisabled){if(n.isSelected=!0,"month"!==this._config.minMode){if(n.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:Ze(n.date),year:we(n.date)},viewMode:"day"}))}this.rangesProcessing(n)}}yearSelectHandler(n){if(n&&!n.isDisabled){if(n.isSelected=!0,"year"!==this._config.minMode){if(n.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:we(n.date)},viewMode:"month"}))}this.rangesProcessing(n)}}rangesProcessing(n){1===this._rangeStack.length&&(this._rangeStack=n.date>=this._rangeStack[0]?[this._rangeStack[0],n.date]:[n.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(n.date),0===this._rangeStack.length&&(this._rangeStack=[n.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(n.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const n of this._subs)n.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(n){n&&(this._rangeStack=n.value instanceof Date?[n.value]:n.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(n){let i=new Date(n);if(this._config.maxDate){const r=this._config.maxDate.getTime(),a=n.getTime()+864e5*(this._config.maxDateRange||0);i=a>r?new Date(this._config.maxDate):new Date(a)}else i.setDate(n.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(i)}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.sFG),t.rXU(un),t.rXU(Qn),t.rXU(t.aKT),t.rXU(St),t.rXU(Kn),t.rXU(Pn.DF))};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["bs-daterangepicker-container"]],viewQuery:function(i,r){if(1&i&&(t.GBs(cr,5),t.GBs(Gl,5)),2&i){let a;t.mGM(a=t.lsd())&&(r.startTimepicker=a.first),t.mGM(a=t.lsd())&&(r.endTimepicker=a.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(i,r){1&i&&t.bIt("click",function(h){return r._stopPropagation(h)}),2&i&&t.BMQ("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[t.Jv_([Qn,Kn]),t.Vt3],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(i,r){1&i&&(t.DNE(0,ic,10,11,"div",2),t.nI1(1,"async")),2&i&&t.Y8G("ngIf",t.bMT(1,1,r.viewMode))},dependencies:[Tt.YU,Tt.Sq,Tt.bT,Tt.ux,Tt.e1,Us,wr,Er,Sr,Lr,Tt.Jj],encapsulation:2,data:{animation:[ur]}})}return e})();const Xc={provide:$n.kq,useExisting:(0,t.Rfq)(()=>ni),multi:!0},zc={provide:$n.cz,useExisting:(0,t.Rfq)(()=>ni),multi:!0};let pn,ni=(()=>{class e{constructor(n,i,r,a,h){this._picker=n,this._localeService=i,this._renderer=r,this._elRef=a,this.changeDetection=h,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new cs.yU}onChange(n){this.writeValue(n.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}ngOnInit(){const n=i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&n(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(n)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe((0,E.F)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}_setInputValue(n){const i=n?Wt(n,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",i)}validate(n){const i=n.value;if(null==i||""===i)return null;if(p(i)){if(!Y(i))return{bsDate:{invalid:i}};if(this._picker&&this._picker.minDate&&rn(i,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&tn(i,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(n){this._validatorChange=n}writeValue(n){if(n){const i=this._localeService.currentLocale;if(!Lt(i))throw new Error(`Locale "${i}" is not defined, please add it with "defineLocale(...)"`);if(this._value=Un(n,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc){const a=Ti(this._value);this._value=null===a?void 0:a}}else this._value=void 0;this._picker.bsValue=this._value,this._onChange(this._value)}setDisabledState(n){this._picker.isDisabled=n,n?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(Or,1),t.rXU(ds),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(t.gRc))};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["input","bsDatepicker",""]],hostBindings:function(i,r){1&i&&t.bIt("change",function(h){return r.onChange(h)})("blur",function(){return r.onBlur()})("keyup.esc",function(){return r.hide()})("keydown.enter",function(){return r.hide()})},features:[t.Jv_([Xc,zc])]})}return e})(),Kc=(()=>{class e extends un{constructor(){super(...arguments),this.displayMonths=2}static#e=this.\u0275fac=(()=>{let n;return function(r){return(n||(n=t.xGo(e)))(r||e)}})();static#t=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Zc=(()=>{class e{get isOpen(){return this._datepicker.isShown}set isOpen(n){this.isOpen$.next(n)}set bsValue(n){this._bsValue!==n&&(n&&this.bsConfig?.initCurrentTime&&(n=br(n)),this.initPreviousValue(),this._bsValue=n,this.bsValueChange.emit(n))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(n,i,r,a,h){this._config=n,this._elementRef=i,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Xn.B,this.isDisabled=!1,this.bsValueChange=new t.bkB,this._subs=[],this._rangeInputFormat$=new Xn.B,this._datepicker=h.createLoader(i,a,r),Object.assign(this,n),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new In.t(this.isOpen)}ngOnInit(){this.isDestroy$=new Xn.B,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(n){n.bsConfig&&(n.bsConfig.currentValue?.initCurrentTime&&n.bsConfig.currentValue?.initCurrentTime!==n.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=br(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(n.bsConfig.currentValue&&n.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(n.minDate&&(this._datepickerRef.instance.minDate=this.minDate),n.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),n.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),n.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),n.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),n.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),n.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe((0,f.p)(n=>n!==this.isOpen),(0,D.Q)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:un,useValue:this._config}).attach($c).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(n=>{this._datepickerRef&&(this._datepickerRef.instance.value=n)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe((0,f.p)(n=>n&&n[0]&&!!n[1])).subscribe(n=>{this.initPreviousValue(),this.bsValue=n,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){pn=this._bsValue}keepDatepickerModalOpened(){return!!(pn&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===pn?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===pn?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===pn?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===pn?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===pn?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===pn?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:pr(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:Mc(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const n of this._subs)n.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(n=>n.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(Kc),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(t.c1b),t.rXU(zn.Li))};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(i,r){2&i&&t.BMQ("readonly",r.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[t.OA$]})}return e})();const Jc={provide:$n.kq,useExisting:(0,t.Rfq)(()=>xr),multi:!0},Qc={provide:$n.cz,useExisting:(0,t.Rfq)(()=>xr),multi:!0};let xr=(()=>{class e{constructor(n,i,r,a,h){this._picker=n,this._localeService=i,this._renderer=r,this._elRef=a,this.changeDetection=h,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new cs.yU}ngOnInit(){this._picker._bsValue&&(i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe((0,E.F)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(n){(13===n.keyCode||"Enter"===n.code)&&this.hide()}_setInputValue(n){let i="";if(n){const r=n[0]?Wt(n[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",a=n[1]?Wt(n[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";i=r&&a?r+this._picker._config.rangeSeparator+a:""}this._renderer.setProperty(this._elRef.nativeElement,"value",i)}onChange(n){this.writeValue(n.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(n){let i=n.value;const r=[];if(null==i||!j(i))return null;i=i.slice().sort((W,me)=>W.getTime()-me.getTime());const a=Y(i[0]),h=Y(i[1]);return a?h?(this._picker&&this._picker.minDate&&rn(i[0],this._picker.minDate,"date")&&(i[0]=this._picker.minDate,r.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&tn(i[1],this._picker.maxDate,"date")&&(i[1]=this._picker.maxDate,r.push({bsDate:{maxDate:this._picker.maxDate}})),r.length>0?(this.writeValue(i),r):null):{bsDate:{invalid:i[1]}}:{bsDate:{invalid:i[0]}}}registerOnValidatorChange(n){this._validatorChange=n}writeValue(n){if(n){const i=this._localeService.currentLocale;if(!Lt(i))throw new Error(`Locale "${i}" is not defined, please add it with "defineLocale(...)"`);let a=[];if("string"==typeof n){const h=this._picker._config.rangeSeparator.trim();a=n.replace(/[^-]/g,"").length>1?n.split(this._picker._config.rangeSeparator):n.split(h.length>0?h:this._picker._config.rangeSeparator).map(W=>W.trim())}Array.isArray(n)&&(a=n),this._value=a.map(h=>this._picker._config.useUtc?Ti(Un(h,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):Un(h,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(h=>isNaN(h.valueOf())?void 0:h)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(n){this._picker.isDisabled=n,n?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(i){return new(i||e)(t.rXU(Zc,1),t.rXU(ds),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(t.gRc))};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(i,r){1&i&&t.bIt("change",function(h){return r.onChange(h)})("keyup.esc",function(){return r.hide()})("keydown",function(h){return r.onKeydownEvent(h)})("blur",function(){return r.onBlur()})},features:[t.Jv_([Jc,Qc])]})}return e})(),qc=(()=>{class e{static forRoot(){return{ngModule:e,providers:[zn.Li,Pn.DF,Qn,St,Kn,ds,dn]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[Tt.MD,Ka,Na]})}return e})()},8580:(_e,L,l)=>{l.d(L,{Kk:()=>z,UL:()=>se,hs:()=>j,zE:()=>ge});var t=l(3953),f=l(5964),M=l(6932),T=l(9969),D=l(177),E=l(1946);const O=["*"],C=K=>({dropdown:K});let g=(()=>{class K{constructor(){this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1}static#e=this.\u0275fac=function(V){return new(V||K)};static#t=this.\u0275prov=t.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})(),p=(()=>{class K{constructor(){this.direction="down",this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1,this.isOpenChange=new t.bkB,this.isDisabledChange=new t.bkB,this.toggleClick=new t.bkB,this.counts=0,this.dropdownMenu=new Promise(S=>{this.resolveDropdownMenu=S})}static#e=this.\u0275fac=function(V){return new(V||K)};static#t=this.\u0275prov=t.jDH({token:K,factory:K.\u0275fac,providedIn:"platform"})}return K})();const Y=[(0,T.iF)({height:0,overflow:"hidden"}),(0,T.i0)("220ms cubic-bezier(0, 0, 0.2, 1)",(0,T.iF)({height:"*",overflow:"hidden"}))];let re=(()=>{class K{get direction(){return this._state.direction}constructor(S,V,x,le,$){this._state=S,this.cd=V,this._renderer=x,this._element=le,this.isOpen=!1,this._factoryDropDownAnimation=$.build(Y),this._subscription=S.isOpenChange.subscribe(fe=>{this.isOpen=fe;const y=this._element.nativeElement.querySelector(".dropdown-menu");this._renderer.addClass(this._element.nativeElement.querySelector("div"),"open"),y&&(this._renderer.addClass(y,"show"),(y.classList.contains("dropdown-menu-right")||y.classList.contains("dropdown-menu-end"))&&(this._renderer.setStyle(y,"left","auto"),this._renderer.setStyle(y,"right","0")),"up"===this.direction&&(this._renderer.setStyle(y,"top","auto"),this._renderer.setStyle(y,"transform","translateY(-101%)"))),y&&this._state.isAnimated&&this._factoryDropDownAnimation.create(y).play(),this.cd.markForCheck(),this.cd.detectChanges()})}_contains(S){return this._element.nativeElement.contains(S)}ngOnDestroy(){this._subscription.unsubscribe()}static#e=this.\u0275fac=function(V){return new(V||K)(t.rXU(p),t.rXU(t.gRc),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(T.S6))};static#t=this.\u0275cmp=t.VBU({type:K,selectors:[["bs-dropdown-container"]],hostAttrs:[2,"display","block","position","absolute","z-index","1040"],ngContentSelectors:O,decls:2,vars:9,consts:[[3,"ngClass"]],template:function(V,x){1&V&&(t.NAR(),t.j41(0,"div",0),t.SdG(1),t.k0s()),2&V&&(t.AVh("dropup","up"===x.direction)("show",x.isOpen)("open",x.isOpen),t.Y8G("ngClass",t.eq3(7,C,"down"===x.direction)))},dependencies:[D.YU],encapsulation:2,changeDetection:0})}return K})(),z=(()=>{class K{set autoClose(S){this._state.autoClose=S}get autoClose(){return this._state.autoClose}set isAnimated(S){this._state.isAnimated=S}get isAnimated(){return this._state.isAnimated}set insideClick(S){this._state.insideClick=S}get insideClick(){return this._state.insideClick}set isDisabled(S){this._isDisabled=S,this._state.isDisabledChange.emit(S),S&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(S){S?this.show():this.hide()}get _showInline(){return!this.container}constructor(S,V,x,le,$,fe,y){this._elementRef=S,this._renderer=V,this._viewContainerRef=x,this._cis=le,this._state=$,this._config=fe,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=y.build(Y),this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:p,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(S=>this.toggle(S))),this._subscriptions.push(this._state.isDisabledChange.pipe((0,f.p)(S=>S)).subscribe(()=>this.hide())))}show(){if(!this.isOpen&&!this.isDisabled){if(this._showInline)return this._inlinedMenu||this._state.dropdownMenu.then(S=>{this._dropdown.attachInline(S.viewContainer,S.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(S=>{const V=this.dropup||typeof this.dropup<"u"&&this.dropup;this._state.direction=V?"up":"down";const x=this.placement||(V?"top start":"bottom start");this._dropdown.attach(re).to(this.container).position({attachment:x}).show({content:S.templateRef,placement:x}),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(S){return this.isOpen||!S?this.hide():this.show()}_contains(S){return this._elementRef.nativeElement.contains(S.target)||this._dropdown.instance&&this._dropdown.instance._contains(S.target)}navigationClick(S){const V=this._elementRef.nativeElement.querySelector(".dropdown-menu");if(!V)return;const x=this._elementRef.nativeElement.ownerDocument.activeElement,le=V.querySelectorAll(".dropdown-item");switch(S.keyCode){case 38:this._state.counts>0&&le[--this._state.counts].focus();break;case 40:this._state.counts+1<le.length&&(x.classList!==le[this._state.counts].classList?le[this._state.counts].focus():le[++this._state.counts].focus())}S.preventDefault()}ngOnDestroy(){for(const S of this._subscriptions)S.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 S=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",S?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",S?"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(V){return new(V||K)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(t.c1b),t.rXU(M.Li),t.rXU(p),t.rXU(g),t.rXU(T.S6))};static#t=this.\u0275dir=t.FsC({type:K,selectors:[["","bsDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(V,x){1&V&&t.bIt("keydown.arrowDown",function($){return x.navigationClick($)})("keydown.arrowUp",function($){return x.navigationClick($)}),2&V&&t.AVh("dropup",x.dropup)("open",x.isOpen)("show",x.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:[t.Jv_([p])]})}return K})(),j=(()=>{class K{constructor(S,V,x){S.resolveDropdownMenu({templateRef:x,viewContainer:V})}static#e=this.\u0275fac=function(V){return new(V||K)(t.rXU(p),t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:K,selectors:[["","bsDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]})}return K})(),se=(()=>{class K{constructor(S,V,x,le,$){this._changeDetectorRef=S,this._dropdown=V,this._element=x,this._renderer=le,this._state=$,this.isOpen=!1,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(fe=>{this.isOpen=fe,fe?(this._documentClickListener=this._renderer.listen("document","click",y=>{this._state.autoClose&&2!==y.button&&!this._element.nativeElement.contains(y.target)&&(!this._state.insideClick||!this._dropdown._contains(y))&&(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(fe=>this.isDisabled=fe||void 0))}onClick(S){this._state.stopOnClickPropagation&&S.stopPropagation(),!this.isDisabled&&this._state.toggleClick.emit(!0)}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(const S of this._subscriptions)S.unsubscribe()}static#e=this.\u0275fac=function(V){return new(V||K)(t.rXU(t.gRc),t.rXU(z),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(p))};static#t=this.\u0275dir=t.FsC({type:K,selectors:[["","bsDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(V,x){1&V&&t.bIt("click",function($){return x.onClick($)}),2&V&&t.BMQ("aria-haspopup",!0)("disabled",x.isDisabled)("aria-expanded",x.isOpen)},exportAs:["bs-dropdown-toggle"]})}return K})(),ge=(()=>{class K{static forRoot(){return{ngModule:K,providers:[M.Li,E.DF,p]}}static#e=this.\u0275fac=function(V){return new(V||K)};static#t=this.\u0275mod=t.$C({type:K});static#n=this.\u0275inj=t.G2t({imports:[D.MD]})}return K})()},3400:(_e,L,l)=>{l.d(L,{eK:()=>x,x6:()=>le});var t=l(3953),f=l(9417),M=l(177);const T=($,fe)=>({"pull-left":$,"float-left":fe}),D=($,fe)=>({"pull-right":$,"float-right":fe}),E=($,fe)=>({disabled:$,currentPage:fe}),O=($,fe,y)=>({disabled:$,$implicit:fe,currentPage:y});function C($,fe){if(1&$){const y=t.RV6();t.j41(0,"li",11)(1,"a",12),t.bIt("click",function(k){t.eBV(y);const F=t.XpG();return t.Njj(F.selectPage(1,k))}),t.eu8(2,13),t.k0s()()}if(2&$){const y=t.XpG(),ie=t.sdS(13);t.AVh("disabled",y.noPrevious()||y.disabled),t.R7$(2),t.Y8G("ngTemplateOutlet",y.customFirstTemplate||ie)("ngTemplateOutletContext",t.l_i(4,E,y.noPrevious()||y.disabled,y.page))}}function g($,fe){if(1&$){const y=t.RV6();t.j41(0,"li",14)(1,"a",12),t.bIt("click",function(k){t.eBV(y);const F=t.XpG();return t.Njj(F.selectPage(F.page-1,k))}),t.eu8(2,13),t.k0s()()}if(2&$){const y=t.XpG(),ie=t.sdS(11);t.AVh("disabled",y.noPrevious()||y.disabled),t.R7$(2),t.Y8G("ngTemplateOutlet",y.customPreviousTemplate||ie)("ngTemplateOutletContext",t.l_i(4,E,y.noPrevious()||y.disabled,y.page))}}function p($,fe){if(1&$){const y=t.RV6();t.j41(0,"li",15)(1,"a",12),t.bIt("click",function(k){const F=t.eBV(y).$implicit,X=t.XpG();return t.Njj(X.selectPage(F.number,k))}),t.eu8(2,13),t.k0s()()}if(2&$){const y=fe.$implicit,ie=t.XpG(),k=t.sdS(7);t.AVh("active",y.active)("disabled",ie.disabled&&!y.active),t.R7$(2),t.Y8G("ngTemplateOutlet",ie.customPageTemplate||k)("ngTemplateOutletContext",t.sMw(6,O,ie.disabled,y,ie.page))}}function b($,fe){if(1&$){const y=t.RV6();t.j41(0,"li",16)(1,"a",12),t.bIt("click",function(k){t.eBV(y);const F=t.XpG();return t.Njj(F.selectPage(F.page+1,k))}),t.eu8(2,13),t.k0s()()}if(2&$){const y=t.XpG(),ie=t.sdS(9);t.AVh("disabled",y.noNext()||y.disabled),t.R7$(2),t.Y8G("ngTemplateOutlet",y.customNextTemplate||ie)("ngTemplateOutletContext",t.l_i(4,E,y.noNext()||y.disabled,y.page))}}function Y($,fe){if(1&$){const y=t.RV6();t.j41(0,"li",17)(1,"a",12),t.bIt("click",function(k){t.eBV(y);const F=t.XpG();return t.Njj(F.selectPage(F.totalPages,k))}),t.eu8(2,13),t.k0s()()}if(2&$){const y=t.XpG(),ie=t.sdS(15);t.AVh("disabled",y.noNext()||y.disabled),t.R7$(2),t.Y8G("ngTemplateOutlet",y.customLastTemplate||ie)("ngTemplateOutletContext",t.l_i(4,E,y.noNext()||y.disabled,y.page))}}function re($,fe){1&$&&t.EFF(0),2&$&&t.JRh(fe.$implicit.text)}function z($,fe){if(1&$&&t.EFF(0),2&$){const y=t.XpG();t.JRh(y.getText("next"))}}function j($,fe){if(1&$&&t.EFF(0),2&$){const y=t.XpG();t.JRh(y.getText("previous"))}}function se($,fe){if(1&$&&t.EFF(0),2&$){const y=t.XpG();t.JRh(y.getText("first"))}}function ge($,fe){if(1&$&&t.EFF(0),2&$){const y=t.XpG();t.JRh(y.getText("last"))}}let K=(()=>{class ${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(ie){return new(ie||$)};static#t=this.\u0275prov=t.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})();const ke={provide:f.kq,useExisting:(0,t.Rfq)(()=>S),multi:!0};let S=(()=>{class ${constructor(y,ie,k){this.elementRef=y,this.changeDetection=k,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 t.bkB,this.pageChanged=new t.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=y,this.config||this.configureOptions(Object.assign({},ie.main,ie.pager))}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(y){this._itemsPerPage=y,this.totalPages=this.calculateTotalPages()}get totalItems(){return this._totalItems}set totalItems(y){this._totalItems=y,this.totalPages=this.calculateTotalPages()}get totalPages(){return this._totalPages}set totalPages(y){this._totalPages=y,this.numPages.emit(y),this.inited&&this.selectPage(this.page)}get page(){return this._page}set page(y){const ie=this._page;this._page=y>this.totalPages?this.totalPages:y||1,this.changeDetection.markForCheck(),!(ie===this._page||typeof ie>"u")&&this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})}configureOptions(y){this.config=Object.assign({},y)}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(y){this.page=y,this.pages=this.getPages(this.page,this.totalPages)}getText(y){return this[`${y}Text`]||this.config[`${y}Text`]}noPrevious(){return 1===this.page}noNext(){return this.page===this.totalPages}registerOnChange(y){this.onChange=y}registerOnTouched(y){this.onTouched=y}selectPage(y,ie){ie&&ie.preventDefault(),this.disabled||(ie&&ie.target&&ie.target.blur(),this.writeValue(y),this.onChange(this.page))}makePage(y,ie,k){return{text:ie,number:y,active:k}}getPages(y,ie){const k=[];let F=1,X=ie;const H=typeof this.maxSize<"u"&&this.maxSize<ie;H&&this.maxSize&&(this.rotate?(F=Math.max(y-Math.floor(this.maxSize/2),1),X=F+this.maxSize-1,X>ie&&(X=ie,F=X-this.maxSize+1)):(F=(Math.ceil(y/this.maxSize)-1)*this.maxSize+1,X=Math.min(F+this.maxSize-1,ie)));for(let v=F;v<=X;v++){const N=this.makePage(v,v.toString(),v===y);k.push(N)}if(H&&!this.rotate){if(F>1){const v=this.makePage(F-1,"...",!1);k.unshift(v)}if(X<ie){const v=this.makePage(X+1,"...",!1);k.push(v)}}return k}calculateTotalPages(){const y=this.itemsPerPage<1?1:Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(y||0,1)}static#e=this.\u0275fac=function(ie){return new(ie||$)(t.rXU(t.aKT),t.rXU(K),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:$,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:[t.Jv_([ke])],decls:7,vars:24,consts:[[1,"pager"],[3,"ngClass"],["href","",3,"click"]],template:function(ie,k){1&ie&&(t.j41(0,"ul",0)(1,"li",1)(2,"a",2),t.bIt("click",function(X){return k.selectPage(k.page-1,X)}),t.EFF(3),t.k0s()(),t.j41(4,"li",1)(5,"a",2),t.bIt("click",function(X){return k.selectPage(k.page+1,X)}),t.EFF(6),t.k0s()()()),2&ie&&(t.R7$(),t.HbH(k.pageBtnClass),t.AVh("disabled",k.noPrevious())("previous",k.align),t.Y8G("ngClass",t.l_i(18,T,k.align,k.align)),t.R7$(2),t.JRh(k.getText("previous")),t.R7$(),t.HbH(k.pageBtnClass),t.AVh("disabled",k.noNext())("next",k.align),t.Y8G("ngClass",t.l_i(21,D,k.align,k.align)),t.R7$(2),t.JRh(k.getText("next")))},dependencies:[M.YU],encapsulation:2})}return $})();const V={provide:f.kq,useExisting:(0,t.Rfq)(()=>x),multi:!0};let x=(()=>{class ${constructor(y,ie,k){this.elementRef=y,this.changeDetection=k,this.align=!0,this.boundaryLinks=!1,this.directionLinks=!0,this.rotate=!0,this.pageBtnClass="",this.disabled=!1,this.numPages=new t.bkB,this.pageChanged=new t.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=y,this.config||this.configureOptions(ie.main)}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(y){this._itemsPerPage=y,this.totalPages=this.calculateTotalPages()}get totalItems(){return this._totalItems}set totalItems(y){this._totalItems=y,this.totalPages=this.calculateTotalPages()}get totalPages(){return this._totalPages}set totalPages(y){this._totalPages=y,this.numPages.emit(y),this.inited&&this.selectPage(this.page)}get page(){return this._page}set page(y){const ie=this._page;this._page=y>this.totalPages?this.totalPages:y||1,this.changeDetection.markForCheck(),!(ie===this._page||typeof ie>"u")&&this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})}configureOptions(y){this.config=Object.assign({},y)}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(y){this.page=y,this.pages=this.getPages(this.page,this.totalPages)}getText(y){return this[`${y}Text`]||this.config[`${y}Text`]}noPrevious(){return 1===this.page}noNext(){return this.page===this.totalPages}registerOnChange(y){this.onChange=y}registerOnTouched(y){this.onTouched=y}selectPage(y,ie){ie&&ie.preventDefault(),this.disabled||(ie&&ie.target&&ie.target.blur(),this.writeValue(y),this.onChange(this.page))}makePage(y,ie,k){return{text:ie,number:y,active:k}}getPages(y,ie){const k=[];let F=1,X=ie;const H=typeof this.maxSize<"u"&&this.maxSize<ie;H&&this.maxSize&&(this.rotate?(F=Math.max(y-Math.floor(this.maxSize/2),1),X=F+this.maxSize-1,X>ie&&(X=ie,F=X-this.maxSize+1)):(F=(Math.ceil(y/this.maxSize)-1)*this.maxSize+1,X=Math.min(F+this.maxSize-1,ie)));for(let v=F;v<=X;v++){const N=this.makePage(v,v.toString(),v===y);k.push(N)}if(H&&!this.rotate){if(F>1){const v=this.makePage(F-1,"...",!1);k.unshift(v)}if(X<ie){const v=this.makePage(X+1,"...",!1);k.push(v)}}return k}calculateTotalPages(){const y=this.itemsPerPage<1?1:Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(y||0,1)}static#e=this.\u0275fac=function(ie){return new(ie||$)(t.rXU(t.aKT),t.rXU(K),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:$,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:[t.Jv_([V])],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(ie,k){1&ie&&(t.j41(0,"ul",5),t.DNE(1,C,3,7,"li",6)(2,g,3,7,"li",7)(3,p,3,10,"li",8)(4,b,3,7,"li",9)(5,Y,3,7,"li",10),t.k0s(),t.DNE(6,re,1,1,"ng-template",null,0,t.C5r)(8,z,1,1,"ng-template",null,1,t.C5r)(10,j,1,1,"ng-template",null,2,t.C5r)(12,se,1,1,"ng-template",null,3,t.C5r)(14,ge,1,1,"ng-template",null,4,t.C5r)),2&ie&&(t.Y8G("ngClass",k.classMap),t.R7$(),t.Y8G("ngIf",k.boundaryLinks),t.R7$(),t.Y8G("ngIf",k.directionLinks),t.R7$(),t.Y8G("ngForOf",k.pages),t.R7$(),t.Y8G("ngIf",k.directionLinks),t.R7$(),t.Y8G("ngIf",k.boundaryLinks))},dependencies:[M.YU,M.Sq,M.bT,M.T3],encapsulation:2})}return $})(),le=(()=>{class ${static forRoot(){return{ngModule:$,providers:[]}}static#e=this.\u0275fac=function(ie){return new(ie||$)};static#t=this.\u0275mod=t.$C({type:$});static#n=this.\u0275inj=t.G2t({imports:[M.MD]})}return $})()},1946:(_e,L,l)=>{l.d(L,{DF:()=>en,Rz:()=>p});var t=l(425),f=l(3953),M=l(177),T=l(1413),D=l(7786),E=l(3726),O=l(7673),C=l(536),g=function(u){return u.top="top",u.bottom="bottom",u.left="left",u.right="right",u.auto="auto",u.end="right",u.start="left",u["top left"]="top left",u["top right"]="top right",u["right top"]="right top",u["right bottom"]="right bottom",u["bottom right"]="bottom right",u["bottom left"]="bottom left",u["left bottom"]="left bottom",u["left top"]="left top",u["top start"]="top left",u["top end"]="top right",u["end top"]="right top",u["end bottom"]="right bottom",u["bottom end"]="bottom right",u["bottom start"]="bottom left",u["start bottom"]="start bottom",u["start top"]="left top",u}(g||{}),p=function(u){return u.top="top",u.bottom="bottom",u.left="start",u.right="end",u.auto="auto",u.end="end",u.start="start",u["top left"]="top start",u["top right"]="top end",u["right top"]="end top",u["right bottom"]="end bottom",u["bottom right"]="bottom end",u["bottom left"]="bottom start",u["left bottom"]="start bottom",u["left top"]="start top",u["top start"]="top start",u["top end"]="top end",u["end top"]="end top",u["end bottom"]="end bottom",u["bottom end"]="bottom end",u["bottom start"]="bottom start",u["start bottom"]="start bottom",u["start top"]="start top",u}(p||{});function b(u,Z){if(1!==u.nodeType)return[];const q=u.ownerDocument.defaultView?.getComputedStyle(u,null);return Z?q&&q[Z]:q}function Y(u){if(!u)return document.documentElement;let q,Q=u?.offsetParent;for(;null===Q&&u.nextElementSibling&&q!==u.nextElementSibling;)q=u.nextElementSibling,Q=q.offsetParent;const ue=Q&&Q.nodeName;return ue&&"BODY"!==ue&&"HTML"!==ue?Q&&-1!==["TH","TD","TABLE"].indexOf(Q.nodeName)&&"static"===b(Q,"position")?Y(Q):Q:q?q.ownerDocument.documentElement:document.documentElement}function z(u){return null!==u.parentNode?z(u.parentNode):u}function j(u,Z){if(!(u&&u.nodeType&&Z&&Z.nodeType))return document.documentElement;const Q=u.compareDocumentPosition(Z)&Node.DOCUMENT_POSITION_FOLLOWING,q=Q?u:Z,ue=Q?Z:u,he=document.createRange();he.setStart(q,0),he.setEnd(ue,0);const ve=he.commonAncestorContainer;if(u!==ve&&Z!==ve||q.contains(ue))return function re(u){const{nodeName:Z}=u;return"BODY"!==Z&&("HTML"===Z||Y(u.firstElementChild)===u)}(ve)?ve:Y(ve);const De=z(u);return De.host?j(De.host,Z):j(u,z(Z).host)}function se(u){if(!u||!u.parentElement)return document.documentElement;let Z=u.parentElement;for(;Z?.parentElement&&"none"===b(Z,"transform");)Z=Z.parentElement;return Z||document.documentElement}function ge(u,Z){const Q="x"===Z?"Left":"Top",q="Left"===Q?"Right":"Bottom";return parseFloat(u[`border${Q}Width`])+parseFloat(u[`border${q}Width`])}function K(u,Z,Q){return Math.max(Z[`offset${u}`],Z[`scroll${u}`],Q[`client${u}`],Q[`offset${u}`],Q[`scroll${u}`],0)}function ke(u){const Z=u.body,Q=u.documentElement;return{height:K("Height",Z,Q),width:K("Width",Z,Q)}}function S(u){return{...u,right:(u.left||0)+u.width,bottom:(u.top||0)+u.height}}function x(u){return"number"==typeof u||"[object Number]"===Object.prototype.toString.call(u)}function le(u){const Z=u.getBoundingClientRect();if(!(Z&&x(Z.top)&&x(Z.left)&&x(Z.bottom)&&x(Z.right)))return Z;const Q={left:Z.left,top:Z.top,width:Z.right-Z.left,height:Z.bottom-Z.top},q="HTML"===u.nodeName?ke(u.ownerDocument):void 0,ue=q?.width||u.clientWidth||x(Z.right)&&x(Q.left)&&Z.right-Q.left||0,he=q?.height||u.clientHeight||x(Z.bottom)&&x(Q.top)&&Z.bottom-Q.top||0;let ve=u.offsetWidth-ue,De=u.offsetHeight-he;if(ve||De){const Ae=b(u);ve-=ge(Ae,"x"),De-=ge(Ae,"y"),Q.width-=ve,Q.height-=De}return S(Q)}function $(u,Z,Q=!1){const q="HTML"===Z.nodeName,ue=le(u),he=le(Z),ve=b(Z),De=parseFloat(ve.borderTopWidth),Ae=parseFloat(ve.borderLeftWidth);Q&&q&&(he.top=Math.max(he.top??0,0),he.left=Math.max(he.left??0,0));const Be=S({top:(ue.top??0)-(he.top??0)-De,left:(ue.left??0)-(he.left??0)-Ae,width:ue.width,height:ue.height});if(Be.marginTop=0,Be.marginLeft=0,q){const nt=parseFloat(ve.marginTop),ze=parseFloat(ve.marginLeft);x(Be.top)&&(Be.top-=De-nt),x(Be.bottom)&&(Be.bottom-=De-nt),x(Be.left)&&(Be.left-=Ae-ze),x(Be.right)&&(Be.right-=Ae-ze),Be.marginTop=nt,Be.marginLeft=ze}return Be}function fe(u){return"HTML"===u.nodeName?u:u.parentNode||u.host}function y(u){if(!u)return document.body;switch(u.nodeName){case"HTML":case"BODY":return u.ownerDocument.body;case"#document":return u.body}const{overflow:Z,overflowX:Q,overflowY:q}=b(u);return/(auto|scroll|overlay)/.test(String(Z)+String(q)+String(Q))?u:y(fe(u))}function ie(u,Z="top"){const Q="top"===Z?"scrollTop":"scrollLeft",q=u.nodeName;return"BODY"===q||"HTML"===q?(u.ownerDocument.scrollingElement||u.ownerDocument.documentElement)[Q]:u[Q]}function F(u){const Z=u.nodeName;return"BODY"!==Z&&"HTML"!==Z&&("fixed"===b(u,"position")||F(fe(u)))}function X(u,Z,Q=0,q,ue=!1){let he={top:0,left:0};const ve=ue?se(u):j(u,Z);if("viewport"===q)he=function k(u,Z=!1){const Q=u.ownerDocument.documentElement,q=$(u,Q),ue=Math.max(Q.clientWidth,window.innerWidth||0),he=Math.max(Q.clientHeight,window.innerHeight||0),ve=Z?0:ie(Q),De=Z?0:ie(Q,"left");return S({top:ve-Number(q?.top)+Number(q?.marginTop),left:De-Number(q?.left)+Number(q?.marginLeft),width:ue,height:he})}(ve,ue);else{let De;"scrollParent"===q?(De=y(fe(Z)),"BODY"===De.nodeName&&(De=u.ownerDocument.documentElement)):De="window"===q?u.ownerDocument.documentElement:q;const Ae=$(De,ve,ue);if(Ae&&"HTML"===De.nodeName&&!F(ve)){const{height:Be,width:nt}=ke(u.ownerDocument);x(he.top)&&x(Ae.top)&&x(Ae.marginTop)&&(he.top+=Ae.top-Ae.marginTop),x(he.top)&&(he.bottom=Number(Be)+Number(Ae.top)),x(he.left)&&x(Ae.left)&&x(Ae.marginLeft)&&(he.left+=Ae.left-Ae.marginLeft),x(he.top)&&(he.right=Number(nt)+Number(Ae.left))}else Ae&&(he=Ae)}return x(he.left)&&(he.left+=Q),x(he.top)&&(he.top+=Q),x(he.right)&&(he.right-=Q),x(he.bottom)&&(he.bottom-=Q),he}function H({width:u,height:Z}){return u*Z}function v(u,Z,Q,q,ue=["top","bottom","right","left"],he="viewport",ve=0){if(-1===u.indexOf("auto"))return u;const De=X(Q,q,ve,he),Ae={top:{width:De?.width??0,height:(Z?.top??0)-(De?.top??0)},right:{width:(De?.right??0)-(Z?.right??0),height:De?.height??0},bottom:{width:De?.width??0,height:(De?.bottom??0)-(Z?.bottom??0)},left:{width:(Z.left??0)-(De?.left??0),height:De?.height??0}},Be=Object.keys(Ae).map(pt=>({position:pt,...Ae[pt],area:H(Ae[pt])})).sort((pt,Mt)=>Mt.area-pt.area);let nt=Be.filter(({width:pt,height:Mt})=>pt>=Q.clientWidth&&Mt>=Q.clientHeight);nt=nt.filter(({position:pt})=>ue.some(Mt=>Mt===pt));const ze=nt.length>0?nt[0].position:Be[0].position,It=u.split(" ")[1];return Q.className=Q.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${(0,t.Bu)().isBs5?p[ze]:ze}`),ze+(It?`-${It}`:"")}const J=(u,Z=0)=>u?parseFloat(u):Z;function R(u){const Q=u.ownerDocument.defaultView?.getComputedStyle(u),q=J(Q?.marginTop)+J(Q?.marginBottom),ue=J(Q?.marginLeft)+J(Q?.marginRight);return{width:Number(u.offsetWidth)+ue,height:Number(u.offsetHeight)+q}}function oe(u,Z,Q){return $(Z,Q?se(u):j(u,Z),Q)}function ae(u,Z,Q){const q=Q.split(" ")[0],ue=R(u),he={width:ue.width,height:ue.height},ve=-1!==["right","left"].indexOf(q),De=ve?"top":"left",Ae=ve?"left":"top",Be=ve?"height":"width",nt=ve?"width":"height";return he[De]=(Z[De]??0)+Z[Be]/2-ue[Be]/2,he[Ae]=q===Ae?(Z[Ae]??0)-ue[nt]:Z[function ce(u){const Z={left:"right",right:"left",bottom:"top",top:"bottom"};return u.replace(/left|right|bottom|top/g,Q=>Z[Q])}(Ae)]??0,he}function Me(u,Z){return!!u.modifiers[Z]?.enabled}const We={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 $e(u,Z){return!!(0,t.Bu)().isBs5&&We[Z].includes(u)}function vt(u,Z,Q){!u||!Z||Object.keys(Z).forEach(q=>{let ue="";-1!==["width","height","top","right","bottom","left"].indexOf(q)&&function V(u){return""!==u&&!isNaN(parseFloat(u))&&isFinite(Number(u))}(Z[q])&&(ue="px"),Q?Q.setStyle(u,q,`${String(Z[q])}${ue}`):u.style[q]=String(Z[q])+ue})}function ut(u){let Z=u.offsets.target;const Q=u.instance.target.querySelector(".arrow");if(!Q)return u;const q=-1!==["left","right"].indexOf(u.placement.split(" ")[0]),ue=q?"height":"width",he=q?"Top":"Left",ve=he.toLowerCase(),De=q?"left":"top",Ae=q?"bottom":"right",Be=R(Q)[ue],nt=u.placement.split(" ")[1];(u.offsets.host[Ae]??0)-Be<(Z[ve]??0)&&(Z[ve]-=(Z[ve]??0)-((u.offsets.host[Ae]??0)-Be)),Number(u.offsets.host[ve])+Number(Be)>(Z[Ae]??0)&&(Z[ve]+=Number(u.offsets.host[ve])+Number(Be)-Number(Z[Ae])),Z=S(Z);const ze=b(u.instance.target),It=parseFloat(ze[`margin${he}`])||0,pt=parseFloat(ze[`border${he}Width`])||0;let Mt;if(nt){const A=parseFloat(ze.borderRadius)||0,te=Number(It+pt+A);Mt=ve===nt?Number(u.offsets.host[ve])+te:Number(u.offsets.host[ve])+Number(u.offsets.host[ue]-te)}else Mt=Number(u.offsets.host[ve])+Number(u.offsets.host[ue]/2-Be/2);let w=Mt-(Z[ve]??0)-It-pt;return w=Math.max(Math.min(Z[ue]-(Be+5),w),0),u.offsets.arrow={[ve]:Math.round(w),[De]:""},u.instance.arrow=Q,u}function _t(u){if(u.offsets.target=S(u.offsets.target),!Me(u.options,"flip"))return u.offsets.target={...u.offsets.target,...ae(u.instance.target,u.offsets.host,u.placement)},u;const Z=X(u.instance.target,u.instance.host,0,"viewport",!1);let Q=u.placement.split(" ")[0],q=u.placement.split(" ")[1]||"";const De=v("auto",u.offsets.host,u.instance.target,u.instance.host,u.options.allowedPositions),Ae=[Q,De];return Ae.forEach((Be,nt)=>{if(Q!==Be||Ae.length===nt+1)return;Q=u.placement.split(" ")[0];const ze="left"===Q&&Math.floor(u.offsets.target.right??0)>Math.floor(u.offsets.host.left??0)||"right"===Q&&Math.floor(u.offsets.target.left??0)<Math.floor(u.offsets.host.right??0)||"top"===Q&&Math.floor(u.offsets.target.bottom??0)>Math.floor(u.offsets.host.top??0)||"bottom"===Q&&Math.floor(u.offsets.target.top??0)<Math.floor(u.offsets.host.bottom??0),It=Math.floor(u.offsets.target.left??0)<Math.floor(Z.left??0),pt=Math.floor(u.offsets.target.right??0)>Math.floor(Z.right??0),Mt=Math.floor(u.offsets.target.top??0)<Math.floor(Z.top??0),w=Math.floor(u.offsets.target.bottom??0)>Math.floor(Z.bottom??0),A="left"===Q&&It||"right"===Q&&pt||"top"===Q&&Mt||"bottom"===Q&&w,te=-1!==["top","bottom"].indexOf(Q),P=te&&"left"===q&&It||te&&"right"===q&&pt||!te&&"left"===q&&Mt||!te&&"right"===q&&w;(ze||A||P)&&((ze||A)&&(Q=Ae[nt+1]),P&&(q=function ne(u){return"right"===u?"left":"left"===u?"right":u}(q)),u.placement=Q+(q?` ${q}`:""),u.offsets.target={...u.offsets.target,...ae(u.instance.target,u.offsets.host,u.placement)})}),u}function kt(u){if(!Me(u.options,"preventOverflow"))return u;const Z="transform",Q=u.instance.target.style,{top:q,left:ue,[Z]:he}=Q;Q.top="",Q.left="",Q[Z]="";const ve=X(u.instance.target,u.instance.host,0,u.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);Q.top=q,Q.left=ue,Q[Z]=he;const Ae={primary(Be){let nt=u.offsets.target[Be];return(u.offsets.target[Be]??0)<(ve[Be]??0)&&(nt=Math.max(u.offsets.target[Be]??0,ve[Be]??0)),{[Be]:nt}},secondary(Be){const nt="right"===Be,ze=nt?"left":"top";let pt=u.offsets.target[ze];return(u.offsets.target[Be]??0)>(ve[Be]??0)&&(pt=Math.min(u.offsets.target[ze]??0,(ve[Be]??0)-u.offsets.target[nt?"width":"height"])),{[ze]:pt}}};return["left","right","top","bottom"].forEach(Be=>{const nt=-1!==["left","top","start"].indexOf(Be)?Ae.primary:Ae.secondary;u.offsets.target={...u.offsets.target,...nt(Be)}}),u}function Pt(u){const Z=u.placement,Q=Z.split(" ")[0],q=Z.split(" ")[1];if(q){const{host:ue,target:he}=u.offsets,ve=-1!==["bottom","top"].indexOf(Q),De=ve?"left":"top",Ae=ve?"width":"height",Be={start:{[De]:ue[De]},end:{[De]:(ue[De]??0)+ue[Ae]-he[Ae]}};u.offsets.target={...he,[De]:De===q?Be.start[De]:Be.end[De]}}return u}const we=new class Ze{position(Z,Q){return this.offset(Z,Q)}offset(Z,Q){return oe(Q,Z)}positionElements(Z,Q,q,ue,he){const ve=[_t,Pt,kt,ut],Ae=function lt(u,Z,Q,q){if(!u||!Z)return;const ue=oe(u,Z);!Q.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!Q.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(Q="auto");const he=!!Q.match(/auto/g);let ve=Q.match(/auto\s(left|right|top|bottom|start|end)/)?Q.split(" ")[1]||"auto":Q;const De=ve.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return De&&(ve=De[1]+(De[2]?` ${De[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(ve)&&(ve="auto"),ve=v(ve,ue,u,Z,q?q.allowedPositions:void 0),{options:q||{modifiers:{}},instance:{target:u,host:Z,arrow:void 0},offsets:{target:ae(u,ue,ve),host:ue,arrow:void 0},positionFixed:!1,placement:ve,placementAuto:he}}(Q,Z,g[q],he);if(Ae)return ve.reduce((Be,nt)=>nt(Be),Ae)}};function Ut(u,Z,Q,q,ue,he){const ve=we.positionElements(u,Z,Q,q,ue);if(!ve)return;const De=function N(u){return{width:u.offsets.target.width,height:u.offsets.target.height,left:Math.floor(u.offsets.target.left??0),top:Math.round(u.offsets.target.top??0),bottom:Math.round(u.offsets.target.bottom??0),right:Math.floor(u.offsets.target.right??0)}}(ve);vt(Z,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${De.left}px, ${De.top}px, 0px)`},he),ve.instance.arrow&&vt(ve.instance.arrow,ve.offsets.arrow,he),function Ee(u,Z){const Q=u.instance.target;let q=Q.className;const ue=(0,t.Bu)().isBs5?p[u.placement]:u.placement;u.placementAuto&&(q=q.replace(/bs-popover-auto/g,`bs-popover-${ue}`),q=q.replace(/ms-2|me-2|mb-2|mt-2/g,""),q=q.replace(/bs-tooltip-auto/g,`bs-tooltip-${ue}`),q=q.replace(/\sauto/g,` ${ue}`),-1!==q.indexOf("popover")&&(q=q+" "+function Qe(u){return(0,t.Bu)().isBs5?$e(u,"end")?"ms-2":$e(u,"start")?"me-2":$e(u,"top")?"mb-2":$e(u,"bottom")?"mt-2":"":""}(ue)),-1!==q.indexOf("popover")&&-1===q.indexOf("popover-auto")&&(q+=" popover-auto"),-1!==q.indexOf("tooltip")&&-1===q.indexOf("tooltip-auto")&&(q+=" tooltip-auto")),q=q.replace(/left|right|top|bottom|end|start/g,`${ue.split(" ")[0]}`),Z?Z.setAttribute(Q,"class",q):Q.className=q}(ve,he)}let en=(()=>{class u{constructor(Q,q,ue){this.update$$=new T.B,this.positionElements=new Map,this.isDisabled=!1,(0,M.UE)(ue)&&Q.runOutsideAngular(()=>{this.triggerEvent$=(0,D.h)((0,E.R)(window,"scroll",{passive:!0}),(0,E.R)(window,"resize",{passive:!0}),(0,O.of)(0,C.X),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(he=>{Ut(Ot(he.target),Ot(he.element),he.attachment,he.appendToBody,this.options,q.createRenderer(null,null))})})})}position(Q){this.addPositionElement(Q)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(Q){this.positionElements.set(Ot(Q.element),Q)}calcPosition(){this.update$$.next(null)}deletePositionElement(Q){this.positionElements.delete(Ot(Q))}setOptions(Q){this.options=Q}static#e=this.\u0275fac=function(q){return new(q||u)(f.KVO(f.SKi),f.KVO(f._9s),f.KVO(f.Agw))};static#t=this.\u0275prov=f.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();function Ot(u){return"string"==typeof u?document.querySelector(u):u instanceof f.aKT?u.nativeElement:u??null}},425:(_e,L,l)=>{l.d(L,{Bu:()=>ie,Fv:()=>C,GL:()=>E,Xt:()=>O,Yr:()=>X,Zu:()=>T,mc:()=>ce});var t=l(3953);class f{constructor(J,R){this.open=J,this.close=R||J}isManual(){return"manual"===this.open||"manual"===this.close}}const M={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function T(ne,J=M){const R=(ne||"").trim();if(0===R.length)return[];const oe=R.split(/\s+/).map(Me=>Me.split(":")).map(Me=>{const We=J[Me[0]]||Me;return new f(We[0],We[1])}),ae=oe.filter(Me=>Me.isManual());if(ae.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===ae.length&&oe.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return oe}function E(ne,J){const R=T(J.triggers),oe=J.target;if(1===R.length&&R[0].isManual())return Function.prototype;const ae=[],Me=[],We=()=>{Me.forEach($e=>ae.push($e())),Me.length=0};return R.forEach($e=>{const Qe=$e.open===$e.close,Ee=Qe?J.toggle:J.show;if(!Qe&&$e.close&&J.hide){const vt=$e.close,ut=J.hide;Me.push(()=>ne.listen(oe,vt,ut))}Ee&&ae.push(ne.listen(oe,$e.open,()=>Ee(We)))}),()=>{ae.forEach($e=>$e())}}function O(ne,J){return J.outsideClick?ne.listen("document","click",R=>{J.target&&J.target.contains(R.target)||J.targets&&J.targets.some(oe=>oe.contains(R.target))||J.hide&&J.hide()}):Function.prototype}function C(ne,J){return J.outsideEsc?ne.listen("document","keyup.esc",R=>{J.target&&J.target.contains(R.target)||J.targets&&J.targets.some(oe=>oe.contains(R.target))||J.hide&&J.hide()}):Function.prototype}const g=typeof window<"u"&&window||{};let x;function le(){const ne=g.document.createElement("span");ne.innerText="testing bs version",ne.classList.add("d-none"),ne.classList.add("pl-1"),g.document.head.appendChild(ne);const J=g.getComputedStyle(ne).paddingLeft;return J&&parseFloat(J)?(g.document.head.removeChild(ne),"bs4"):(g.document.head.removeChild(ne),"bs5")}function ie(){return{isBs4:(x||(x=le()),"bs4"===x),isBs5:(x||(x=le()),"bs5"===x)}}function X(){return function(R,oe){const ae=` __${oe}Value`;Object.defineProperty(R,oe,{get(){return this[ae]},set(Me){const We=this[ae];this[ae]=Me,We!==Me&&this[oe+"Change"]&&this[oe+"Change"].emit(Me)}})}}const v={},N=typeof console>"u"||!("warn"in console);function ce(ne){!(0,t.naY)()||N||ne in v||(v[ne]=!0,console.warn(ne))}}}]);
Back to Directory
File Manager