403Webshell
Server IP : 31.14.161.123  /  Your IP : 216.73.216.229
Web Server : Apache
System : Linux cpanel.classit.ro 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64
User : diamedic ( 1014)
PHP Version : 8.2.32
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/diamedic/public_html/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/diamedic/public_html/app/main-VKXGBJXZ.js
import{A as vo,a as V,b as Q,c as qi,d as wn,e as io,f as ro,g as so,h as oo,i as ao,j as Ki,k as xn,l as lo,m as ce,n as Je,o as co,p as uo,q as X,r as yt,s as On,t as yo,u as bo,v as Kt,w as In,x as Nn,y as Pn,z as Ue}from"./chunk-CYX5NT6U.js";import{a as po,b as mo,c as Mn,d as bt,e as vt,f as _t,g as St,h as fo,i as ho,r as go,s as An,t as kn}from"./chunk-COOKQFH3.js";import{b as no}from"./chunk-6NL2JLBK.js";import{a as Gs,b as Ys,c as Cn,d as Xs,e as Zs,f as Be,g as Js,h as eo,i as Tn,j as He,k as ee,l as xe,m as to,n as Me}from"./chunk-UNAWHOHK.js";import{a as _o,b as te}from"./chunk-ZXQGDH36.js";import"./chunk-JEHA5K4L.js";import{$ as Ts,$c as Ks,A as Di,Aa as ft,Ab as k,Ba as ks,Bb as $t,C as ut,D as ne,Db as se,Eb as Ds,Ec as Ws,Fb as ie,G as Oe,Ga as ht,Gb as vn,H as Li,Ha as gt,I as ys,Ia as bn,Ib as Xe,J as bs,Jb as Ze,Kb as d,L as dt,La as Os,Lb as m,Lc as _n,M as vs,Mb as v,N as Fi,Nc as Sn,O as _s,Oc as En,Pb as Ee,Qb as Ui,Qc as Vs,R as Ht,Ra as Bi,Rc as ve,S as zi,Sb as j,Tb as P,U as ji,Ub as Ls,Vb as Fs,Wb as $i,X as Ss,Xa as Is,Yb as Wt,Z as Es,Za as Ns,Zb as Vt,Zc as Vi,_ as Cs,_a as S,_b as qt,_c as qs,a as ds,ad as Qs,ba as De,bb as Ps,bc as ye,c as jt,ca as pt,cb as Fe,cc as _,db as Ye,dc as be,ea as Ut,ec as ae,f as ct,fa as ws,g as Bt,ga as H,gc as zs,h as ps,hc as js,ic as Bs,j as ms,ja as K,jb as $,k as gn,ka as Le,kb as ze,kc as J,l as fs,lc as Wi,ma as oe,n as Re,o as Pi,oa as z,ob as U,oc as je,pa as I,qc as Hs,r as hs,ra as xs,rc as Us,s as pe,sa as yn,sc as $s,t as gs,ta as Ms,u as Ri,vb as Rs,ya as As,yb as ge,za as mt,zb as Hi}from"./chunk-YYBV4RPL.js";import{a as E,b as W,c as us,d as cc,e as uc}from"./chunk-EQDQRRRY.js";var rl=cc((o0,il)=>{"use strict";var Up=function(e){return $p(e)&&!Wp(e)};function $p(n){return!!n&&typeof n=="object"}function Wp(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||Kp(n)}var Vp=typeof Symbol=="function"&&Symbol.for,qp=Vp?Symbol.for("react.element"):60103;function Kp(n){return n.$$typeof===qp}function Qp(n){return Array.isArray(n)?[]:{}}function on(n,e){return e.clone!==!1&&e.isMergeableObject(n)?zt(Qp(n),n,e):n}function Gp(n,e,t){return n.concat(e).map(function(i){return on(i,t)})}function Yp(n,e){if(!e.customMerge)return zt;var t=e.customMerge(n);return typeof t=="function"?t:zt}function Xp(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function tl(n){return Object.keys(n).concat(Xp(n))}function nl(n,e){try{return e in n}catch{return!1}}function Zp(n,e){return nl(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Jp(n,e,t){var i={};return t.isMergeableObject(n)&&tl(n).forEach(function(r){i[r]=on(n[r],t)}),tl(e).forEach(function(r){Zp(n,r)||(nl(n,r)&&t.isMergeableObject(e[r])?i[r]=Yp(r,t)(n[r],e[r],t):i[r]=on(e[r],t))}),i}function zt(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Gp,t.isMergeableObject=t.isMergeableObject||Up,t.cloneUnlessOtherwiseSpecified=on;var i=Array.isArray(e),r=Array.isArray(n),s=i===r;return s?i?t.arrayMerge(n,e,t):Jp(n,e,t):on(e,t)}zt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return zt(i,r,t)},{})};var em=zt;il.exports=em});var Gt="PERFORM_ACTION",pc="REFRESH",xo="RESET",Mo="ROLLBACK",Ao="COMMIT",ko="SWEEP",Oo="TOGGLE_ACTION",mc="SET_ACTIONS_ACTIVE",Io="JUMP_TO_STATE",No="JUMP_TO_ACTION",or="IMPORT_STATE",Po="LOCK_CHANGES",Ro="PAUSE_RECORDING",Et=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=Gt,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Qi=class{constructor(){this.type=pc}},Gi=class{constructor(e){this.timestamp=e,this.type=xo}},Yi=class{constructor(e){this.timestamp=e,this.type=Mo}},Xi=class{constructor(e){this.timestamp=e,this.type=Ao}},Zi=class{constructor(){this.type=ko}},Ji=class{constructor(e){this.id=e,this.type=Oo}};var er=class{constructor(e){this.index=e,this.type=Io}},tr=class{constructor(e){this.actionId=e,this.type=No}},nr=class{constructor(e){this.nextLiftedState=e,this.type=or}},ir=class{constructor(e){this.status=e,this.type=Po}},rr=class{constructor(e){this.status=e,this.type=Ro}};var Fn=new oe("@ngrx/store-devtools Options"),So=new oe("@ngrx/store-devtools Initial Config");function Do(){return null}var fc="NgRx Store DevTools";function hc(n){let e={maxAge:!1,monitor:Do,actionSanitizer:void 0,stateSanitizer:void 0,name:fc,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},t=typeof n=="function"?n():n,i=t.logOnly?{pause:!0,export:!0,test:!0}:!1,r=t.features||i||e.features;r.import===!0&&(r.import="custom");let s=Object.assign({},e,{features:r},t);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s}function Eo(n,e){return n.filter(t=>e.indexOf(t)<0)}function Lo(n){let{computedStates:e,currentStateIndex:t}=n;if(t>=e.length){let{state:r}=e[e.length-1];return r}let{state:i}=e[t];return i}function Qt(n){return new Et(n,+Date.now())}function gc(n,e){return Object.keys(e).reduce((t,i)=>{let r=Number(i);return t[r]=Fo(n,e[r],r),t},{})}function Fo(n,e,t){return W(E({},e),{action:n(e.action,t)})}function yc(n,e){return e.map((t,i)=>({state:zo(n,t.state,i),error:t.error}))}function zo(n,e,t){return n(e,t)}function jo(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function bc(n,e,t,i){let r=[],s={},o=[];return n.stagedActionIds.forEach((a,l)=>{let c=n.actionsById[a];c&&(l&&ar(n.computedStates[l],c,e,t,i)||(s[a]=c,r.push(a),o.push(n.computedStates[l])))}),W(E({},n),{stagedActionIds:r,actionsById:s,computedStates:o})}function ar(n,e,t,i,r){let s=t&&!t(n,e.action),o=i&&!e.action.type.match(i.map(l=>Co(l)).join("|")),a=r&&e.action.type.match(r.map(l=>Co(l)).join("|"));return s||o||a}function Co(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Bo(n){return{ngZone:n?I(gt):null,connectInZone:n}}var zn=(()=>{class n extends wn{static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=ks(n)))(r||n)}})()}static{this.\u0275prov=K({token:n,factory:n.\u0275fac})}}return n})(),Rn={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},sr=new oe("@ngrx/store-devtools Redux Devtools Extension"),Ho=(()=>{class n{constructor(t,i,r){this.config=i,this.dispatcher=r,this.zoneConfig=Bo(this.config.connectInZone),this.devtoolsExtension=t,this.createActionStreams()}notify(t,i){if(this.devtoolsExtension)if(t.type===Gt){if(i.isLocked||i.isPaused)return;let r=Lo(i);if(jo(this.config)&&ar(r,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let s=this.config.stateSanitizer?zo(this.config.stateSanitizer,r,i.currentStateIndex):r,o=this.config.actionSanitizer?Fo(this.config.actionSanitizer,t,i.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(o,s))}else{let r=W(E({},i),{stagedActionIds:i.stagedActionIds,actionsById:this.config.actionSanitizer?gc(this.config.actionSanitizer,i.actionsById):i.actionsById,computedStates:this.config.stateSanitizer?yc(this.config.stateSanitizer,i.computedStates):i.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,r,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new jt(t=>{let i=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=i,i.init(),i.subscribe(r=>t.next(r)),i.unsubscribe}):gn}createActionStreams(){let t=this.createChangesObservable().pipe(Cs()),i=t.pipe(ne(c=>c.type===Rn.START)),r=t.pipe(ne(c=>c.type===Rn.STOP)),s=t.pipe(ne(c=>c.type===Rn.DISPATCH),pe(c=>this.unwrapAction(c.payload)),Li(c=>c.type===or?this.dispatcher.pipe(ne(p=>p.type===Ki),hs(1e3),bs(1e3),pe(()=>c),Oe(()=>Re(c)),dt(1)):Re(c))),a=t.pipe(ne(c=>c.type===Rn.ACTION),pe(c=>this.unwrapAction(c.payload))).pipe(pt(r)),l=s.pipe(pt(r));this.start$=i.pipe(pt(r)),this.actions$=this.start$.pipe(De(()=>a)),this.liftedActions$=this.start$.pipe(De(()=>l))}unwrapAction(t){return typeof t=="string"?(0,eval)(`(${t})`):t}getExtensionConfig(t){let i={name:t.name,features:t.features,serialize:t.serialize,autoPause:t.autoPause??!1,trace:t.trace??!1,traceLimit:t.traceLimit??75};return t.maxAge!==!1&&(i.maxAge=t.maxAge),i}sendToReduxDevtools(t){try{t()}catch(i){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",i)}}static{this.\u0275fac=function(i){return new(i||n)(z(sr),z(Fn),z(zn))}}static{this.\u0275prov=K({token:n,factory:n.\u0275fac})}}return n})(),Ln={type:qi},vc="@ngrx/store-devtools/recompute",_c={type:vc};function Uo(n,e,t,i,r){if(i)return{state:t,error:"Interrupted by an error up the chain"};let s=t,o;try{s=n(t,e)}catch(a){o=a.toString(),r.handleError(a)}return{state:s,error:o}}function Dn(n,e,t,i,r,s,o,a,l){if(e>=n.length&&n.length===s.length)return n;let c=n.slice(0,e),p=s.length-(l?1:0);for(let u=e;u<p;u++){let f=s[u],y=r[f].action,h=c[u-1],g=h?h.state:i,T=h?h.error:void 0,N=o.indexOf(f)>-1?h:Uo(t,y,g,T,a);c.push(N)}return l&&c.push(n[n.length-1]),c}function Sc(n,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:Qt(Ln)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Ec(n,e,t,i,r={}){return s=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:u,skippedActionIds:f,committedState:y,currentStateIndex:h,computedStates:g,isLocked:T,isPaused:M}=o||e;o||(c=Object.create(c));function N(L){let b=L,O=u.slice(1,b+1);for(let D=0;D<O.length;D++)if(g[D+1].error){b=D,O=u.slice(1,b+1);break}else delete c[O[D]];f=f.filter(D=>O.indexOf(D)===-1),u=[0,...u.slice(b+1)],y=g[b].state,g=g.slice(b),h=h>b?h-b:0}function R(){c={0:Qt(Ln)},p=1,u=[0],f=[],y=g[h].state,h=0,g=[]}let w=0;switch(a.type){case Po:{T=a.status,w=1/0;break}case Ro:{M=a.status,M?(u=[...u,p],c[p]=new Et({type:"@ngrx/devtools/pause"},+Date.now()),p++,w=u.length-1,g=g.concat(g[g.length-1]),h===u.length-2&&h++,w=1/0):R();break}case xo:{c={0:Qt(Ln)},p=1,u=[0],f=[],y=n,h=0,g=[];break}case Ao:{R();break}case Mo:{c={0:Qt(Ln)},p=1,u=[0],f=[],h=0,g=[];break}case Oo:{let{id:L}=a;f.indexOf(L)===-1?f=[L,...f]:f=f.filter(O=>O!==L),w=u.indexOf(L);break}case mc:{let{start:L,end:b,active:O}=a,D=[];for(let Y=L;Y<b;Y++)D.push(Y);O?f=Eo(f,D):f=[...f,...D],w=u.indexOf(L);break}case Io:{h=a.index,w=1/0;break}case No:{let L=u.indexOf(a.actionId);L!==-1&&(h=L),w=1/0;break}case ko:{u=Eo(u,f),f=[],h=Math.min(h,u.length-1);break}case Gt:{if(T)return o||e;if(M||o&&ar(o.computedStates[h],a,r.predicate,r.actionsSafelist,r.actionsBlocklist)){let b=g[g.length-1];g=[...g.slice(0,-1),Uo(s,a.action,b.state,b.error,t)],w=1/0;break}r.maxAge&&u.length===r.maxAge&&N(1),h===u.length-1&&h++;let L=p++;c[L]=a,u=[...u,L],w=u.length-1;break}case or:{({monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:u,skippedActionIds:f,committedState:y,currentStateIndex:h,computedStates:g,isLocked:T,isPaused:M}=a.nextLiftedState);break}case qi:{w=0,r.maxAge&&u.length>r.maxAge&&(g=Dn(g,w,s,y,c,u,f,t,M),N(u.length-r.maxAge),w=1/0);break}case Ki:{if(g.filter(b=>b.error).length>0)w=0,r.maxAge&&u.length>r.maxAge&&(g=Dn(g,w,s,y,c,u,f,t,M),N(u.length-r.maxAge),w=1/0);else{if(!M&&!T){h===u.length-1&&h++;let b=p++;c[b]=new Et(a,+Date.now()),u=[...u,b],w=u.length-1,g=Dn(g,w,s,y,c,u,f,t,M)}g=g.map(b=>W(E({},b),{state:s(b.state,_c)})),h=u.length-1,r.maxAge&&u.length>r.maxAge&&N(u.length-r.maxAge),w=1/0}break}default:{w=1/0;break}}return g=Dn(g,w,s,y,c,u,f,t,M),l=i(l,a),{monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:u,skippedActionIds:f,committedState:y,currentStateIndex:h,computedStates:g,isLocked:T,isPaused:M}}}var To=(()=>{class n{constructor(t,i,r,s,o,a,l,c){let p=Sc(l,c.monitor),u=Ec(l,p,a,c.monitor,c),f=ut(ut(i.asObservable().pipe(Ts(1)),s.actions$).pipe(pe(Qt)),t,s.liftedActions$).pipe(fs(ms)),y=r.pipe(pe(u)),h=Bo(c.connectInZone),g=new ps(1);this.liftedStateSubscription=f.pipe(ws(y),wo(h),Es(({state:N},[R,w])=>{let L=w(N,R);return R.type!==Gt&&jo(c)&&(L=bc(L,c.predicate,c.actionsSafelist,c.actionsBlocklist)),s.notify(R,L),{state:L,action:R}},{state:p,action:null})).subscribe(({state:N,action:R})=>{if(g.next(N),R.type===Gt){let w=R.action;o.next(w)}}),this.extensionStartSubscription=s.start$.pipe(wo(h)).subscribe(()=>{this.refresh()});let T=g.asObservable(),M=T.pipe(pe(Lo));Object.defineProperty(M,"state",{value:no(M,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=t,this.liftedState=T,this.state=M}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(t){this.dispatcher.next(t)}next(t){this.dispatcher.next(t)}error(t){}complete(){}performAction(t){this.dispatch(new Et(t,+Date.now()))}refresh(){this.dispatch(new Qi)}reset(){this.dispatch(new Gi(+Date.now()))}rollback(){this.dispatch(new Yi(+Date.now()))}commit(){this.dispatch(new Xi(+Date.now()))}sweep(){this.dispatch(new Zi)}toggleAction(t){this.dispatch(new Ji(t))}jumpToAction(t){this.dispatch(new tr(t))}jumpToState(t){this.dispatch(new er(t))}importState(t){this.dispatch(new nr(t))}lockChanges(t){this.dispatch(new ir(t))}pauseRecording(t){this.dispatch(new rr(t))}static{this.\u0275fac=function(i){return new(i||n)(z(zn),z(wn),z(oo),z(Ho),z(xn),z(bn),z(io),z(Fn))}}static{this.\u0275prov=K({token:n,factory:n.\u0275fac})}}return n})();function wo({ngZone:n,connectInZone:e}){return t=>e?new jt(i=>t.subscribe({next:r=>n.run(()=>i.next(r)),error:r=>n.run(()=>i.error(r)),complete:()=>n.run(()=>i.complete())})):t}var Cc=new oe("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function Tc(n,e){return!!n||e.monitor!==Do}function wc(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function xc(n){return n.state}function $o(n={}){return yn([Ho,zn,To,{provide:So,useValue:n},{provide:Cc,deps:[sr,Fn],useFactory:Tc},{provide:sr,useFactory:wc},{provide:Fn,deps:[So],useFactory:hc},{provide:lo,deps:[To],useFactory:xc},{provide:ao,useExisting:zn}])}var F=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(F||{}),Ae="*";function Wo(n,e=null){return{type:F.Sequence,steps:n,options:e}}function lr(n){return{type:F.Style,styles:n,offset:null}}var $e=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Yt=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,i=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},jn="!";function Vo(n){return new H(3e3,!1)}function Mc(){return new H(3100,!1)}function Ac(){return new H(3101,!1)}function kc(n){return new H(3001,!1)}function Oc(n){return new H(3003,!1)}function Ic(n){return new H(3004,!1)}function Nc(n,e){return new H(3005,!1)}function Pc(){return new H(3006,!1)}function Rc(){return new H(3007,!1)}function Dc(n,e){return new H(3008,!1)}function Lc(n){return new H(3002,!1)}function Fc(n,e,t,i,r){return new H(3010,!1)}function zc(){return new H(3011,!1)}function jc(){return new H(3012,!1)}function Bc(){return new H(3200,!1)}function Hc(){return new H(3202,!1)}function Uc(){return new H(3013,!1)}function $c(n){return new H(3014,!1)}function Wc(n){return new H(3015,!1)}function Vc(n){return new H(3016,!1)}function qc(n,e){return new H(3404,!1)}function Kc(n){return new H(3502,!1)}function Qc(n){return new H(3503,!1)}function Gc(){return new H(3300,!1)}function Yc(n){return new H(3504,!1)}function Xc(n){return new H(3301,!1)}function Zc(n,e){return new H(3302,!1)}function Jc(n){return new H(3303,!1)}function eu(n,e){return new H(3400,!1)}function tu(n){return new H(3401,!1)}function nu(n){return new H(3402,!1)}function iu(n,e){return new H(3505,!1)}function We(n){switch(n.length){case 0:return new $e;case 1:return n[0];default:return new Yt(n)}}function sa(n,e,t=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),p=c==o,u=p&&a||new Map;l.forEach((f,y)=>{let h=y,g=f;if(y!=="offset")switch(h=n.normalizePropertyName(h,r),g){case jn:g=t.get(y);break;case Ae:g=i.get(y);break;default:g=n.normalizeStyleValue(y,h,g,r);break}u.set(h,g)}),p||s.push(u),a=u,o=c}),r.length)throw Kc(r);return s}function Or(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&cr(t,"start",n)));break;case"done":n.onDone(()=>i(t&&cr(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&cr(t,"destroy",n)));break}}function cr(n,e,t){let i=t.totalTime,r=!!t.disabled,s=Ir(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function Ir(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function fe(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function qo(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var ru=typeof document>"u"?null:document.documentElement;function Nr(n){let e=n.parentNode||n.host||null;return e===ru?null:e}function su(n){return n.substring(1,6)=="ebkit"}var et=null,Ko=!1;function ou(n){et||(et=au()||{},Ko=et.style?"WebkitAppearance"in et.style:!1);let e=!0;return et.style&&!su(n)&&(e=n in et.style,!e&&Ko&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in et.style)),e}function au(){return typeof document<"u"?document.body:null}function oa(n,e){for(;e;){if(e===n)return!0;e=Nr(e)}return!1}function aa(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var Pr=(()=>{class n{validateStyleProperty(t){return ou(t)}containsElement(t,i){return oa(t,i)}getParentElement(t){return Nr(t)}query(t,i,r){return aa(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new $e(r,s)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=K({token:n,factory:n.\u0275fac})}return n})(),it=class{static NOOP=new Pr},rt=class{};var lu=1e3,la="{{",cu="}}",ca="ng-enter",hr="ng-leave",Bn="ng-trigger",Vn=".ng-trigger",Qo="ng-animating",gr=".ng-animating";function Ie(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:yr(parseFloat(e[1]),e[2])}function yr(n,e){switch(e){case"s":return n*lu;default:return n}}function qn(n,e,t){return n.hasOwnProperty("duration")?n:uu(n,e,t)}function uu(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(Vo(n)),{duration:0,delay:0,easing:""};r=yr(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=yr(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(Mc()),a=!0),s<0&&(e.push(Ac()),a=!0),a&&e.splice(l,0,Vo(n))}return{duration:r,delay:s,easing:o}}function du(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function ke(n,e,t){e.forEach((i,r)=>{let s=Rr(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function nt(n,e){e.forEach((t,i)=>{let r=Rr(i);n.style[r]=""})}function Xt(n){return Array.isArray(n)?n.length==1?n[0]:Wo(n):n}function pu(n,e,t){let i=e.params||{},r=ua(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(kc(s))})}var br=new RegExp(`${la}\\s*(.+?)\\s*${cu}`,"g");function ua(n){let e=[];if(typeof n=="string"){let t;for(;t=br.exec(n);)e.push(t[1]);br.lastIndex=0}return e}function Jt(n,e,t){let i=`${n}`,r=i.replace(br,(s,o)=>{let a=e[o];return a==null&&(t.push(Oc(o)),a=""),a.toString()});return r==i?n:r}var mu=/-+([a-z0-9])/g;function Rr(n){return n.replace(mu,(...e)=>e[1].toUpperCase())}function fu(n,e){return n===0||e===0}function hu(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<e.length;s++){let o=e[s];r.forEach(a=>o.set(a,Dr(n,a)))}}return e}function me(n,e,t){switch(e.type){case F.Trigger:return n.visitTrigger(e,t);case F.State:return n.visitState(e,t);case F.Transition:return n.visitTransition(e,t);case F.Sequence:return n.visitSequence(e,t);case F.Group:return n.visitGroup(e,t);case F.Animate:return n.visitAnimate(e,t);case F.Keyframes:return n.visitKeyframes(e,t);case F.Style:return n.visitStyle(e,t);case F.Reference:return n.visitReference(e,t);case F.AnimateChild:return n.visitAnimateChild(e,t);case F.AnimateRef:return n.visitAnimateRef(e,t);case F.Query:return n.visitQuery(e,t);case F.Stagger:return n.visitStagger(e,t);default:throw Ic(e.type)}}function Dr(n,e){return window.getComputedStyle(n)[e]}var gu=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Kn=class extends rt{normalizePropertyName(e,t){return Rr(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(gu.has(t)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Nc(e,i))}return o+s}};var Qn="*";function yu(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>bu(i,t,e)):t.push(n),t}function bu(n,e,t){if(n[0]==":"){let l=vu(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Wc(n)),e;let r=i[1],s=i[2],o=i[3];e.push(Go(r,o));let a=r==Qn&&o==Qn;s[0]=="<"&&!a&&e.push(Go(o,r))}function vu(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(Vc(n)),"* => *"}}var Hn=new Set(["true","1"]),Un=new Set(["false","0"]);function Go(n,e){let t=Hn.has(n)||Un.has(n),i=Hn.has(e)||Un.has(e);return(r,s)=>{let o=n==Qn||n==r,a=e==Qn||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?Hn.has(n):Un.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?Hn.has(e):Un.has(e)),o&&a}}var da=":self",_u=new RegExp(`s*${da}s*,?`,"g");function pa(n,e,t,i){return new vr(n).build(e,t,i)}var Yo="",vr=class{_driver;constructor(e){this._driver=e}build(e,t,i){let r=new _r(t);return this._resetContextStyleTimingState(r),me(this,Xt(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Yo,e.collectedStyles=new Map,e.collectedStyles.set(Yo,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Pc()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==F.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(p=>{l.name=p,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==F.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(Rc())}),{type:F.Trigger,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ua(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(Dc(e.name,[...s.values()]))}return{type:F.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=me(this,Xt(e.animation),t),r=yu(e.expr,t.errors);return{type:F.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:tt(e.options)}}visitSequence(e,t){return{type:F.Sequence,steps:e.steps.map(i=>me(this,i,t)),options:tt(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=i;let a=me(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:F.Group,steps:s,options:tt(e.options)}}visitAnimate(e,t){let i=Tu(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:lr({});if(s.type==F.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=lr(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:F.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===Ae?i.push(a):t.errors.push(Lc(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(la)>=0){s=!0;break}}}),{type:F.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),p=c.get(l),u=!0;p&&(s!=r&&s>=p.startTime&&r<=p.endTime&&(t.errors.push(Fc(l,p.startTime,p.endTime,s,r)),u=!1),s=p.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&pu(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:F.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(zc()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,p=e.steps.map(M=>{let N=this._makeStyleAst(M,t),R=N.offset!=null?N.offset:Cu(N.styles),w=0;return R!=null&&(s++,w=N.offset=R),l=l||w<0||w>1,a=a||w<c,c=w,o.push(w),N});l&&t.errors.push(jc()),a&&t.errors.push(Bc());let u=e.steps.length,f=0;s>0&&s<u?t.errors.push(Hc()):s==0&&(f=r/(u-1));let y=u-1,h=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return p.forEach((M,N)=>{let R=f>0?N==y?1:f*N:o[N],w=R*T;t.currentTime=h+g.delay+w,g.duration=w,this._validateStyleAst(M,t),M.offset=R,i.styles.push(M)}),i}visitReference(e,t){return{type:F.Reference,animation:me(this,Xt(e.animation),t),options:tt(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:F.AnimateChild,options:tt(e.options)}}visitAnimateRef(e,t){return{type:F.AnimateRef,animation:this.visitReference(e.animation,t),options:tt(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Su(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,fe(t.collectedStyles,t.currentQuerySelector,new Map);let a=me(this,Xt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:F.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:tt(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Uc());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:qn(e.timings,t.errors,!0);return{type:F.Stagger,animation:me(this,Xt(e.animation),t),timings:i,options:null}}};function Su(n){let e=!!n.split(/\s*,\s*/).find(t=>t==da);return e&&(n=n.replace(_u,"")),n=n.replace(/@\*/g,Vn).replace(/@\w+/g,t=>Vn+"-"+t.slice(1)).replace(/:animating/g,gr),[n,e]}function Eu(n){return n?E({},n):null}var _r=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Cu(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Tu(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=qn(n,e).duration;return ur(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=ur(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=qn(t,e);return ur(r.duration,r.delay,r.easing)}function tt(n){return n?(n=E({},n),n.params&&(n.params=Eu(n.params))):n={},n}function ur(n,e,t){return{duration:n,delay:e,easing:t}}function Lr(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var en=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},wu=1,xu=":enter",Mu=new RegExp(xu,"g"),Au=":leave",ku=new RegExp(Au,"g");function ma(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new Sr().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var Sr=class{buildKeyframes(e,t,i,r,s,o,a,l,c,p=[]){c=c||new en;let u=new Er(e,t,c,r,s,p,[]);u.options=l;let f=l.delay?Ie(l.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([o],null,u.errors,l),me(this,i,u);let y=u.timelines.filter(h=>h.containsAnimation());if(y.length&&a.size){let h;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){h=T;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,u.errors,l)}return y.length?y.map(h=>h.buildKeyframes()):[Lr(t,[],[],[],0,f,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Ie(Jt(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?Ie(i.duration):null,a=i.delay!=null?Ie(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),me(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==F.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Gn);let o=Ie(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>me(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?Ie(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),me(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?Jt(i,t.params,t.errors):i;return qn(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let s=e.style;s.type==F.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ie(r.delay):0;s&&(t.previousNode.type===F.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Gn);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,p)=>{t.currentQueryIndex=p;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),me(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let f=u.currentTimeline.currentTime;o=Math.max(o,f)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let p=t.currentTimeline;l&&p.delayNextStep(l);let u=p.currentTime;me(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},Gn={},Er=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Gn;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=l||new Yn(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=Ie(i.duration)),i.delay!=null&&(r.delay=Ie(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Jt(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Gn,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new Cr(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Mu,"."+this._enterClassName),e=e.replace(ku,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push($c(t)),a}},Yn=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=wu,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Ae),this._currentKeyframe.set(t,Ae);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=Ou(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Jt(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ae),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((p,u)=>{p===jn?e.add(u):p===Ae&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Lr(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Cr=class extends Yn{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",Xo(a)),s.push(c);let p=e.length-1;for(let u=1;u<=p;u++){let f=new Map(e[u]),y=f.get("offset"),h=t+y*i;f.set("offset",Xo(h/o)),s.push(f)}i=o,t=0,r="",e=s}return Lr(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function Xo(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Ou(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,Ae)}else for(let[s,o]of r)t.set(s,o)}),t}function Zo(n,e,t,i,r,s,o,a,l,c,p,u,f){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:p,totalTime:u,errors:f}}var dr={},Xn=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return Iu(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,p){let u=[],f=this.ast.options&&this.ast.options.params||dr,y=a&&a.params||dr,h=this.buildStyles(i,y,u),g=l&&l.params||dr,T=this.buildStyles(r,g,u),M=new Set,N=new Map,R=new Map,w=r==="void",L={params:fa(g,f),delay:this.ast.options?.delay},b=p?[]:ma(e,t,this.ast.animation,s,o,h,T,L,c,u),O=0;return b.forEach(D=>{O=Math.max(D.duration+D.delay,O)}),u.length?Zo(t,this._triggerName,i,r,w,h,T,[],[],N,R,O,u):(b.forEach(D=>{let Y=D.element,le=fe(N,Y,new Set);D.preStyleProps.forEach(Qe=>le.add(Qe));let os=fe(R,Y,new Set);D.postStyleProps.forEach(Qe=>os.add(Qe)),Y!==t&&M.add(Y)}),Zo(t,this._triggerName,i,r,w,h,T,b,[...M.values()],N,R,O))}};function Iu(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function fa(n,e){let t=E({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var Tr=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=fa(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Jt(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Nu(n,e,t){return new wr(n,e,t)}var wr=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Tr(r.style,s,i))}),Jo(this.states,"true","1"),Jo(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Xn(e,r,this.states))}),this.fallbackTransition=Pu(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Pu(n,e,t){let i=[(o,a)=>!0],r={type:F.Sequence,steps:[],options:null},s={type:F.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Xn(n,s,e)}function Jo(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Ru=new en,xr=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i}register(e,t){let i=[],r=[],s=pa(this._driver,t,i,r);if(i.length)throw Qc(i);this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=sa(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=ma(this._driver,t,s,ca,hr,new Map,new Map,i,Ru,r),o.forEach(p=>{let u=fe(a,p.element,new Map);p.postStyleProps.forEach(f=>u.set(f,null))})):(r.push(Gc()),o=[]),r.length)throw Yc(r);a.forEach((p,u)=>{p.forEach((f,y)=>{p.set(y,this._driver.computeStyle(u,y,Ae))})});let l=o.map(p=>{let u=a.get(p.element);return this._buildPlayer(p,new Map,u)}),c=We(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Xc(e);return t}listen(e,t,i,r){let s=Ir(t,"","","");return Or(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},ea="ng-animate-queued",Du=".ng-animate-queued",pr="ng-animate-disabled",Lu=".ng-animate-disabled",Fu="ng-star-inserted",zu=".ng-star-inserted",ju=[],ha={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ce="__ng_removed",tn=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=Uu(r),i){let s=e,{value:o}=s,a=us(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},Zt="void",mr=new tn(Zt),Mr=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,_e(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw Zc(i,t);if(i==null||i.length==0)throw Jc(t);if(!$u(i))throw eu(i,t);let s=fe(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);let a=fe(this._engine.statesByElement,e,new Map);return a.has(t)||(_e(e,Bn),_e(e,Bn+"-"+t),a.set(t,mr)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw tu(e);return t}trigger(e,t,i,r=!0){let s=this._getTrigger(t),o=new nn(this.id,t,e),a=this._engine.statesByElement.get(e);a||(_e(e,Bn),_e(e,Bn+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new tn(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=mr),!(c.value===Zt)&&l.value===c.value){if(!qu(l.params,c.params)){let g=[],T=s.matchStyles(l.value,l.params,g),M=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{nt(e,T),ke(e,M)})}return}let f=fe(this._engine.playersByElement,e,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=s.matchTransition(l.value,c.value,e,c.params),h=!1;if(!y){if(!r)return;y=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(_e(e,ea),o.onStart(()=>{Ct(e,ea)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let M=T.indexOf(o);M>=0&&T.splice(M,1)}}),this.players.push(o),f.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Vn,!0);i.forEach(r=>{if(r[Ce])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let p=this.trigger(e,c,Zt,r);p&&a.push(p)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&We(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||mr,p=new tn(Zt),u=new nn(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:p,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let s=e[Ce];(!s||s===ha)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){_e(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Ir(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Or(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ar=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Mr(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,i,r){if($n(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!$n(t))return;let s=t[Ce];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_e(e,pr)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ct(e,pr))}removeNode(e,t,i){if($n(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Ce]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return $n(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Vn,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,gr,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return We(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Ce];if(t&&t.setForRemoval){if(e[Ce]=ha,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(pr)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Lu,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];_e(r,Fu)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?We(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw nu(e)}_flushAnimations(e,t){let i=new en,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,p=new Set;this.disabledNodes.forEach(C=>{p.add(C);let x=this.driver.query(C,Du,!0);for(let A=0;A<x.length;A++)p.add(x[A])});let u=this.bodyNode,f=Array.from(this.statesByElement.keys()),y=ia(f,this.collectedEnterElements),h=new Map,g=0;y.forEach((C,x)=>{let A=ca+g++;h.set(x,A),C.forEach(B=>_e(B,A))});let T=[],M=new Set,N=new Set;for(let C=0;C<this.collectedLeaveElements.length;C++){let x=this.collectedLeaveElements[C],A=x[Ce];A&&A.setForRemoval&&(T.push(x),M.add(x),A.hasAnimation?this.driver.query(x,zu,!0).forEach(B=>M.add(B)):N.add(x))}let R=new Map,w=ia(f,Array.from(M));w.forEach((C,x)=>{let A=hr+g++;R.set(x,A),C.forEach(B=>_e(B,A))}),e.push(()=>{y.forEach((C,x)=>{let A=h.get(x);C.forEach(B=>Ct(B,A))}),w.forEach((C,x)=>{let A=R.get(x);C.forEach(B=>Ct(B,A))}),T.forEach(C=>{this.processLeaveNode(C)})});let L=[],b=[];for(let C=this._namespaceList.length-1;C>=0;C--)this._namespaceList[C].drainQueuedTransitions(t).forEach(A=>{let B=A.player,Z=A.element;if(L.push(B),this.collectedEnterElements.length){let re=Z[Ce];if(re&&re.setForMove){if(re.previousTriggersValues&&re.previousTriggersValues.has(A.triggerName)){let Ge=re.previousTriggersValues.get(A.triggerName),he=this.statesByElement.get(A.element);if(he&&he.has(A.triggerName)){let hn=he.get(A.triggerName);hn.value=Ge,he.set(A.triggerName,hn)}}B.destroy();return}}let we=!u||!this.driver.containsElement(u,Z),de=R.get(Z),Pe=h.get(Z),q=this._buildInstruction(A,i,Pe,de,we);if(q.errors&&q.errors.length){b.push(q);return}if(we){B.onStart(()=>nt(Z,q.fromStyles)),B.onDestroy(()=>ke(Z,q.toStyles)),r.push(B);return}if(A.isFallbackTransition){B.onStart(()=>nt(Z,q.fromStyles)),B.onDestroy(()=>ke(Z,q.toStyles)),r.push(B);return}let cs=[];q.timelines.forEach(re=>{re.stretchStartingKeyframe=!0,this.disabledNodes.has(re.element)||cs.push(re)}),q.timelines=cs,i.append(Z,q.timelines);let lc={instruction:q,player:B,element:Z};o.push(lc),q.queriedElements.forEach(re=>fe(a,re,[]).push(B)),q.preStyleProps.forEach((re,Ge)=>{if(re.size){let he=l.get(Ge);he||l.set(Ge,he=new Set),re.forEach((hn,Ni)=>he.add(Ni))}}),q.postStyleProps.forEach((re,Ge)=>{let he=c.get(Ge);he||c.set(Ge,he=new Set),re.forEach((hn,Ni)=>he.add(Ni))})});if(b.length){let C=[];b.forEach(x=>{C.push(iu(x.triggerName,x.errors))}),L.forEach(x=>x.destroy()),this.reportError(C)}let O=new Map,D=new Map;o.forEach(C=>{let x=C.element;i.has(x)&&(D.set(x,x),this._beforeAnimationBuild(C.player.namespaceId,C.instruction,O))}),r.forEach(C=>{let x=C.element;this._getPreviousPlayers(x,!1,C.namespaceId,C.triggerName,null).forEach(B=>{fe(O,x,[]).push(B),B.destroy()})});let Y=T.filter(C=>ra(C,l,c)),le=new Map;na(le,this.driver,N,c,Ae).forEach(C=>{ra(C,l,c)&&Y.push(C)});let Qe=new Map;y.forEach((C,x)=>{na(Qe,this.driver,new Set(C),l,jn)}),Y.forEach(C=>{let x=le.get(C),A=Qe.get(C);le.set(C,new Map([...x?.entries()??[],...A?.entries()??[]]))});let Ii=[],as=[],ls={};o.forEach(C=>{let{element:x,player:A,instruction:B}=C;if(i.has(x)){if(p.has(x)){A.onDestroy(()=>ke(x,B.toStyles)),A.disabled=!0,A.overrideTotalTime(B.totalTime),r.push(A);return}let Z=ls;if(D.size>1){let de=x,Pe=[];for(;de=de.parentNode;){let q=D.get(de);if(q){Z=q;break}Pe.push(de)}Pe.forEach(q=>D.set(q,Z))}let we=this._buildAnimation(A.namespaceId,B,O,s,Qe,le);if(A.setRealPlayer(we),Z===ls)Ii.push(A);else{let de=this.playersByElement.get(Z);de&&de.length&&(A.parentPlayer=We(de)),r.push(A)}}else nt(x,B.fromStyles),A.onDestroy(()=>ke(x,B.toStyles)),as.push(A),p.has(x)&&r.push(A)}),as.forEach(C=>{let x=s.get(C.element);if(x&&x.length){let A=We(x);C.setRealPlayer(A)}}),r.forEach(C=>{C.parentPlayer?C.syncPlayerEvents(C.parentPlayer):C.destroy()});for(let C=0;C<T.length;C++){let x=T[C],A=x[Ce];if(Ct(x,hr),A&&A.hasAnimation)continue;let B=[];if(a.size){let we=a.get(x);we&&we.length&&B.push(...we);let de=this.driver.query(x,gr,!0);for(let Pe=0;Pe<de.length;Pe++){let q=a.get(de[Pe]);q&&q.length&&B.push(...q)}}let Z=B.filter(we=>!we.destroyed);Z.length?Wu(this,x,Z):this.processLeaveNode(x)}return T.length=0,Ii.forEach(C=>{this.players.push(C),C.onDone(()=>{C.destroy();let x=this.players.indexOf(C);this.players.splice(x,1)}),C.play()}),Ii}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Zt;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,p=c!==s,u=fe(i,c,[]);this._getPreviousPlayers(c,p,o,a,t.toState).forEach(y=>{let h=y.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),y.destroy(),u.push(y)})}nt(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){let a=t.triggerName,l=t.element,c=[],p=new Set,u=new Set,f=t.timelines.map(h=>{let g=h.element;p.add(g);let T=g[Ce];if(T&&T.removedBeforeQueried)return new $e(h.duration,h.delay);let M=g!==l,N=Vu((i.get(g)||ju).map(O=>O.getRealPlayer())).filter(O=>{let D=O;return D.element?D.element===g:!1}),R=s.get(g),w=o.get(g),L=sa(this._normalizer,h.keyframes,R,w),b=this._buildPlayer(h,L,N);if(h.subTimeline&&r&&u.add(g),M){let O=new nn(e,a,g);O.setRealPlayer(b),c.push(O)}return b});c.forEach(h=>{fe(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>Hu(this.playersByQueriedElement,h.element,h))}),p.forEach(h=>_e(h,Qo));let y=We(f);return y.onDestroy(()=>{p.forEach(h=>Ct(h,Qo)),ke(l,t.toStyles)}),u.forEach(h=>{fe(r,h,[]).push(y)}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new $e(e.duration,e.delay)}},nn=class{namespaceId;triggerName;element;_player=new $e;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Or(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){fe(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Hu(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function Uu(n){return n??null}function $n(n){return n&&n.nodeType===1}function $u(n){return n=="start"||n=="done"}function ta(n,e){let t=n.style.display;return n.style.display=e??"none",t}function na(n,e,t,i,r){let s=[];t.forEach(l=>s.push(ta(l)));let o=[];i.forEach((l,c)=>{let p=new Map;l.forEach(u=>{let f=e.computeStyle(c,u,r);p.set(u,f),(!f||f.length==0)&&(c[Ce]=Bu,o.push(c))}),n.set(c,p)});let a=0;return t.forEach(l=>ta(l,s[a++])),o}function ia(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function _e(n,e){n.classList?.add(e)}function Ct(n,e){n.classList?.remove(e)}function Wu(n,e,t){We(t).onDone(()=>n.processLeaveNode(e))}function Vu(n){let e=[];return ga(n,e),e}function ga(n,e){for(let t=0;t<n.length;t++){let i=n[t];i instanceof Yt?ga(i.players,e):e.push(i)}}function qu(n,e){let t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){let s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}function ra(n,e,t){let i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}var Tt=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new Ar(e.body,t,i),this._timelineEngine=new xr(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],p=pa(this._driver,s,l,c);if(l.length)throw qc(r,l);a=Nu(r,p,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[s,o]=qo(i),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if(i.charAt(0)=="@"){let[o,a]=qo(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ku(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=fr(e[0]),e.length>1&&(i=fr(e[e.length-1]))):e instanceof Map&&(t=fr(e)),t||i?new Qu(n,t,i):null}var Qu=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ke(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ke(this._element,this._initialStyles),this._endStyles&&(ke(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(nt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nt(this._element,this._endStyles),this._endStyles=null),ke(this._element,this._initialStyles),this._state=3)}}return n})();function fr(n){let e=null;return n.forEach((t,i)=>{Gu(i)&&(e=e||new Map,e.set(i,t))}),e}function Gu(n){return n==="display"||n==="position"}var Zn=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:Dr(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Jn=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return oa(e,t)}getParentElement(e){return Nr(e)}query(e,t,i){return aa(e,t,i)}computeStyle(e,t,i){return Dr(e,t)}animate(e,t,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,p=o.filter(y=>y instanceof Zn);fu(i,r)&&p.forEach(y=>{y.currentSnapshot.forEach((h,g)=>c.set(g,h))});let u=du(t).map(y=>new Map(y));u=hu(e,u,c);let f=Ku(e,u);return new Zn(e,u,l,f)}};var Wn="@",ya="@.disabled",ei=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Wn&&t==ya?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i,r){return this.delegate.listen(e,t,i,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},kr=class extends ei{factory;constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Wn?t.charAt(1)=="."&&t==ya?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i,r){if(t.charAt(0)==Wn){let s=Yu(e),o=t.slice(1),a="";return o.charAt(0)!=Wn&&([o,a]=Xu(o)),this.engine.listen(this.namespaceId,s,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l)})}return this.delegate.listen(e,t,i,r)}};function Yu(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Xu(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var ti=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,p=c.get(r);if(!p){let u=()=>c.delete(r);p=new ei(i,r,this.engine,u),c.set(r,p)}return p}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new kr(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var Ju=(()=>{class n extends Tt{constructor(t,i,r){super(t,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||n)(z(Ws),z(it),z(rt))};static \u0275prov=K({token:n,factory:n.\u0275fac})}return n})();function ed(){return new Kn}function td(n,e,t){return new ti(n,e,t)}var va=[{provide:rt,useFactory:ed},{provide:Tt,useClass:Ju},{provide:Ps,useFactory:td,deps:[Gs,Tt,gt]}],ba=[{provide:it,useFactory:()=>new Jn},{provide:Bi,useValue:"BrowserAnimations"},...va],nd=[{provide:it,useClass:Pr},{provide:Bi,useValue:"NoopAnimations"},...va],_a=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?nd:ba}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=ze({type:n});static \u0275inj=Le({providers:ba,imports:[Cn]})}return n})();function id(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var st=id;var rd=typeof global=="object"&&global&&global.Object===Object&&global,Sa=rd;var sd=typeof self=="object"&&self&&self.Object===Object&&self,od=Sa||sd||Function("return this")(),ni=od;var ad=function(){return ni.Date.now()},ii=ad;var ld=/\s/;function cd(n){for(var e=n.length;e--&&ld.test(n.charAt(e)););return e}var Ea=cd;var ud=/^\s+/;function dd(n){return n&&n.slice(0,Ea(n)+1).replace(ud,"")}var Ca=dd;var pd=ni.Symbol,wt=pd;var Ta=Object.prototype,md=Ta.hasOwnProperty,fd=Ta.toString,rn=wt?wt.toStringTag:void 0;function hd(n){var e=md.call(n,rn),t=n[rn];try{n[rn]=void 0;var i=!0}catch{}var r=fd.call(n);return i&&(e?n[rn]=t:delete n[rn]),r}var wa=hd;var gd=Object.prototype,yd=gd.toString;function bd(n){return yd.call(n)}var xa=bd;var vd="[object Null]",_d="[object Undefined]",Ma=wt?wt.toStringTag:void 0;function Sd(n){return n==null?n===void 0?_d:vd:Ma&&Ma in Object(n)?wa(n):xa(n)}var Aa=Sd;function Ed(n){return n!=null&&typeof n=="object"}var ka=Ed;var Cd="[object Symbol]";function Td(n){return typeof n=="symbol"||ka(n)&&Aa(n)==Cd}var Oa=Td;var Ia=NaN,wd=/^[-+]0x[0-9a-f]+$/i,xd=/^0b[01]+$/i,Md=/^0o[0-7]+$/i,Ad=parseInt;function kd(n){if(typeof n=="number")return n;if(Oa(n))return Ia;if(st(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=st(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Ca(n);var t=xd.test(n);return t||Md.test(n)?Ad(n.slice(2),t?2:8):wd.test(n)?Ia:+n}var Fr=kd;var Od="Expected a function",Id=Math.max,Nd=Math.min;function Pd(n,e,t){var i,r,s,o,a,l,c=0,p=!1,u=!1,f=!0;if(typeof n!="function")throw new TypeError(Od);e=Fr(e)||0,st(t)&&(p=!!t.leading,u="maxWait"in t,s=u?Id(Fr(t.maxWait)||0,e):s,f="trailing"in t?!!t.trailing:f);function y(b){var O=i,D=r;return i=r=void 0,c=b,o=n.apply(D,O),o}function h(b){return c=b,a=setTimeout(M,e),p?y(b):o}function g(b){var O=b-l,D=b-c,Y=e-O;return u?Nd(Y,s-D):Y}function T(b){var O=b-l,D=b-c;return l===void 0||O>=e||O<0||u&&D>=s}function M(){var b=ii();if(T(b))return N(b);a=setTimeout(M,g(b))}function N(b){return a=void 0,f&&i?y(b):(i=r=void 0,o)}function R(){a!==void 0&&clearTimeout(a),c=0,i=l=r=a=void 0}function w(){return a===void 0?o:N(ii())}function L(){var b=ii(),O=T(b);if(i=arguments,r=this,l=b,O){if(a===void 0)return h(l);if(u)return clearTimeout(a),a=setTimeout(M,e),y(l)}return a===void 0&&(a=setTimeout(M,e)),o}return L.cancel=R,L.flush=w,L}var xt=Pd;var Rd="Expected a function";function Dd(n,e,t){var i=!0,r=!0;if(typeof n!="function")throw new TypeError(Rd);return st(t)&&(i="leading"in t?!!t.leading:i,r="trailing"in t?!!t.trailing:r),xt(n,e,{leading:i,maxWait:e,trailing:r})}var Na=Dd;var At=function(){return At=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},At.apply(this,arguments)};function Da(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?window:n.ownerDocument.defaultView}function La(n){return!n||!n.ownerDocument?document:n.ownerDocument}var Fa=function(n){var e={},t=Array.prototype.reduce.call(n,function(i,r){var s=r.name.match(/data-simplebar-(.+)/);if(s){var o=s[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(r.value){case"true":i[o]=!0;break;case"false":i[o]=!1;break;case void 0:i[o]=!0;break;default:i[o]=r.value}}return i},e);return t};function za(n,e){var t;n&&(t=n.classList).add.apply(t,e.split(" "))}function ja(n,e){n&&e.split(" ").forEach(function(t){n.classList.remove(t)})}function Ba(n){return".".concat(n.split(" ").join("."))}var jr=!!(typeof window<"u"&&window.document&&window.document.createElement),Ld=Object.freeze({__proto__:null,addClasses:za,canUseDOM:jr,classNamesToQuery:Ba,getElementDocument:La,getElementWindow:Da,getOptions:Fa,removeClasses:ja}),Mt=null,Pa=null;jr&&window.addEventListener("resize",function(){Pa!==window.devicePixelRatio&&(Pa=window.devicePixelRatio,Mt=null)});function Ra(){if(Mt===null){if(typeof document>"u")return Mt=0,Mt;var n=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),n.appendChild(e);var t=e.getBoundingClientRect().right;n.removeChild(e),Mt=t}return Mt}var Ve=Da,zr=La,Fd=Fa,qe=za,Ke=ja,ue=Ba,ri=function(){function n(e,t){t===void 0&&(t={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=Ve(i.el);i.scrollXTicking||(r.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(r.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,qe(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){Ke(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(qe(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){Ke(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(r){i.mouseX=r.clientX,i.mouseY=r.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var s,o;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(s=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(o=i.isWithinBounds(i.axis.y.track.rect)),(s||o)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(s&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(r,"x"):i.onTrackClick(r,"x")),o&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(r,"y"):i.onTrackClick(r,"y"))))}},this.drag=function(r){var s,o,a,l,c,p,u,f,y,h,g;if(!(!i.draggedAxis||!i.contentWrapperEl)){var T,M=i.axis[i.draggedAxis].track,N=(o=(s=M.rect)===null||s===void 0?void 0:s[i.axis[i.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,R=i.axis[i.draggedAxis].scrollbar,w=(l=(a=i.contentWrapperEl)===null||a===void 0?void 0:a[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,L=parseInt((p=(c=i.elStyles)===null||c===void 0?void 0:c[i.axis[i.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);r.preventDefault(),r.stopPropagation(),i.draggedAxis==="y"?T=r.pageY:T=r.pageX;var b=T-((f=(u=M.rect)===null||u===void 0?void 0:u[i.axis[i.draggedAxis].offsetAttr])!==null&&f!==void 0?f:0)-i.axis[i.draggedAxis].dragOffset;b=i.draggedAxis==="x"&&i.isRtl?((h=(y=M.rect)===null||y===void 0?void 0:y[i.axis[i.draggedAxis].sizeAttr])!==null&&h!==void 0?h:0)-R.size-b:b;var O=b/(N-R.size),D=O*(w-L);i.draggedAxis==="x"&&i.isRtl&&(D=!((g=n.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-D:D),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=D}},this.onEndDrag=function(r){i.isDragging=!1;var s=zr(i.el),o=Ve(i.el);r.preventDefault(),r.stopPropagation(),Ke(i.el,i.classNames.dragging),i.onStopScrolling(),s.removeEventListener("mousemove",i.drag,!0),s.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=o.setTimeout(function(){s.removeEventListener("click",i.preventClick,!0),s.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=e,this.options=At(At({},n.defaultOptions),t),this.classNames=At(At({},n.defaultOptions.classNames),t.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Na(this._onMouseMove,64),this.onWindowResize=xt(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=xt(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=xt(this._onMouseEntered,this.stopScrollDelay),this.init()}return n.getRtlHelpers=function(){if(n.rtlHelpers)return n.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var t=e.firstElementChild,i=t?.firstElementChild;if(!i)return null;document.body.appendChild(t),t.scrollLeft=0;var r=n.getOffset(t),s=n.getOffset(i);t.scrollLeft=-999;var o=n.getOffset(i);return document.body.removeChild(t),n.rtlHelpers={isScrollOriginAtZero:r.left!==s.left,isScrollingToNegative:s.left!==o.left},n.rtlHelpers},n.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ra()}catch{return Ra()}},n.getOffset=function(e){var t=e.getBoundingClientRect(),i=zr(e),r=Ve(e);return{top:t.top+(r.pageYOffset||i.documentElement.scrollTop),left:t.left+(r.pageXOffset||i.documentElement.scrollLeft)}},n.prototype.init=function(){jr&&(this.initDOM(),this.rtlHelpers=n.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},n.prototype.initDOM=function(){var e,t;this.wrapperEl=this.el.querySelector(ue(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ue(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ue(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ue(this.classNames.offset)),this.maskEl=this.el.querySelector(ue(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ue(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ue(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ue(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ue(this.classNames.track)).concat(ue(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ue(this.classNames.track)).concat(ue(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(ue(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((t=this.axis.y.track.el)===null||t===void 0?void 0:t.querySelector(ue(this.classNames.scrollbar)))||null,this.options.autoHide||(qe(this.axis.x.scrollbar.el,this.classNames.visible),qe(this.axis.y.scrollbar.el,this.classNames.visible))},n.prototype.initListeners=function(){var e=this,t,i=Ve(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(t=this.contentWrapperEl)===null||t===void 0||t.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,s=i.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){r&&i.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},n.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=Ve(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var t=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||t>0,s=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=r?"".concat(t||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=t!==0&&c>t,this.axis.y.isOverflowing=l>p,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>s-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>p-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},n.prototype.getScrollbarSize=function(e){var t,i;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[e].scrollSizeAttr],s=(i=(t=this.axis[e].track.el)===null||t===void 0?void 0:t[this.axis[e].offsetSizeAttr])!==null&&i!==void 0?i:0,o=s/r,a;return a=Math.max(~~(o*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},n.prototype.positionScrollbar=function(e){var t,i,r;e===void 0&&(e="y");var s=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[e].scrollSizeAttr],a=((t=this.axis[e].track.el)===null||t===void 0?void 0:t[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),c=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];c=e==="x"&&this.isRtl&&(!((i=n.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero)?-c:c,e==="x"&&this.isRtl&&(c=!((r=n.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?c:-c);var p=c/(o-l),u=~~((a-s.size)*p);u=e==="x"&&this.isRtl?-u+(a-s.size):u,s.el.style.transform=e==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},n.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var t=this.axis[e].track.el,i=this.axis[e].scrollbar.el;!t||!i||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},n.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(qe(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},n.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(Ke(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},n.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},n.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var t=this.axis[e];!t.track.el||!t.scrollbar.el||(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(e),qe(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?qe(t.scrollbar.el,this.classNames.hover):Ke(t.scrollbar.el,this.classNames.hover)):(Ke(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},n.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),Ke(this.axis[e].track.el,this.classNames.hover),Ke(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},n.prototype.onDragStart=function(e,t){var i;t===void 0&&(t="y"),this.isDragging=!0;var r=zr(this.el),s=Ve(this.el),o=this.axis[t].scrollbar,a=t==="y"?e.pageY:e.pageX;this.axis[t].dragOffset=a-(((i=o.rect)===null||i===void 0?void 0:i[this.axis[t].offsetAttr])||0),this.draggedAxis=t,qe(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.prototype.onTrackClick=function(e,t){var i=this,r,s,o,a;t===void 0&&(t="y");var l=this.axis[t];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var c=Ve(this.el);this.axis[t].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var p=this.axis[t].scrollbar,u=(s=(r=p.rect)===null||r===void 0?void 0:r[this.axis[t].offsetAttr])!==null&&s!==void 0?s:0,f=parseInt((a=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[t].sizeAttr])!==null&&a!==void 0?a:"0px",10),y=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],h=t==="y"?this.mouseY-u:this.mouseX-u,g=h<0?-1:1,T=g===-1?y-f:y+f,M=40,N=function(){i.contentWrapperEl&&(g===-1?y>T&&(y-=M,i.contentWrapperEl[i.axis[t].scrollOffsetAttr]=y,c.requestAnimationFrame(N)):y<T&&(y+=M,i.contentWrapperEl[i.axis[t].scrollOffsetAttr]=y,c.requestAnimationFrame(N)))};N()}},n.prototype.getContentElement=function(){return this.contentEl},n.prototype.getScrollElement=function(){return this.contentWrapperEl},n.prototype.removeListeners=function(){var e=Ve(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},n.prototype.unMount=function(){this.removeListeners()},n.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},n.prototype.findChild=function(e,t){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(r){return i.call(r,t)})[0]},n.rtlHelpers=null,n.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},n.getOptions=Fd,n.helpers=Ld,n}();var zd=["*"],si=(()=>{class n{constructor(t,i){this.zone=i,this.options={},this.elRef=t}ngOnInit(){this.ariaLabel=this.options.ariaLabel||ri.defaultOptions.ariaLabel,this.tabIndex=(this.options.tabIndex||ri.defaultOptions.tabIndex).toString()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.SimpleBar=new ri(this.elRef.nativeElement,this.options||{})})}ngOnDestroy(){this.SimpleBar?.unMount(),this.SimpleBar=null}static{this.\u0275fac=function(i){return new(i||n)(Ye(Os),Ye(gt))}}static{this.\u0275cmp=$({type:n,selectors:[["ngx-simplebar"]],hostAttrs:["data-simplebar","init"],inputs:{options:"options"},standalone:!1,ngContentSelectors:zd,decls:13,vars:2,consts:[[1,"simplebar-wrapper"],[1,"simplebar-height-auto-observer-wrapper"],[1,"simplebar-height-auto-observer"],[1,"simplebar-mask"],[1,"simplebar-offset"],["role","region",1,"simplebar-content-wrapper"],[1,"simplebar-content"],[1,"simplebar-placeholder"],[1,"simplebar-track","simplebar-horizontal"],[1,"simplebar-scrollbar"],[1,"simplebar-track","simplebar-vertical"]],template:function(i,r){i&1&&(Ls(),d(0,"div",0)(1,"div",1),v(2,"div",2),m(),d(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),Fs(7),m()()()(),v(8,"div",7),m(),d(9,"div",8),v(10,"div",9),m(),d(11,"div",10),v(12,"div",9),m()),i&2&&(S(5),ge("tabIndex",r.tabIndex)("aria-label",r.ariaLabel))},styles:[`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:before,.simplebar-content:after{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{inset:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{inset:0 auto 0 0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
`,`ngx-simplebar{display:block}
`],encapsulation:2})}}return n})(),kt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ze({type:n})}static{this.\u0275inj=Le({})}}return n})();var Ua=[{key:"main",label:"Principal",isTitle:!0,roles:["admin","manager"]},{key:"analysis",label:"Tabel Analize",icon:"ri-test-tube-line",url:"/analysis",roles:["admin","manager"]},{key:"generator",label:"Generator Rapoarte",icon:"ri-file-chart-line",url:"/generator",roles:["admin","manager"]},{key:"management",label:"Gestiune",isTitle:!0,roles:["admin","manager"]},{key:"patients",label:"Pacien\u021Bi",icon:"ri-user-heart-line",url:"/patients",roles:["admin","manager"]},{key:"import",label:"Import Date",icon:"ri-upload-cloud-2-line",url:"/import",roles:["admin"]},{key:"admin-section",label:"Administrare",isTitle:!0,roles:["admin"]},{key:"users",label:"Gestionare Utilizatori",icon:"ri-shield-user-line",url:"/users",roles:["admin"]},{key:"factor-codes",label:"Coduri Factori",icon:"ri-code-line",url:"/factor-codes"},{key:"audit-logs",label:"Jurnale Audit",icon:"ri-file-list-3-line",url:"/audit-logs",roles:["admin"]}],$a=[{key:"analysis",label:"Tabel Analize",icon:"ri-test-tube-line",url:"/analysis",roles:["admin","manager"]},{key:"generator",label:"Generator Rapoarte",icon:"ri-file-chart-line",url:"/generator",roles:["admin","manager"]},{key:"patients",label:"Pacien\u021Bi",icon:"ri-user-heart-line",url:"/patients",roles:["admin","manager"]},{key:"import",label:"Import Date",icon:"ri-upload-cloud-2-line",url:"/import",roles:["admin"]},{key:"users",label:"Gestionare Utilizatori",icon:"ri-shield-user-line",url:"/users",roles:["admin"]},{key:"factor-codes",label:"Coduri Factori",icon:"ri-code-line",url:"/factor-codes"},{key:"audit-logs",label:"Jurnale Audit",icon:"ri-file-list-3-line",url:"/audit-logs",roles:["admin"]}];var Ot=(n,e)=>{let t=[],i=It(n,e.parentKey);return i&&(t.push(i.key),i.parentKey&&(t=[...t,...Ot(n,i)])),t},It=(n,e)=>{if(n&&e)for(var t=0;t<n.length;t++){if(n[t].key===e)return n[t];var i=It(n[t].children,e);if(i)return i}return null};var Nt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-logo-box"]],decls:27,vars:0,consts:[["routerLink","/",1,"logo"],[1,"logo-light"],[1,"logo-lg"],[1,"brand-text"],[1,"dia"],[1,"medical"],[1,"logo-sm"],[1,"logo-dark"]],template:function(t,i){t&1&&(d(0,"a",0)(1,"span",1)(2,"span",2)(3,"span",3)(4,"span",4),_(5,"Dia"),m(),d(6,"span",5),_(7,"Medical"),m()()(),d(8,"span",6)(9,"span",3)(10,"span",4),_(11,"D"),m(),d(12,"span",5),_(13,"M"),m()()()(),d(14,"span",7)(15,"span",2)(16,"span",3)(17,"span",4),_(18,"Dia"),m(),d(19,"span",5),_(20,"Medical"),m()()(),d(21,"span",6)(22,"span",3)(23,"span",4),_(24,"D"),m(),d(25,"span",5),_(26,"M"),m()()()()())},dependencies:[xe,ve],styles:[".brand-text[_ngcontent-%COMP%]{font-size:18px;font-weight:700;letter-spacing:-.5px;line-height:1}.brand-text[_ngcontent-%COMP%]   .dia[_ngcontent-%COMP%]{color:#405189}.brand-text[_ngcontent-%COMP%]   .medical[_ngcontent-%COMP%]{color:#0ab39c}.logo-sm[_ngcontent-%COMP%]   .brand-text[_ngcontent-%COMP%]{font-size:14px}"]})};var Pt=co("layout"),ng=Je(Pt,n=>n.LAYOUT),oi=Je(Pt,n=>n.LAYOUT_THEME),Wa=Je(Pt,n=>n.LAYOUT_MODE),Va=Je(Pt,n=>n.TOPBAR_COLOR),qa=Je(Pt,n=>n.MENU_COLOR),ot=Je(Pt,n=>n.MENU_SIZE);var ai=V("[Layout] Set Layout",Q()),at=V("[Layout] Set Color",Q()),li=V("[Layout] Set Mode",Q()),ci=V("[Layout] Set Topbar",Q()),ui=V("[Layout] Set Menu",Q()),Se=V("[Layout] Set size",Q()),di=V("[App] Reset State");var Ga=(n,e)=>e.label,Bd=n=>({menu:n,linkClassName:"side-nav-link nav-link-ref",subMenuClassNames:"sub-menu",itemClassName:"side-nav-item"}),Ya=n=>({menu:n,linkClassName:"side-nav-link nav-link-ref",itemClassName:"side-nav-item"}),Xa=n=>({active:n}),Hd=n=>({menu:n,linkClassName:"side-nav-link nav-link-ref",itemClassName:"side-nav-item",subMenuClassNames:"sub-menu"}),Ud=(n,e)=>({menu:n,className:e}),$d=(n,e)=>({active:n,disabled:e});function Wd(n,e){if(n&1&&(d(0,"li",39),_(1),m()),n&2){let t=P().$implicit;S(),be(t.label)}}function Vd(n,e){n&1&&Ee(0)}function qd(n,e){if(n&1&&U(0,Vd,1,0,"ng-container",40),n&2){let t=P(2).$implicit;P();let i=ye(56);k("ngTemplateOutlet",i)("ngTemplateOutletContext",J(2,Bd,t))}}function Kd(n,e){n&1&&Ee(0)}function Qd(n,e){if(n&1&&U(0,Kd,1,0,"ng-container",40),n&2){let t=P(2).$implicit;P();let i=ye(58);k("ngTemplateOutlet",i)("ngTemplateOutletContext",J(2,Ya,t))}}function Gd(n,e){if(n&1&&U(0,qd,1,4,"ng-container")(1,Qd,1,4,"ng-container"),n&2){let t=P().$implicit,i=P();ie(i.hasSubmenu(t)?0:1)}}function Yd(n,e){if(n&1&&U(0,Wd,2,1,"li",39)(1,Gd,2,1),n&2){let t=e.$implicit;ie(t.isTitle?0:1)}}function Xd(n,e){if(n&1&&(d(0,"span",43),v(1,"i"),m()),n&2){let t=P().menu;S(),se(t.icon)}}function Zd(n,e){n&1&&Ee(0)}function Jd(n,e){if(n&1&&U(0,Zd,1,0,"ng-container",40),n&2){let t=P().$implicit;P(2);let i=ye(56);k("ngTemplateOutlet",i)("ngTemplateOutletContext",J(2,Hd,t))}}function ep(n,e){n&1&&Ee(0)}function tp(n,e){if(n&1&&U(0,ep,1,0,"ng-container",40),n&2){let t=P().$implicit;P(2);let i=ye(58);k("ngTemplateOutlet",i)("ngTemplateOutletContext",J(2,Ya,t))}}function np(n,e){if(n&1&&U(0,Jd,1,4,"ng-container")(1,tp,1,4,"ng-container"),n&2){let t=e.$implicit,i=P(2);ie(i.hasSubmenu(t)?0:1)}}function ip(n,e){if(n&1){let t=Ui();d(0,"li",41)(1,"a",42),j("click",function(){let r=mt(t).menu,s=ye(7),o=P();return ft(o.toggleMenuItem(r,s))}),U(2,Xd,2,3,"span",43),d(3,"span",44),_(4),m(),v(5,"span",45),m(),d(6,"div",46,3),Bs("ngbCollapseChange",function(r){let s=mt(t).menu;return js(s.collapsed,r)||(s.collapsed=r),ft(r)}),d(8,"ul"),Xe(9,np,2,1,null,null,Ga),m()()()}if(n&2){let t=e.menu,i=e.itemClassName,r=e.linkClassName,s=e.subMenuClassNames,o=P();se(i),k("ngClass",J(12,Xa,o.activeMenuItems.includes(t.key))),S(),se(r),ge("aria-expanded",!t.collapsed)("aria-controls",t.key),S(),ie(t.icon?2:-1),S(2),ae(" ",t.label," "),S(2),zs("ngbCollapse",t.collapsed),S(2),se(s),S(),Ze(t.children)}}function rp(n,e){n&1&&Ee(0)}function sp(n,e){if(n&1&&(d(0,"li",41),U(1,rp,1,0,"ng-container",40),m()),n&2){let t=e.menu,i=e.linkClassName,r=e.itemClassName,s=P(),o=ye(60);se(r),k("ngClass",J(5,Xa,s.activeMenuItems.includes(t.key))),S(),k("ngTemplateOutlet",o)("ngTemplateOutletContext",Wi(7,Ud,t,i))}}function op(n,e){if(n&1&&(d(0,"span",43),v(1,"i"),m(),d(2,"span",44),_(3),m()),n&2){let t=P().menu;S(),se(t.icon),S(2),be(t.label)}}function ap(n,e){if(n&1&&_(0),n&2){let t=P().menu;ae(" ",t.label," ")}}function lp(n,e){if(n&1&&(d(0,"span"),_(1),m()),n&2){let t=P().menu;Ds("badge rounded-pill text-end bg-",t.badge.variant,""),S(),be(t.badge.text)}}function cp(n,e){if(n&1&&(d(0,"a",47),U(1,op,4,4)(2,ap,1,1)(3,lp,2,4,"span",48),m()),n&2){let t=e.menu,i=e.className,r=P();se(i),k("routerLink",t.url)("ngClass",Wi(7,$d,r.activeMenuItems.includes(t.key),t.isDisabled)),ge("aria-controls",t.key),S(),ie(t.icon?1:2),S(2),ie(t.badge?3:-1)}}var pi=class n{currency=On;menuItems=[];activeMenuItems=[];router=I(ee);store=I(ce);authService=I(te);trimmedURL=this.router.url?.replaceAll(Kt!==""?Kt+"/":"","/");constructor(){this.router.events.forEach(e=>{e instanceof Be&&(this.trimmedURL=this.router.url?.replaceAll(Kt!==""?Kt+"/":"","/"),this._activateMenu(),setTimeout(()=>{this.scrollToActive()},200))})}ngOnInit(){this.initMenu()}initMenu(){let e=this.authService.user?.role??null;this.menuItems=Ua.filter(t=>!t.roles||t.roles.length===0?!0:e?t.roles.includes(e):!1)}ngAfterViewInit(){setTimeout(()=>{this._activateMenu()}),setTimeout(()=>{this.scrollToActive()},200)}hasSubmenu(e){return!!e.children}scrollToActive(){let e=document.querySelector(".side-nav-item li a.active");if(e){let t=document.querySelector(".sidenav-menu .simplebar-content-wrapper");if(t){let i=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=i.top+t.scrollTop-r.top-t.clientHeight/2+i.height/2;this.scrollTo(t,o,600)}}}easeInOutQuad(e,t,i,r){return e/=r/2,e<1?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t)}scrollTo(e,t,i){let r=e.scrollTop,s=t-r,o=20,a=0,l=()=>{a+=o;let c=this.easeInOutQuad(a,r,s,i);e.scrollTop=c,a<i&&setTimeout(l,o)};l()}_activateMenu(){let e=document.querySelector(".sidenav-menu"),t=null;if(e){let i=e.getElementsByClassName("nav-link-ref");for(let r=0;r<i.length;++r)if(this.trimmedURL===i[r].pathname||this.trimmedURL.startsWith("/invoice/")&&i[r].pathname==="/invoice/RB6985"||this.trimmedURL.startsWith("/ecommerce/product/")&&i[r].pathname==="/ecommerce/product/1"){t=i[r];break}if(t){let r=t.getAttribute("aria-controls"),s=It(this.menuItems,r);if(s){let o=[s.key,...Ot(this.menuItems,s)];this.activeMenuItems=o,this.menuItems.forEach(a=>{a.collapsed=!o.includes(a.key)})}}}}toggleMenuItem(e,t){t.toggle();let i;e.collapsed||(i=[e.key,...Ot(this.menuItems,e)],this.menuItems.forEach(r=>{i.includes(r.key)||(r.collapsed=!0)}))}logout(){this.store.dispatch(Ue())}changeSidebarSize(){let e=document.documentElement.getAttribute("data-sidenav-size");e=="sm-hover"?e="sm-hover-active":e="sm-hover",this.store.dispatch(Se({size:e})),this.store.select(ot).subscribe(t=>{document.documentElement.setAttribute("data-sidenav-size",t)})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-sidebar"]],decls:61,vars:1,consts:[["MenuItemWithChildren",""],["MenuItem",""],["MenuItemLink",""],["collapse","ngbCollapse"],[1,"sidenav-menu"],[1,"button-sm-hover",3,"click"],[1,"ri-circle-line","align-middle"],[1,"button-close-fullsidebar",3,"click"],[1,"ri-close-line","align-middle"],["data-simplebar",""],[1,"sidenav-user"],["ngbDropdown","",1,"dropdown-center"],["ngbDropdownToggle","","data-bs-toggle","dropdown","data-bs-offset","0,19","type","button","aria-haspopup","false","aria-expanded","false",1,"topbar-link","dropdown-toggle","text-reset","drop-arrow-none","px-2","d-flex","align-items-center","justify-content-center"],["src","assets/images/users/avatar-1.jpg","width","42","alt","user-image",1,"rounded-circle","me-2","d-flex"],[1,"d-flex","flex-column","gap-1","sidebar-user-name"],[1,"my-0","fw-bold","fs-15"],[1,"my-0"],[1,"ri-arrow-down-s-line","d-block","sidebar-user-arrow","align-middle","ms-2"],["ngbDropdownMenu","",1,"dropdown-menu-end"],[1,"dropdown-header","noti-title"],[1,"text-overflow","m-0"],["href","javascript:void(0);","ngbDropdownItem",""],[1,"ri-account-circle-line","me-1","fs-16","align-middle"],[1,"align-middle"],["routerLink","/dashboards/wallet","ngbDropdownItem",""],[1,"ri-wallet-3-line","me-1","fs-16","align-middle"],[1,"fw-semibold"],[1,"ri-settings-2-line","me-1","fs-16","align-middle"],[1,"dropdown-divider"],["routerLink","/auth/lock-screen","ngbDropdownItem",""],[1,"ri-lock-line","me-1","fs-16","align-middle"],[1,"cursor-pointer","dropdown-item","active","fw-semibold","text-danger",3,"click"],[1,"ri-logout-box-line","me-1","fs-16","align-middle"],[1,"side-nav"],[1,"help-box","text-center"],[1,"fw-semibold","fs-16"],[1,"mb-3","text-muted"],["href","javascript: void(0);",1,"btn","btn-danger","btn-sm"],[1,"clearfix"],[1,"side-nav-title"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["role","button","aria-controls","sidebarDashboards",3,"click"],[1,"menu-icon"],[1,"menu-text"],[1,"menu-arrow"],["id","sidebarDashboards",1,"collapse",3,"ngbCollapseChange","ngbCollapse"],[3,"routerLink","ngClass"],[3,"class"]],template:function(t,i){if(t&1){let r=Ui();d(0,"div",4),v(1,"app-logo-box"),d(2,"button",5),j("click",function(){return mt(r),ft(i.changeSidebarSize())}),v(3,"i",6),m(),d(4,"button",7),j("click",function(){return mt(r),ft(i.changeSidebarSize())}),v(5,"i",8),m(),d(6,"ngx-simplebar",9)(7,"div",10)(8,"div",11)(9,"a",12),v(10,"img",13),d(11,"span",14)(12,"h4",15),_(13,"Maxine Kennedy"),m(),d(14,"h6",16),_(15,"Admin Head"),m()(),v(16,"i",17),m(),d(17,"div",18)(18,"div",19)(19,"h6",20),_(20,"Welcome !"),m()(),d(21,"a",21),v(22,"i",22),d(23,"span",23),_(24,"Contul Meu"),m()(),d(25,"a",24),v(26,"i",25),d(27,"span",23),_(28,"Wallet : "),d(29,"span",26),_(30),m()()(),d(31,"a",21),v(32,"i",27),d(33,"span",23),_(34,"Settings"),m()(),v(35,"div",28),d(36,"a",29),v(37,"i",30),d(38,"span",23),_(39,"Lock Screen"),m()(),d(40,"a",31),j("click",function(){return mt(r),ft(i.logout())}),v(41,"i",32),d(42,"span",23),_(43,"Deconectare"),m()()()()(),d(44,"ul",33),Xe(45,Yd,2,1,null,null,Ga),m(),d(47,"div",34)(48,"h5",35),_(49,"Unlimited Access"),m(),d(50,"p",36),_(51," Upgrade to plan to get access to unlimited reports "),m(),d(52,"a",37),_(53,"Upgrade"),m()(),v(54,"div",38),m()(),U(55,ip,11,14,"ng-template",null,0,je)(57,sp,2,10,"ng-template",null,1,je)(59,cp,4,10,"ng-template",null,2,je)}t&2&&(S(30),ae("",i.currency,"985.25"),S(15),Ze(i.menuItems))},dependencies:[ve,_n,En,Me,xe,mo,po,kt,si,Nt,St,_t,vt,bt,Mn],encapsulation:2})};var up="assets/images/flags/us.svg",dp="assets/images/flags/in.svg",pp="assets/images/flags/de.svg",mp="assets/images/flags/it.svg",fp="assets/images/flags/es.svg",hp="assets/images/flags/ru.svg";var Za=[{name:"English",flag:up},{name:"Hindi",flag:dp},{name:"German",flag:pp},{name:"Italian",flag:mp},{name:"Spanish",flag:fp},{name:"Russian",flag:hp}];function gp(n,e){if(n&1&&(d(0,"div")(1,"h4",7),_(2),m(),d(3,"ol",27)(4,"li",28)(5,"a",29),_(6,"Highdmin"),m()(),d(7,"li",30),_(8),m()()()),n&2){let t=P();S(2),be(t.title),S(6),be(t.subTitle)}}function yp(n,e){if(n&1&&(d(0,"h4",7),_(1),m()),n&2){let t=P();S(),be(t.title)}}function bp(n,e){n&1&&v(0,"i",10)}function vp(n,e){n&1&&v(0,"i",10)}var Rt=class n{currency=On;languageList=Za;title;subTitle;settingsButtonClicked=new ht;mobileMenuButtonClicked=new ht;modalService=I(fo);authService=I(te);router=I(ee);store=I(ce);color;get userName(){return this.authService.user?.username??""}get isAdmin(){return this.authService.user?.role==="admin"}get avatarUrl(){return`https://ui-avatars.com/api/?name=${encodeURIComponent(this.userName||"U")}&background=0d6efd&color=fff&size=64&rounded=true`}open(e){this.modalService.open(e,{size:"lg"})}ngOnInit(){this.store.select("layout").subscribe(e=>{this.color=e.LAYOUT_THEME})}settingMenu(){this.settingsButtonClicked.emit()}toggleMobileMenu(){this.mobileMenuButtonClicked.emit()}changeTheme(){document.documentElement.getAttribute("data-bs-theme")=="light"?this.store.dispatch(at({color:"dark"})):this.store.dispatch(at({color:"light"})),this.store.select(oi).subscribe(t=>{document.documentElement.setAttribute("data-bs-theme",t)})}logout(){this.store.dispatch(Ue())}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-topbar"]],inputs:{title:"title",subTitle:"subTitle"},outputs:{settingsButtonClicked:"settingsButtonClicked",mobileMenuButtonClicked:"mobileMenuButtonClicked"},decls:37,vars:5,consts:[[1,"app-topbar"],[1,"page-container","topbar-menu"],[1,"d-flex","align-items-center","gap-2"],[1,"sidenav-toggle-button","px-2",3,"click"],[1,"ri-menu-5-line","fs-24"],["data-bs-toggle","collapse","data-bs-target","#topnav-menu-content",1,"topnav-toggle-button","px-2",3,"click"],[1,"topbar-item","d-none","d-md-flex"],[1,"page-title","fs-18","fw-bold","mb-0"],[1,"topbar-item","d-none","d-sm-flex"],["id","light-dark-mode","type","button",1,"topbar-link",3,"click"],[1,"ri-moon-line","fs-22"],[1,"topbar-item","nav-user"],["ngbDropdown","",1,"dropdown"],["ngbDropdownToggle","","data-bs-toggle","dropdown","data-bs-offset","0,19","type","button","aria-haspopup","false","aria-expanded","false",1,"topbar-link","drop-arrow-none","px-2"],["width","32","alt","user-image",1,"rounded-circle","me-lg-2","d-flex",3,"src"],[1,"d-lg-flex","flex-column","gap-1","d-none"],[1,"my-0"],[1,"ri-arrow-down-s-line","d-none","d-lg-block","align-middle","ms-2"],["ngbDropdownMenu","",1,"dropdown-menu-end"],[1,"dropdown-header","noti-title"],[1,"text-overflow","m-0"],["routerLink","/profile","ngbDropdownItem",""],[1,"ri-account-circle-line","me-1","fs-16","align-middle"],[1,"align-middle"],[1,"dropdown-divider"],[1,"cursor-pointer","dropdown-item","active","fw-semibold","text-danger",3,"click"],[1,"ri-logout-box-line","me-1","fs-16","align-middle"],[1,"breadcrumb","m-0","mt-1","py-0"],[1,"breadcrumb-item"],["href","javascript: void(0);"],[1,"breadcrumb-item","active"]],template:function(t,i){t&1&&(d(0,"header",0)(1,"div",1)(2,"div",2),v(3,"app-logo-box"),d(4,"button",3),j("click",function(){return i.toggleMobileMenu()}),v(5,"i",4),m(),d(6,"button",5),j("click",function(){return i.toggleMobileMenu()}),v(7,"i",4),m(),d(8,"div",6),U(9,gp,9,2,"div")(10,yp,2,1,"h4",7),m()(),d(11,"div",2)(12,"div",8)(13,"button",9),j("click",function(){return i.changeTheme()}),U(14,bp,1,0,"i",10)(15,vp,1,0,"i",10),m()(),d(16,"div",11)(17,"div",12)(18,"a",13),v(19,"img",14),d(20,"span",15)(21,"h5",16),_(22),m()(),v(23,"i",17),m(),d(24,"div",18)(25,"div",19)(26,"h6",20),_(27),m()(),d(28,"a",21),v(29,"i",22),d(30,"span",23),_(31,"Contul Meu"),m()(),v(32,"div",24),d(33,"a",25),j("click",function(){return i.logout()}),v(34,"i",26),d(35,"span",23),_(36,"Deconectare"),m()()()()()()()()),t&2&&(S(9),ie(i.subTitle?9:10),S(5),ie(i.color==="light"?14:15),S(5),k("src",i.avatarUrl,Is),S(3),be(i.userName),S(5),be(i.userName))},dependencies:[ve,kn,St,_t,vt,bt,Mn,kt,ho,xe,Nt],encapsulation:2})};var Dt=class n{offcanvas=I(go);store=I(ce);layout="";color;topbar;menuColor;menuSize;mode;ngOnInit(){this.store.select("layout").subscribe(e=>{this.layout=e.LAYOUT,this.color=e.LAYOUT_THEME,this.topbar=e.TOPBAR_COLOR,this.menuColor=e.MENU_COLOR,this.menuSize=e.MENU_SIZE,this.mode=e.LAYOUT_MODE})}changeLayout(e){this.layout=e,this.store.dispatch(ai({layout:e}))}changeLayoutColor(e){this.store.dispatch(at({color:e})),this.store.select(oi).subscribe(t=>{document.documentElement.setAttribute("data-bs-theme",t)})}changeLayoutMode(e){this.store.dispatch(li({mode:e})),this.store.select(Wa).subscribe(t=>{document.documentElement.setAttribute("data-layout-mode",t)})}changeTopbar(e){this.store.dispatch(ci({topbar:e})),this.store.select(Va).subscribe(t=>{document.documentElement.setAttribute("data-topbar-color",t)})}changeMenu(e){this.store.dispatch(ui({menu:e})),this.store.select(qa).subscribe(t=>{document.documentElement.setAttribute("data-menu-color",t)})}changeSize(e){this.store.dispatch(Se({size:e})),this.store.select(ot).subscribe(t=>{document.documentElement.setAttribute("data-sidenav-size",t)})}reset(){this.store.dispatch(di())}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-right-sidebar"]],decls:248,vars:18,consts:[[1,"d-flex","align-items-center","gap-2","px-3","py-3","offcanvas-header","border-bottom","border-dashed"],[1,"flex-grow-1","mb-0"],["type","button","data-bs-dismiss","offcanvas","aria-label","Close",1,"btn-close",3,"click"],["data-simplebar","",1,"offcanvas-body","p-0","h-100"],[1,"p-3","border-bottom","border-dashed"],[1,"mb-3","fs-16","fw-bold"],[1,"row"],[1,"col-4"],[1,"form-check","card-radio"],["type","radio","name","data-layout","id","layout-vertical","value","vertical",1,"form-check-input",3,"change","checked"],["for","layout-vertical",1,"form-check-label","p-3","w-100","d-flex","justify-content-center","align-items-center"],["icon","solar:align-horizonta-spacing-bold",1,"fs-32","text-muted"],[1,"fs-14","text-center","text-muted","mt-2"],["type","radio","name","data-layout","id","layout-horizontal","value","horizontal",1,"form-check-input",3,"change","checked"],["for","layout-horizontal",1,"form-check-label","p-3","w-100","d-flex","justify-content-center","align-items-center"],["icon","solar:align-vertical-spacing-bold",1,"fs-32","text-muted"],["type","radio","name","data-bs-theme","id","layout-color-light","value","light",1,"form-check-input",3,"change","checked"],["for","layout-color-light",1,"form-check-label","p-3","w-100","d-flex","justify-content-center","align-items-center"],["icon","solar:sun-bold-duotone",1,"fs-32","text-muted"],["type","radio","name","data-bs-theme","id","layout-color-dark","value","dark",1,"form-check-input",3,"change","checked"],["for","layout-color-dark",1,"form-check-label","p-3","w-100","d-flex","justify-content-center","align-items-center"],["icon","solar:cloud-sun-2-bold-duotone",1,"fs-32","text-muted"],["type","radio","name","data-layout-mode","id","layout-mode-fluid","value","fluid",1,"form-check-input",3,"change","checked"],["for","layout-mode-fluid",1,"form-check-label","p-0","avatar-xl","w-100"],[1,"d-flex","h-100"],[1,"flex-shrink-0"],[1,"bg-light","d-flex","h-100","border-end","flex-column","p-1","px-2"],[1,"d-block","p-1","bg-dark-subtle","rounded","mb-1"],[1,"d-block","border","border-3","border-secondary","border-opacity-25","rounded","w-100","mb-1"],[1,"flex-grow-1"],[1,"d-flex","h-100","flex-column","rounded-2"],[1,"bg-light","d-block","p-1"],[1,"d-flex","h-100","flex-column"],[1,"bg-light","d-flex","p-1","align-items-center","border-bottom","border-secondary","border-opacity-25"],[1,"d-block","p-1","bg-dark-subtle","rounded","me-1"],[1,"d-block","border","border-3","border-secondary","border-opacity-25","rounded","ms-auto"],[1,"d-block","border","border-3","border-secondary","border-opacity-25","rounded","ms-1"],[1,"form-check","sidebar-setting","card-radio"],["type","radio","name","data-layout-mode","id","data-layout-detached","value","detached",1,"form-check-input",3,"change","checked"],["for","data-layout-detached",1,"form-check-label","p-0","avatar-xl","w-100"],[1,"bg-light","d-flex","p-1","align-items-center","border-bottom"],[1,"d-flex","h-100","p-1","px-2"],[1,"bg-light","d-flex","h-100","flex-column","p-1","px-2"],[1,"d-block","border","border-3","border-secondary","border-opacity-25","rounded","w-100"],[1,"bg-light","d-block","p-1","mt-auto","px-2"],[1,"col-3"],["type","radio","name","data-topbar-color","id","topbar-color-light","value","light",1,"form-check-input",3,"change","checked"],["for","topbar-color-light",1,"form-check-label","p-0","avatar-lg","w-100","bg-light"],[1,"d-flex","align-items-center","justify-content-center","h-100"],[1,"p-2","d-inline-flex","shadow","rounded-circle","bg-white"],["type","radio","name","data-topbar-color","id","topbar-color-dark","value","dark",1,"form-check-input",3,"change","checked"],["for","topbar-color-dark",1,"form-check-label","p-0","avatar-lg","w-100","bg-light"],[1,"p-2","d-inline-flex","shadow","rounded-circle","bg-dark"],["type","radio","name","data-topbar-color","id","topbar-color-brand","value","brand",1,"form-check-input",3,"change","checked"],["for","topbar-color-brand",1,"form-check-label","p-0","avatar-lg","w-100","bg-light"],[1,"p-2","d-inline-flex","shadow","rounded-circle","bg-primary"],["type","radio","name","data-menu-color","id","sidenav-color-light","value","light",1,"form-check-input",3,"change","checked"],["for","sidenav-color-light",1,"form-check-label","p-0","avatar-lg","w-100","bg-light"],[1,"col-3",2,"--ct-dark-rgb","64, 73, 84"],["type","radio","name","data-menu-color","id","sidenav-color-dark","value","dark",1,"form-check-input",3,"change","checked"],["for","sidenav-color-dark",1,"form-check-label","p-0","avatar-lg","w-100","bg-light"],["type","radio","name","data-menu-color","id","sidenav-color-brand","value","brand",1,"form-check-input",3,"change","checked"],["for","sidenav-color-brand",1,"form-check-label","p-0","avatar-lg","w-100","bg-light"],[1,"p-3",".border-bottom",".border-dashed"],["type","radio","name","data-sidenav-size","id","sidenav-size-default","value","default",1,"form-check-input",3,"change","checked"],["for","sidenav-size-default",1,"form-check-label","p-0","avatar-xl","w-100"],["type","radio","name","data-sidenav-size","id","sidenav-size-compact","value","compact",1,"form-check-input",3,"change","checked"],["for","sidenav-size-compact",1,"form-check-label","p-0","avatar-xl","w-100"],[1,"bg-light","d-flex","h-100","border-end","flex-column","p-1"],["type","radio","name","data-sidenav-size","id","sidenav-size-small","value","condensed",1,"form-check-input",3,"change","checked"],["for","sidenav-size-small",1,"form-check-label","p-0","avatar-xl","w-100"],[1,"bg-light","d-flex","h-100","border-end","flex-column",2,"padding","2px"],["type","radio","name","data-sidenav-size","id","sidenav-size-small-hover","value","sm-hover",1,"form-check-input",3,"change","checked"],["for","sidenav-size-small-hover",1,"form-check-label","p-0","avatar-xl","w-100"],["type","radio","name","data-sidenav-size","id","sidenav-size-full","value","full",1,"form-check-input",3,"change","checked"],["for","sidenav-size-full",1,"form-check-label","p-0","avatar-xl","w-100"],[1,"d-block","p-1","bg-dark-subtle","mb-1"],["type","radio","name","data-sidenav-size","id","sidenav-size-fullscreen","value","fullscreen",1,"form-check-input",3,"change","checked"],["for","sidenav-size-fullscreen",1,"form-check-label","p-0","avatar-xl","w-100"],[1,"d-flex","align-items-center","gap-2","px-3","py-2","offcanvas-header","border-top","border-dashed"],["type","button","id","reset-layout",1,"btn","w-50","btn-soft-danger",3,"click"],["type","button",1,"btn","w-50","btn-soft-info"]],template:function(t,i){t&1&&(d(0,"div",0)(1,"h5",1),_(2,"Theme Settings"),m(),d(3,"button",2),j("click",function(){return i.offcanvas.dismiss("")}),m()(),d(4,"ngx-simplebar",3)(5,"div",4)(6,"h5",5),_(7,"Layout Type"),m(),d(8,"div",6)(9,"div",7)(10,"div",8)(11,"input",9),j("change",function(){return i.changeLayout("vertical")}),m(),d(12,"label",10),v(13,"iconify-icon",11),m()(),d(14,"h5",12),_(15,"Vertical"),m()(),d(16,"div",7)(17,"div",8)(18,"input",13),j("change",function(){return i.changeLayout("horizontal")}),m(),d(19,"label",14),v(20,"iconify-icon",15),m()(),d(21,"h5",12),_(22,"Horizontal"),m()()()(),d(23,"div",4)(24,"h5",5),_(25,"Color Scheme"),m(),d(26,"div",6)(27,"div",7)(28,"div",8)(29,"input",16),j("change",function(){return i.changeLayoutColor("light")}),m(),d(30,"label",17),v(31,"iconify-icon",18),m()(),d(32,"h5",12),_(33,"Light"),m()(),d(34,"div",7)(35,"div",8)(36,"input",19),j("change",function(){return i.changeLayoutColor("dark")}),m(),d(37,"label",20),v(38,"iconify-icon",21),m()(),d(39,"h5",12),_(40,"Dark"),m()()()(),d(41,"div",4)(42,"h5",5),_(43,"Layout Mode"),m(),d(44,"div",6)(45,"div",7)(46,"div",8)(47,"input",22),j("change",function(){return i.changeLayoutMode("fluid")}),m(),d(48,"label",23)(49,"div")(50,"span",24)(51,"span",25)(52,"span",26),v(53,"span",27)(54,"span",28)(55,"span",28)(56,"span",28)(57,"span",28),m()(),d(58,"span",29)(59,"span",30),v(60,"span",31),m()()()(),d(61,"div")(62,"span",32)(63,"span",33),v(64,"span",34)(65,"span",35)(66,"span",36)(67,"span",36)(68,"span",36),m(),v(69,"span",31),m()()()(),d(70,"h5",12),_(71,"Fluid"),m()(),d(72,"div",7)(73,"div",37)(74,"input",38),j("change",function(){return i.changeLayoutMode("detached")}),m(),d(75,"label",39)(76,"span",32)(77,"span",40),v(78,"span",34)(79,"span",35)(80,"span",36)(81,"span",36)(82,"span",36),m(),d(83,"span",41)(84,"span",25)(85,"span",42),v(86,"span",28)(87,"span",28)(88,"span",43),m()()(),v(89,"span",44),m()()(),d(90,"h5",12),_(91,"Detached"),m()()()(),d(92,"div",4)(93,"h5",5),_(94,"Topbar Color"),m(),d(95,"div",6)(96,"div",45)(97,"div",8)(98,"input",46),j("change",function(){return i.changeTopbar("light")}),m(),d(99,"label",47)(100,"span",48),v(101,"span",49),m()()(),d(102,"h5",12),_(103,"Light"),m()(),d(104,"div",45)(105,"div",8)(106,"input",50),j("change",function(){return i.changeTopbar("dark")}),m(),d(107,"label",51)(108,"span",48),v(109,"span",52),m()()(),d(110,"h5",12),_(111,"Dark"),m()(),d(112,"div",45)(113,"div",8)(114,"input",53),j("change",function(){return i.changeTopbar("brand")}),m(),d(115,"label",54)(116,"span",48),v(117,"span",55),m()()(),d(118,"h5",12),_(119,"Gradient"),m()()()(),d(120,"div",4)(121,"h5",5),_(122,"Menu Color"),m(),d(123,"div",6)(124,"div",45)(125,"div",37)(126,"input",56),j("change",function(){return i.changeMenu("light")}),m(),d(127,"label",57)(128,"span",48),v(129,"span",49),m()()(),d(130,"h5",12),_(131,"Light"),m()(),d(132,"div",58)(133,"div",37)(134,"input",59),j("change",function(){return i.changeMenu("dark")}),m(),d(135,"label",60)(136,"span",48),v(137,"span",52),m()()(),d(138,"h5",12),_(139,"Dark"),m()(),d(140,"div",45)(141,"div",37)(142,"input",61),j("change",function(){return i.changeMenu("brand")}),m(),d(143,"label",62)(144,"span",48),v(145,"span",55),m()()(),d(146,"h5",12),_(147,"Brand"),m()()()(),d(148,"div",63)(149,"h5",5),_(150,"Sidebar Size"),m(),d(151,"div",6)(152,"div",7)(153,"div",37)(154,"input",64),j("change",function(){return i.changeSize("default")}),m(),d(155,"label",65)(156,"span",24)(157,"span",25)(158,"span",26),v(159,"span",27)(160,"span",28)(161,"span",28)(162,"span",28)(163,"span",28),m()(),d(164,"span",29)(165,"span",32),v(166,"span",31),m()()()()(),d(167,"h5",12),_(168,"Default"),m()(),d(169,"div",7)(170,"div",37)(171,"input",66),j("change",function(){return i.changeSize("compact")}),m(),d(172,"label",67)(173,"span",24)(174,"span",25)(175,"span",68),v(176,"span",27)(177,"span",28)(178,"span",28)(179,"span",28)(180,"span",28),m()(),d(181,"span",29)(182,"span",32),v(183,"span",31),m()()()()(),d(184,"h5",12),_(185,"Compact"),m()(),d(186,"div",7)(187,"div",37)(188,"input",69),j("change",function(){return i.changeSize("condensed")}),m(),d(189,"label",70)(190,"span",24)(191,"span",25)(192,"span",71),v(193,"span",27)(194,"span",28)(195,"span",28)(196,"span",28)(197,"span",28),m()(),d(198,"span",29)(199,"span",32),v(200,"span",31),m()()()()(),d(201,"h5",12),_(202,"Condensed"),m()(),d(203,"div",7)(204,"div",37)(205,"input",72),j("change",function(){return i.changeSize("sm-hover")}),m(),d(206,"label",73)(207,"span",24)(208,"span",25)(209,"span",71),v(210,"span",27)(211,"span",28)(212,"span",28)(213,"span",28)(214,"span",28),m()(),d(215,"span",29)(216,"span",32),v(217,"span",31),m()()()()(),d(218,"h5",12),_(219,"Hover View"),m()(),d(220,"div",7)(221,"div",37)(222,"input",74),j("change",function(){return i.changeSize("full")}),m(),d(223,"label",75)(224,"span",24)(225,"span",25)(226,"span",32),v(227,"span",76),m()(),d(228,"span",29)(229,"span",32),v(230,"span",31),m()()()()(),d(231,"h5",12),_(232,"Full Layout"),m()(),d(233,"div",7)(234,"div",37)(235,"input",77),j("change",function(){return i.changeSize("fullscreen")}),m(),d(236,"label",78)(237,"span",24)(238,"span",29)(239,"span",32),v(240,"span",31),m()()()()(),d(241,"h5",12),_(242,"Hidden"),m()()()()(),d(243,"div",79)(244,"button",80),j("click",function(){return i.reset()}),_(245," Reset "),m(),d(246,"button",81),_(247,"Buy Now"),m()()),t&2&&(S(11),k("checked",i.layout=="vertical"),S(7),k("checked",i.layout=="horizontal"),S(11),k("checked",i.color=="light"),S(7),k("checked",i.color=="dark"),S(11),k("checked",i.mode=="fluid"),S(27),k("checked",i.mode=="detached"),S(24),k("checked",i.topbar=="light"),S(8),k("checked",i.topbar=="dark"),S(8),k("checked",i.topbar=="brand"),S(12),k("checked",i.menuColor=="light"),S(8),k("checked",i.menuColor=="dark"),S(8),k("checked",i.menuColor=="brand"),S(12),k("checked",i.menuSize=="default"),S(17),k("checked",i.menuSize=="compact"),S(17),k("checked",i.menuSize=="condensed"),S(17),k("checked",i.menuSize=="sm-hover"),S(17),k("checked",i.menuSize=="full"),S(13),k("checked",i.menuSize=="fullscreen"))},dependencies:[kt,si],styles:["[_nghost-%COMP%]{display:contents}"]})};var mi=class n{year=new Date().getFullYear();offcanvasService=I(An);store=I(ce);renderer=I(Fe);title;subTitle;cdr=I($s);ngOnInit(){this.store.select("layout").subscribe(e=>{document.documentElement.setAttribute("data-bs-theme",e.LAYOUT_THEME),document.documentElement.setAttribute("data-menu-color",e.MENU_COLOR),document.documentElement.setAttribute("data-topbar-color",e.TOPBAR_COLOR),document.documentElement.setAttribute("data-sidenav-size",e.MENU_SIZE)}),document.documentElement.clientWidth<=1140&&this.onResize()}onActivate(e){this.subTitle=e.subTitle,this.title=e.title,this.cdr.detectChanges()}onResize(){if(document.documentElement.clientWidth<=1140&&document.documentElement.clientWidth>=768)this.store.dispatch(Se({size:"condensed"}));else if(document.documentElement.clientWidth<=768)this.store.dispatch(Se({size:"full"}));else{this.store.dispatch(Se({size:"default"})),document.documentElement.classList.remove("sidebar-enable");let e=document.querySelector(".offcanvas-backdrop");e&&this.renderer.removeChild(document.body,e)}this.store.select(ot).subscribe(e=>{this.renderer.setAttribute(document.documentElement,"data-sidenav-size",e)})}onSettingsButtonClicked(){this.offcanvasService.open(Dt,{position:"end",backdrop:!0})}onToggleMobileMenu(){this.store.select(ot).subscribe(t=>{document.documentElement.setAttribute("data-sidenav-size",t)});let e=document.documentElement.getAttribute("data-sidenav-size");document.documentElement.classList.toggle("sidebar-enable"),e!="full"?document.documentElement.classList.contains("sidebar-enable")?this.store.dispatch(Se({size:"condensed"})):this.store.dispatch(Se({size:"default"})):this.showBackdrop()}showBackdrop(){let e=this.renderer.createElement("div");this.renderer.addClass(e,"offcanvas-backdrop"),this.renderer.addClass(e,"fade"),this.renderer.addClass(e,"show"),this.renderer.appendChild(document.body,e),this.renderer.setStyle(document.body,"overflow","hidden"),window.innerWidth>1040&&this.renderer.setStyle(document.body,"paddingRight","15px"),this.renderer.listen(e,"click",()=>{document.documentElement.classList.remove("sidebar-enable"),this.renderer.removeChild(document.body,e),this.renderer.setStyle(document.body,"overflow",null),this.renderer.setStyle(document.body,"paddingRight",null)})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-main-layout"]],hostBindings:function(t,i){t&1&&j("resize",function(s){return i.ngOnInit(s)},!1,Ns)},decls:12,vars:3,consts:[[1,"wrapper"],[1,"color-line"],[3,"settingsButtonClicked","mobileMenuButtonClicked","title","subTitle"],[1,"page-content"],[1,"page-container"],[3,"activate"],[1,"footer"],[1,"row"],[1,"col-12","text-center","text-md-start"]],template:function(t,i){t&1&&(d(0,"div",0),v(1,"app-sidebar")(2,"div",1),d(3,"app-topbar",2),j("settingsButtonClicked",function(){return i.onSettingsButtonClicked()})("mobileMenuButtonClicked",function(){return i.onToggleMobileMenu()}),m(),d(4,"div",3)(5,"div",4)(6,"router-outlet",5),j("activate",function(s){return i.onActivate(s)}),m()(),d(7,"footer",6)(8,"div",4)(9,"div",7)(10,"div",8),_(11),m()()()()()()),t&2&&(S(3),k("title",i.title)("subTitle",i.subTitle),S(8),ae(" ",i.year," \xA9 SC DIA MEDICAL PORT SRL "))},dependencies:[pi,Me,He,Rt,kn],encapsulation:2})};var fi=class n{year=new Date().getFullYear();static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-footer"]],decls:5,vars:1,consts:[[1,"footer"],[1,"page-container"],[1,"row"],[1,"col-12","text-center","text-md-start"]],template:function(t,i){t&1&&(d(0,"footer",0)(1,"div",1)(2,"div",2)(3,"div",3),_(4),m()()()()),t&2&&(S(4),ae(" ",i.year," \xA9 SC DIA MEDICAL PORT SRL "))},encapsulation:2})};var _p=n=>({menu:n,className:"nav-item dropdown",linkClassName:"nav-link dropdown-toggle drop-arrow-none nav-link-ref"}),Sp=n=>({menu:n,className:"nav-item",linkClassName:"nav-link nav-link-ref"}),Lt=n=>({active:n}),Ep=n=>({menu:n,linkClassName:"dropdown-toggle dropdown-item drop-arrow-none nav-link-ref"}),Cp=n=>({menu:n,linkClassName:"dropdown-item drop-arrow-none nav-link-ref"});function Tp(n,e){n&1&&Ee(0)}function wp(n,e){if(n&1&&U(0,Tp,1,0,"ng-container",8),n&2){let t=P().$implicit;P();let i=ye(8);k("ngTemplateOutlet",i)("ngTemplateOutletContext",J(2,_p,t))}}function xp(n,e){n&1&&Ee(0)}function Mp(n,e){if(n&1&&U(0,xp,1,0,"ng-container",8),n&2){let t=P().$implicit;P();let i=ye(12);k("ngTemplateOutlet",i)("ngTemplateOutletContext",J(2,Sp,t))}}function Ap(n,e){if(n&1&&U(0,wp,1,4,"ng-container")(1,Mp,1,4,"ng-container"),n&2){let t=e.$implicit,i=P();ie(i.hasSubmenu(t)?0:1)}}function kp(n,e){if(n&1&&(d(0,"span",11),v(1,"i"),m()),n&2){let t=P().menu;S(),se(t.icon)}}function Op(n,e){n&1&&Ee(0)}function Ip(n,e){if(n&1&&U(0,Op,1,0,"ng-container",8),n&2){let t=e.$implicit;P(2);let i=ye(10);k("ngTemplateOutlet",i)("ngTemplateOutletContext",J(2,Ep,t))}}function Np(n,e){if(n&1&&(d(0,"li",9)(1,"a",10),U(2,kp,2,3,"span",11),_(3),v(4,"div",12),m(),d(5,"div",13),Xe(6,Ip,1,4,"ng-container",null,vn),m()()),n&2){let t=e.menu,i=e.className,r=e.linkClassName,s=P();se(i),k("autoClose","outside")("ngClass",J(15,Lt,s.activeMenuItems.includes(t.key))),S(),se(r),$i("id","topnav-",t.label,""),k("ngClass",J(17,Lt,s.activeMenuItems.includes(t.key))),ge("aria-expanded",!t.collapsed)("data-menu-key",t.key),S(),ie(t.icon?2:-1),S(),ae(" ",t.label," "),S(2),Hi("aria-labelledby","topnav-",t.label,""),S(),Ze(t.children)}}function Pp(n,e){n&1&&Ee(0)}function Rp(n,e){if(n&1&&U(0,Pp,1,0,"ng-container",8),n&2){let t=e.$implicit;P(3);let i=ye(10);k("ngTemplateOutlet",i)("ngTemplateOutletContext",J(2,Cp,t))}}function Dp(n,e){if(n&1&&(d(0,"a",16),_(1),v(2,"div",12),m(),d(3,"div",13),Xe(4,Rp,1,4,"ng-container",null,vn),m()),n&2){let t=P(),i=t.menu,r=t.linkClassName,s=P();se(r),$i("id","topnav-",i.label,""),k("routerLink",i.url)("ngClass",J(10,Lt,s.activeMenuItems.includes(i.key))),ge("data-menu-key",i.key),S(),ae(" ",i.label," "),S(2),Hi("aria-labelledby","topnav-",i.label,""),S(),Ze(i.children)}}function Lp(n,e){if(n&1&&(d(0,"a",15),_(1),m()),n&2){let t=P().menu,i=P();k("routerLink",t.url)("ngClass",J(4,Lt,i.activeMenuItems.includes(t.key))),ge("data-menu-key",t.key),S(),ae("",t.label," ")}}function Fp(n,e){if(n&1&&(d(0,"div",14),U(1,Dp,6,12)(2,Lp,2,6,"a",15),m()),n&2){let t=e.menu,i=P();S(),ie(i.hasSubmenu(t)?1:2)}}function zp(n,e){if(n&1&&v(0,"i"),n&2){let t=P().menu;se(t.icon)}}function jp(n,e){if(n&1&&(d(0,"li",17)(1,"a",18)(2,"span",11),U(3,zp,1,3,"i",19),m(),_(4),m()()),n&2){let t=e.menu,i=e.className,r=e.linkClassName,s=P();se(i),k("ngClass",J(10,Lt,s.activeMenuItems.includes(t.key))),S(),se(r),k("routerLink",t.url)("ngClass",J(12,Lt,s.activeMenuItems.includes(t.key))),ge("data-menu-key",t.key),S(2),k("ngIf",t.icon),S(),ae(" ",t.label," ")}}var hi=class n{menuItems=[];activeMenuItems=[];authService=I(te);constructor(e){e.events.forEach(t=>{t instanceof Be&&this._activateMenu()})}ngOnInit(){let e=this.authService.user?.role??null;this.menuItems=$a.filter(t=>!t.roles||t.roles.length===0?!0:e?t.roles.includes(e):!1)}ngAfterViewInit(){setTimeout(()=>{this._activateMenu()})}_activateMenu(){let e=document.getElementById("topnav-menu-content"),t=null;if(e){let i=e.getElementsByClassName("nav-link-ref");for(let r=0;r<i.length;++r)if(window.location.pathname===i[r].pathname){t=i[r];break}if(t){let r=t.getAttribute("data-menu-key"),s=It(this.menuItems,r);s&&(this.activeMenuItems=[s.key,...Ot(this.menuItems,s)])}}}hasSubmenu(e){return!!e.children}static \u0275fac=function(t){return new(t||n)(Ye(ee))};static \u0275cmp=$({type:n,selectors:[["horizontal-nav"]],decls:13,vars:0,consts:[["MenuItemWithChildren",""],["SubMenu",""],["MenuItem",""],[1,"topnav"],[1,"navbar","navbar-expand-lg"],[1,"page-container"],["id","topnav-menu-content",1,"collapse","navbar-collapse"],[1,"navbar-nav"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["ngbDropdown","",3,"autoClose","ngClass"],["ngbDropdownToggle","","href","javascript: void(0);","role","button",3,"ngClass","id"],[1,"menu-icon"],[1,"menu-arrow"],["ngbDropdownMenu","",1,"dropdown-menu"],["ngbDropdown","",1,"dropdown","hover-dropdown"],[1,"dropdown-item","nav-link-ref",3,"routerLink","ngClass"],["ngbDropdownToggle","","role","button",3,"routerLink","ngClass","id"],[3,"ngClass"],[3,"routerLink","ngClass"],[3,"class",4,"ngIf"]],template:function(t,i){t&1&&(d(0,"header",3)(1,"nav",4)(2,"nav",5)(3,"div",6)(4,"ul",7),Xe(5,Ap,2,1,null,null,vn),m()()()()(),U(7,Np,8,19,"ng-template",null,0,je)(9,Fp,3,1,"ng-template",null,1,je)(11,jp,5,14,"ng-template",null,2,je)),t&2&&(S(5),Ze(i.menuItems))},dependencies:[ve,_n,Sn,En,Me,xe,St,_t,vt,bt],encapsulation:2})};var gi=class n{offcanvasService=I(An);render=I(Fe);ngOnInit(){this.render.setAttribute(document.documentElement,"data-layout","topnav")}ngOnDestroy(){this.render.removeAttribute(document.documentElement,"data-layout")}onSettingsButtonClicked(){this.offcanvasService.open(Dt,{position:"end",backdrop:!0})}onToggleMobileMenu(){document.getElementById("topnav-menu-content")?.classList.toggle("show")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["horizontal-layout"]],decls:8,vars:0,consts:[[1,"wrapper"],[1,"color-line"],[3,"settingsButtonClicked","mobileMenuButtonClicked"],[1,"page-content"],[1,"page-container"],[1,"mt-auto"]],template:function(t,i){t&1&&(d(0,"div",0),v(1,"div",1),d(2,"app-topbar",2),j("settingsButtonClicked",function(){return i.onSettingsButtonClicked()})("mobileMenuButtonClicked",function(){return i.onToggleMobileMenu()}),m(),v(3,"horizontal-nav"),d(4,"div",3)(5,"div",4),v(6,"router-outlet"),m(),v(7,"app-footer",5),m()())},dependencies:[Rt,Me,He,fi,hi],encapsulation:2})};function Bp(n,e){n&1&&v(0,"app-main-layout")}function Hp(n,e){n&1&&v(0,"horizontal-layout")}var Ft=class n{layoutType="";store=I(ce);render=I(Fe);ngOnInit(){this.store.select("layout").subscribe(e=>{this.layoutType=e.LAYOUT,this.render.setAttribute(document.documentElement,"data-bs-theme",e.LAYOUT_THEME),this.render.setAttribute(document.documentElement,"data-layout-mode",e.LAYOUT_MODE),this.render.setAttribute(document.documentElement,"data-menu-color",e.MENU_COLOR),this.render.setAttribute(document.documentElement,"data-topbar-color",e.TOPBAR_COLOR),this.render.setAttribute(document.documentElement,"data-sidenav-size",e.MENU_SIZE)})}isHorizontalLayoutRequested(){return this.layoutType==="horizontal"}isVerticalLayoutRequested(){return this.layoutType==="vertical"}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-layout"]],decls:2,vars:2,template:function(t,i){t&1&&U(0,Bp,1,0,"app-main-layout")(1,Hp,1,0,"horizontal-layout"),t&2&&(ie(i.isVerticalLayoutRequested()?0:-1),S(),ie(i.isHorizontalLayoutRequested()?1:-1))},dependencies:[mi,gi],encapsulation:2})};var yi=class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-auth-logo"]],decls:6,vars:0,consts:[["routerLink","/",1,"auth-brand","mb-4"],[1,"brand-text"],[1,"dia"],[1,"medical"]],template:function(t,i){t&1&&(d(0,"a",0)(1,"span",1)(2,"span",2),_(3,"Dia"),m(),d(4,"span",3),_(5,"Medical"),m()()())},dependencies:[xe,ve],styles:[".brand-text[_ngcontent-%COMP%]{font-size:22px;font-weight:700;letter-spacing:-.5px;line-height:1;text-decoration:none}.brand-text[_ngcontent-%COMP%]   .dia[_ngcontent-%COMP%]{color:#405189}.brand-text[_ngcontent-%COMP%]   .medical[_ngcontent-%COMP%]{color:#0ab39c}"]})};var sn=class n{currentYear=yo;credits=bo;renderer=I(Fe);ngOnInit(){this.renderer.addClass(document.body,"h-100")}ngOnDestroy(){this.renderer.removeClass(document.body,"h-100")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-auth-layout"]],decls:10,vars:2,consts:[[1,"auth-bg","d-flex","min-vh-100","justify-content-center","align-items-center"],[1,"row","g-0","justify-content-center","w-100","m-xxl-5","px-xxl-4","m-3"],[1,"col-xl-4","col-lg-5","col-md-6"],[1,"card","overflow-hidden","text-center","h-100","p-xxl-4","p-3","mb-0"],[1,"mb-3"],[1,"mt-auto","mb-0"],[1,"fw-bold","text-decoration-underline","text-uppercase","text-reset","fs-12"]],template:function(t,i){t&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),v(4,"app-auth-logo",4)(5,"router-outlet"),d(6,"p",5),_(7),d(8,"span",6),_(9),m()()()()()()),t&2&&(S(7),ae(" ",i.currentYear," \xA9 Highdmin - By "),S(2),be(i.credits.name))},dependencies:[Me,He,yi],encapsulation:2})};function Br(n,e){let t=I(ee);return I(te).session?!0:t.createUrlTree(["/auth/login"],{queryParams:{returnUrl:e.url}})}function Ja(n){return e=>{let t=I(ee),r=I(te).user?.role;return r&&n.includes(r)?!0:t.createUrlTree(["/analysis"])}}var el=[{path:"",redirectTo:"analysis",pathMatch:"full"},{path:"",component:Ft,children:[{path:"factor-codes",loadComponent:()=>import("./chunk-2B2RSVOC.js").then(n=>n.FactorCodesComponent),data:{title:"Coduri Factori"}}]},{path:"",component:Ft,canActivate:[Br],loadChildren:()=>import("./chunk-S24ZWQBZ.js").then(n=>n.DMP_ROUTES)},{path:"",component:Ft,canActivate:[Br,Ja(["admin"])],children:[{path:"import",loadComponent:()=>import("./chunk-TFFYSWCU.js").then(n=>n.ImportComponent),data:{title:"Import Date"}},{path:"users",loadComponent:()=>import("./chunk-A7LQO4DJ.js").then(n=>n.UserListComponent),data:{title:"Gestionare Utilizatori"}},{path:"audit-logs",loadComponent:()=>import("./chunk-ZBAXLY5G.js").then(n=>n.AuditLogListComponent),data:{title:"Jurnale Audit"}}]},{path:"auth",component:sn,loadChildren:()=>import("./chunk-3ZKLOV6V.js").then(n=>n.AUTH_ROUTES)},{path:"",component:sn,loadChildren:()=>import("./chunk-XNHBQF7O.js").then(n=>n.ERROR_PAGES_ROUTES)}];var sl=uc(rl(),1);var Hr="@ngrx/store/init",tm="@ngrx/store/update-reducers",nm=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,im=(n,e)=>typeof e=="string"&&nm.test(e)?new Date(e):e,rm=(n,e)=>e,sm=()=>typeof window<"u",om=n=>n.map(e=>{let t=e;if(typeof e=="object"&&(t=Object.keys(e)[0]),typeof t!="string")throw new TypeError(`localStorageSync Unknown Parameter Type: Expected type of string, got ${typeof t}`);return e}),am=(n,e,t,i)=>n.reduce((r,s)=>{let o=s,a=i?im:rm,l,c;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof s[o]=="function"?a=s[o]:(s[o].reviver&&(a=s[o].reviver),s[o].deserialize&&(l=s[o].deserialize)),s[o].encrypt&&s[o].decrypt?typeof s[o].encrypt=="function"&&typeof s[o].decrypt=="function"?c=s[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${s[o]}' key object.`):(s[o].encrypt||s[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${s[o]}' key object.`)),e!==void 0){let p=e.getItem(t(o));if(p){c&&(p=c(p));let u=new RegExp("{|\\["),f=p;return(p==="null"||p==="true"||p==="false"||u.test(p.charAt(0)))&&(f=JSON.parse(p,a)),Object.assign({},r,{[o]:l?l(f):f})}}return r},{});function ol(n,e){return e.reduce((t,i)=>{if(typeof i=="string"||typeof i=="number"){let r=n?.[i];r!==void 0&&(t[i]=r)}else for(let r in i)if(Object.prototype.hasOwnProperty.call(i,r)){let s=i[r];t[r]=ol(n[r],s)}return t},{})}var lm=(n,e,t,i,r,s)=>{if(s)try{if(s(n)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}e.forEach(o=>{let a=n[o],l,c,p;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=n[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let f;o[u].reduce?f=o[u]:o[u].filter&&(f=o[u].filter),f&&(a=ol(a,f)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(p=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}l=o[u].replacer,c=o[u].space}o=u}if(typeof a<"u"&&t!==void 0)try{p&&(a=p(typeof a=="string"?a:JSON.stringify(a,l,c))),t.setItem(i(o),typeof a=="string"?a:JSON.stringify(a,l,c))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&r&&t!==void 0)try{t.removeItem(i(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},cm=(n,e,t)=>((t.type===Hr||t.type===tm)&&e&&(n=(0,sl.default)(n,e,{arrayMerge:(s,o,a)=>o})),n),al=n=>e=>{(n.storage===void 0&&!n.checkStorageAvailability||n.checkStorageAvailability&&sm())&&(n.storage=localStorage||window.localStorage),n.storageKeySerializer===void 0&&(n.storageKeySerializer=s=>s),n.restoreDates===void 0&&(n.restoreDates=!0);let t=n.mergeReducer;(t===void 0||typeof t!="function")&&(t=cm);let i=om(n.keys),r=n.rehydrate?am(i,n.storage,n.storageKeySerializer,n.restoreDates):void 0;return function(s,o){let a;return o.type===Hr&&!s?a=e(s,o):a=E({},s),a=t(a,r,o),a=e(a,o),o.type!==Hr&&lm(a,i,n.storage,n.storageKeySerializer,n.removeOnUndefined,n.syncCondition),a}};var ll={LAYOUT:"horizontal",LAYOUT_THEME:"light",LAYOUT_MODE:"fluid",TOPBAR_COLOR:"light",MENU_COLOR:"dark",MENU_SIZE:"sm-hover-active"},Ur=yt(ll,X(ai,(n,e)=>W(E({},n),{LAYOUT:e.layout})),X(at,(n,e)=>W(E({},n),{LAYOUT_THEME:e.color})),X(li,(n,e)=>W(E({},n),{LAYOUT_MODE:e.mode})),X(ci,(n,e)=>W(E({},n),{TOPBAR_COLOR:e.topbar})),X(ui,(n,e)=>W(E({},n),{MENU_COLOR:e.menu})),X(Se,(n,e)=>W(E({},n),{MENU_SIZE:e.size})),X(di,()=>ll));function $r(n){return al({keys:["app"],rehydrate:!0})(n)}var S0=$r(Ur);var cl=V("[Calendar] Fetch Calendar"),ul=V("[Calendar] Fetch Calendar Success",Q()),w0=V("[Data] Fetch Calendar Failure",Q()),x0=V("[Calendar] Add Event",Q()),M0=V("[Calendar] Add Event Success",Q()),A0=V("[Calendar] Add Event Failure",Q()),k0=V("[Data] Add Calendar",Q()),dl=V("[Data] Add Calendar Success",Q()),O0=V("[Data] Add Calendar Failure",Q()),I0=V("[Data] Update calendar event",Q()),pl=V("[Data] Update calendar event Success",Q()),N0=V("[Data] Update calendar event Failure",Q()),P0=V("[Data] Delete Calendar",Q()),ml=V("[Data] Delete Calendar Success",Q()),R0=V("[Data] Delete Calendar Failure",Q());var um={events:[]},fl=yt(um,X(cl,n=>E({},n)),X(ul,(n,{events:e})=>W(E({},n),{events:e})),X(dl,(n,{events:e})=>W(E({},n),{events:[...n.events,e],error:null})),X(pl,(n,{events:e})=>W(E({},n),{events:n.events.map(t=>t.id==e.id?e:t),error:null})),X(ml,(n,{id:e})=>W(E({},n),{events:n.events.filter(t=>t.id!==e),error:null})));var dm={isLoggedIn:!1,user:null,error:null},hl=yt(dm,X(In,n=>W(E({},n),{error:null})),X(Nn,(n,{user:e})=>W(E({},n),{isLoggedIn:!0,user:e,error:null})),X(Pn,(n,{error:e})=>W(E({},n),{error:e})),X(Ue,n=>W(E({},n),{user:null})));var gl={authentication:hl,layout:Ur,Calendar:fl};var pm={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},bi="__@ngrx/effects_create__";function Wr(n,e={}){let t=e.functional?n:n(),i=E(E({},pm),e);return Object.defineProperty(t,bi,{value:i}),t}function mm(n){return Object.getOwnPropertyNames(n).filter(i=>n[i]&&n[i].hasOwnProperty(bi)?n[i][bi].hasOwnProperty("dispatch"):!1).map(i=>{let r=n[i][bi];return E({propertyName:i},r)})}function fm(n){return mm(n)}function yl(n){return Object.getPrototypeOf(n)}function hm(n){return!!n.constructor&&n.constructor.name!=="Object"&&n.constructor.name!=="Function"}function bl(n){return typeof n=="function"}function gm(n){return n.filter(bl)}function ym(n,e,t){let i=yl(n),s=!!i&&i.constructor.name!=="Object"?i.constructor.name:null,o=fm(n).map(({propertyName:a,dispatch:l,useEffectsErrorHandler:c})=>{let p=typeof n[a]=="function"?n[a]():n[a],u=c?t(p,e):p;return l===!1?u.pipe(vs()):u.pipe(Ss()).pipe(pe(y=>({effect:n[a],notification:y,propertyName:a,sourceName:s,sourceInstance:n})))});return ut(...o)}var bm=10;function vl(n,e,t=bm){return n.pipe(Oe(i=>(e&&e.handleError(i),t<=1?n:vl(n,e,t-1))))}var _l=(()=>{class n extends jt{constructor(t){super(),t&&(this.source=t)}lift(t){let i=new n;return i.source=this,i.operator=t,i}static{this.\u0275fac=function(i){return new(i||n)(z(xn))}}static{this.\u0275prov=K({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Vr(...n){return ne(e=>n.some(t=>typeof t=="string"?t===e.type:t.type===e.type))}var cb=new oe("@ngrx/effects Internal Root Guard"),ub=new oe("@ngrx/effects User Provided Effects"),db=new oe("@ngrx/effects Internal Root Effects"),pb=new oe("@ngrx/effects Internal Root Effects Instances"),mb=new oe("@ngrx/effects Internal Feature Effects"),fb=new oe("@ngrx/effects Internal Feature Effects Instance Groups"),vm=new oe("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>vl}),_m="@ngrx/effects/init",Sm=V(_m);function Em(n,e){if(n.notification.kind==="N"){let t=n.notification.value;!Cm(t)&&e.handleError(new Error(`Effect ${Tm(n)} dispatched an invalid action: ${wm(t)}`))}}function Cm(n){return typeof n!="function"&&n&&n.type&&typeof n.type=="string"}function Tm({propertyName:n,sourceInstance:e,sourceName:t}){let i=typeof e[n]=="function";return!!t?`"${t}.${String(n)}${i?"()":""}"`:`"${String(n)}()"`}function wm(n){try{return JSON.stringify(n)}catch{return n}}var xm="ngrxOnIdentifyEffects";function Mm(n){return qr(n,xm)}var Am="ngrxOnRunEffects";function km(n){return qr(n,Am)}var Om="ngrxOnInitEffects";function Im(n){return qr(n,Om)}function qr(n,e){return n&&e in n&&typeof n[e]=="function"}var Sl=(()=>{class n extends ct{constructor(t,i){super(),this.errorHandler=t,this.effectsErrorHandler=i}addEffects(t){this.next(t)}toActions(){return this.pipe(ji(t=>hm(t)?yl(t):t),Ri(t=>t.pipe(ji(Nm))),Ri(t=>{let i=t.pipe(Ht(s=>Pm(this.errorHandler,this.effectsErrorHandler)(s)),pe(s=>(Em(s,this.errorHandler),s.notification)),ne(s=>s.kind==="N"&&s.value!=null),_s()),r=t.pipe(dt(1),ne(Im),pe(s=>s.ngrxOnInitEffects()));return ut(i,r)}))}static{this.\u0275fac=function(i){return new(i||n)(z(bn),z(vm))}}static{this.\u0275prov=K({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Nm(n){return Mm(n)?n.ngrxOnIdentifyEffects():""}function Pm(n,e){return t=>{let i=ym(t,n,e);return km(t)?t.ngrxOnRunEffects(i):i}}var Rm=(()=>{class n{get isStarted(){return!!this.effectsSubscription}constructor(t,i){this.effectSources=t,this.store=i,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static{this.\u0275fac=function(i){return new(i||n)(z(Sl),z(ce))}}static{this.\u0275prov=K({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function El(...n){let e=n.flat(),t=gm(e);return yn([t,{provide:xs,multi:!0,useValue:()=>{I(ro),I(so,{optional:!0});let i=I(Rm),r=I(Sl),s=!i.isStarted;s&&i.start();for(let o of e){let a=bl(o)?I(o):o;r.addEffects(a)}s&&I(ce).dispatch(Sm())}}])}var vi=class n{constructor(e,t,i){this.authService=e;this.router=t;this.route=i}actions$=I(_l);login$=Wr(()=>this.actions$.pipe(Vr(In),Ht(({username:e,password:t})=>this.authService.login(e,t).pipe(pe(i=>{if(i){let r=this.route.snapshot.queryParams.returnUrl||"/analysis";this.router.navigateByUrl(r)}return Nn({user:i})}),Oe(i=>Re(Pn({error:i})))))));logout$=Wr(()=>this.actions$.pipe(Vr(Ue),Ht(()=>(this.authService.logout(),this.router.navigate(["/auth/login"]),Re(vo())))));static \u0275fac=function(t){return new(t||n)(z(te),z(ee),z(Tn))};static \u0275prov=K({token:n,factory:n.\u0275fac})};var Dm=["/app/api/auth/login","/app/api/auth/refresh","/app/api/auth/logout"],_i=class n{constructor(e){this.authService=e}intercept(e,t){let i=Dm.some(s=>e.url.includes(s)),r=this.authService.session;return r&&!i&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r}`}})),t.handle(e)}static \u0275fac=function(t){return new(t||n)(z(te))};static \u0275prov=K({token:n,factory:n.\u0275fac})};var Si=class n{constructor(e,t){this.authService=e;this.router=t}refreshing=!1;refreshToken$=new Bt(null);intercept(e,t){return t.handle(e).pipe(Oe(i=>i.status===401&&!e.url.includes("/app/api/auth/")?this.handle401(e,t):Pi(()=>i)))}handle401(e,t){return this.refreshing?this.refreshToken$.pipe(ne(i=>i!==null),dt(1),De(i=>t.handle(this.attachToken(e,i)))):(this.refreshing=!0,this.refreshToken$.next(null),this.authService.refresh().pipe(De(i=>(this.refreshing=!1,this.refreshToken$.next(i),t.handle(this.attachToken(e,i)))),Oe(i=>(this.refreshing=!1,this.authService.removeSession(),this.router.navigate(["/auth/login"]),Pi(()=>i)))))}attachToken(e,t){return e.clone({setHeaders:{Authorization:`Bearer ${t}`}})}static \u0275fac=function(t){return new(t||n)(z(te),z(ee))};static \u0275prov=K({token:n,factory:n.\u0275fac})};var Tl={providers:[{provide:Rs,useFactory:n=>()=>n.initializeAuth(),deps:[te],multi:!0},{provide:Vi,useClass:_i,multi:!0},{provide:Vi,useClass:Si,multi:!0},Vs,_o,Hs({eventCoalescing:!0}),to(el),uo(gl,{metaReducers:[$r]}),Ms(_a,Cn),$o({maxAge:25,logOnly:!Us()}),El(vi),qs(Qs(),Ks())]};var Ei=class n{constructor(e,t,i){this.titleService=e;this.router=t;this.activatedRoute=i}init(){this.router.events.pipe(ne(e=>e instanceof Be)).subscribe(()=>{this.updateTitle()})}updateTitle(){let e=this.activatedRoute;for(;e.firstChild;)e=e.firstChild;e.snapshot.data.title&&this.titleService.setTitle(e.snapshot.data.title+" | Highdmin - Angular Admin Dashboard")}static \u0275fac=function(t){return new(t||n)(z(Xs),z(ee),z(Tn))};static \u0275prov=K({token:n,factory:n.\u0275fac,providedIn:"root"})};var Lm=["progressbar"],Fm=["progressbarWrapper"];function zm(n,e){if(n&1&&v(0,"div",7),n&2){let t=P();$t("box-shadow","0 0 10px "+t.color+", 0 0 5px "+t.color)}}function jm(n,e){if(n&1&&(d(0,"div",8),v(1,"div",9),m()),n&2){let t=P();S(),$t("border-top-color",t.color)("border-left-color",t.color)}}var Kr=class{get snapshot(){return this._state.value}get isStarted(){return this.snapshot.active}constructor(e,t){this._onDestroyCallback=t,this._started=new ct,this.started=this._started.pipe(ne(()=>!this.isStarted)),this._completed=new ct,this.completed=this._completed.pipe(ne(()=>this.isStarted)),this._trickling=new ct,this._worker=ds.EMPTY,this._state=new Bt({active:!1,value:0}),this._config=new Bt(e),this.state=this._state.asObservable(),this.config=this._config.asObservable(),this._worker=gs([this._trickling,this._config]).pipe(ys(([i,r])=>Di(i?r.debounceTime:0)),De(([i,r])=>i?this.onTrickling(r):this.onComplete(r))).subscribe()}start(){this._started.next(),this._trickling.next(!0)}complete(){this._trickling.next(!1)}inc(e){let t=this.snapshot.value;this.isStarted?(typeof e!="number"&&(e=this._config.value.trickleFunc(t)),this.set(t+e)):this.start()}set(e){this.setState({value:this.clamp(e),active:!0})}setConfig(e){this._config.next(E(E({},this._config.value),e))}destroy(){this._worker.unsubscribe(),this._trickling.complete(),this._state.complete(),this._config.complete(),this._started.complete(),this._completed.complete(),this._onDestroyCallback()}setState(e){this._state.next(E(E({},this.snapshot),e))}clamp(e){return Math.max(this._config.value.min,Math.min(this._config.value.max,e))}onTrickling(e){return this.isStarted||this.set(this._config.value.min),Di(0,e.trickleSpeed).pipe(Ut(()=>this.inc()))}onComplete(e){return this._completed.next(),this.isStarted?Re({}).pipe(Ut(()=>this.setState({value:100})),Fi(e.speed*1.7),Ut(()=>this.setState({active:!1})),Fi(e.speed),zi(()=>this.setState({value:0})),pt(this._started)):gn}},xl=new oe("ngProgressConfig"),wl={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fixed:!0,meteor:!0,thick:!1,spinner:!0,ease:"linear",color:"#1B95E0",direction:"ltr+",spinnerPosition:"right",trickleFunc:n=>n>=0&&n<20?10:n>=20&&n<50?4:n>=50&&n<80?2:n>=80&&n<99?.5:0},Bm=(()=>{class n{constructor(t){this._instances=new Map,this.config=t?E(E({},wl),t):wl}ref(t="root",i){if(this._instances.has(t)){let r=this._instances.get(t);return i&&r.setConfig(E(E({},this.config),i)),r}else{let r=new Kr(E(E({},this.config),i),this.deleteInstance(t));return this._instances.set(t,r).get(t)}}destroyAll(){this._instances.forEach(t=>t.destroy())}deleteInstance(t){return()=>{this._instances.delete(t)}}static{this.\u0275fac=function(i){return new(i||n)(z(xl,8))}}static{this.\u0275prov=K({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),an=(()=>{class n{get isStarted(){return this.progressRef?.isStarted}constructor(t){this._ngProgress=t,this.id="root",this.min=this._ngProgress.config.min,this.max=this._ngProgress.config.max,this.ease=this._ngProgress.config.ease,this.color=this._ngProgress.config.color,this.speed=this._ngProgress.config.speed,this.thick=this._ngProgress.config.thick,this.fixed=this._ngProgress.config.fixed,this.meteor=this._ngProgress.config.meteor,this.spinner=this._ngProgress.config.spinner,this.trickleSpeed=this._ngProgress.config.trickleSpeed,this.debounceTime=this._ngProgress.config.debounceTime,this.trickleFunc=this._ngProgress.config.trickleFunc,this.spinnerPosition=this._ngProgress.config.spinnerPosition,this.direction=this._ngProgress.config.direction,this.started=new ht,this.completed=new ht}ngOnChanges(){this.progressRef?.setConfig({max:this.max>0&&this.max<=100?this.max:100,min:this.min<100&&this.min>=0?this.min:0,speed:this.speed,trickleSpeed:this.trickleSpeed,trickleFunc:this.trickleFunc,debounceTime:this.debounceTime})}ngOnInit(){this.progressRef=this._ngProgress.ref(this.id,{max:this.max,min:this.min,speed:this.speed,trickleSpeed:this.trickleSpeed,debounceTime:this.debounceTime});let t=this.progressElement.nativeElement,i=this.progressWrapperElement.nativeElement;this._state=this.progressRef.state.pipe(Ut(r=>{t.style.transform=`translate3d(${r.value}%,0,0)`,r.active?(t.style.transition=`all ${this.speed}ms ${this.ease}`,i.setAttribute("active","true")):(t.style.transition="none",i.setAttribute("active","false"))})).subscribe(),this.started.observed&&(this._started=this.progressRef.started.subscribe(()=>this.started.emit())),this.completed.observed&&(this._completed=this.progressRef.completed.subscribe(()=>this.completed.emit()))}ngOnDestroy(){this._state?.unsubscribe(),this._started?.unsubscribe(),this._completed?.unsubscribe(),this.progressRef?.destroy()}start(){this.progressRef.start()}complete(){this.progressRef.complete()}inc(t){this.progressRef.inc(t)}set(t){this.progressRef.set(t)}static{this.\u0275fac=function(i){return new(i||n)(Ye(Bm))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-progress"]],viewQuery:function(i,r){if(i&1&&(Wt(Lm,7),Wt(Fm,7)),i&2){let s;Vt(s=qt())&&(r.progressElement=s.first),Vt(s=qt())&&(r.progressWrapperElement=s.first)}},hostAttrs:["role","progressbar"],hostVars:4,hostBindings:function(i,r){i&2&&ge("spinnerPosition",r.spinnerPosition)("direction",r.direction)("thick",r.thick)("fixed",r.fixed)},inputs:{id:"id",min:"min",max:"max",ease:"ease",color:"color",speed:"speed",thick:"thick",fixed:"fixed",meteor:"meteor",spinner:"spinner",trickleSpeed:"trickleSpeed",debounceTime:"debounceTime",trickleFunc:"trickleFunc",spinnerPosition:"spinnerPosition",direction:"direction"},outputs:{started:"started",completed:"completed"},features:[As],decls:7,vars:6,consts:[["progressbarWrapper",""],["progressbar",""],[1,"ng-progress-bar"],[1,"ng-bar-placeholder"],[1,"ng-bar"],["class","ng-meteor",3,"boxShadow",4,"ngIf"],["class","ng-spinner",4,"ngIf"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(i,r){i&1&&(d(0,"div",2,0)(2,"div",3)(3,"div",4,1),U(5,zm,1,2,"div",5),m()(),U(6,jm,2,4,"div",6),m()),i&2&&($t("transition","opacity "+r.speed+"ms "+r.ease),S(3),$t("background-color",r.color),S(2),k("ngIf",r.meteor),S(),k("ngIf",r.spinner))},dependencies:[ve,Sn],styles:['[_nghost-%COMP%]{z-index:999999;pointer-events:none}[fixed=true][_nghost-%COMP%]   .ng-progress-bar[_ngcontent-%COMP%], [fixed=true][_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{position:fixed}[fixed=true][_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{top:15px}[fixed=true][spinnerPosition=left][_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{left:15px}[fixed=true][spinnerPosition=right][_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{right:15px}[thick=true][_nghost-%COMP%]   .ng-spinner-icon[_ngcontent-%COMP%]{width:24px;height:24px;border-width:3px}[thick=true][_nghost-%COMP%]   .ng-bar-placeholder[_ngcontent-%COMP%]{height:3px!important}[direction="ltr+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{transform:rotate(3deg)}[direction="ltr+"][thick=true][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][thick=true][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{transform:rotate(4deg)}[direction="ltr+"][_nghost-%COMP%]   .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{top:-3px}[direction="ltr+"][thick=true][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][thick=true][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{top:-4px}[direction=ltr-][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{bottom:-3px}[direction=ltr-][thick=true][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][thick=true][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{bottom:-4px}[direction=ltr-][_nghost-%COMP%]   .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%]   .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-spinner-icon[_ngcontent-%COMP%]{animation-directionection:reverse}[direction="rtl+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{transform:rotate(-3deg)}[direction="rtl+"][thick=true][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][thick=true][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{transform:rotate(-4deg)}[spinnerPosition=left][_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{left:10px}[spinnerPosition=right][_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{right:10px}.ng-progress-bar[_ngcontent-%COMP%]{position:relative;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0}.ng-progress-bar[active=true][_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:2px;width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{width:18px;height:18px;box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation .25s linear infinite;border:2px solid transparent;border-radius:50%}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0})}}return n})(),Ml=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:xl,useValue:t}]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ze({type:n})}static{this.\u0275inj=Le({imports:[an]})}}return n})();var Ci=class n{titleService=I(Ei);progressRef;progressBar;router=I(ee);constructor(){this.router.events.subscribe(e=>{this.checkRouteChange(e)})}ngOnInit(){this.titleService.init()}checkRouteChange(e){e instanceof Zs&&this.progressBar.start(),(e instanceof Be||e instanceof Js||e instanceof eo)&&setTimeout(()=>{this.progressBar.complete()},200)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=$({type:n,selectors:[["app-root"]],viewQuery:function(t,i){if(t&1&&Wt(an,5),t&2){let r;Vt(r=qt())&&(i.progressBar=r.first)}},decls:3,vars:5,consts:[["progressBar",""],["color","#465dff",3,"trickleSpeed","speed","spinner","thick","ease"]],template:function(t,i){t&1&&v(0,"ng-progress",1,0)(2,"router-outlet"),t&2&&k("trickleSpeed",10)("speed",10)("spinner",!1)("thick",!0)("ease","linear")},dependencies:[He,Ml,an],encapsulation:2})};var Wl=Object.freeze({left:0,top:0,width:16,height:16}),xi=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),mn=Object.freeze(E(E({},Wl),xi)),Xr=Object.freeze(W(E({},mn),{body:"",hidden:!1})),Um=Object.freeze({width:null,height:null}),Vl=Object.freeze(E(E({},Um),xi));function $m(n,e=0){let t=n.replace(/^-?[0-9.]*/,"");function i(r){for(;r<0;)r+=4;return r%4}if(t===""){let r=parseInt(n);return isNaN(r)?0:i(r)}else if(t!==n){let r=0;switch(t){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(n.slice(0,n.length-t.length));return isNaN(s)?0:(s=s/r,s%1===0?i(s):0)}}return e}var Wm=/[\s,]+/;function Vm(n,e){e.split(Wm).forEach(t=>{switch(t.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}var ql=W(E({},Vl),{preserveAspectRatio:""});function Al(n){let e=E({},ql),t=(i,r)=>n.getAttribute(i)||r;return e.width=t("width",null),e.height=t("height",null),e.rotate=$m(t("rotate","")),Vm(e,t("flip","")),e.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),e}function qm(n,e){for(let t in ql)if(n[t]!==e[t])return!0;return!1}var Kl=/^[a-z0-9]+(-[a-z0-9]+)*$/,fn=(n,e,t,i="")=>{let r=n.split(":");if(n.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;i=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){let a=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:i,prefix:l,name:a};return e&&!Ti(c)?null:c}let s=r[0],o=s.split("-");if(o.length>1){let a={provider:i,prefix:o.shift(),name:o.join("-")};return e&&!Ti(a)?null:a}if(t&&i===""){let a={provider:i,prefix:"",name:s};return e&&!Ti(a,t)?null:a}return null},Ti=(n,e)=>n?!!((e&&n.prefix===""||n.prefix)&&n.name):!1;function Km(n,e){let t={};!n.hFlip!=!e.hFlip&&(t.hFlip=!0),!n.vFlip!=!e.vFlip&&(t.vFlip=!0);let i=((n.rotate||0)+(e.rotate||0))%4;return i&&(t.rotate=i),t}function kl(n,e){let t=Km(n,e);for(let i in Xr)i in xi?i in n&&!(i in t)&&(t[i]=xi[i]):i in e?t[i]=e[i]:i in n&&(t[i]=n[i]);return t}function Qm(n,e){let t=n.icons,i=n.aliases||Object.create(null),r=Object.create(null);function s(o){if(t[o])return r[o]=[];if(!(o in r)){r[o]=null;let a=i[o]&&i[o].parent,l=a&&s(a);l&&(r[o]=[a].concat(l))}return r[o]}return Object.keys(t).concat(Object.keys(i)).forEach(s),r}function Gm(n,e,t){let i=n.icons,r=n.aliases||Object.create(null),s={};function o(a){s=kl(i[a]||r[a],s)}return o(e),t.forEach(o),kl(n,s)}function Ql(n,e){let t=[];if(typeof n!="object"||typeof n.icons!="object")return t;n.not_found instanceof Array&&n.not_found.forEach(r=>{e(r,null),t.push(r)});let i=Qm(n);for(let r in i){let s=i[r];s&&(e(r,Gm(n,r,s)),t.push(r))}return t}var Ym=E({provider:"",aliases:{},not_found:{}},Wl);function Qr(n,e){for(let t in e)if(t in n&&typeof n[t]!=typeof e[t])return!1;return!0}function Gl(n){if(typeof n!="object"||n===null)return null;let e=n;if(typeof e.prefix!="string"||!n.icons||typeof n.icons!="object"||!Qr(n,Ym))return null;let t=e.icons;for(let r in t){let s=t[r];if(!r||typeof s.body!="string"||!Qr(s,Xr))return null}let i=e.aliases||Object.create(null);for(let r in i){let s=i[r],o=s.parent;if(!r||typeof o!="string"||!t[o]&&!i[o]||!Qr(s,Xr))return null}return e}var Mi=Object.create(null);function Xm(n,e){return{provider:n,prefix:e,icons:Object.create(null),missing:new Set}}function Ne(n,e){let t=Mi[n]||(Mi[n]=Object.create(null));return t[e]||(t[e]=Xm(n,e))}function Yl(n,e){return Gl(e)?Ql(e,(t,i)=>{i?n.icons[t]=i:n.missing.add(t)}):[]}function Zm(n,e,t){try{if(typeof t.body=="string")return n.icons[e]=E({},t),!0}catch{}return!1}function Jm(n,e){let t=[];return(typeof n=="string"?[n]:Object.keys(Mi)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(Mi[r]||{})).forEach(o=>{let a=Ne(r,o);t=t.concat(Object.keys(a.icons).map(l=>(r!==""?"@"+r+":":"")+o+":"+l))})}),t}var dn=!1;function Xl(n){return typeof n=="boolean"&&(dn=n),dn}function pn(n){let e=typeof n=="string"?fn(n,!0,dn):n;if(e){let t=Ne(e.provider,e.prefix),i=e.name;return t.icons[i]||(t.missing.has(i)?null:void 0)}}function Zl(n,e){let t=fn(n,!0,dn);if(!t)return!1;let i=Ne(t.provider,t.prefix);return e?Zm(i,t.name,e):(i.missing.add(t.name),!0)}function Ol(n,e){if(typeof n!="object")return!1;if(typeof e!="string"&&(e=n.provider||""),dn&&!e&&!n.prefix){let r=!1;return Gl(n)&&(n.prefix="",Ql(n,(s,o)=>{Zl(s,o)&&(r=!0)})),r}let t=n.prefix;if(!Ti({provider:e,prefix:t,name:"a"}))return!1;let i=Ne(e,t);return!!Yl(i,n)}function Il(n){return!!pn(n)}function ef(n){let e=pn(n);return e&&E(E({},mn),e)}function tf(n){let e={loaded:[],missing:[],pending:[]},t=Object.create(null);n.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let i={provider:"",prefix:"",name:""};return n.forEach(r=>{if(i.name===r.name&&i.prefix===r.prefix&&i.provider===r.provider)return;i=r;let s=r.provider,o=r.prefix,a=r.name,l=t[s]||(t[s]=Object.create(null)),c=l[o]||(l[o]=Ne(s,o)),p;a in c.icons?p=e.loaded:o===""||c.missing.has(a)?p=e.missing:p=e.pending;let u={provider:s,prefix:o,name:a};p.push(u)}),e}function Jl(n,e){n.forEach(t=>{let i=t.loaderCallbacks;i&&(t.loaderCallbacks=i.filter(r=>r.id!==e))})}function nf(n){n.pendingCallbacksFlag||(n.pendingCallbacksFlag=!0,setTimeout(()=>{n.pendingCallbacksFlag=!1;let e=n.loaderCallbacks?n.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1,i=n.provider,r=n.prefix;e.forEach(s=>{let o=s.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==r)return!0;let c=l.name;if(n.icons[c])o.loaded.push({provider:i,prefix:r,name:c});else if(n.missing.has(c))o.missing.push({provider:i,prefix:r,name:c});else return t=!0,!0;return!1}),o.pending.length!==a&&(t||Jl([n],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}var rf=0;function sf(n,e,t){let i=rf++,r=Jl.bind(null,t,i);if(!e.pending.length)return r;let s={id:i,icons:e,callback:n,abort:r};return t.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(s)}),r}var Zr=Object.create(null);function Nl(n,e){Zr[n]=e}function Jr(n){return Zr[n]||Zr[""]}function of(n,e=!0,t=!1){let i=[];return n.forEach(r=>{let s=typeof r=="string"?fn(r,e,t):r;s&&i.push(s)}),i}var af={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lf(n,e,t,i){let r=n.resources.length,s=n.random?Math.floor(Math.random()*r):n.index,o;if(n.random){let b=n.resources.slice(0);for(o=[];b.length>1;){let O=Math.floor(Math.random()*b.length);o.push(b[O]),b=b.slice(0,O).concat(b.slice(O+1))}o=o.concat(b)}else o=n.resources.slice(s).concat(n.resources.slice(0,s));let a=Date.now(),l="pending",c=0,p,u=null,f=[],y=[];typeof i=="function"&&y.push(i);function h(){u&&(clearTimeout(u),u=null)}function g(){l==="pending"&&(l="aborted"),h(),f.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),f=[]}function T(b,O){O&&(y=[]),typeof b=="function"&&y.push(b)}function M(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:f.length,subscribe:T,abort:g}}function N(){l="failed",y.forEach(b=>{b(void 0,p)})}function R(){f.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),f=[]}function w(b,O,D){let Y=O!=="success";switch(f=f.filter(le=>le!==b),l){case"pending":break;case"failed":if(Y||!n.dataAfterTimeout)return;break;default:return}if(O==="abort"){p=D,N();return}if(Y){p=D,f.length||(o.length?L():N());return}if(h(),R(),!n.random){let le=n.resources.indexOf(b.resource);le!==-1&&le!==n.index&&(n.index=le)}l="completed",y.forEach(le=>{le(D)})}function L(){if(l!=="pending")return;h();let b=o.shift();if(b===void 0){if(f.length){u=setTimeout(()=>{h(),l==="pending"&&(R(),N())},n.timeout);return}N();return}let O={status:"pending",resource:b,callback:(D,Y)=>{w(O,D,Y)}};f.push(O),c++,u=setTimeout(L,n.rotate),t(b,e,O.callback)}return setTimeout(L),M}function ec(n){let e=E(E({},af),n),t=[];function i(){t=t.filter(a=>a().status==="pending")}function r(a,l,c){let p=lf(e,a,l,(u,f)=>{i(),c&&c(u,f)});return t.push(p),p}function s(a){return t.find(l=>a(l))||null}return{query:r,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:i}}function is(n){let e;if(typeof n.resources=="string")e=[n.resources];else if(e=n.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:n.path||"/",maxURL:n.maxURL||500,rotate:n.rotate||750,timeout:n.timeout||5e3,random:n.random===!0,index:n.index||0,dataAfterTimeout:n.dataAfterTimeout!==!1}}var ki=Object.create(null),ln=["https://api.simplesvg.com","https://api.unisvg.com"],wi=[];for(;ln.length>0;)ln.length===1||Math.random()>.5?wi.push(ln.shift()):wi.push(ln.pop());ki[""]=is({resources:["https://api.iconify.design"].concat(wi)});function Pl(n,e){let t=is(e);return t===null?!1:(ki[n]=t,!0)}function Oi(n){return ki[n]}function cf(){return Object.keys(ki)}function Rl(){}var Gr=Object.create(null);function uf(n){if(!Gr[n]){let e=Oi(n);if(!e)return;let t=ec(e),i={config:e,redundancy:t};Gr[n]=i}return Gr[n]}function tc(n,e,t){let i,r;if(typeof n=="string"){let s=Jr(n);if(!s)return t(void 0,424),Rl;r=s.send;let o=uf(n);o&&(i=o.redundancy)}else{let s=is(n);if(s){i=ec(s);let o=n.resources?n.resources[0]:"",a=Jr(o);a&&(r=a.send)}}return!i||!r?(t(void 0,424),Rl):i.query(e,r,t)().abort}function Dl(){}function df(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,nf(n)}))}function pf(n){let e=[],t=[];return n.forEach(i=>{(i.match(Kl)?e:t).push(i)}),{valid:e,invalid:t}}function cn(n,e,t){function i(){let r=n.pendingIcons;e.forEach(s=>{r&&r.delete(s),n.icons[s]||n.missing.add(s)})}if(t&&typeof t=="object")try{if(!Yl(n,t).length){i();return}}catch(r){console.error(r)}i(),df(n)}function Ll(n,e){n instanceof Promise?n.then(t=>{e(t)}).catch(()=>{e(null)}):e(n)}function mf(n,e){n.iconsToLoad?n.iconsToLoad=n.iconsToLoad.concat(e).sort():n.iconsToLoad=e,n.iconsQueueFlag||(n.iconsQueueFlag=!0,setTimeout(()=>{n.iconsQueueFlag=!1;let{provider:t,prefix:i}=n,r=n.iconsToLoad;if(delete n.iconsToLoad,!r||!r.length)return;let s=n.loadIcon;if(n.loadIcons&&(r.length>1||!s)){Ll(n.loadIcons(r,i,t),p=>{cn(n,r,p)});return}if(s){r.forEach(p=>{let u=s(p,i,t);Ll(u,f=>{let y=f?{prefix:i,icons:{[p]:f}}:null;cn(n,[p],y)})});return}let{valid:o,invalid:a}=pf(r);if(a.length&&cn(n,a,null),!o.length)return;let l=i.match(Kl)?Jr(t):null;if(!l){cn(n,o,null);return}l.prepare(t,i,o).forEach(p=>{tc(t,p,u=>{cn(n,p.icons,u)})})}))}var rs=(n,e)=>{let t=of(n,!0,Xl()),i=tf(t);if(!i.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(i.loaded,i.missing,i.pending,Dl)}),()=>{l=!1}}let r=Object.create(null),s=[],o,a;return i.pending.forEach(l=>{let{provider:c,prefix:p}=l;if(p===a&&c===o)return;o=c,a=p,s.push(Ne(c,p));let u=r[c]||(r[c]=Object.create(null));u[p]||(u[p]=[])}),i.pending.forEach(l=>{let{provider:c,prefix:p,name:u}=l,f=Ne(c,p),y=f.pendingIcons||(f.pendingIcons=new Set);y.has(u)||(y.add(u),r[c][p].push(u))}),s.forEach(l=>{let c=r[l.provider][l.prefix];c.length&&mf(l,c)}),e?sf(e,i,s):Dl},ff=n=>new Promise((e,t)=>{let i=typeof n=="string"?fn(n,!0):n;if(!i){t(n);return}rs([i||n],r=>{if(r.length&&i){let s=pn(i);if(s){e(E(E({},mn),s));return}}t(n)})});function Fl(n){try{let e=typeof n=="string"?JSON.parse(n):n;if(typeof e.body=="string")return E({},e)}catch{}}function hf(n,e){if(typeof n=="object")return{data:Fl(n),value:n};if(typeof n!="string")return{value:n};if(n.includes("{")){let s=Fl(n);if(s)return{data:s,value:n}}let t=fn(n,!0,!0);if(!t)return{value:n};let i=pn(t);if(i!==void 0||!t.prefix)return{value:n,name:t,data:i};let r=rs([t],()=>e(n,t,pn(t)));return{value:n,name:t,loading:r}}var nc=!1;try{nc=navigator.vendor.indexOf("Apple")===0}catch{}function gf(n,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(nc||n.indexOf("<a")===-1)?"svg":n.indexOf("currentColor")===-1?"bg":"mask"}var yf=/(-?[0-9.]*[0-9]+[0-9.]*)/g,bf=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function es(n,e,t){if(e===1)return n;if(t=t||100,typeof n=="number")return Math.ceil(n*e*t)/t;if(typeof n!="string")return n;let i=n.split(yf);if(i===null||!i.length)return n;let r=[],s=i.shift(),o=bf.test(s);for(;;){if(o){let a=parseFloat(s);isNaN(a)?r.push(s):r.push(Math.ceil(a*e*t)/t)}else r.push(s);if(s=i.shift(),s===void 0)return r.join("");o=!o}}function vf(n,e="defs"){let t="",i=n.indexOf("<"+e);for(;i>=0;){let r=n.indexOf(">",i),s=n.indexOf("</"+e);if(r===-1||s===-1)break;let o=n.indexOf(">",s);if(o===-1)break;t+=n.slice(r+1,s).trim(),n=n.slice(0,i).trim()+n.slice(o+1)}return{defs:t,content:n}}function _f(n,e){return n?"<defs>"+n+"</defs>"+e:e}function Sf(n,e,t){let i=vf(n);return _f(i.defs,e+i.content+t)}var Ef=n=>n==="unset"||n==="undefined"||n==="none";function ic(n,e){let t=E(E({},mn),n),i=E(E({},Vl),e),r={left:t.left,top:t.top,width:t.width,height:t.height},s=t.body;[t,i].forEach(g=>{let T=[],M=g.hFlip,N=g.vFlip,R=g.rotate;M?N?R+=2:(T.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),T.push("scale(-1 1)"),r.top=r.left=0):N&&(T.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),T.push("scale(1 -1)"),r.top=r.left=0);let w;switch(R<0&&(R-=Math.floor(R/4)*4),R=R%4,R){case 1:w=r.height/2+r.top,T.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:T.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:w=r.width/2+r.left,T.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}R%2===1&&(r.left!==r.top&&(w=r.left,r.left=r.top,r.top=w),r.width!==r.height&&(w=r.width,r.width=r.height,r.height=w)),T.length&&(s=Sf(s,'<g transform="'+T.join(" ")+'">',"</g>"))});let o=i.width,a=i.height,l=r.width,c=r.height,p,u;o===null?(u=a===null?"1em":a==="auto"?c:a,p=es(u,l/c)):(p=o==="auto"?l:o,u=a===null?es(p,c/l):a==="auto"?c:a);let f={},y=(g,T)=>{Ef(T)||(f[g]=T.toString())};y("width",p),y("height",u);let h=[r.left,r.top,l,c];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:s}}function ss(n,e){let t=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let i in e)t+=" "+i+'="'+e[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+n+"</svg>"}function Cf(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Tf(n){return"data:image/svg+xml,"+Cf(n)}function rc(n){return'url("'+Tf(n)+'")'}var wf=()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}},Ai=wf();function xf(n){Ai=n}function Mf(){return Ai}function Af(n,e){let t=Oi(n);if(!t)return 0;let i;if(!t.maxURL)i=0;else{let r=0;t.resources.forEach(o=>{r=Math.max(r,o.length)});let s=e+".json?icons=";i=t.maxURL-r-t.path.length-s.length}return i}function kf(n){return n===404}var Of=(n,e,t)=>{let i=[],r=Af(n,e),s="icons",o={type:s,provider:n,prefix:e,icons:[]},a=0;return t.forEach((l,c)=>{a+=l.length+1,a>=r&&c>0&&(i.push(o),o={type:s,provider:n,prefix:e,icons:[]},a=l.length),o.icons.push(l)}),i.push(o),i};function If(n){if(typeof n=="string"){let e=Oi(n);if(e)return e.path}return"/"}var Nf=(n,e,t)=>{if(!Ai){t("abort",424);return}let i=If(e.provider);switch(e.type){case"icons":{let s=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});i+=s+".json?"+l.toString();break}case"custom":{let s=e.uri;i+=s.slice(0,1)==="/"?s.slice(1):s;break}default:t("abort",400);return}let r=503;Ai(n+i).then(s=>{let o=s.status;if(o!==200){setTimeout(()=>{t(kf(o)?"abort":"next",o)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?t("abort",s):t("next",r)});return}setTimeout(()=>{t("success",s)})}).catch(()=>{t("next",r)})},Pf={prepare:Of,send:Nf};function Rf(n,e,t){Ne(t||"",e).loadIcons=n}function Df(n,e,t){Ne(t||"",e).loadIcon=n}var Yr="data-style",sc="";function Lf(n){sc=n}function zl(n,e){let t=Array.from(n.childNodes).find(i=>i.hasAttribute&&i.hasAttribute(Yr));t||(t=document.createElement("style"),t.setAttribute(Yr,Yr),n.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+sc}function oc(){Nl("",Pf),Xl(!0);let n;try{n=window}catch{}if(n){if(n.IconifyPreload!==void 0){let t=n.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Ol(r))&&console.error(i)}catch{console.error(i)}})}if(n.IconifyProviders!==void 0){let t=n.IconifyProviders;if(typeof t=="object"&&t!==null)for(let i in t){let r="IconifyProviders["+i+"] is invalid.";try{let s=t[i];if(typeof s!="object"||!s||s.resources===void 0)continue;Pl(i,s)||console.error(r)}catch{console.error(r)}}}}return{enableCache:t=>{},disableCache:t=>{},iconLoaded:Il,iconExists:Il,getIcon:ef,listIcons:Jm,addIcon:Zl,addCollection:Ol,calculateSize:es,buildIcon:ic,iconToHTML:ss,svgToURL:rc,loadIcons:rs,loadIcon:ff,addAPIProvider:Pl,setCustomIconLoader:Df,setCustomIconsLoader:Rf,appendCustomStyle:Lf,_api:{getAPIConfig:Oi,setAPIModule:Nl,sendAPIQuery:tc,setFetch:xf,getFetch:Mf,listAPIProviders:cf}}}var ts={"background-color":"currentColor"},ac={"background-color":"transparent"},jl={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Bl={"-webkit-mask":ts,mask:ts,background:ac};for(let n in Bl){let e=Bl[n];for(let t in jl)e[n+"-"+t]=jl[t]}function Hl(n){return n?n+(n.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Ff(n,e,t){let i=document.createElement("span"),r=n.body;r.indexOf("<a")!==-1&&(r+="<!-- "+Date.now()+" -->");let s=n.attributes,o=ss(r,W(E({},s),{width:e.width+"",height:e.height+""})),a=rc(o),l=i.style,c=E({"--svg":a,width:Hl(s.width),height:Hl(s.height)},t?ts:ac);for(let p in c)l.setProperty(p,c[p]);return i}var un;function zf(){try{un=window.trustedTypes.createPolicy("iconify",{createHTML:n=>n})}catch{un=null}}function jf(n){return un===void 0&&zf(),un?un.createHTML(n):n}function Bf(n){let e=document.createElement("span"),t=n.attributes,i="";t.width||(i="width: inherit;"),t.height||(i+="height: inherit;"),i&&(t.style=i);let r=ss(n.body,t);return e.innerHTML=jf(r),e.firstChild}function ns(n){return Array.from(n.childNodes).find(e=>{let t=e.tagName&&e.tagName.toUpperCase();return t==="SPAN"||t==="SVG"})}function Ul(n,e){let t=e.icon.data,i=e.customisations,r=ic(t,i);i.preserveAspectRatio&&(r.attributes.preserveAspectRatio=i.preserveAspectRatio);let s=e.renderedMode,o;switch(s){case"svg":o=Bf(r);break;default:o=Ff(r,E(E({},mn),t),s==="mask")}let a=ns(n);a?o.tagName==="SPAN"&&a.tagName===o.tagName?a.setAttribute("style",o.getAttribute("style")):n.replaceChild(o,a):n.appendChild(o)}function $l(n,e,t){let i=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:e,icon:n,lastRender:i}}function Hf(n="iconify-icon"){let e,t;try{e=window.customElements,t=window.HTMLElement}catch{return}if(!e||!t)return;let i=e.get(n);if(i)return i;let r=["icon","mode","inline","noobserver","width","height","rotate","flip"],s=class extends t{_shadowRoot;_initialised=!1;_state;_checkQueued=!1;_connected=!1;_observer=null;_visible=!0;constructor(){super();let a=this._shadowRoot=this.attachShadow({mode:"open"}),l=this.hasAttribute("inline");zl(a,l),this._state=$l({value:""},l),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return r.slice(0)}attributeChangedCallback(a){switch(a){case"inline":{let l=this.hasAttribute("inline"),c=this._state;l!==c.inline&&(c.inline=l,zl(this._shadowRoot,l));break}case"noobserver":{this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break}default:this._queueCheck()}}get icon(){let a=this.getAttribute("icon");if(a&&a.slice(0,1)==="{")try{return JSON.parse(a)}catch{}return a}set icon(a){typeof a=="object"&&(a=JSON.stringify(a)),this.setAttribute("icon",a)}get inline(){return this.hasAttribute("inline")}set inline(a){a?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(a){a?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let a=this._state;if(a.rendered){let l=this._shadowRoot;if(a.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Ul(l,a)}}get status(){let a=this._state;return a.rendered?"rendered":a.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let a=this._state,l=this.getAttribute("icon");if(l!==a.icon.value){this._iconChanged(l);return}if(!a.rendered||!this._visible)return;let c=this.getAttribute("mode"),p=Al(this);(a.attrMode!==c||qm(a.customisations,p)||!ns(this._shadowRoot))&&this._renderIcon(a.icon,p,c)}_iconChanged(a){let l=hf(a,(c,p,u)=>{let f=this._state;if(f.rendered||this.getAttribute("icon")!==c)return;let y={value:c,name:p,data:u};y.data?this._gotIconData(y):f.icon=y});l.data?this._gotIconData(l):this._state=$l(l,this._state.inline,this._state)}_forceRender(){if(!this._visible){let a=ns(this._shadowRoot);a&&this._shadowRoot.removeChild(a);return}this._queueCheck()}_gotIconData(a){this._checkQueued=!1,this._renderIcon(a,Al(this),this.getAttribute("mode"))}_renderIcon(a,l,c){let p=gf(a.data.body,c),u=this._state.inline;Ul(this._shadowRoot,this._state={rendered:!0,icon:a,inline:u,customisations:l,attrMode:c,renderedMode:p})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(a=>{let l=a.some(c=>c.isIntersecting);l!==this._visible&&(this._visible=l,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};r.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(l){l!==null?this.setAttribute(a,l):this.removeAttribute(a)}})});let o=oc();for(let a in o)s[a]=s.prototype[a]=o[a];return e.define(n,s),s}var Uf=Hf()||oc(),{enableCache:vv,disableCache:_v,iconLoaded:Sv,iconExists:Ev,getIcon:Cv,listIcons:Tv,addIcon:wv,addCollection:xv,calculateSize:Mv,buildIcon:Av,iconToHTML:kv,svgToURL:Ov,loadIcons:Iv,loadIcon:Nv,setCustomIconLoader:Pv,setCustomIconsLoader:Rv,addAPIProvider:Dv,_api:Lv}=Uf;window.global=window;Ys(Ci,Tl).catch(n=>console.error(n));

Youez - 2016 - github.com/yon3zu
LinuXploit