From e2026cafd6a367d60f274b1b24444ebef6c57372 Mon Sep 17 00:00:00 2001 From: Mykola Kondrushenko Date: Sat, 5 Oct 2024 16:56:59 +0300 Subject: [PATCH] The reactions module has been created. A connection between reactions and sessions has been created --- docs/chunk-5G2SSBTM.js | 1 + docs/{chunk-KTVWHLU2.js => chunk-7DXRFCOT.js} | 2 +- docs/index.html | 2 +- docs/main-ANNWPSS5.js | 1 + docs/main-Y6WHMPQY.js | 1 - src/app/app.module.ts | 13 ++ src/app/core/theme/user/user.component.html | 10 ++ .../pages/reactions/reactions.component.html | 6 + .../pages/reactions/reactions.component.scss | 0 .../pages/reactions/reactions.component.ts | 116 ++++++++++++++++++ .../pages/reactions/reactions.module.ts | 29 +++++ .../services/conferencereaction.service.ts | 66 ++++++++++ .../pages/sessions/sessions.component.ts | 6 + 13 files changed, 250 insertions(+), 3 deletions(-) create mode 100644 docs/chunk-5G2SSBTM.js rename docs/{chunk-KTVWHLU2.js => chunk-7DXRFCOT.js} (65%) create mode 100644 docs/main-ANNWPSS5.js delete mode 100644 docs/main-Y6WHMPQY.js create mode 100644 src/app/modules/conferencereaction/pages/reactions/reactions.component.html create mode 100644 src/app/modules/conferencereaction/pages/reactions/reactions.component.scss create mode 100644 src/app/modules/conferencereaction/pages/reactions/reactions.component.ts create mode 100644 src/app/modules/conferencereaction/pages/reactions/reactions.module.ts create mode 100644 src/app/modules/conferencereaction/services/conferencereaction.service.ts diff --git a/docs/chunk-5G2SSBTM.js b/docs/chunk-5G2SSBTM.js new file mode 100644 index 0000000..99ee009 --- /dev/null +++ b/docs/chunk-5G2SSBTM.js @@ -0,0 +1 @@ +import{a as F}from"./chunk-TBFD5B5Q.js";import{i as k}from"./chunk-6LRXWN5R.js";import{B as c,Ca as C,F as _,Ja as l,L as b,Ma as g,Na as w,Oa as x,Ra as f,Va as B,ab as R,db as T,j as u,k as v,m,n as I,o as y,p as S,ya as j}from"./chunk-HOEKJOMB.js";var A=(()=>{let e=class e extends g{constructor(s,t,r,a){super({name:"conferencereaction"},s,t,r,a),this._helper=I(F),this.conferencereactions=[],this.reactionsBySessionId={},this.setReactionsBySessionId=this._helper.createParentIdToChildrenIds(this.reactionsBySessionId,this.conferencereactions,"session"),this.get().subscribe(n=>{this.conferencereactions.push(...n),this.setReactionsBySessionId()}),a.on("conferencereaction_create").subscribe(n=>{this.conferencereactions.push(n),this.setReactionsBySessionId()}),a.on("conferencereaction_delete").subscribe(n=>{this.conferencereactions.splice(this.conferencereactions.findIndex(h=>h._id===n._id),1),this.setReactionsBySessionId()})}};e.\u0275fac=function(t){return new(t||e)(m(x),m(w),m(f),m(l))},e.\u0275prov=u({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var p=(()=>{let e=class e{get rows(){return this.sessionId?this._sc.reactionsBySessionId[this.sessionId]||[]:this._sc.conferencereactions}constructor(s,t,r,a,n,h){this._translate=s,this._alert=t,this._sc=r,this._form=a,this._core=n,this._router=h,this.sessionId=this._router.url.includes("/reactions/")?this._router.url.replace("/reactions/",""):"",this.columns=["name","description"],this.form=this._form.getForm("reactions",{formId:"reactions",title:"Reactions",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill reactions title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill reactions description"},{name:"Label",value:"Description"}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(o,d)=>{this.sessionId&&(o.session=this.sessionId),this._sc.create(o),d()}})},update:o=>{this._form.modal(this.form,[],o).then(d=>{this._core.copy(d,o),this._sc.update(o)})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this Conferencereaction?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sc.delete(o)}}]})},buttons:[{icon:"cloud_download",click:o=>{this._form.modalUnique("reactions","url",o)}}]}}};e.\u0275fac=function(t){return new(t||e)(c(B),c(f),c(A),c(T),c(l),c(j))},e.\u0275cmp=y({type:e,selectors:[["ng-component"]],decls:1,vars:3,consts:[["title","Reactions",3,"columns","config","rows"]],template:function(t,r){t&1&&b(0,"wtable",0),t&2&&_("columns",r.columns)("config",r.config)("rows",r.rows)},dependencies:[R]});let i=e;return i})();var P=[{path:"",component:p},{path:":reaction_id",component:p}],V=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=S({type:e}),e.\u0275inj=v({imports:[C.forChild(P),k]});let i=e;return i})();export{V as ReactionsModule}; diff --git a/docs/chunk-KTVWHLU2.js b/docs/chunk-7DXRFCOT.js similarity index 65% rename from docs/chunk-KTVWHLU2.js rename to docs/chunk-7DXRFCOT.js index a5c9d2e..2ee68e9 100644 --- a/docs/chunk-KTVWHLU2.js +++ b/docs/chunk-7DXRFCOT.js @@ -1 +1 @@ -import{a as F}from"./chunk-TBFD5B5Q.js";import{i as T}from"./chunk-6LRXWN5R.js";import{B as c,Ca as S,F as C,Ja as m,L as g,Ma as j,Na as k,Oa as B,Ra as f,Va as w,ab as x,db as U,j as u,k as v,m as l,n as _,o as y,p as I,ya as b}from"./chunk-HOEKJOMB.js";var M=(()=>{let i=class i extends j{constructor(o,s,n,a){super({name:"conferencesession"},o,s,n,a),this._helper=_(F),this.conferencesessions=[],this.sessionsByConferenceId={},this.setSessionsByConferenceId=this._helper.createParentIdToChildrenIds(this.sessionsByConferenceId,this.conferencesessions,"conference"),this.get().subscribe(r=>{this.conferencesessions.push(...r),this.setSessionsByConferenceId()}),a.on("conferencesession_create").subscribe(r=>{this.conferencesessions.push(r),this.setSessionsByConferenceId()}),a.on("conferencesession_delete").subscribe(r=>{this.conferencesessions.splice(this.conferencesessions.findIndex(h=>h._id===r._id),1),this.setSessionsByConferenceId()})}};i.\u0275fac=function(s){return new(s||i)(l(B),l(k),l(f),l(m))},i.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var p=(()=>{let i=class i{get rows(){return this.conferenceId?this._sc.sessionsByConferenceId[this.conferenceId]||[]:this._sc.conferencesessions}constructor(o,s,n,a,r,h){this._translate=o,this._alert=s,this._sc=n,this._form=a,this._core=r,this._router=h,this.conferenceId=this._router.url.includes("/sessions/")?this._router.url.replace("/sessions/",""):"",this.columns=["name","description"],this.form=this._form.getForm("sessions",{formId:"sessions",title:"Sessions",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill sessions title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill sessions description"},{name:"Label",value:"Description"}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(e,d)=>{this.conferenceId&&(e.conference=this.conferenceId),this._sc.create(e),d()}})},update:e=>{this._form.modal(this.form,[],e).then(d=>{this._core.copy(d,e),this._sc.update(e)})},delete:e=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this Conferencesession?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sc.delete(e)}}]})},buttons:[{icon:"cloud_download",click:e=>{this._form.modalUnique("sessions","url",e)}},{icon:"link",click:e=>{this._router.navigateByUrl("/links/"+e._id)}},{icon:"forum",click:e=>{this._router.navigateByUrl("/comments/"+e._id)}},{icon:"message",click:e=>{this._router.navigateByUrl("/messages/"+e._id)}},{icon:"note",click:e=>{this._router.navigateByUrl("/notes/"+e._id)}},{icon:"poll",click:e=>{this._router.navigateByUrl("/polls/"+e._id)}},{icon:"live_help",click:e=>{this._router.navigateByUrl("/qnas/"+e._id)}},{icon:"contact_support",click:e=>{this._router.navigateByUrl("/questions/"+e._id)}}]}}};i.\u0275fac=function(s){return new(s||i)(c(w),c(f),c(M),c(U),c(m),c(b))},i.\u0275cmp=y({type:i,selectors:[["ng-component"]],decls:1,vars:3,consts:[["title","Sessions",3,"columns","config","rows"]],template:function(s,n){s&1&&g(0,"wtable",0),s&2&&C("columns",n.columns)("config",n.config)("rows",n.rows)},dependencies:[x]});let t=i;return t})();var N=[{path:"",component:p},{path:":session_id",component:p}],V=(()=>{let i=class i{};i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=I({type:i}),i.\u0275inj=v({imports:[S.forChild(N),T]});let t=i;return t})();export{V as SessionsModule}; +import{a as F}from"./chunk-TBFD5B5Q.js";import{i as T}from"./chunk-6LRXWN5R.js";import{B as c,Ca as k,F as g,Ja as m,L as C,Ma as S,Na as j,Oa as B,Ra as f,Va as w,ab as U,db as x,j as u,k as v,m as l,n as _,o as y,p as I,ya as b}from"./chunk-HOEKJOMB.js";var M=(()=>{let i=class i extends S{constructor(o,t,n,a){super({name:"conferencesession"},o,t,n,a),this._helper=_(F),this.conferencesessions=[],this.sessionsByConferenceId={},this.setSessionsByConferenceId=this._helper.createParentIdToChildrenIds(this.sessionsByConferenceId,this.conferencesessions,"conference"),this.get().subscribe(r=>{this.conferencesessions.push(...r),this.setSessionsByConferenceId()}),a.on("conferencesession_create").subscribe(r=>{this.conferencesessions.push(r),this.setSessionsByConferenceId()}),a.on("conferencesession_delete").subscribe(r=>{this.conferencesessions.splice(this.conferencesessions.findIndex(h=>h._id===r._id),1),this.setSessionsByConferenceId()})}};i.\u0275fac=function(t){return new(t||i)(l(B),l(j),l(f),l(m))},i.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();var p=(()=>{let i=class i{get rows(){return this.conferenceId?this._sc.sessionsByConferenceId[this.conferenceId]||[]:this._sc.conferencesessions}constructor(o,t,n,a,r,h){this._translate=o,this._alert=t,this._sc=n,this._form=a,this._core=r,this._router=h,this.conferenceId=this._router.url.includes("/sessions/")?this._router.url.replace("/sessions/",""):"",this.columns=["name","description"],this.form=this._form.getForm("sessions",{formId:"sessions",title:"Sessions",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill sessions title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill sessions description"},{name:"Label",value:"Description"}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(e,d)=>{this.conferenceId&&(e.conference=this.conferenceId),this._sc.create(e),d()}})},update:e=>{this._form.modal(this.form,[],e).then(d=>{this._core.copy(d,e),this._sc.update(e)})},delete:e=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this Conferencesession?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sc.delete(e)}}]})},buttons:[{icon:"cloud_download",click:e=>{this._form.modalUnique("sessions","url",e)}},{icon:"link",click:e=>{this._router.navigateByUrl("/links/"+e._id)}},{icon:"forum",click:e=>{this._router.navigateByUrl("/comments/"+e._id)}},{icon:"message",click:e=>{this._router.navigateByUrl("/messages/"+e._id)}},{icon:"note",click:e=>{this._router.navigateByUrl("/notes/"+e._id)}},{icon:"poll",click:e=>{this._router.navigateByUrl("/polls/"+e._id)}},{icon:"live_help",click:e=>{this._router.navigateByUrl("/qnas/"+e._id)}},{icon:"contact_support",click:e=>{this._router.navigateByUrl("/questions/"+e._id)}},{icon:"favorite",click:e=>{this._router.navigateByUrl("/reactions/"+e._id)}}]}}};i.\u0275fac=function(t){return new(t||i)(c(w),c(f),c(M),c(x),c(m),c(b))},i.\u0275cmp=y({type:i,selectors:[["ng-component"]],decls:1,vars:3,consts:[["title","Sessions",3,"columns","config","rows"]],template:function(t,n){t&1&&C(0,"wtable",0),t&2&&g("columns",n.columns)("config",n.config)("rows",n.rows)},dependencies:[U]});let s=i;return s})();var N=[{path:"",component:p},{path:":session_id",component:p}],V=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=I({type:i}),i.\u0275inj=v({imports:[k.forChild(N),T]});let s=i;return s})();export{V as SessionsModule}; diff --git a/docs/index.html b/docs/index.html index 9567aaf..3897fde 100644 --- a/docs/index.html +++ b/docs/index.html @@ -25,5 +25,5 @@ - + diff --git a/docs/main-ANNWPSS5.js b/docs/main-ANNWPSS5.js new file mode 100644 index 0000000..9367682 --- /dev/null +++ b/docs/main-ANNWPSS5.js @@ -0,0 +1 @@ +import{a as vn}from"./chunk-4M2CC4DW.js";import{e as En,f as bn,i as wn}from"./chunk-6LRXWN5R.js";import{A,Aa as fn,B as dt,Ba as mn,C as nn,Ca as pn,D as Ne,Da as ue,F as C,H as De,Ia as gn,J as p,K as E,Ka as F,L as Z,La as yn,O as we,P as M,Q as ce,Ua as _n,Wa as Sn,Y as T,Z as rn,a as je,c as Zt,ca as B,i as w,j as $,ja as sn,k as Me,ka as on,la as an,m as W,o as Se,oa as ln,p as Oe,r as Ee,ra as cn,s as be,sa as un,ta as hn,ua as Ue,v as Jt,w as en,x as ht,xa as Te,y as tn,ya as ke,za as dn}from"./chunk-HOEKJOMB.js";var Tn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Se({type:e,selectors:[["guest"]],decls:1,vars:0,template:function(r,s){r&1&&Z(0,"router-outlet")},dependencies:[Te]});let i=e;return i})();var v=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(v||{}),J="*";function Qe(i,e){return{type:v.Trigger,name:i,definitions:e,options:{}}}function he(i,e=null){return{type:v.Animate,styles:e,timings:i}}function kn(i,e=null){return{type:v.Sequence,steps:i,options:e}}function q(i){return{type:v.Style,styles:i,offset:null}}function Ve(i,e,t){return{type:v.State,name:i,styles:e,options:t}}function de(i,e,t=null){return{type:v.Transition,expr:i,animation:e,options:t}}var re=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,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(n=>n()),t.length=0}},Fe=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++n==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(n=>{let r=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n: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(n=>n()),t.length=0}},$e="!";var An=[Qe("flyInOut",[Ve("in",q({transform:"translateX(0)"})),de("void => *",[q({transform:"translateY(-10px)",opacity:0,height:"0"}),he(400)]),de("* => void",[he(400,q({opacity:0,height:"0",transform:"translateY(-10px)"}))])]),Qe("tabInOut",[Ve("in",q({transform:"translateX(0)"})),de("void => *",[q({transform:"translateX(10px)",opacity:0}),he(300)]),de("* => void",[he(300,q({opacity:0,transform:"translateX(10px)"}))])]),Qe("showInOut",[Ve("in",q({})),de("void => *",[q({opacity:0}),he(300)]),de("* => void",[he(300,q({opacity:0}))])])];var ft;try{ft=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ft=!1}var Pn=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?cn(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ft)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(W(en))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var j=()=>({exact:!0});function li(i,e){if(i&1&&Z(0,"div",33),i&2){let t=ce();C("@showInOut",t.showSidebar)}}function ci(i,e){if(i&1){let t=we();p(0,"span",34),M("click",function(){Ee(t);let r=ce();return be(r.us.setMode("dark"))}),T(1," dark_mode "),E()}}function ui(i,e){if(i&1){let t=we();p(0,"span",34),M("click",function(){Ee(t);let r=ce();return be(r.us.setMode())}),T(1," light_mode "),E()}}function hi(i,e){if(i&1){let t=we();p(0,"a",35),M("click",function(){Ee(t);let r=ce();return be(r.hideSidebar())}),p(1,"span",5),T(2,"people"),E(),p(3,"span",22),T(4,"Theme.Users"),E()()}i&2&&C("routerLinkActiveOptions",B(1,j))}function di(i,e){if(i&1){let t=we();p(0,"a",36),M("click",function(){Ee(t);let r=ce();return be(r.hideSidebar())}),p(1,"span",5),T(2,"backup_table"),E(),p(3,"span",22),T(4,"Theme.Forms"),E()()}i&2&&C("routerLinkActiveOptions",B(1,j))}function fi(i,e){if(i&1){let t=we();p(0,"a",37),M("click",function(){Ee(t);let r=ce();return be(r.hideSidebar())}),p(1,"span",5),T(2,"translate"),E(),p(3,"span",22),T(4,"Theme.Translates"),E()()}i&2&&C("routerLinkActiveOptions",B(1,j))}function mi(i,e){i&1&&Z(0,"hr")}var mt=(()=>{let e=class e{hideSidebar(){!this._platform.ANDROID&&!this._platform.IOS&&(this.showSidebar=!1)}constructor(n,r){this.us=n,this._platform=r,this.url=ue.url,this.forceAvatarUrl="",this.showSidebar=!1}};e.\u0275fac=function(r){return new(r||e)(dt(vn),dt(Pn))},e.\u0275cmp=Se({type:e,selectors:[["app-user"]],decls:77,vars:37,consts:[["id","wrapper",1,"wrapper"],[1,"nav",3,"clickOutside"],[1,"nav__ul","container"],[1,"nav__li"],["routerLinkActive","_activeLink","routerLink","/profile",1,"nav__a",3,"click"],[1,"material-icons"],[1,"nav__li","_burger",3,"click"],[1,"nav__toggle"],[1,"nav__toggle-line"],[1,"main"],["class","fade",4,"ngIf"],[1,"nav__burger","_active"],[1,"nav__burger-list"],[1,"theme-switch"],["class","material-icons",3,"click",4,"ngIf"],["routerLink","/profile",1,"nav__burger-link","nav__burger-user"],["alt","Profile Picture","height","50","width","50",1,"avatar__img",3,"error","src"],[1,"name"],["routerLinkActive","_activeLink","routerLink","/admin/users","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/forms","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/translates","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/conferences",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["translate",""],["routerLinkActive","_activeLink","routerLink","/sessions",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/links",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/comments",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/messages",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/notes",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/polls",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/qnas",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/questions",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/reactions",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],[4,"ngIf"],[1,"fade"],[1,"material-icons",3,"click"],["routerLinkActive","_activeLink","routerLink","/admin/users",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/forms",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/translates",1,"nav__burger-link",3,"click","routerLinkActiveOptions"]],template:function(r,s){r&1&&(p(0,"div",0)(1,"nav",1),M("clickOutside",function(){return s.showSidebar=!1}),p(2,"ul",2)(3,"li",3)(4,"a",4),M("click",function(){return s.showSidebar=!1}),p(5,"span",5),T(6,"home"),E()()(),p(7,"li",6),M("click",function(){return s.showSidebar=!s.showSidebar}),p(8,"a",7),Z(9,"span",8),E()()()(),p(10,"div",9),Ne(11,li,1,1,"div",10),p(12,"div",11)(13,"div",12)(14,"div",13),Ne(15,ci,2,0,"span",14)(16,ui,2,0,"span",14),E(),p(17,"a",15)(18,"img",16),M("error",function(){return s.forceAvatarUrl="assets/default.png"}),E(),p(19,"div",17),T(20),E()(),Z(21,"hr"),Ne(22,hi,5,2,"a",18)(23,di,5,2,"a",19)(24,fi,5,2,"a",20),p(25,"a",21),M("click",function(){return s.hideSidebar()}),p(26,"i",5),T(27,"event"),E(),p(28,"span",22),T(29,"Theme.Conferences"),E()(),p(30,"a",23),M("click",function(){return s.hideSidebar()}),p(31,"i",5),T(32,"cast"),E(),p(33,"span",22),T(34,"Theme.Sessions"),E()(),p(35,"a",24),M("click",function(){return s.hideSidebar()}),p(36,"i",5),T(37,"link"),E(),p(38,"span",22),T(39,"Theme.Links"),E()(),p(40,"a",25),M("click",function(){return s.hideSidebar()}),p(41,"i",5),T(42,"forum"),E(),p(43,"span",22),T(44,"Theme.Comments"),E()(),p(45,"a",26),M("click",function(){return s.hideSidebar()}),p(46,"i",5),T(47,"message"),E(),p(48,"span",22),T(49,"Theme.Messages"),E()(),p(50,"a",27),M("click",function(){return s.hideSidebar()}),p(51,"i",5),T(52,"note"),E(),p(53,"span",22),T(54,"Theme.Notes"),E()(),p(55,"a",28),M("click",function(){return s.hideSidebar()}),p(56,"i",5),T(57,"poll"),E(),p(58,"span",22),T(59,"Theme.Polls"),E()(),p(60,"a",29),M("click",function(){return s.hideSidebar()}),p(61,"i",5),T(62,"live_help"),E(),p(63,"span",22),T(64,"Theme.Qnas"),E()(),p(65,"a",30),M("click",function(){return s.hideSidebar()}),p(66,"i",5),T(67,"contact_support"),E(),p(68,"span",22),T(69,"Theme.Questions"),E()(),p(70,"a",31),M("click",function(){return s.hideSidebar()}),p(71,"i",5),T(72,"favorite"),E(),p(73,"span",22),T(74,"Theme.Reactions"),E()(),Ne(75,mi,1,0,"hr",32),E()(),Z(76,"router-outlet"),E()()),r&2&&(A(2),De("_active",s.showSidebar),A(6),De("_active",s.showSidebar),A(2),De("showTable",s.showSidebar),A(),C("ngIf",s.showSidebar),A(),De("_active",s.showSidebar),A(3),C("ngIf",!s.us.mode),A(),C("ngIf",s.us.mode),A(2),C("src",s.forceAvatarUrl||s.us.user.thumb?s.url+s.us.user.thumb:"assets/default.png",tn),A(2),rn(s.us.user.name||"Profile"),A(2),C("ngIf",s.us.role("admin")),A(),C("ngIf",s.us.role("admin")),A(),C("ngIf",s.us.role("admin")),A(),C("routerLinkActiveOptions",B(27,j)),A(5),C("routerLinkActiveOptions",B(28,j)),A(5),C("routerLinkActiveOptions",B(29,j)),A(5),C("routerLinkActiveOptions",B(30,j)),A(5),C("routerLinkActiveOptions",B(31,j)),A(5),C("routerLinkActiveOptions",B(32,j)),A(5),C("routerLinkActiveOptions",B(33,j)),A(5),C("routerLinkActiveOptions",B(34,j)),A(5),C("routerLinkActiveOptions",B(35,j)),A(5),C("routerLinkActiveOptions",B(36,j)),A(5),C("ngIf",s.us.role("admin")))},dependencies:[Sn,ln,yn,Te,dn,fn],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.wrapper[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;background:var(--c-bg-primary);transition:all .5s ease-in-out}.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;position:relative;max-width:2000px;margin:0 auto;width:100%;padding:20px 270px 0 20px;transition:all .5s ease-in-out}@media screen and (max-width: 991px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:20px}}@media screen and (max-width: 767px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:10px}}hr[_ngcontent-%COMP%]{border:none;border-top:2px solid var(--c-text-primary);margin:5px 0}.nav[_ngcontent-%COMP%]{transition:all .5s ease-in-out;background:var(--c-basic);width:100%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:flex;justify-content:space-between;align-items:center;min-height:50px;z-index:100;overflow:hidden}.nav__ul[_ngcontent-%COMP%]{z-index:1;margin-top:0;margin-bottom:0;padding:0 20px;transition:all .5s ease-in-out;display:flex;align-items:center;width:100%}@media screen and (max-width: 767px){.nav__ul[_ngcontent-%COMP%]{justify-content:end!important}}.nav__li[_ngcontent-%COMP%]{display:inline-block}.nav__li._burger[_ngcontent-%COMP%]{width:44px;height:34px}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:auto}.nav__li[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.nav__a[_ngcontent-%COMP%]{cursor:pointer;color:#fff;font-size:var(--fs)-2px;padding:5px 10px;border-radius:8px;transition:all .5s ease-in-out;display:flex;justify-content:center;align-items:center;position:relative}.nav__a[_ngcontent-%COMP%]:before{content:"";position:absolute;width:5px;height:5px;background-color:#fff;bottom:-1px;border-radius:50%;transform:translateY(15px);opacity:0}@media (max-width: 991.9px){.nav__a[_ngcontent-%COMP%]:before{top:-3px}}.nav__a._activeLink[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_navLinkAnimation .75s forwards}@keyframes _ngcontent-%COMP%_navLinkAnimation{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.nav__a[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;width:24px}.nav__toggle[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;position:relative;order:3;cursor:pointer;justify-content:center}.nav__toggle-line[_ngcontent-%COMP%], .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle-line[_ngcontent-%COMP%]:after{cursor:pointer;border-radius:1px;height:2px;width:24px;position:absolute;display:block;content:"";transition:all .5s ease-in-out;background-color:transparent}.nav__toggle-line[_ngcontent-%COMP%]:before{top:0;transform:rotate(45deg);background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{bottom:-7px;top:0;transform:rotate(-45deg);background:#fff}@media screen and (max-width: 767px){.nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%], .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:before{top:-7px;transform:unset;background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{top:7px;transform:unset;background:#fff}}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:#fff}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:unset;top:-7px}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:unset;top:7px}@media screen and (max-width: 767px){.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:transparent}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:rotate(45deg);top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:rotate(-45deg);bottom:-7px;top:0}}.nav__burger[_ngcontent-%COMP%]{margin:0;max-width:250px;width:100%;height:calc(100% - 50px);transform:translate(0)!important;top:50px;position:fixed;background-color:var(--c-bg-secondary);right:0;transform:translate(120%);z-index:10;box-shadow:0 3px 5px -1px #00000008,0 6px 10px #0000003d,0 1px 18px #0000004f;transition:all .5s ease-in-out;display:flex;flex-direction:column}@media screen and (max-width: 767px){.nav__burger[_ngcontent-%COMP%]{transform:translate(120%)!important}}.nav__burger._active[_ngcontent-%COMP%]{transform:translate(120%)!important;z-index:0}@media screen and (max-width: 767px){.nav__burger._active[_ngcontent-%COMP%]{transform:translate(0)!important;z-index:10}}.nav__burger-list[_ngcontent-%COMP%]{flex-grow:1;height:100%;display:flex;flex-direction:column;overflow-y:auto;padding:20px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%]{color:var(--c-text-primary);padding:10px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%] .avatar__img[_ngcontent-%COMP%]{border-radius:50%}.nav__burger-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.nav__burger-link[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:30px}.nav__burger-user[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--c-text-primary);padding:5px}.nav__burger-user[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{word-break:break-word}.nav__burger-user[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:48px}@media (max-width: 991.9px){.nav[_ngcontent-%COMP%]{order:2}.nav__ul[_ngcontent-%COMP%]{justify-content:space-between}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:0}.nav__burger[_ngcontent-%COMP%]{top:0}}.theme-switch[_ngcontent-%COMP%]{position:absolute;right:10px;display:flex;justify-content:flex-end;margin-right:10px}.theme-switch[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{cursor:pointer}'],data:{animation:[An]}});let i=e;return i})();var Cn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Se({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(r,s){r&1&&Z(0,"router-outlet")},dependencies:[Te]});let i=e;return i})();function Mn(i){return new w(3e3,!1)}function pi(){return new w(3100,!1)}function gi(){return new w(3101,!1)}function yi(i){return new w(3001,!1)}function _i(i){return new w(3003,!1)}function vi(i){return new w(3004,!1)}function Si(i,e){return new w(3005,!1)}function Ei(){return new w(3006,!1)}function bi(){return new w(3007,!1)}function wi(i,e){return new w(3008,!1)}function Ti(i){return new w(3002,!1)}function ki(i,e,t,n,r){return new w(3010,!1)}function Ai(){return new w(3011,!1)}function Pi(){return new w(3012,!1)}function Ci(){return new w(3200,!1)}function Mi(){return new w(3202,!1)}function Oi(){return new w(3013,!1)}function Ni(i){return new w(3014,!1)}function Di(i){return new w(3015,!1)}function Li(i){return new w(3016,!1)}function Fi(i,e){return new w(3404,!1)}function Ii(i){return new w(3502,!1)}function Ri(i){return new w(3503,!1)}function xi(){return new w(3300,!1)}function zi(i){return new w(3504,!1)}function Bi(i){return new w(3301,!1)}function Ki(i,e){return new w(3302,!1)}function qi(i){return new w(3303,!1)}function ji(i,e){return new w(3400,!1)}function Ui(i){return new w(3401,!1)}function Qi(i){return new w(3402,!1)}function Vi(i,e){return new w(3505,!1)}function se(i){switch(i.length){case 0:return new re;case 1:return i[0];default:return new Fe(i)}}function Un(i,e,t=new Map,n=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((S,_)=>{let f=_,y=S;if(_!=="offset")switch(f=i.normalizePropertyName(f,r),y){case $e:y=t.get(_);break;case J:y=n.get(_);break;default:y=i.normalizeStyleValue(_,f,y,r);break}u.set(f,y)}),h||s.push(u),a=u,o=c}),r.length)throw Ii(r);return s}function xt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&pt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&pt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&pt(t,"destroy",i)));break}}function pt(i,e,t){let n=t.totalTime,r=!!t.disabled,s=zt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,r),o=i._data;return o!=null&&(s._data=o),s}function zt(i,e,t,n,r="",s=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function Q(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function On(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var $i=typeof document>"u"?null:document.documentElement;function Bt(i){let e=i.parentNode||i.host||null;return e===$i?null:e}function Wi(i){return i.substring(1,6)=="ebkit"}var fe=null,Nn=!1;function Gi(i){fe||(fe=Hi()||{},Nn=fe.style?"WebkitAppearance"in fe.style:!1);let e=!0;return fe.style&&!Wi(i)&&(e=i in fe.style,!e&&Nn&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in fe.style)),e}function Hi(){return typeof document<"u"?document.body:null}function Qn(i,e){for(;e;){if(e===i)return!0;e=Bt(e)}return!1}function Vn(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Kt=(()=>{let e=class e{validateStyleProperty(n){return Gi(n)}containsElement(n,r){return Qn(n,r)}getParentElement(n){return Bt(n)}query(n,r,s){return Vn(n,r,s)}computeStyle(n,r,s){return s||""}animate(n,r,s,o,a,l=[],c){return new re(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac});let i=e;return i})(),Qt=class Qt{};Qt.NOOP=new Kt;var ge=Qt,ye=class{};var Yi=1e3,$n="{{",Xi="}}",Wn="ng-enter",Et="ng-leave",We="ng-trigger",Ze=".ng-trigger",Dn="ng-animating",bt=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:wt(parseFloat(e[1]),e[2])}function wt(i,e){switch(e){case"s":return i*Yi;default:return i}}function Je(i,e,t){return i.hasOwnProperty("duration")?i:Zi(i,e,t)}function Zi(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(Mn(i)),{duration:0,delay:0,easing:""};r=wt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=wt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=i;if(!t){let a=!1,l=e.length;r<0&&(e.push(pi()),a=!0),s<0&&(e.push(gi()),a=!0),a&&e.splice(l,0,Mn(i))}return{duration:r,delay:s,easing:o}}function Ji(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,r)=>{let s=qt(r);t&&!t.has(r)&&t.set(r,i.style[s]),i.style[s]=n})}function pe(i,e){e.forEach((t,n)=>{let r=qt(n);i.style[r]=""})}function Ie(i){return Array.isArray(i)?i.length==1?i[0]:kn(i):i}function er(i,e,t){let n=e.params||{},r=Gn(i);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||t.push(yi(s))})}var Tt=new RegExp(`${$n}\\s*(.+?)\\s*${Xi}`,"g");function Gn(i){let e=[];if(typeof i=="string"){let t;for(;t=Tt.exec(i);)e.push(t[1]);Tt.lastIndex=0}return e}function xe(i,e,t){let n=`${i}`,r=n.replace(Tt,(s,o)=>{let a=e[o];return a==null&&(t.push(_i(o)),a=""),a.toString()});return r==n?i:r}var tr=/-+([a-z0-9])/g;function qt(i){return i.replace(tr,(...e)=>e[1].toUpperCase())}function nr(i,e){return i===0||e===0}function ir(i,e,t){if(t.size&&e.length){let n=e[0],r=[];if(t.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(a,jt(i,a)))}}return e}function U(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw vi(e.type)}}function jt(i,e){return window.getComputedStyle(i)[e]}var rr=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"]),et=class extends ye{normalizePropertyName(e,t){return qt(e)}normalizeStyleValue(e,t,n,r){let s="",o=n.toString().trim();if(rr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Si(e,n))}return o+s}};var tt="*";function sr(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>or(n,t,e)):t.push(i),t}function or(i,e,t){if(i[0]==":"){let l=ar(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Di(i)),e;let r=n[1],s=n[2],o=n[3];e.push(Ln(r,o));let a=r==tt&&o==tt;s[0]=="<"&&!a&&e.push(Ln(o,r))}function ar(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var Ge=new Set(["true","1"]),He=new Set(["false","0"]);function Ln(i,e){let t=Ge.has(i)||He.has(i),n=Ge.has(e)||He.has(e);return(r,s)=>{let o=i==tt||i==r,a=e==tt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?Ge.has(i):He.has(i)),!a&&n&&typeof s=="boolean"&&(a=s?Ge.has(e):He.has(e)),o&&a}}var Hn=":self",lr=new RegExp(`s*${Hn}s*,?`,"g");function Yn(i,e,t,n){return new kt(i).build(e,t,n)}var Fn="",kt=class{constructor(e){this._driver=e}build(e,t,n){let r=new At(t);return this._resetContextStyleTimingState(r),U(this,Ie(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Fn,e.collectedStyles=new Map,e.collectedStyles.set(Fn,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ei()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(bi())}),{type:v.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Gn(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(wi(e.name,[...s.values()]))}return{type:v.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=U(this,Ie(e.animation),t),r=sr(e.expr,t.errors);return{type:v.Transition,matchers:r,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:me(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>U(this,n,t)),options:me(e.options)}}visitGroup(e,t){let n=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=n;let a=U(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:v.Group,steps:s,options:me(e.options)}}visitAnimate(e,t){let n=dr(e.timings,t.errors);t.currentAnimateTimings=n;let r,s=e.styles?e.styles:q({});if(s.type==v.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=q(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:r,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===J?n.push(a):t.errors.push(Ti(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.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($n)>=0){s=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=!0;h&&(s!=r&&s>=h.startTime&&r<=h.endTime&&(t.errors.push(ki(l,h.startTime,h.endTime,s,r)),u=!1),s=h.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&er(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ai()),n;let r=1,s=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(O=>{let N=this._makeStyleAst(O,t),R=N.offset!=null?N.offset:hr(N.styles),L=0;return R!=null&&(s++,L=N.offset=R),l=l||L<0||L>1,a=a||L0&&s{let R=S>0?N==_?1:S*N:o[N],L=R*k;t.currentTime=f+y.delay+L,y.duration=L,this._validateStyleAst(O,t),O.offset=R,n.styles.push(O)}),n}visitReference(e,t){return{type:v.Reference,animation:U(this,Ie(e.animation),t),options:me(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:me(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:me(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=cr(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,Q(t.collectedStyles,t.currentQuerySelector,new Map);let a=U(this,Ie(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:me(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Oi());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Je(e.timings,t.errors,!0);return{type:v.Stagger,animation:U(this,Ie(e.animation),t),timings:n,options:null}}};function cr(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Hn);return e&&(i=i.replace(lr,"")),i=i.replace(/@\*/g,Ze).replace(/@\w+/g,t=>Ze+"-"+t.slice(1)).replace(/:animating/g,bt),[i,e]}function ur(i){return i?je({},i):null}var At=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function hr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function dr(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let s=Je(i,e).duration;return gt(s,0,"")}let t=i;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=gt(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Je(t,e);return gt(r.duration,r.delay,r.easing)}function me(i){return i?(i=je({},i),i.params&&(i.params=ur(i.params))):i={},i}function gt(i,e,t){return{duration:i,delay:e,easing:t}}function Ut(i,e,t,n,r,s,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var ze=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},fr=1,mr=":enter",pr=new RegExp(mr,"g"),gr=":leave",yr=new RegExp(gr,"g");function Xn(i,e,t,n,r,s=new Map,o=new Map,a,l,c=[]){return new Pt().buildKeyframes(i,e,t,n,r,s,o,a,l,c)}var Pt=class{buildKeyframes(e,t,n,r,s,o,a,l,c,h=[]){c=c||new ze;let u=new Ct(e,t,c,r,s,h,[]);u.options=l;let S=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),U(this,n,u);let _=u.timelines.filter(f=>f.containsAnimation());if(_.length&&a.size){let f;for(let y=_.length-1;y>=0;y--){let k=_[y];if(k.element===t){f=k;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return _.length?_.map(f=>f.buildKeyframes()):[Ut(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:ne(xe(s,r?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.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),U(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=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==v.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=nt);let o=ne(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>U(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),U(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,r=t.params?xe(n,t.params,t.errors):n;return Je(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==v.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.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 n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?ne(r.delay):0;s&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=nt);let o=n,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,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),U(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=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=n.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;U(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}},nt={},Ct=class i{constructor(e,t,n,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new it(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=ne(n.duration)),n.delay!=null&&(r.delay=ne(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=xe(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(r=>{n[r]=t[r]})}}return e}createSubContext(e=null,t,n){let r=t||this.element,s=new i(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||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=nt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new Mt(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,n,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(yr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&a.length==0&&o.push(Ni(t)),a}},it=class i{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,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 i(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+=fr,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,n]of this._globalTimelineStyles)this._backFill.set(t,n||J),this._currentKeyframe.set(t,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=_r(e,this._globalTimelineStyles);for(let[a,l]of o){let c=xe(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??J),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,n)=>{let r=this._styleSummary.get(n);(!r||t.time>r.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===$e?e.add(u):h===J&&t.add(u)}),n||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Ut(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Mt=class extends it{constructor(e,t,n,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,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:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+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",In(a)),s.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let S=new Map(e[u]),_=S.get("offset"),f=t+_*n;S.set("offset",In(f/o)),s.push(S)}n=o,t=0,r="",e=s}return Ut(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}};function In(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function _r(i,e){let t=new Map,n;return i.forEach(r=>{if(r==="*"){n??=e.keys();for(let s of n)t.set(s,J)}else for(let[s,o]of r)t.set(s,o)}),t}function Rn(i,e,t,n,r,s,o,a,l,c,h,u,S){return{type:0,element:i,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:S}}var yt={},rt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return vr(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,n):new Map}build(e,t,n,r,s,o,a,l,c,h){let u=[],S=this.ast.options&&this.ast.options.params||yt,_=a&&a.params||yt,f=this.buildStyles(n,_,u),y=l&&l.params||yt,k=this.buildStyles(r,y,u),O=new Set,N=new Map,R=new Map,L=r==="void",_e={params:Zn(y,S),delay:this.ast.options?.delay},Y=h?[]:Xn(e,t,this.ast.animation,s,o,f,k,_e,c,u),x=0;return Y.forEach(z=>{x=Math.max(z.duration+z.delay,x)}),u.length?Rn(t,this._triggerName,n,r,L,f,k,[],[],N,R,x,u):(Y.forEach(z=>{let oe=z.element,ve=Q(N,oe,new Set);z.preStyleProps.forEach(ae=>ve.add(ae));let Gt=Q(R,oe,new Set);z.postStyleProps.forEach(ae=>Gt.add(ae)),oe!==t&&O.add(oe)}),Rn(t,this._triggerName,n,r,L,f,k,Y,[...O.values()],N,R,x))}};function vr(i,e,t,n,r){return i.some(s=>s(e,t,n,r))}function Zn(i,e){let t=je({},e);return Object.entries(i).forEach(([n,r])=>{r!=null&&(t[n]=r)}),t}var Ot=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,r=Zn(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=xe(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function Sr(i,e,t){return new Nt(i,e,t)}var Nt=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Ot(r.style,s,n))}),xn(this.states,"true","1"),xn(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new rt(e,r,this.states))}),this.fallbackTransition=Er(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(o=>o.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Er(i,e,t){let n=[(o,a)=>!0],r={type:v.Sequence,steps:[],options:null},s={type:v.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new rt(i,s,e)}function xn(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var br=new ze,Dt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],r=[],s=Yn(this._driver,t,n,r);if(n.length)throw Ri(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let r=e.element,s=Un(this._normalizer,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Xn(this._driver,t,s,Wn,Et,new Map,new Map,n,br,r),o.forEach(h=>{let u=Q(a,h.element,new Map);h.postStyleProps.forEach(S=>u.set(S,null))})):(r.push(xi()),o=[]),r.length)throw zi(r);a.forEach((h,u)=>{h.forEach((S,_)=>{h.set(_,this._driver.computeStyle(u,_,J))})});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=se(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 n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Bi(e);return t}listen(e,t,n,r){let s=zt(t,"","","");return xt(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){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}}},zn="ng-animate-queued",wr=".ng-animate-queued",_t="ng-animate-disabled",Tr=".ng-animate-disabled",kr="ng-star-inserted",Ar=".ng-star-inserted",Pr=[],Jn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},H="__ng_removed",Be=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=Or(r),n){let s=e,{value:o}=s,a=Zt(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(r=>{n[r]==null&&(n[r]=t[r])})}}},Re="void",vt=new Be(Re),Lt=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,G(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.has(t))throw Ki(n,t);if(n==null||n.length==0)throw qi(t);if(!Nr(n))throw ji(n,t);let s=Q(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};s.push(o);let a=Q(this._engine.statesByElement,e,new Map);return a.has(t)||(G(e,We),G(e,We+"-"+t),a.set(t,vt)),()=>{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 Ui(e);return t}trigger(e,t,n,r=!0){let s=this._getTrigger(t),o=new Ke(this.id,t,e),a=this._engine.statesByElement.get(e);a||(G(e,We),G(e,We+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Be(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=vt),!(c.value===Re)&&l.value===c.value){if(!Fr(l.params,c.params)){let y=[],k=s.matchStyles(l.value,l.params,y),O=s.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{pe(e,k),ee(e,O)})}return}let S=Q(this._engine.playersByElement,e,[]);S.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let _=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!_){if(!r)return;_=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(G(e,zn),o.onStart(()=>{Ae(e,zn)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let k=this._engine.playersByElement.get(e);if(k){let O=k.indexOf(o);O>=0&&k.splice(O,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,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(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ze,!0);n.forEach(r=>{if(r[H])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,n,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 h=this.trigger(e,c,Re,r);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&se(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){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=n.get(o)||vt,h=new Be(Re),u=new Ke(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[H];(!s||s===Jn)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){G(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=zt(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,xt(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ft=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Lt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return r.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,r){if(Ye(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!Ye(t))return;let s=t[H];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,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),G(e,_t)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ae(e,_t))}removeNode(e,t,n){if(Ye(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,r,s){this.collectedLeaveElements.push(t),t[H]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,r,s){return Ye(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Ze,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,bt,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return se(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[H];if(t&&t.setForRemoval){if(e[H]=Jn,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(_t)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Tr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?se(t).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw Qi(e)}_flushAnimations(e,t){let n=new ze,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,wr,!0);for(let g=0;g{let g=Wn+y++;f.set(m,g),d.forEach(b=>G(b,g))});let k=[],O=new Set,N=new Set;for(let d=0;dO.add(b)):N.add(m))}let R=new Map,L=qn(S,Array.from(O));L.forEach((d,m)=>{let g=Et+y++;R.set(m,g),d.forEach(b=>G(b,g))}),e.push(()=>{_.forEach((d,m)=>{let g=f.get(m);d.forEach(b=>Ae(b,g))}),L.forEach((d,m)=>{let g=R.get(m);d.forEach(b=>Ae(b,g))}),k.forEach(d=>{this.processLeaveNode(d)})});let _e=[],Y=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(g=>{let b=g.player,D=g.element;if(_e.push(b),this.collectedEnterElements.length){let I=D[H];if(I&&I.setForMove){if(I.previousTriggersValues&&I.previousTriggersValues.has(g.triggerName)){let le=I.previousTriggersValues.get(g.triggerName),V=this.statesByElement.get(g.element);if(V&&V.has(g.triggerName)){let qe=V.get(g.triggerName);qe.value=le,V.set(g.triggerName,qe)}}b.destroy();return}}let X=!u||!this.driver.containsElement(u,D),K=R.get(D),ie=f.get(D),P=this._buildInstruction(g,n,ie,K,X);if(P.errors&&P.errors.length){Y.push(P);return}if(X){b.onStart(()=>pe(D,P.fromStyles)),b.onDestroy(()=>ee(D,P.toStyles)),r.push(b);return}if(g.isFallbackTransition){b.onStart(()=>pe(D,P.fromStyles)),b.onDestroy(()=>ee(D,P.toStyles)),r.push(b);return}let Xt=[];P.timelines.forEach(I=>{I.stretchStartingKeyframe=!0,this.disabledNodes.has(I.element)||Xt.push(I)}),P.timelines=Xt,n.append(D,P.timelines);let oi={instruction:P,player:b,element:D};o.push(oi),P.queriedElements.forEach(I=>Q(a,I,[]).push(b)),P.preStyleProps.forEach((I,le)=>{if(I.size){let V=l.get(le);V||l.set(le,V=new Set),I.forEach((qe,ut)=>V.add(ut))}}),P.postStyleProps.forEach((I,le)=>{let V=c.get(le);V||c.set(le,V=new Set),I.forEach((qe,ut)=>V.add(ut))})});if(Y.length){let d=[];Y.forEach(m=>{d.push(Vi(m.triggerName,m.errors))}),_e.forEach(m=>m.destroy()),this.reportError(d)}let x=new Map,z=new Map;o.forEach(d=>{let m=d.element;n.has(m)&&(z.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,x))}),r.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,!1,d.namespaceId,d.triggerName,null).forEach(b=>{Q(x,m,[]).push(b),b.destroy()})});let oe=k.filter(d=>jn(d,l,c)),ve=new Map;Kn(ve,this.driver,N,c,J).forEach(d=>{jn(d,l,c)&&oe.push(d)});let ae=new Map;_.forEach((d,m)=>{Kn(ae,this.driver,new Set(d),l,$e)}),oe.forEach(d=>{let m=ve.get(d),g=ae.get(d);ve.set(d,new Map([...m?.entries()??[],...g?.entries()??[]]))});let ct=[],Ht=[],Yt={};o.forEach(d=>{let{element:m,player:g,instruction:b}=d;if(n.has(m)){if(h.has(m)){g.onDestroy(()=>ee(m,b.toStyles)),g.disabled=!0,g.overrideTotalTime(b.totalTime),r.push(g);return}let D=Yt;if(z.size>1){let K=m,ie=[];for(;K=K.parentNode;){let P=z.get(K);if(P){D=P;break}ie.push(K)}ie.forEach(P=>z.set(P,D))}let X=this._buildAnimation(g.namespaceId,b,x,s,ae,ve);if(g.setRealPlayer(X),D===Yt)ct.push(g);else{let K=this.playersByElement.get(D);K&&K.length&&(g.parentPlayer=se(K)),r.push(g)}}else pe(m,b.fromStyles),g.onDestroy(()=>ee(m,b.toStyles)),Ht.push(g),h.has(m)&&r.push(g)}),Ht.forEach(d=>{let m=s.get(d.element);if(m&&m.length){let g=se(m);d.setRealPlayer(g)}}),r.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d!X.destroyed);D.length?Dr(this,m,D):this.processLeaveNode(m)}return k.length=0,ct.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1)}),d.play()}),ct}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,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==Re;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){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,h=c!==s,u=Q(n,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(_=>{let f=_.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),_.destroy(),u.push(_)})}pe(s,t.fromStyles)}_buildAnimation(e,t,n,r,s,o){let a=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,S=t.timelines.map(f=>{let y=f.element;h.add(y);let k=y[H];if(k&&k.removedBeforeQueried)return new re(f.duration,f.delay);let O=y!==l,N=Lr((n.get(y)||Pr).map(x=>x.getRealPlayer())).filter(x=>{let z=x;return z.element?z.element===y:!1}),R=s.get(y),L=o.get(y),_e=Un(this._normalizer,f.keyframes,R,L),Y=this._buildPlayer(f,_e,N);if(f.subTimeline&&r&&u.add(y),O){let x=new Ke(e,a,y);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(f=>{Q(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Mr(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>G(f,Dn));let _=se(S);return _.onDestroy(()=>{h.forEach(f=>Ae(f,Dn)),ee(l,t.toStyles)}),u.forEach(f=>{Q(r,f,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new re(e.duration,e.delay)}},Ke=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new re,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(r=>xt(e,n,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){Q(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 Mr(i,e,t){let n=i.get(e);if(n){if(n.length){let r=n.indexOf(t);n.splice(r,1)}n.length==0&&i.delete(e)}return n}function Or(i){return i??null}function Ye(i){return i&&i.nodeType===1}function Nr(i){return i=="start"||i=="done"}function Bn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Kn(i,e,t,n,r){let s=[];t.forEach(l=>s.push(Bn(l)));let o=[];n.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,r);h.set(u,S),(!S||S.length==0)&&(c[H]=Cr,o.push(c))}),i.set(c,h)});let a=0;return t.forEach(l=>Bn(l,s[a++])),o}function qn(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,r=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=n:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function G(i,e){i.classList?.add(e)}function Ae(i,e){i.classList?.remove(e)}function Dr(i,e,t){se(t).onDone(()=>i.processLeaveNode(e))}function Lr(i){let e=[];return ei(i,e),e}function ei(i,e){for(let t=0;tr.add(s)):e.set(i,n),t.delete(i),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Ft(e.body,t,n),this._timelineEngine=new Dt(e.body,t,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,n,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Yn(this._driver,s,l,c);if(l.length)throw Fi(r,l);c.length&&void 0,a=Sr(r,h,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,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if(n.charAt(0)=="@"){let[s,o]=On(n),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if(n.charAt(0)=="@"){let[o,a]=On(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,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 Ir(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=St(e[0]),e.length>1&&(n=St(e[e.length-1]))):e instanceof Map&&(t=St(e)),t||n?new It(i,t,n):null}var Pe=class Pe{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let r=Pe.initialStylesByElement.get(e);r||Pe.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Pe.initialStylesByElement.delete(this._element),this._startStyles&&(pe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pe(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Pe.initialStylesByElement=new WeakMap;var It=Pe;function St(i){let e=null;return i.forEach((t,n)=>{Rr(n)&&(e=e||new Map,e.set(n,t))}),e}function Rr(i){return i==="display"||i==="position"}var st=class{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.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(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}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((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:jt(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},ot=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Qn(e,t)}getParentElement(e){return Bt(e)}query(e,t,n){return Vn(e,t,n)}computeStyle(e,t,n){return jt(e,t)}animate(e,t,n,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};s&&(l.easing=s);let c=new Map,h=o.filter(_=>_ instanceof st);nr(n,r)&&h.forEach(_=>{_.currentSnapshot.forEach((f,y)=>c.set(y,f))});let u=Ji(t).map(_=>new Map(_));u=ir(e,u,c);let S=Ir(e,u);return new st(e,u,l,S)}};var Xe="@",ti="@.disabled",at=class{constructor(e,t,n,r){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=r,this.\u0275type=0}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,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){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,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Xe&&t==ti?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Rt=class extends at{constructor(e,t,n,r,s){super(t,n,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Xe?t.charAt(1)=="."&&t==ti?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Xe){let r=xr(e),s=t.slice(1),o="";return s.charAt(0)!=Xe&&([s,o]=zr(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function xr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function zr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var lt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(e,t){let n="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(r);if(!h){let u=()=>c.delete(r);h=new at(n,r,this.engine,u),c.set(r,h)}return h}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 Rt(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));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,n])}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()}};var Kr=(()=>{let e=class e extends Ce{constructor(n,r,s){super(n,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(W(sn),W(ge),W(ye))},e.\u0275prov=$({token:e,factory:e.\u0275fac});let i=e;return i})();function qr(){return new et}function jr(i,e,t){return new lt(i,e,t)}var ii=[{provide:ye,useFactory:qr},{provide:Ce,useClass:Kr},{provide:nn,useFactory:jr,deps:[un,Ce,Jt]}],ni=[{provide:ge,useFactory:()=>new ot},{provide:ht,useValue:"BrowserAnimations"},...ii],Ur=[{provide:ge,useClass:Kt},{provide:ht,useValue:"NoopAnimations"},...ii],ri=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Ur:ni}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oe({type:e}),e.\u0275inj=Me({providers:ni,imports:[Ue]});let i=e;return i})();var Vt=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){return localStorage.getItem("waw_user")?!0:(this.router.navigateByUrl("/sign"),!1)}};e.\u0275fac=function(r){return new(r||e)(W(ke))},e.\u0275prov=$({token:e,factory:e.\u0275fac});let i=e;return i})();var $t=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){return localStorage.getItem("waw_user")?(this.router.navigateByUrl("/profile"),!1):!0}};e.\u0275fac=function(r){return new(r||e)(W(ke))},e.\u0275prov=$({token:e,factory:e.\u0275fac});let i=e;return i})();var Wt=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){if(localStorage.getItem("waw_user")){let n=JSON.parse(localStorage.getItem("waw_user"));return n.is&&n.is.admin?!0:(this.router.navigate(["/profile"]),!1)}else return this.router.navigate(["/sign"]),!1}};e.\u0275fac=function(r){return new(r||e)(W(ke))},e.\u0275prov=$({token:e,factory:e.\u0275fac});let i=e;return i})();var Qr=[{path:"",redirectTo:"/sign",pathMatch:"full"},{path:"",canActivate:[$t],component:Tn,children:[{path:"components",canActivate:[F],data:{meta:{title:"Components"}},loadChildren:()=>import("./chunk-HMIQUJRS.js").then(i=>i.ComponentsModule)},{path:"sign",canActivate:[F],data:{meta:{title:"Sign"}},loadChildren:()=>import("./chunk-LMWRFECL.js").then(i=>i.SignModule)}]},{path:"",canActivate:[Vt],component:mt,children:[{path:"profile",canActivate:[F],data:{meta:{title:"My Profile"}},loadChildren:()=>import("./chunk-HN4YPKQJ.js").then(i=>i.ProfileModule)},{path:"conferences",canActivate:[F],data:{meta:{title:"Conferences"}},loadChildren:()=>import("./chunk-ZX6AYUP2.js").then(i=>i.ConferencesModule)},{path:"sessions",canActivate:[F],data:{meta:{title:"Sessions"}},loadChildren:()=>import("./chunk-7DXRFCOT.js").then(i=>i.SessionsModule)},{path:"links",canActivate:[F],data:{meta:{title:"Links"}},loadChildren:()=>import("./chunk-Y67ES6U5.js").then(i=>i.LinksModule)},{path:"comments",canActivate:[F],data:{meta:{title:"Comments"}},loadChildren:()=>import("./chunk-CPRZZIJJ.js").then(i=>i.CommentsModule)},{path:"messages",canActivate:[F],data:{meta:{title:"Messages"}},loadChildren:()=>import("./chunk-O5W72XCP.js").then(i=>i.MessagesModule)},{path:"notes",canActivate:[F],data:{meta:{title:"Notes"}},loadChildren:()=>import("./chunk-2AF6K3TX.js").then(i=>i.NotesModule)},{path:"polls",canActivate:[F],data:{meta:{title:"Polls"}},loadChildren:()=>import("./chunk-HWYPA6UY.js").then(i=>i.PollsModule)},{path:"qnas",canActivate:[F],data:{meta:{title:"Qnas"}},loadChildren:()=>import("./chunk-6KALNN6L.js").then(i=>i.QnasModule)},{path:"questions",canActivate:[F],data:{meta:{title:"Questions"}},loadChildren:()=>import("./chunk-F2JLZMET.js").then(i=>i.QuestionsModule)},{path:"reactions",canActivate:[F],data:{meta:{title:"Reactions"}},loadChildren:()=>import("./chunk-5G2SSBTM.js").then(i=>i.ReactionsModule)}]},{path:"admin",canActivate:[Wt],component:mt,children:[{path:"users",canActivate:[F],data:{meta:{title:"Users"}},loadChildren:()=>import("./chunk-PGOF6LP2.js").then(i=>i.UsersModule)},{path:"forms",canActivate:[F],data:{meta:{title:"Forms"}},loadChildren:()=>import("./chunk-XLWOFBR3.js").then(i=>i.CustomformsModule)},{path:"translates",canActivate:[F],data:{meta:{title:"Translates"}},loadChildren:()=>import("./chunk-RKK4AWLN.js").then(i=>i.TranslatesModule)}]},{path:"**",redirectTo:"profile",pathMatch:"full"}],si=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oe({type:e,bootstrap:[Cn]}),e.\u0275inj=Me({providers:[Vt,$t,Wt,{provide:on,useClass:an}],imports:[En,bn,wn,Ue,gn,ri,_n.forRoot({store:{},http:{url:ue.url},socket:ue.production,meta:{useTitleSuffix:!0,defaults:{title:"Web Art Work",titleSuffix:" | Web Art Work","og:image":"https://webart.work/api/user/cdn/waw-logo.png"}},modal:{modals:{}}}),pn.forRoot(Qr,{scrollPositionRestoration:"enabled",preloadingStrategy:mn})]});let i=e;return i})();ue.production&&void 0;hn().bootstrapModule(si).catch(i=>console.error(i)); diff --git a/docs/main-Y6WHMPQY.js b/docs/main-Y6WHMPQY.js deleted file mode 100644 index 9c3b6e2..0000000 --- a/docs/main-Y6WHMPQY.js +++ /dev/null @@ -1 +0,0 @@ -import{a as vn}from"./chunk-4M2CC4DW.js";import{e as En,f as bn,i as wn}from"./chunk-6LRXWN5R.js";import{A,Aa as fn,B as dt,Ba as mn,C as nn,Ca as pn,D as Ne,Da as ue,F as C,H as De,Ia as gn,J as g,K as E,Ka as I,L as Z,La as yn,O as we,P as O,Q as ce,Ua as _n,Wa as Sn,Y as T,Z as rn,a as je,c as Zt,ca as K,i as w,j as V,ja as sn,k as Me,ka as on,la as an,m as $,o as Se,oa as ln,p as Oe,r as Ee,ra as cn,s as be,sa as un,ta as hn,ua as Ue,v as Jt,w as en,x as ht,xa as Te,y as tn,ya as ke,za as dn}from"./chunk-HOEKJOMB.js";var Tn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Se({type:e,selectors:[["guest"]],decls:1,vars:0,template:function(r,s){r&1&&Z(0,"router-outlet")},dependencies:[Te]});let i=e;return i})();var v=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(v||{}),J="*";function Qe(i,e){return{type:v.Trigger,name:i,definitions:e,options:{}}}function he(i,e=null){return{type:v.Animate,styles:e,timings:i}}function kn(i,e=null){return{type:v.Sequence,steps:i,options:e}}function q(i){return{type:v.Style,styles:i,offset:null}}function Ve(i,e,t){return{type:v.State,name:i,styles:e,options:t}}function de(i,e,t=null){return{type:v.Transition,expr:i,animation:e,options:t}}var re=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,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(n=>n()),t.length=0}},Fe=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++n==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(n=>{let r=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n: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(n=>n()),t.length=0}},$e="!";var Pn=[Qe("flyInOut",[Ve("in",q({transform:"translateX(0)"})),de("void => *",[q({transform:"translateY(-10px)",opacity:0,height:"0"}),he(400)]),de("* => void",[he(400,q({opacity:0,height:"0",transform:"translateY(-10px)"}))])]),Qe("tabInOut",[Ve("in",q({transform:"translateX(0)"})),de("void => *",[q({transform:"translateX(10px)",opacity:0}),he(300)]),de("* => void",[he(300,q({opacity:0,transform:"translateX(10px)"}))])]),Qe("showInOut",[Ve("in",q({})),de("void => *",[q({opacity:0}),he(300)]),de("* => void",[he(300,q({opacity:0}))])])];var ft;try{ft=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ft=!1}var An=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?cn(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ft)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)($(en))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var W=()=>({exact:!0});function li(i,e){if(i&1&&Z(0,"div",32),i&2){let t=ce();C("@showInOut",t.showSidebar)}}function ci(i,e){if(i&1){let t=we();g(0,"span",33),O("click",function(){Ee(t);let r=ce();return be(r.us.setMode("dark"))}),T(1," dark_mode "),E()}}function ui(i,e){if(i&1){let t=we();g(0,"span",33),O("click",function(){Ee(t);let r=ce();return be(r.us.setMode())}),T(1," light_mode "),E()}}function hi(i,e){if(i&1){let t=we();g(0,"a",34),O("click",function(){Ee(t);let r=ce();return be(r.hideSidebar())}),g(1,"span",5),T(2,"people"),E(),g(3,"span",22),T(4,"Theme.Users"),E()()}i&2&&C("routerLinkActiveOptions",K(1,W))}function di(i,e){if(i&1){let t=we();g(0,"a",35),O("click",function(){Ee(t);let r=ce();return be(r.hideSidebar())}),g(1,"span",5),T(2,"backup_table"),E(),g(3,"span",22),T(4,"Theme.Forms"),E()()}i&2&&C("routerLinkActiveOptions",K(1,W))}function fi(i,e){if(i&1){let t=we();g(0,"a",36),O("click",function(){Ee(t);let r=ce();return be(r.hideSidebar())}),g(1,"span",5),T(2,"translate"),E(),g(3,"span",22),T(4,"Theme.Translates"),E()()}i&2&&C("routerLinkActiveOptions",K(1,W))}function mi(i,e){i&1&&Z(0,"hr")}var mt=(()=>{let e=class e{hideSidebar(){!this._platform.ANDROID&&!this._platform.IOS&&(this.showSidebar=!1)}constructor(n,r){this.us=n,this._platform=r,this.url=ue.url,this.forceAvatarUrl="",this.showSidebar=!1}};e.\u0275fac=function(r){return new(r||e)(dt(vn),dt(An))},e.\u0275cmp=Se({type:e,selectors:[["app-user"]],decls:72,vars:35,consts:[["id","wrapper",1,"wrapper"],[1,"nav",3,"clickOutside"],[1,"nav__ul","container"],[1,"nav__li"],["routerLinkActive","_activeLink","routerLink","/profile",1,"nav__a",3,"click"],[1,"material-icons"],[1,"nav__li","_burger",3,"click"],[1,"nav__toggle"],[1,"nav__toggle-line"],[1,"main"],["class","fade",4,"ngIf"],[1,"nav__burger","_active"],[1,"nav__burger-list"],[1,"theme-switch"],["class","material-icons",3,"click",4,"ngIf"],["routerLink","/profile",1,"nav__burger-link","nav__burger-user"],["alt","Profile Picture","height","50","width","50",1,"avatar__img",3,"error","src"],[1,"name"],["routerLinkActive","_activeLink","routerLink","/admin/users","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/forms","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/translates","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/conferences",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["translate",""],["routerLinkActive","_activeLink","routerLink","/sessions",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/links",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/comments",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/messages",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/notes",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/polls",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/qnas",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/questions",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],[4,"ngIf"],[1,"fade"],[1,"material-icons",3,"click"],["routerLinkActive","_activeLink","routerLink","/admin/users",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/forms",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/translates",1,"nav__burger-link",3,"click","routerLinkActiveOptions"]],template:function(r,s){r&1&&(g(0,"div",0)(1,"nav",1),O("clickOutside",function(){return s.showSidebar=!1}),g(2,"ul",2)(3,"li",3)(4,"a",4),O("click",function(){return s.showSidebar=!1}),g(5,"span",5),T(6,"home"),E()()(),g(7,"li",6),O("click",function(){return s.showSidebar=!s.showSidebar}),g(8,"a",7),Z(9,"span",8),E()()()(),g(10,"div",9),Ne(11,li,1,1,"div",10),g(12,"div",11)(13,"div",12)(14,"div",13),Ne(15,ci,2,0,"span",14)(16,ui,2,0,"span",14),E(),g(17,"a",15)(18,"img",16),O("error",function(){return s.forceAvatarUrl="assets/default.png"}),E(),g(19,"div",17),T(20),E()(),Z(21,"hr"),Ne(22,hi,5,2,"a",18)(23,di,5,2,"a",19)(24,fi,5,2,"a",20),g(25,"a",21),O("click",function(){return s.hideSidebar()}),g(26,"i",5),T(27,"event"),E(),g(28,"span",22),T(29,"Theme.Conferences"),E()(),g(30,"a",23),O("click",function(){return s.hideSidebar()}),g(31,"i",5),T(32,"cast"),E(),g(33,"span",22),T(34,"Theme.Sessions"),E()(),g(35,"a",24),O("click",function(){return s.hideSidebar()}),g(36,"i",5),T(37,"link"),E(),g(38,"span",22),T(39,"Theme.Links"),E()(),g(40,"a",25),O("click",function(){return s.hideSidebar()}),g(41,"i",5),T(42,"forum"),E(),g(43,"span",22),T(44,"Theme.Comments"),E()(),g(45,"a",26),O("click",function(){return s.hideSidebar()}),g(46,"i",5),T(47,"message"),E(),g(48,"span",22),T(49,"Theme.Messages"),E()(),g(50,"a",27),O("click",function(){return s.hideSidebar()}),g(51,"i",5),T(52,"note"),E(),g(53,"span",22),T(54,"Theme.Notes"),E()(),g(55,"a",28),O("click",function(){return s.hideSidebar()}),g(56,"i",5),T(57,"poll"),E(),g(58,"span",22),T(59,"Theme.Polls"),E()(),g(60,"a",29),O("click",function(){return s.hideSidebar()}),g(61,"i",5),T(62,"live_help"),E(),g(63,"span",22),T(64,"Theme.Qnas"),E()(),g(65,"a",30),O("click",function(){return s.hideSidebar()}),g(66,"i",5),T(67,"contact_support"),E(),g(68,"span",22),T(69,"Theme.Questions"),E()(),Ne(70,mi,1,0,"hr",31),E()(),Z(71,"router-outlet"),E()()),r&2&&(A(2),De("_active",s.showSidebar),A(6),De("_active",s.showSidebar),A(2),De("showTable",s.showSidebar),A(),C("ngIf",s.showSidebar),A(),De("_active",s.showSidebar),A(3),C("ngIf",!s.us.mode),A(),C("ngIf",s.us.mode),A(2),C("src",s.forceAvatarUrl||s.us.user.thumb?s.url+s.us.user.thumb:"assets/default.png",tn),A(2),rn(s.us.user.name||"Profile"),A(2),C("ngIf",s.us.role("admin")),A(),C("ngIf",s.us.role("admin")),A(),C("ngIf",s.us.role("admin")),A(),C("routerLinkActiveOptions",K(26,W)),A(5),C("routerLinkActiveOptions",K(27,W)),A(5),C("routerLinkActiveOptions",K(28,W)),A(5),C("routerLinkActiveOptions",K(29,W)),A(5),C("routerLinkActiveOptions",K(30,W)),A(5),C("routerLinkActiveOptions",K(31,W)),A(5),C("routerLinkActiveOptions",K(32,W)),A(5),C("routerLinkActiveOptions",K(33,W)),A(5),C("routerLinkActiveOptions",K(34,W)),A(5),C("ngIf",s.us.role("admin")))},dependencies:[Sn,ln,yn,Te,dn,fn],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.wrapper[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;background:var(--c-bg-primary);transition:all .5s ease-in-out}.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;position:relative;max-width:2000px;margin:0 auto;width:100%;padding:20px 270px 0 20px;transition:all .5s ease-in-out}@media screen and (max-width: 991px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:20px}}@media screen and (max-width: 767px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:10px}}hr[_ngcontent-%COMP%]{border:none;border-top:2px solid var(--c-text-primary);margin:5px 0}.nav[_ngcontent-%COMP%]{transition:all .5s ease-in-out;background:var(--c-basic);width:100%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:flex;justify-content:space-between;align-items:center;min-height:50px;z-index:100;overflow:hidden}.nav__ul[_ngcontent-%COMP%]{z-index:1;margin-top:0;margin-bottom:0;padding:0 20px;transition:all .5s ease-in-out;display:flex;align-items:center;width:100%}@media screen and (max-width: 767px){.nav__ul[_ngcontent-%COMP%]{justify-content:end!important}}.nav__li[_ngcontent-%COMP%]{display:inline-block}.nav__li._burger[_ngcontent-%COMP%]{width:44px;height:34px}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:auto}.nav__li[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.nav__a[_ngcontent-%COMP%]{cursor:pointer;color:#fff;font-size:var(--fs)-2px;padding:5px 10px;border-radius:8px;transition:all .5s ease-in-out;display:flex;justify-content:center;align-items:center;position:relative}.nav__a[_ngcontent-%COMP%]:before{content:"";position:absolute;width:5px;height:5px;background-color:#fff;bottom:-1px;border-radius:50%;transform:translateY(15px);opacity:0}@media (max-width: 991.9px){.nav__a[_ngcontent-%COMP%]:before{top:-3px}}.nav__a._activeLink[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_navLinkAnimation .75s forwards}@keyframes _ngcontent-%COMP%_navLinkAnimation{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.nav__a[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;width:24px}.nav__toggle[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;position:relative;order:3;cursor:pointer;justify-content:center}.nav__toggle-line[_ngcontent-%COMP%], .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle-line[_ngcontent-%COMP%]:after{cursor:pointer;border-radius:1px;height:2px;width:24px;position:absolute;display:block;content:"";transition:all .5s ease-in-out;background-color:transparent}.nav__toggle-line[_ngcontent-%COMP%]:before{top:0;transform:rotate(45deg);background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{bottom:-7px;top:0;transform:rotate(-45deg);background:#fff}@media screen and (max-width: 767px){.nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%], .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:before{top:-7px;transform:unset;background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{top:7px;transform:unset;background:#fff}}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:#fff}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:unset;top:-7px}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:unset;top:7px}@media screen and (max-width: 767px){.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:transparent}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:rotate(45deg);top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:rotate(-45deg);bottom:-7px;top:0}}.nav__burger[_ngcontent-%COMP%]{margin:0;max-width:250px;width:100%;height:calc(100% - 50px);transform:translate(0)!important;top:50px;position:fixed;background-color:var(--c-bg-secondary);right:0;transform:translate(120%);z-index:10;box-shadow:0 3px 5px -1px #00000008,0 6px 10px #0000003d,0 1px 18px #0000004f;transition:all .5s ease-in-out;display:flex;flex-direction:column}@media screen and (max-width: 767px){.nav__burger[_ngcontent-%COMP%]{transform:translate(120%)!important}}.nav__burger._active[_ngcontent-%COMP%]{transform:translate(120%)!important;z-index:0}@media screen and (max-width: 767px){.nav__burger._active[_ngcontent-%COMP%]{transform:translate(0)!important;z-index:10}}.nav__burger-list[_ngcontent-%COMP%]{flex-grow:1;height:100%;display:flex;flex-direction:column;overflow-y:auto;padding:20px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%]{color:var(--c-text-primary);padding:10px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%] .avatar__img[_ngcontent-%COMP%]{border-radius:50%}.nav__burger-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.nav__burger-link[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:30px}.nav__burger-user[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--c-text-primary);padding:5px}.nav__burger-user[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{word-break:break-word}.nav__burger-user[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:48px}@media (max-width: 991.9px){.nav[_ngcontent-%COMP%]{order:2}.nav__ul[_ngcontent-%COMP%]{justify-content:space-between}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:0}.nav__burger[_ngcontent-%COMP%]{top:0}}.theme-switch[_ngcontent-%COMP%]{position:absolute;right:10px;display:flex;justify-content:flex-end;margin-right:10px}.theme-switch[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{cursor:pointer}'],data:{animation:[Pn]}});let i=e;return i})();var Cn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Se({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(r,s){r&1&&Z(0,"router-outlet")},dependencies:[Te]});let i=e;return i})();function Mn(i){return new w(3e3,!1)}function pi(){return new w(3100,!1)}function gi(){return new w(3101,!1)}function yi(i){return new w(3001,!1)}function _i(i){return new w(3003,!1)}function vi(i){return new w(3004,!1)}function Si(i,e){return new w(3005,!1)}function Ei(){return new w(3006,!1)}function bi(){return new w(3007,!1)}function wi(i,e){return new w(3008,!1)}function Ti(i){return new w(3002,!1)}function ki(i,e,t,n,r){return new w(3010,!1)}function Pi(){return new w(3011,!1)}function Ai(){return new w(3012,!1)}function Ci(){return new w(3200,!1)}function Mi(){return new w(3202,!1)}function Oi(){return new w(3013,!1)}function Ni(i){return new w(3014,!1)}function Di(i){return new w(3015,!1)}function Li(i){return new w(3016,!1)}function Fi(i,e){return new w(3404,!1)}function Ii(i){return new w(3502,!1)}function Ri(i){return new w(3503,!1)}function xi(){return new w(3300,!1)}function zi(i){return new w(3504,!1)}function Bi(i){return new w(3301,!1)}function Ki(i,e){return new w(3302,!1)}function qi(i){return new w(3303,!1)}function ji(i,e){return new w(3400,!1)}function Ui(i){return new w(3401,!1)}function Qi(i){return new w(3402,!1)}function Vi(i,e){return new w(3505,!1)}function se(i){switch(i.length){case 0:return new re;case 1:return i[0];default:return new Fe(i)}}function Un(i,e,t=new Map,n=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((S,_)=>{let f=_,y=S;if(_!=="offset")switch(f=i.normalizePropertyName(f,r),y){case $e:y=t.get(_);break;case J:y=n.get(_);break;default:y=i.normalizeStyleValue(_,f,y,r);break}u.set(f,y)}),h||s.push(u),a=u,o=c}),r.length)throw Ii(r);return s}function xt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&pt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&pt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&pt(t,"destroy",i)));break}}function pt(i,e,t){let n=t.totalTime,r=!!t.disabled,s=zt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,r),o=i._data;return o!=null&&(s._data=o),s}function zt(i,e,t,n,r="",s=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function U(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function On(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var $i=typeof document>"u"?null:document.documentElement;function Bt(i){let e=i.parentNode||i.host||null;return e===$i?null:e}function Wi(i){return i.substring(1,6)=="ebkit"}var fe=null,Nn=!1;function Gi(i){fe||(fe=Hi()||{},Nn=fe.style?"WebkitAppearance"in fe.style:!1);let e=!0;return fe.style&&!Wi(i)&&(e=i in fe.style,!e&&Nn&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in fe.style)),e}function Hi(){return typeof document<"u"?document.body:null}function Qn(i,e){for(;e;){if(e===i)return!0;e=Bt(e)}return!1}function Vn(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Kt=(()=>{let e=class e{validateStyleProperty(n){return Gi(n)}containsElement(n,r){return Qn(n,r)}getParentElement(n){return Bt(n)}query(n,r,s){return Vn(n,r,s)}computeStyle(n,r,s){return s||""}animate(n,r,s,o,a,l=[],c){return new re(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Qt=class Qt{};Qt.NOOP=new Kt;var ge=Qt,ye=class{};var Yi=1e3,$n="{{",Xi="}}",Wn="ng-enter",Et="ng-leave",We="ng-trigger",Ze=".ng-trigger",Dn="ng-animating",bt=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:wt(parseFloat(e[1]),e[2])}function wt(i,e){switch(e){case"s":return i*Yi;default:return i}}function Je(i,e,t){return i.hasOwnProperty("duration")?i:Zi(i,e,t)}function Zi(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(Mn(i)),{duration:0,delay:0,easing:""};r=wt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=wt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=i;if(!t){let a=!1,l=e.length;r<0&&(e.push(pi()),a=!0),s<0&&(e.push(gi()),a=!0),a&&e.splice(l,0,Mn(i))}return{duration:r,delay:s,easing:o}}function Ji(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,r)=>{let s=qt(r);t&&!t.has(r)&&t.set(r,i.style[s]),i.style[s]=n})}function pe(i,e){e.forEach((t,n)=>{let r=qt(n);i.style[r]=""})}function Ie(i){return Array.isArray(i)?i.length==1?i[0]:kn(i):i}function er(i,e,t){let n=e.params||{},r=Gn(i);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||t.push(yi(s))})}var Tt=new RegExp(`${$n}\\s*(.+?)\\s*${Xi}`,"g");function Gn(i){let e=[];if(typeof i=="string"){let t;for(;t=Tt.exec(i);)e.push(t[1]);Tt.lastIndex=0}return e}function xe(i,e,t){let n=`${i}`,r=n.replace(Tt,(s,o)=>{let a=e[o];return a==null&&(t.push(_i(o)),a=""),a.toString()});return r==n?i:r}var tr=/-+([a-z0-9])/g;function qt(i){return i.replace(tr,(...e)=>e[1].toUpperCase())}function nr(i,e){return i===0||e===0}function ir(i,e,t){if(t.size&&e.length){let n=e[0],r=[];if(t.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(a,jt(i,a)))}}return e}function j(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw vi(e.type)}}function jt(i,e){return window.getComputedStyle(i)[e]}var rr=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"]),et=class extends ye{normalizePropertyName(e,t){return qt(e)}normalizeStyleValue(e,t,n,r){let s="",o=n.toString().trim();if(rr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Si(e,n))}return o+s}};var tt="*";function sr(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>or(n,t,e)):t.push(i),t}function or(i,e,t){if(i[0]==":"){let l=ar(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Di(i)),e;let r=n[1],s=n[2],o=n[3];e.push(Ln(r,o));let a=r==tt&&o==tt;s[0]=="<"&&!a&&e.push(Ln(o,r))}function ar(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var Ge=new Set(["true","1"]),He=new Set(["false","0"]);function Ln(i,e){let t=Ge.has(i)||He.has(i),n=Ge.has(e)||He.has(e);return(r,s)=>{let o=i==tt||i==r,a=e==tt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?Ge.has(i):He.has(i)),!a&&n&&typeof s=="boolean"&&(a=s?Ge.has(e):He.has(e)),o&&a}}var Hn=":self",lr=new RegExp(`s*${Hn}s*,?`,"g");function Yn(i,e,t,n){return new kt(i).build(e,t,n)}var Fn="",kt=class{constructor(e){this._driver=e}build(e,t,n){let r=new Pt(t);return this._resetContextStyleTimingState(r),j(this,Ie(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Fn,e.collectedStyles=new Map,e.collectedStyles.set(Fn,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ei()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(bi())}),{type:v.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Gn(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(wi(e.name,[...s.values()]))}return{type:v.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=j(this,Ie(e.animation),t),r=sr(e.expr,t.errors);return{type:v.Transition,matchers:r,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:me(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>j(this,n,t)),options:me(e.options)}}visitGroup(e,t){let n=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=n;let a=j(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:v.Group,steps:s,options:me(e.options)}}visitAnimate(e,t){let n=dr(e.timings,t.errors);t.currentAnimateTimings=n;let r,s=e.styles?e.styles:q({});if(s.type==v.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=q(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:r,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===J?n.push(a):t.errors.push(Ti(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.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($n)>=0){s=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=!0;h&&(s!=r&&s>=h.startTime&&r<=h.endTime&&(t.errors.push(ki(l,h.startTime,h.endTime,s,r)),u=!1),s=h.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&er(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Pi()),n;let r=1,s=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(M=>{let N=this._makeStyleAst(M,t),R=N.offset!=null?N.offset:hr(N.styles),L=0;return R!=null&&(s++,L=N.offset=R),l=l||L<0||L>1,a=a||L0&&s{let R=S>0?N==_?1:S*N:o[N],L=R*k;t.currentTime=f+y.delay+L,y.duration=L,this._validateStyleAst(M,t),M.offset=R,n.styles.push(M)}),n}visitReference(e,t){return{type:v.Reference,animation:j(this,Ie(e.animation),t),options:me(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:me(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:me(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=cr(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,U(t.collectedStyles,t.currentQuerySelector,new Map);let a=j(this,Ie(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:me(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Oi());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Je(e.timings,t.errors,!0);return{type:v.Stagger,animation:j(this,Ie(e.animation),t),timings:n,options:null}}};function cr(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Hn);return e&&(i=i.replace(lr,"")),i=i.replace(/@\*/g,Ze).replace(/@\w+/g,t=>Ze+"-"+t.slice(1)).replace(/:animating/g,bt),[i,e]}function ur(i){return i?je({},i):null}var Pt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function hr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function dr(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let s=Je(i,e).duration;return gt(s,0,"")}let t=i;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=gt(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Je(t,e);return gt(r.duration,r.delay,r.easing)}function me(i){return i?(i=je({},i),i.params&&(i.params=ur(i.params))):i={},i}function gt(i,e,t){return{duration:i,delay:e,easing:t}}function Ut(i,e,t,n,r,s,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var ze=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},fr=1,mr=":enter",pr=new RegExp(mr,"g"),gr=":leave",yr=new RegExp(gr,"g");function Xn(i,e,t,n,r,s=new Map,o=new Map,a,l,c=[]){return new At().buildKeyframes(i,e,t,n,r,s,o,a,l,c)}var At=class{buildKeyframes(e,t,n,r,s,o,a,l,c,h=[]){c=c||new ze;let u=new Ct(e,t,c,r,s,h,[]);u.options=l;let S=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),j(this,n,u);let _=u.timelines.filter(f=>f.containsAnimation());if(_.length&&a.size){let f;for(let y=_.length-1;y>=0;y--){let k=_[y];if(k.element===t){f=k;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return _.length?_.map(f=>f.buildKeyframes()):[Ut(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:ne(xe(s,r?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.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),j(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=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==v.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=nt);let o=ne(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>j(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),j(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,r=t.params?xe(n,t.params,t.errors):n;return Je(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==v.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.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 n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?ne(r.delay):0;s&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=nt);let o=n,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,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),j(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=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=n.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;j(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}},nt={},Ct=class i{constructor(e,t,n,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new it(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=ne(n.duration)),n.delay!=null&&(r.delay=ne(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=xe(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(r=>{n[r]=t[r]})}}return e}createSubContext(e=null,t,n){let r=t||this.element,s=new i(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||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=nt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new Mt(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,n,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(yr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&a.length==0&&o.push(Ni(t)),a}},it=class i{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,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 i(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+=fr,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,n]of this._globalTimelineStyles)this._backFill.set(t,n||J),this._currentKeyframe.set(t,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=_r(e,this._globalTimelineStyles);for(let[a,l]of o){let c=xe(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??J),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,n)=>{let r=this._styleSummary.get(n);(!r||t.time>r.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===$e?e.add(u):h===J&&t.add(u)}),n||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Ut(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Mt=class extends it{constructor(e,t,n,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,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:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+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",In(a)),s.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let S=new Map(e[u]),_=S.get("offset"),f=t+_*n;S.set("offset",In(f/o)),s.push(S)}n=o,t=0,r="",e=s}return Ut(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}};function In(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function _r(i,e){let t=new Map,n;return i.forEach(r=>{if(r==="*"){n??=e.keys();for(let s of n)t.set(s,J)}else for(let[s,o]of r)t.set(s,o)}),t}function Rn(i,e,t,n,r,s,o,a,l,c,h,u,S){return{type:0,element:i,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:S}}var yt={},rt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return vr(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,n):new Map}build(e,t,n,r,s,o,a,l,c,h){let u=[],S=this.ast.options&&this.ast.options.params||yt,_=a&&a.params||yt,f=this.buildStyles(n,_,u),y=l&&l.params||yt,k=this.buildStyles(r,y,u),M=new Set,N=new Map,R=new Map,L=r==="void",_e={params:Zn(y,S),delay:this.ast.options?.delay},Y=h?[]:Xn(e,t,this.ast.animation,s,o,f,k,_e,c,u),x=0;return Y.forEach(z=>{x=Math.max(z.duration+z.delay,x)}),u.length?Rn(t,this._triggerName,n,r,L,f,k,[],[],N,R,x,u):(Y.forEach(z=>{let oe=z.element,ve=U(N,oe,new Set);z.preStyleProps.forEach(ae=>ve.add(ae));let Gt=U(R,oe,new Set);z.postStyleProps.forEach(ae=>Gt.add(ae)),oe!==t&&M.add(oe)}),Rn(t,this._triggerName,n,r,L,f,k,Y,[...M.values()],N,R,x))}};function vr(i,e,t,n,r){return i.some(s=>s(e,t,n,r))}function Zn(i,e){let t=je({},e);return Object.entries(i).forEach(([n,r])=>{r!=null&&(t[n]=r)}),t}var Ot=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,r=Zn(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=xe(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function Sr(i,e,t){return new Nt(i,e,t)}var Nt=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Ot(r.style,s,n))}),xn(this.states,"true","1"),xn(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new rt(e,r,this.states))}),this.fallbackTransition=Er(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(o=>o.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Er(i,e,t){let n=[(o,a)=>!0],r={type:v.Sequence,steps:[],options:null},s={type:v.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new rt(i,s,e)}function xn(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var br=new ze,Dt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],r=[],s=Yn(this._driver,t,n,r);if(n.length)throw Ri(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let r=e.element,s=Un(this._normalizer,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Xn(this._driver,t,s,Wn,Et,new Map,new Map,n,br,r),o.forEach(h=>{let u=U(a,h.element,new Map);h.postStyleProps.forEach(S=>u.set(S,null))})):(r.push(xi()),o=[]),r.length)throw zi(r);a.forEach((h,u)=>{h.forEach((S,_)=>{h.set(_,this._driver.computeStyle(u,_,J))})});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=se(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 n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Bi(e);return t}listen(e,t,n,r){let s=zt(t,"","","");return xt(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){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}}},zn="ng-animate-queued",wr=".ng-animate-queued",_t="ng-animate-disabled",Tr=".ng-animate-disabled",kr="ng-star-inserted",Pr=".ng-star-inserted",Ar=[],Jn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},H="__ng_removed",Be=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=Or(r),n){let s=e,{value:o}=s,a=Zt(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(r=>{n[r]==null&&(n[r]=t[r])})}}},Re="void",vt=new Be(Re),Lt=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,G(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.has(t))throw Ki(n,t);if(n==null||n.length==0)throw qi(t);if(!Nr(n))throw ji(n,t);let s=U(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};s.push(o);let a=U(this._engine.statesByElement,e,new Map);return a.has(t)||(G(e,We),G(e,We+"-"+t),a.set(t,vt)),()=>{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 Ui(e);return t}trigger(e,t,n,r=!0){let s=this._getTrigger(t),o=new Ke(this.id,t,e),a=this._engine.statesByElement.get(e);a||(G(e,We),G(e,We+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Be(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=vt),!(c.value===Re)&&l.value===c.value){if(!Fr(l.params,c.params)){let y=[],k=s.matchStyles(l.value,l.params,y),M=s.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{pe(e,k),ee(e,M)})}return}let S=U(this._engine.playersByElement,e,[]);S.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let _=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!_){if(!r)return;_=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(G(e,zn),o.onStart(()=>{Pe(e,zn)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let k=this._engine.playersByElement.get(e);if(k){let M=k.indexOf(o);M>=0&&k.splice(M,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,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(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ze,!0);n.forEach(r=>{if(r[H])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,n,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 h=this.trigger(e,c,Re,r);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&se(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){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=n.get(o)||vt,h=new Be(Re),u=new Ke(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[H];(!s||s===Jn)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){G(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=zt(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,xt(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ft=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Lt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return r.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,r){if(Ye(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!Ye(t))return;let s=t[H];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,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),G(e,_t)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Pe(e,_t))}removeNode(e,t,n){if(Ye(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,r,s){this.collectedLeaveElements.push(t),t[H]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,r,s){return Ye(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Ze,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,bt,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return se(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[H];if(t&&t.setForRemoval){if(e[H]=Jn,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(_t)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Tr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?se(t).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw Qi(e)}_flushAnimations(e,t){let n=new ze,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,wr,!0);for(let p=0;p{let p=Wn+y++;f.set(m,p),d.forEach(b=>G(b,p))});let k=[],M=new Set,N=new Set;for(let d=0;dM.add(b)):N.add(m))}let R=new Map,L=qn(S,Array.from(M));L.forEach((d,m)=>{let p=Et+y++;R.set(m,p),d.forEach(b=>G(b,p))}),e.push(()=>{_.forEach((d,m)=>{let p=f.get(m);d.forEach(b=>Pe(b,p))}),L.forEach((d,m)=>{let p=R.get(m);d.forEach(b=>Pe(b,p))}),k.forEach(d=>{this.processLeaveNode(d)})});let _e=[],Y=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let b=p.player,D=p.element;if(_e.push(b),this.collectedEnterElements.length){let F=D[H];if(F&&F.setForMove){if(F.previousTriggersValues&&F.previousTriggersValues.has(p.triggerName)){let le=F.previousTriggersValues.get(p.triggerName),Q=this.statesByElement.get(p.element);if(Q&&Q.has(p.triggerName)){let qe=Q.get(p.triggerName);qe.value=le,Q.set(p.triggerName,qe)}}b.destroy();return}}let X=!u||!this.driver.containsElement(u,D),B=R.get(D),ie=f.get(D),P=this._buildInstruction(p,n,ie,B,X);if(P.errors&&P.errors.length){Y.push(P);return}if(X){b.onStart(()=>pe(D,P.fromStyles)),b.onDestroy(()=>ee(D,P.toStyles)),r.push(b);return}if(p.isFallbackTransition){b.onStart(()=>pe(D,P.fromStyles)),b.onDestroy(()=>ee(D,P.toStyles)),r.push(b);return}let Xt=[];P.timelines.forEach(F=>{F.stretchStartingKeyframe=!0,this.disabledNodes.has(F.element)||Xt.push(F)}),P.timelines=Xt,n.append(D,P.timelines);let oi={instruction:P,player:b,element:D};o.push(oi),P.queriedElements.forEach(F=>U(a,F,[]).push(b)),P.preStyleProps.forEach((F,le)=>{if(F.size){let Q=l.get(le);Q||l.set(le,Q=new Set),F.forEach((qe,ut)=>Q.add(ut))}}),P.postStyleProps.forEach((F,le)=>{let Q=c.get(le);Q||c.set(le,Q=new Set),F.forEach((qe,ut)=>Q.add(ut))})});if(Y.length){let d=[];Y.forEach(m=>{d.push(Vi(m.triggerName,m.errors))}),_e.forEach(m=>m.destroy()),this.reportError(d)}let x=new Map,z=new Map;o.forEach(d=>{let m=d.element;n.has(m)&&(z.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,x))}),r.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,!1,d.namespaceId,d.triggerName,null).forEach(b=>{U(x,m,[]).push(b),b.destroy()})});let oe=k.filter(d=>jn(d,l,c)),ve=new Map;Kn(ve,this.driver,N,c,J).forEach(d=>{jn(d,l,c)&&oe.push(d)});let ae=new Map;_.forEach((d,m)=>{Kn(ae,this.driver,new Set(d),l,$e)}),oe.forEach(d=>{let m=ve.get(d),p=ae.get(d);ve.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]))});let ct=[],Ht=[],Yt={};o.forEach(d=>{let{element:m,player:p,instruction:b}=d;if(n.has(m)){if(h.has(m)){p.onDestroy(()=>ee(m,b.toStyles)),p.disabled=!0,p.overrideTotalTime(b.totalTime),r.push(p);return}let D=Yt;if(z.size>1){let B=m,ie=[];for(;B=B.parentNode;){let P=z.get(B);if(P){D=P;break}ie.push(B)}ie.forEach(P=>z.set(P,D))}let X=this._buildAnimation(p.namespaceId,b,x,s,ae,ve);if(p.setRealPlayer(X),D===Yt)ct.push(p);else{let B=this.playersByElement.get(D);B&&B.length&&(p.parentPlayer=se(B)),r.push(p)}}else pe(m,b.fromStyles),p.onDestroy(()=>ee(m,b.toStyles)),Ht.push(p),h.has(m)&&r.push(p)}),Ht.forEach(d=>{let m=s.get(d.element);if(m&&m.length){let p=se(m);d.setRealPlayer(p)}}),r.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d!X.destroyed);D.length?Dr(this,m,D):this.processLeaveNode(m)}return k.length=0,ct.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1)}),d.play()}),ct}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,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==Re;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){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,h=c!==s,u=U(n,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(_=>{let f=_.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),_.destroy(),u.push(_)})}pe(s,t.fromStyles)}_buildAnimation(e,t,n,r,s,o){let a=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,S=t.timelines.map(f=>{let y=f.element;h.add(y);let k=y[H];if(k&&k.removedBeforeQueried)return new re(f.duration,f.delay);let M=y!==l,N=Lr((n.get(y)||Ar).map(x=>x.getRealPlayer())).filter(x=>{let z=x;return z.element?z.element===y:!1}),R=s.get(y),L=o.get(y),_e=Un(this._normalizer,f.keyframes,R,L),Y=this._buildPlayer(f,_e,N);if(f.subTimeline&&r&&u.add(y),M){let x=new Ke(e,a,y);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(f=>{U(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Mr(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>G(f,Dn));let _=se(S);return _.onDestroy(()=>{h.forEach(f=>Pe(f,Dn)),ee(l,t.toStyles)}),u.forEach(f=>{U(r,f,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new re(e.duration,e.delay)}},Ke=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new re,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(r=>xt(e,n,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){U(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 Mr(i,e,t){let n=i.get(e);if(n){if(n.length){let r=n.indexOf(t);n.splice(r,1)}n.length==0&&i.delete(e)}return n}function Or(i){return i??null}function Ye(i){return i&&i.nodeType===1}function Nr(i){return i=="start"||i=="done"}function Bn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Kn(i,e,t,n,r){let s=[];t.forEach(l=>s.push(Bn(l)));let o=[];n.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,r);h.set(u,S),(!S||S.length==0)&&(c[H]=Cr,o.push(c))}),i.set(c,h)});let a=0;return t.forEach(l=>Bn(l,s[a++])),o}function qn(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,r=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=n:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function G(i,e){i.classList?.add(e)}function Pe(i,e){i.classList?.remove(e)}function Dr(i,e,t){se(t).onDone(()=>i.processLeaveNode(e))}function Lr(i){let e=[];return ei(i,e),e}function ei(i,e){for(let t=0;tr.add(s)):e.set(i,n),t.delete(i),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Ft(e.body,t,n),this._timelineEngine=new Dt(e.body,t,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,n,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Yn(this._driver,s,l,c);if(l.length)throw Fi(r,l);c.length&&void 0,a=Sr(r,h,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,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if(n.charAt(0)=="@"){let[s,o]=On(n),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if(n.charAt(0)=="@"){let[o,a]=On(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,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 Ir(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=St(e[0]),e.length>1&&(n=St(e[e.length-1]))):e instanceof Map&&(t=St(e)),t||n?new It(i,t,n):null}var Ae=class Ae{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let r=Ae.initialStylesByElement.get(e);r||Ae.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ae.initialStylesByElement.delete(this._element),this._startStyles&&(pe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pe(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Ae.initialStylesByElement=new WeakMap;var It=Ae;function St(i){let e=null;return i.forEach((t,n)=>{Rr(n)&&(e=e||new Map,e.set(n,t))}),e}function Rr(i){return i==="display"||i==="position"}var st=class{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.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(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}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((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:jt(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},ot=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Qn(e,t)}getParentElement(e){return Bt(e)}query(e,t,n){return Vn(e,t,n)}computeStyle(e,t,n){return jt(e,t)}animate(e,t,n,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};s&&(l.easing=s);let c=new Map,h=o.filter(_=>_ instanceof st);nr(n,r)&&h.forEach(_=>{_.currentSnapshot.forEach((f,y)=>c.set(y,f))});let u=Ji(t).map(_=>new Map(_));u=ir(e,u,c);let S=Ir(e,u);return new st(e,u,l,S)}};var Xe="@",ti="@.disabled",at=class{constructor(e,t,n,r){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=r,this.\u0275type=0}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,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){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,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Xe&&t==ti?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Rt=class extends at{constructor(e,t,n,r,s){super(t,n,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Xe?t.charAt(1)=="."&&t==ti?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Xe){let r=xr(e),s=t.slice(1),o="";return s.charAt(0)!=Xe&&([s,o]=zr(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function xr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function zr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var lt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(e,t){let n="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(r);if(!h){let u=()=>c.delete(r);h=new at(n,r,this.engine,u),c.set(r,h)}return h}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 Rt(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));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,n])}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()}};var Kr=(()=>{let e=class e extends Ce{constructor(n,r,s){super(n,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)($(sn),$(ge),$(ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function qr(){return new et}function jr(i,e,t){return new lt(i,e,t)}var ii=[{provide:ye,useFactory:qr},{provide:Ce,useClass:Kr},{provide:nn,useFactory:jr,deps:[un,Ce,Jt]}],ni=[{provide:ge,useFactory:()=>new ot},{provide:ht,useValue:"BrowserAnimations"},...ii],Ur=[{provide:ge,useClass:Kt},{provide:ht,useValue:"NoopAnimations"},...ii],ri=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Ur:ni}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oe({type:e}),e.\u0275inj=Me({providers:ni,imports:[Ue]});let i=e;return i})();var Vt=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){return localStorage.getItem("waw_user")?!0:(this.router.navigateByUrl("/sign"),!1)}};e.\u0275fac=function(r){return new(r||e)($(ke))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var $t=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){return localStorage.getItem("waw_user")?(this.router.navigateByUrl("/profile"),!1):!0}};e.\u0275fac=function(r){return new(r||e)($(ke))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Wt=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){if(localStorage.getItem("waw_user")){let n=JSON.parse(localStorage.getItem("waw_user"));return n.is&&n.is.admin?!0:(this.router.navigate(["/profile"]),!1)}else return this.router.navigate(["/sign"]),!1}};e.\u0275fac=function(r){return new(r||e)($(ke))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Qr=[{path:"",redirectTo:"/sign",pathMatch:"full"},{path:"",canActivate:[$t],component:Tn,children:[{path:"components",canActivate:[I],data:{meta:{title:"Components"}},loadChildren:()=>import("./chunk-HMIQUJRS.js").then(i=>i.ComponentsModule)},{path:"sign",canActivate:[I],data:{meta:{title:"Sign"}},loadChildren:()=>import("./chunk-LMWRFECL.js").then(i=>i.SignModule)}]},{path:"",canActivate:[Vt],component:mt,children:[{path:"profile",canActivate:[I],data:{meta:{title:"My Profile"}},loadChildren:()=>import("./chunk-HN4YPKQJ.js").then(i=>i.ProfileModule)},{path:"conferences",canActivate:[I],data:{meta:{title:"Conferences"}},loadChildren:()=>import("./chunk-ZX6AYUP2.js").then(i=>i.ConferencesModule)},{path:"sessions",canActivate:[I],data:{meta:{title:"Sessions"}},loadChildren:()=>import("./chunk-KTVWHLU2.js").then(i=>i.SessionsModule)},{path:"links",canActivate:[I],data:{meta:{title:"Links"}},loadChildren:()=>import("./chunk-Y67ES6U5.js").then(i=>i.LinksModule)},{path:"comments",canActivate:[I],data:{meta:{title:"Comments"}},loadChildren:()=>import("./chunk-CPRZZIJJ.js").then(i=>i.CommentsModule)},{path:"messages",canActivate:[I],data:{meta:{title:"Messages"}},loadChildren:()=>import("./chunk-O5W72XCP.js").then(i=>i.MessagesModule)},{path:"notes",canActivate:[I],data:{meta:{title:"Notes"}},loadChildren:()=>import("./chunk-2AF6K3TX.js").then(i=>i.NotesModule)},{path:"polls",canActivate:[I],data:{meta:{title:"Polls"}},loadChildren:()=>import("./chunk-HWYPA6UY.js").then(i=>i.PollsModule)},{path:"qnas",canActivate:[I],data:{meta:{title:"Qnas"}},loadChildren:()=>import("./chunk-6KALNN6L.js").then(i=>i.QnasModule)},{path:"questions",canActivate:[I],data:{meta:{title:"Questions"}},loadChildren:()=>import("./chunk-F2JLZMET.js").then(i=>i.QuestionsModule)}]},{path:"admin",canActivate:[Wt],component:mt,children:[{path:"users",canActivate:[I],data:{meta:{title:"Users"}},loadChildren:()=>import("./chunk-PGOF6LP2.js").then(i=>i.UsersModule)},{path:"forms",canActivate:[I],data:{meta:{title:"Forms"}},loadChildren:()=>import("./chunk-XLWOFBR3.js").then(i=>i.CustomformsModule)},{path:"translates",canActivate:[I],data:{meta:{title:"Translates"}},loadChildren:()=>import("./chunk-RKK4AWLN.js").then(i=>i.TranslatesModule)}]},{path:"**",redirectTo:"profile",pathMatch:"full"}],si=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oe({type:e,bootstrap:[Cn]}),e.\u0275inj=Me({providers:[Vt,$t,Wt,{provide:on,useClass:an}],imports:[En,bn,wn,Ue,gn,ri,_n.forRoot({store:{},http:{url:ue.url},socket:ue.production,meta:{useTitleSuffix:!0,defaults:{title:"Web Art Work",titleSuffix:" | Web Art Work","og:image":"https://webart.work/api/user/cdn/waw-logo.png"}},modal:{modals:{}}}),pn.forRoot(Qr,{scrollPositionRestoration:"enabled",preloadingStrategy:mn})]});let i=e;return i})();ue.production&&void 0;hn().bootstrapModule(si).catch(i=>console.error(i)); diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 0da6a26..100e77a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -194,6 +194,19 @@ const routes: Routes = [ import( './modules/conferencequestion/pages/questions/questions.module' ).then((m) => m.QuestionsModule) + }, + { + path: 'reactions', + canActivate: [MetaGuard], + data: { + meta: { + title: 'Reactions' + } + }, + loadChildren: () => + import( + './modules/conferencereaction/pages/reactions/reactions.module' + ).then((m) => m.ReactionsModule) } ] }, diff --git a/src/app/core/theme/user/user.component.html b/src/app/core/theme/user/user.component.html index eab5325..fd37f85 100644 --- a/src/app/core/theme/user/user.component.html +++ b/src/app/core/theme/user/user.component.html @@ -177,6 +177,16 @@ contact_support Theme.Questions + + favorite + Theme.Reactions +
diff --git a/src/app/modules/conferencereaction/pages/reactions/reactions.component.html b/src/app/modules/conferencereaction/pages/reactions/reactions.component.html new file mode 100644 index 0000000..faf91aa --- /dev/null +++ b/src/app/modules/conferencereaction/pages/reactions/reactions.component.html @@ -0,0 +1,6 @@ + diff --git a/src/app/modules/conferencereaction/pages/reactions/reactions.component.scss b/src/app/modules/conferencereaction/pages/reactions/reactions.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/modules/conferencereaction/pages/reactions/reactions.component.ts b/src/app/modules/conferencereaction/pages/reactions/reactions.component.ts new file mode 100644 index 0000000..e08c276 --- /dev/null +++ b/src/app/modules/conferencereaction/pages/reactions/reactions.component.ts @@ -0,0 +1,116 @@ +import { Component } from "@angular/core"; +import { AlertService, CoreService } from "wacom"; +import { ConferencereactionService, Conferencereaction } from "../../services/conferencereaction.service"; +import { FormService } from "src/app/core/modules/form/form.service"; +import { TranslateService } from "src/app/core/modules/translate/translate.service"; +import { FormInterface } from "src/app/core/modules/form/interfaces/form.interface"; +import { Router } from "@angular/router"; + +@Component({ + templateUrl: "./reactions.component.html", + styleUrls: ["./reactions.component.scss"], +}) +export class ReactionsComponent { + sessionId = this._router.url.includes('/reactions/') ? this._router.url.replace('/reactions/', '') : ''; + + columns = ["name", "description"]; + + form: FormInterface = this._form.getForm("reactions", { + formId: "reactions", + title: "Reactions", + components: [ + { + name: "Text", + key: "name", + focused: true, + fields: [ + { + name: "Placeholder", + value: "fill reactions title", + }, + { + name: "Label", + value: "Title", + }, + ], + }, + { + name: "Text", + key: "description", + fields: [ + { + name: "Placeholder", + value: "fill reactions description", + }, + { + name: "Label", + value: "Description", + }, + ], + }, + ], + }); + + config = { + create: () => { + this._form.modal(this.form, { + label: "Create", + click: (created: unknown, close: () => void) => { + if(this.sessionId) (created as Conferencereaction).session=this.sessionId + + this._sc.create(created as Conferencereaction); + close(); + }, + }); + }, + update: (doc: Conferencereaction) => { + this._form + .modal(this.form, [], doc) + .then((updated: Conferencereaction) => { + this._core.copy(updated, doc); + this._sc.update(doc); + }); + }, + delete: (doc: Conferencereaction) => { + this._alert.question({ + text: this._translate.translate( + "Common.Are you sure you want to delete this Conferencereaction?" + ), + buttons: [ + { + text: this._translate.translate("Common.No"), + }, + { + text: this._translate.translate("Common.Yes"), + callback: () => { + this._sc.delete(doc); + }, + }, + ], + }); + }, + buttons: [ + { + icon: "cloud_download", + click: (doc: Conferencereaction) => { + this._form.modalUnique("reactions", "url", doc); + }, + }, + ], + }; + + get rows(): Conferencereaction[] { + return this.sessionId + ?this._sc.reactionsBySessionId[this.sessionId] || [] + :this._sc.conferencereactions; + } + + constructor( + private _translate: TranslateService, + private _alert: AlertService, + private _sc: ConferencereactionService, + private _form: FormService, + private _core: CoreService, + private _router:Router + ) {} +} diff --git a/src/app/modules/conferencereaction/pages/reactions/reactions.module.ts b/src/app/modules/conferencereaction/pages/reactions/reactions.module.ts new file mode 100644 index 0000000..36185f8 --- /dev/null +++ b/src/app/modules/conferencereaction/pages/reactions/reactions.module.ts @@ -0,0 +1,29 @@ +import { NgModule } from '@angular/core'; +import { CoreModule } from 'src/app/core/core.module'; +import { ReactionsComponent } from './reactions.component'; +import { Routes, RouterModule } from '@angular/router'; + +const routes: Routes = [ + { + path: '', + component: ReactionsComponent + }, + { + path: ':reaction_id', + component: ReactionsComponent + }, +]; + +@NgModule({ + imports: [ + RouterModule.forChild(routes), + CoreModule + ], + declarations: [ + ReactionsComponent + ], + providers: [] + +}) + +export class ReactionsModule { } diff --git a/src/app/modules/conferencereaction/services/conferencereaction.service.ts b/src/app/modules/conferencereaction/services/conferencereaction.service.ts new file mode 100644 index 0000000..1219f01 --- /dev/null +++ b/src/app/modules/conferencereaction/services/conferencereaction.service.ts @@ -0,0 +1,66 @@ +import { inject, Injectable } from "@angular/core"; +import { HelperService } from "src/app/core/services/helper.service"; +import { + AlertService, + CoreService, + HttpService, + StoreService, + CrudService, + CrudDocument, +} from "wacom"; + +export interface Conferencereaction extends CrudDocument { + name: string; + description: string; + session:string; +} + +@Injectable({ + providedIn: "root", +}) +export class ConferencereactionService extends CrudService { + _helper=inject(HelperService) + + conferencereactions: Conferencereaction[] = []; + + reactionsBySessionId:Record={} + setReactionsBySessionId=this._helper.createParentIdToChildrenIds(this.reactionsBySessionId,this.conferencereactions,"session") + + constructor( + _http: HttpService, + _store: StoreService, + _alert: AlertService, + _core: CoreService + ) { + super( + { + name: "conferencereaction", + }, + _http, + _store, + _alert, + _core + ); + + this.get().subscribe((conferencereactions: Conferencereaction[]) =>{ + this.conferencereactions.push(...conferencereactions) + + this.setReactionsBySessionId() + }); + + _core.on("conferencereaction_create").subscribe((conferencereaction: Conferencereaction) => { + this.conferencereactions.push(conferencereaction); + + this.setReactionsBySessionId() + }); + + _core.on("conferencereaction_delete").subscribe((conferencereaction: Conferencereaction) => { + this.conferencereactions.splice( + this.conferencereactions.findIndex((o) => o._id === conferencereaction._id), + 1 + ); + + this.setReactionsBySessionId() + }); + } +} diff --git a/src/app/modules/conferencesession/pages/sessions/sessions.component.ts b/src/app/modules/conferencesession/pages/sessions/sessions.component.ts index 54314ce..b30bd46 100644 --- a/src/app/modules/conferencesession/pages/sessions/sessions.component.ts +++ b/src/app/modules/conferencesession/pages/sessions/sessions.component.ts @@ -140,6 +140,12 @@ export class SessionsComponent { this._router.navigateByUrl('/questions/'+doc._id) }, }, + { + icon: "favorite", + click: (doc: Conferencesession) => { + this._router.navigateByUrl('/reactions/'+doc._id) + }, + }, ], };