1import{a as ns}from"./chunk-5UJYJEDQ.js";import{b as rs,c as Et,d as ss,e as as}from"./chunk-SGZSCEYA.js";import{a as os}from"./chunk-52SMSOHX.js";import{c as is}from"./chunk-7TVMT4SA.js";import{B as Ln,a as On,c as Hr,e as Kr,g as Gr,h as Rn,j as Wr,k as qr,l as $r,m as Qr,n as Xr,o as at,p as Yr,q as Jr,r as Zr,s as es,y as ts,z as Fn}from"./chunk-7JC2FXMB.js";import"./chunk-Y5ZS42M5.js";import"./chunk-VELJY6X5.js";import"./chunk-CR44U6OI.js";import{B as Vr,I as Ii,J as Ni,L as zr,b as Mi,o as Fr,x as Lr,y as jr,z as Br}from"./chunk-66UXJUSH.js";import{K as jt,T as Ur,U as kt}from"./chunk-MUMA7WD6.js";import{p as kr,t as Er}from"./chunk-QVNH5W7F.js";import"./chunk-SXHMIEUV.js";import{A as Ar,a as X,b as Ti,c as Lt,e as Tt,n as Tr,p as Pi,r as Mr,t as Pr,y as Ai}from"./chunk-V5UNYABO.js";import"./chunk-PYYAE4HY.js";import{a as St,b as Si,d as Cr,f as ye,g as ki,h as me,j as Ue,m as xr,o as Ke,p as Ir,s as Nr,t as Or,u as Rr}from"./chunk-JI5SUK7K.js";import"./chunk-WNQ4N7RJ.js";import"./chunk-5MK5OKI2.js";import{$ as ei,$a as Dn,$d as Ie,$e as hi,Aa as _n,Ab as En,Ac as Go,Af as gr,B as Jt,Ba as xe,Bc as yt,Bf as vr,Bg as Me,Bh as He,C as xo,Cc as Wo,Ch as Ce,Da as ti,Dc as qo,Df as yr,Dg as wr,E as ft,Ec as $o,Eg as Ci,Fa as oe,Fc as Se,Fg as Di,Ga as C,Gb as li,Gc as Qo,Ha as D,Hc as Mn,Ia as Ro,Ic as pi,J as gt,Jc as Xo,Jf as br,Ka as ii,Kc as Yo,Kd as sr,Kf as bi,La as ni,Lc as Jo,Ld as ar,Lf as Sr,Ma as g,N as R,Na as u,Nb as F,Oa as m,Ob as L,Oc as Zo,P as A,Pa as w,Pb as jo,Pc as er,Pd as z,Q as ge,Qa as wn,Ra as Cn,Rc as tr,S as Le,Sb as je,Sc as _e,T as c,Tb as Bo,Tc as bt,U as Mo,Uc as ir,Ud as B,Uf as _r,V as E,Va as qe,Vb as G,Vc as Ot,W as x,Wa as ee,Wb as Vo,Wc as ui,Wd as Xe,Xa as Fo,Xb as zo,Xc as nr,Xd as Rt,Ya as I,Yb as Be,Yd as Ve,Z as Po,Za as Lo,Zb as ci,_ as Zt,_a as h,_d as N,_e as dr,aa as Ao,ab as Tn,b as To,ba as Io,bf as _t,ca as No,ce as lr,cf as fi,d as Qt,da as K,de as Pn,ea as ot,g as Xt,gb as oi,gc as Uo,ge as rt,gf as pr,hb as ri,hc as xn,he as mi,hf as ur,ia as bn,ib as $e,ic as Ho,ie as Ft,if as mr,j as fn,k as Nt,ka as Sn,kb as se,l as gn,ld as or,lf as ze,nb as b,o as vn,ob as ue,of as hr,oh as we,p as H,pa as p,pb as j,pc as vt,pf as fr,q as ko,qf as Ze,r as Yt,rf as wt,s as Eo,sa as Oo,sc as di,se as cr,sf as re,tf as gi,th as st,ub as ae,uh as Ei,vb as le,vd as rr,vf as vi,w as pe,wa as Z,wb as ce,wh as Dr,x as yn,xa as ve,xb as kn,xc as Qe,xf as Ct,xh as Y,yb as si,yf as Dt,yg as te,yh as xi,zb as ai,zc as Ko,zf as yi,zg as _i}from"./chunk-SCIFG7YC.js";import"./chunk-XPNIDFOS.js";import{a as Za}from"./chunk-IR53HPP2.js";import"./chunk-CXHL3I57.js";import{b as An,c as wi,f as In,g as Nn}from"./chunk-CB6G7DI2.js";import{a as Ae,b as ht,d as Do,g as Ja,h as ne}from"./chunk-QDSGMOWV.js";var ls=ht(Ae({},Ho),{version:Uo.envVersion,production:!0,dev:!1,apiHost:"https://api.energyboard.ch",apiWebsocketHost:"https://api.energyboard.ch/hubs",includeTenantInWebsocketRequest:!0,apiHostADFSResource:"8c3caf3c-3848-4375-9ab2-86b780148aaa",loginHost:"https://signin.repower.com/",clientId:"8c3caf3c-3848-4375-9ab2-86b780148aaa",loading:{start:el,stop:tl,forceStopLoading:il}});function el(n,t){}function tl(n){}function il(){}var cs=ht(Ae({},ls),{fileServerUrl:"https://files.energyboard.ch/assets"});var nl=()=>[],ds=(()=>{class n{constructor(){this.exceptionService=c(mr),this.userSelectionService=c(me)}logout(){this.userSelectionService.signout()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-exception"]],decls:8,vars:8,consts:[[1,"exception"],[3,"click","routerLink"]],template:function(i,o){i&1&&(u(0,"div",0)(1,"p"),b(2),F(3,"enbtranslate"),w(4,"br"),u(5,"a",1),I("click",function(){return o.logout()}),b(6),F(7,"enbtranslate"),m()()()),i&2&&(p(2),j(" ",L(3,3,"common.unauthorizedMessage")," "),p(3),g("routerLink",li(7,nl)),p(),ue(L(7,5,"common.logoutNow")))},dependencies:[bt,Ce],styles:[".exception[_ngcontent-%COMP%]{text-align:center;font-size:1.5rem;padding-top:15%}"]})}}return n})();var lt=n=>()=>ne(null,null,function*(){let t=c(Ue),e=c(_e),i=()=>e.createUrlTree(["/dashboard"]);try{return t.subscriptions()[n]?!0:i()}catch(o){return i()}});var ps=n=>()=>ne(null,null,function*(){let t=c(_e),e=c(ye),i=()=>t.createUrlTree(["/dashboard"]);try{return e.hasRoleInSet(n)?!0:i()}catch(o){return i()}});var us=[{path:"login",component:$r},{path:"registration",component:Fn},{path:"complete-registration",component:ts},{path:"registration/szenario",component:Fn},{path:"reset-password",component:Xr},{path:"forgot-password",component:Qr},{path:"eportal",component:Gr},{path:"confirm-email",component:Kr},{path:"forms",component:Rn},{path:"forms/:id",component:Rn},{path:"terms-of-use",component:Ln,data:{id:0}},{path:"impressum",component:Ln,data:{id:1}},{path:"exception",component:ds,canActivate:[X]},{path:"dashboard",loadChildren:()=>import("./chunk-HJ2LJ5TA.js").then(n=>n.DashboardModule),canActivate:[X]},{path:"available-leg-members",loadComponent:()=>import("./chunk-SNVV2SXN.js").then(n=>n.AvailableLegMembersPageComponent),canActivate:[X]},{path:"internal-area-delegates",loadComponent:()=>import("./chunk-KHMVZJTF.js").then(n=>n.InternalAreaDelegatesComponent),canActivate:[X,lt(we.DelegatesPage),ps(new Set([ki.EvulutionAdmin,ki.DelegatesUser,ki.DelegatesAdmin]))]},{path:"smartpower",loadChildren:()=>import("./chunk-DLVO5G5T.js").then(n=>n.SmartpowerOverviewModule),canActivate:[X]},{path:"consumptions",component:On,canActivate:[X]},{path:"consumptions/data",component:On,canActivate:[X]},{path:"invoices",loadChildren:()=>import("./chunk-2B37XYYF.js").then(n=>n.InvoicesModule),canActivate:[X]},{path:"smartpower-devices",loadChildren:()=>import("./chunk-FK2B7Y4S.js").then(n=>n.SmartpowerDevicesModule),canActivate:[X,lt(we.ControlSmartMeterDevices)]},{path:"products",loadChildren:()=>import("./chunk-BJZ3L3QM.js").then(n=>n.ProductsModule),canActivate:[X,lt(we.ProductsEnabled)]},{path:"personal-data",loadChildren:()=>import("./chunk-HHBANTB2.js").then(n=>n.PersonalDataModule),canActivate:[X]},{path:"recall",loadChildren:()=>import("./chunk-IQIYNUXQ.js").then(n=>
1n.RecallModule),canActivate:[X]},{path:"option-online",loadChildren:()=>import("./chunk-UHNSFCZD.js").then(n=>n.OptionOnlineModule),canActivate:[X]},{path:"efficiency",loadChildren:()=>import("./chunk-E6CMHKUT.js").then(n=>n.EfficiencyModule),canActivate:[X]},{path:"energyflow",loadChildren:()=>import("./chunk-74NXM7HB.js").then(n=>n.EnergyflowModule),canActivate:[Lt]},{path:"faq",loadComponent:()=>import("./chunk-J5EGUEYM.js").then(n=>n.FaqPageComponent),canActivate:[X]},{path:"dynamic-tariff",loadComponent:()=>import("./chunk-W32O5GLD.js").then(n=>n.DynamicTariffOverview),canActivate:[X,lt(we.DynamicTariff)]},{path:"dynamic-tariff/simulation",loadComponent:()=>import("./chunk-XTTY3HO3.js").then(n=>n.DynamicTariffSimulationComponent),canActivate:[X,lt(we.DynamicTariff)]},{path:"dynamic-tariff/time-plan",loadComponent:()=>import("./chunk-VX4BTNCJ.js").then(n=>n.DynamicTariffTimePlan),canActivate:[X,lt(we.DynamicTariff)]},{path:"admin",loadChildren:()=>import("./chunk-4OOZNRTG.js").then(n=>n.AdminModule),canActivate:[Lt]},{path:"dev",loadChildren:()=>import("./chunk-N6MTU7M6.js").then(n=>n.DevPageModule),canActivate:[Ti]},{path:"admindashboard",redirectTo:"/admin/dashboard",pathMatch:"full"},{path:"**",redirectTo:"/dashboard",pathMatch:"full"}];var ms=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ve({type:n})}static{this.\u0275inj=ge({imports:[Ot.forRoot(us,{}),Ot]})}}return n})();var Oi={devDropDownToggle:"devDropDown-toggler",devDropDownTenantSwitcher:"devDropDown-tenantSwitcher",randomUserModalTrigger:"dev-random-user-modal-trigger",randomUserModal:"dev-random-user-modal",randomUserModalSeedInput:"dev-random-user-modal-seed-input",randomUserModalSubjektCountInput:"dev-random-user-modal-subjekt-count-input",randomUserModalInput:"dev-random-user-modal-input",randomUserModalSeedRegenerate:"dev-random-user-modal-seed-regenerate",randomUserModalCancel:"dev-random-user-modal-cancel",randomUserModalConfirm:"dev-random-user-modal-confirm"};var xt=(()=>{class n{constructor(){this.rootUrl=""}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var fs=(()=>{class n{constructor(e,i){this.config=e,this.http=i}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}static{this.\u0275fac=function(i){return new(i||n)(Le(xt),Le(pi))}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac})}}return n})();var jn=class{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}},rl=new jn,Bt=class{constructor(t,e,i,o,r){this.name=t,this.value=e,this.options=i,this.options=i||{},(this.options.style===null||this.options.style===void 0)&&(this.options.style=o),(this.options.explode===null||this.options.explode===void 0)&&(this.options.explode=r)}serializeValue(t,e=","){if(t==null)return"";if(t instanceof Array)return t.map(i=>this.serializeValue(i).split(e).join(encodeURIComponent(e))).join(e);if(typeof t=="object"){let i=[];for(let o of Object.keys(t)){let r=t[o];r!=null&&(r=this.serializeValue(r).split(e).join(encodeURIComponent(e)),this.options.explode?i.push(`${o}=${r}`):(i.push(o),i.push(r)))}return i.join(e)}else return String(t)}},Bn=class extends Bt{constructor(t,e,i){super(t,e,i,"simple",!1)}append(t){let e=this.value;e==null&&(e="");let i=this.options.style==="label"?".":"",o=this.options.explode?i===""?",":i:",",r=!1;return this.options.style==="matrix"&&(i=`;${this.name}=`,this.options.explode&&typeof e=="object"&&(i=";",e instanceof Array?(e=e.map(s=>`${this.name}=${this.serializeValue(s,";")}`),e=e.join(";"),r=!0):(e=this.serializeValue(e,";"),r=!0))),e=i+(r?e:this.serializeValue(e,o)),t=t.replace(`{${this.name}}`,e),t=t.replace(`{${i}${this.name}${this.options.explode?"*":""}}`,e),t}serializeValue(t,e=","){var i=typeof t=="string"?encodeURIComponent(t):super.serializeValue(t,e);return i=i.replace(/%3D/g,"="),i=i.replace(/%3B/g,";"),i=i.replace(/%2C/g,","),i}},Vn=class extends Bt{constructor(t,e,i){super(t,e,i,"form",!0)}append(t){if(this.value instanceof Array)if(this.options.explode)for(let e of this.value)t=t.append(this.name,this.serializeValue(e));else{let e=this.options.style==="spaceDelimited"?" ":this.options.style==="pipeDelimited"?"|":",";return t.append(this.name,this.serializeValue(this.value,e))}else if(this.value!==null&&typeof this.value=="object")if(this.options.style==="deepObject")for(let e of Object.keys(this.value)){let i=this.value[e];i!=null&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(i)))}else if(this.options.explode)for(let e of Object.keys(this.value)){let i=this.value[e];i!=null&&(t=t.append(e,this.serializeValue(i)))}else{let e=[];for(let i of Object.keys(this.value)){let o=this.value[i];o!=null&&(e.push(i),e.push(o))}t=t.append(this.name,this.serializeValue(e))}else this.value!==null&&this.value!==void 0&&(t=t.append(this.name,this.serializeValue(this.value)));return t}},zn=class extends Bt{constructor(t,e,i){super(t,e,i,"simple",!1)}append(t){if(this.value!==null&&this.value!==void 0)if(this.value instanceof Array)for(let e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}},he=class{constructor(t,e,i){this.rootUrl=t,this.operationPath=e,this.method=i,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,i){this._path.set(t,new Bn(t,e,i||{}))}query(t,e,i){this._query.set(t,new Vn(t,e,i||{}))}header(t,e,i){this._header.set(t,new zn(t,e,i||{}))}body(t,e="application/json"){if(t instanceof Blob?this._bodyContentType=t.type:this._bodyContentType=e,this._bodyContentType==="application/x-www-form-urlencoded"&&t!==null&&typeof t=="object"){let i=[];for(let o of Object.keys(t)){let r=t[o];r instanceof Array||(r=[r]);for(let s of r){let a=this.formDataValue(s);a!==null&&i.push([o,a])}}this._bodyContent=i.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}else if(this._bodyContentType==="multipart/form-data"){let i=new FormData;if(t!=null)for(let o of Object.keys(t)){let r=t[o];if(r instanceof Array)for(let s of r){let a=this.formDataValue(s);a!==null&&i.append(o,a)}else{let s=this.formDataValue(r);s!==null&&i.set(o,s)}}this._bodyContent=i}else this._bodyContent=t}formDataValue(t){return t==null?null:t instanceof Blob?t:typeof t=="object"?new Blob([JSON.stringify(t)],{type:"application/json"}):String(t)}build(t){t=t||{};let e=this.operationPath;for(let s of this._path.values())e=s.append(e);let i=this.rootUrl+e,o=new qo({encoder:rl});for(let s of this._query.values())o=s.append(o);let r=new Wo;t.accept&&(r=r.append("Accept",t.accept));for(let s of this._header.values())r=s.append(r);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(r=r.set("Content-Type",this._bodyContentType)),new $o(this.method.toUpperCase(),i,this._bodyContent,{params:o,headers:r,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}};function Ri(n,t,e,i){let o=new he(t,Ri.PATH,"post");return n.request(o.build({responseType:"text",accept:"*/*",context:i})).pipe(pe(r=>r instanceof Se),H(r=>r.clone({body:void 0})))}Ri.PATH="/api/Generator/clearDataBase";function Fi(n,t,e,i){let o=new he(t,Fi.PATH,"post");return n.request(o.build({responseType:"text",accept:"*/*",context:i})).pipe(pe(r=>r instanceof Se),H(r=>r.clone({body:void 0})))}Fi.PATH="/api/Generator/deleteUsers";function Li(n,t,e,i){let o=new he(t,Li.PATH,"post");return n.request(o.build({responseType:"text",accept:"*/*",context:i})).pipe(pe(r=>r instanceof Se),H(r=>r.clone({body:void 0})))}Li.PATH="/api/Generator/fillDataBase";function ji(n,t,e,i){let o=new he(t,ji.PATH,"post");return e&&o.body(e.body,"application/*+json"),n.request(o.build({responseType:"json",accept:"application/json",context:i})).pipe(pe(r=>r instanceof Se),H(r=>r))}ji.PATH="/api/Generator/randomUser";function Bi(n,t,e,i){let o=new he(t,Bi.PATH,"get");return n.request(o.build({responseType:"text",accept:"*/*",context:i})).pipe(pe(r=>r instanceof Se),H(r=>r.clone({body:void 0})))}Bi.PATH="/api/Generator/healthCheck";function Vi(n,t,e,i){let o=new he(t,Vi.PATH,"post");return e&&o.query("randomString",e.randomString,{}),n.request(o.build({responseType:"text",accept:"*/*",context:i})).pipe(pe(r=>r instanceof Se),H(r=>r.clone({body:void 0})))}Vi.PATH="/api/Generator/setRandomString";function zi(n,t,e,i){let o=new he(t,zi.PATH,"post");return e&&o.query("seed",e.seed,{}),n.request(o.build({responseType:"text",accept:"*/*",context:i})).pipe(pe(r=>r instanceof Se),H(r=>r.clone({body:void 0})))}zi.PATH="/api/Generator/setSeed";var Vt=(()=>{class n extends fs{constructor(e,i){super(e,i)}static{this.GenerateAndRegisterRandomUserPath="/api/Generator/randomUser"}
1generateAndRegisterRandomUser$Response(e,i){return ji(this.http,this.rootUrl,e,i)}generateAndRegisterRandomUser(e,i){return this.generateAndRegisterRandomUser$Response(e,i).pipe(H(r=>r.body))}static{this.ClearDataBasePath="/api/Generator/clearDataBase"}clearDataBase$Response(e,i){return Ri(this.http,this.rootUrl,e,i)}clearDataBase(e,i){return this.clearDataBase$Response(e,i).pipe(H(r=>r.body))}static{this.DeleteUsersPath="/api/Generator/deleteUsers"}deleteUsers$Response(e,i){return Fi(this.http,this.rootUrl,e,i)}deleteUsers(e,i){return this.deleteUsers$Response(e,i).pipe(H(r=>r.body))}static{this.HealthCheckPath="/api/Generator/healthCheck"}healthCheck$Response(e,i){return Bi(this.http,this.rootUrl,e,i)}healthCheck(e,i){return this.healthCheck$Response(e,i).pipe(H(r=>r.body))}static{this.FillDataBasePath="/api/Generator/fillDataBase"}fillDataBase$Response(e,i){return Li(this.http,this.rootUrl,e,i)}fillDataBase(e,i){return this.fillDataBase$Response(e,i).pipe(H(r=>r.body))}static{this.SetSeedPath="/api/Generator/setSeed"}setSeed$Response(e,i){return zi(this.http,this.rootUrl,e,i)}setSeed(e,i){return this.setSeed$Response(e,i).pipe(H(r=>r.body))}static{this.SetRandomStringPath="/api/Generator/setRandomString"}setRandomString$Response(e,i){return Vi(this.http,this.rootUrl,e,i)}setRandomString(e,i){return this.setRandomString$Response(e,i).pipe(H(r=>r.body))}static{this.\u0275fac=function(i){return new(i||n)(Le(xt),Le(pi))}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var gs=n=>({grid:`item-grid-${n}`,gridItem:t=>`item-grid-${n}-item-${t}`});function sl(n,t){if(n&1){let e=ee();wn(0,"button",2),Lo("click",function(){let o=E(e).$implicit,r=h();return x(r.toggleItem(o))}),b(1),Cn()}if(n&2){let e=t.$implicit,i=h();se("is-selected",i.isSelected(e)),oe("aria-pressed",i.isSelected(e))("id",i.keys().gridItem(e.name)),p(),j(" ",e.name," ")}}var vs=(()=>{class n{constructor(){this.selectedItems=Be.required(),this.allItems=Be.required(),this.id=Be.required(),this.selectedItemsChange=zo(),this.keys=G(()=>gs(this.id())),this.selection=K([]),ot(()=>this.selection.set(this.orderItems(this.selectedItems())))}isSelected(e){return this.selection().map(i=>i.id).includes(e.id)}toggleItem(e){let i=this.selection(),o=i.includes(e)?i.filter(s=>s.id!==e.id):[...i,e],r=this.orderItems(o);this.selection.set(r),this.selectedItemsChange.emit(r.map(s=>s.value))}orderItems(e){return this.allItems().filter(i=>e.map(o=>o.id).includes(i.id))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-item-grid"]],inputs:{selectedItems:[1,"selectedItems"],allItems:[1,"allItems"],id:[1,"id"]},outputs:{selectedItemsChange:"selectedItemsChange"},decls:3,vars:1,consts:[[1,"random-user-role-grid",3,"id"],["type","button",1,"role-button",3,"is-selected"],["type","button",1,"role-button",3,"click"]],template:function(i,o){i&1&&(wn(0,"div",0),ii(1,sl,2,5,"button",1,Ro),Cn()),i&2&&(Fo("id",o.keys().grid),p(),ni(o.allItems()))},styles:[".random-user-role-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.5rem}.role-button[_ngcontent-%COMP%]{border:1px solid var(--evu-border-weak);border-radius:var(--evu-border-radius);background:var(--evu-primary-bg);color:var(--evu-text);padding:.5rem .75rem;text-align:left}.role-button[_ngcontent-%COMP%]:hover, .role-button[_ngcontent-%COMP%]:focus-visible{border-color:var(--evu-primary)}.role-button.is-selected[_ngcontent-%COMP%]{border-color:var(--evu-primary);background:var(--evu-primary);color:var(--evu-primary-bg)}"],changeDetection:0})}}return n})();var al=["randomUserModal"];function ll(n,t){if(n&1){let e=ee();u(0,"evu-modal",2)(1,"div",3)(2,"h5"),b(3),F(4,"enbtranslate"),m(),u(5,"enb-item-grid",4),I("selectedItemsChange",function(o){E(e);let r=h();return x(r.updateSelectedRoles(o))}),m(),u(6,"h5"),b(7,"Random user configuration"),m(),u(8,"div",5)(9,"evu-input",6),ce("valueChange",function(o){E(e);let r=h();return le(r.seed,o)||(r.seed=o),x(o)}),m(),u(10,"button",7),I("click",function(){E(e);let o=h();return x(o.regenerateSeed())}),w(11,"evu-svg-icon",8),m()(),u(12,"div",9)(13,"div",10)(14,"span"),b(15,"Has devices"),m(),u(16,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.hasDevices,o)||(r.hasDevices=o),x(o)}),m()(),u(17,"div",10)(18,"span"),b(19,"Has contracts"),m(),u(20,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.hasContracts,o)||(r.hasContracts=o),x(o)}),m()(),u(21,"div",10)(22,"span"),b(23,"Is registered"),m(),u(24,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.isRegistered,o)||(r.isRegistered=o),x(o)}),m()(),u(25,"div",10)(26,"span"),b(27,"Has live data"),m(),u(28,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.hasLiveData,o)||(r.hasLiveData=o),x(o)}),m()(),u(29,"div",10)(30,"span"),b(31,"Has meter data"),m(),u(32,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.hasMeterData,o)||(r.hasMeterData=o),x(o)}),m()(),u(33,"div",10)(34,"span"),b(35,"Has invoices"),m(),u(36,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.hasInvoices,o)||(r.hasInvoices=o),x(o)}),m()(),u(37,"div",10)(38,"span"),b(39,"Has multiple subjekts"),m(),u(40,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.hasMultipleSubjekts,o)||(r.hasMultipleSubjekts=o),x(o)}),m()()(),u(41,"evu-input",12),ce("valueChange",function(o){E(e);let r=h();return le(r.subjektCount,o)||(r.subjektCount=o),x(o)}),m(),u(42,"h5"),b(43),F(44,"enbtranslate"),m(),u(45,"evu-input",12),ce("valueChange",function(o){E(e);let r=h();return le(r.randomString,o)||(r.randomString=o),x(o)}),m()(),u(46,"div",13)(47,"button",14),I("click",function(){E(e);let o=h();return x(o.cancel())}),b(48),F(49,"enbtranslate"),m(),u(50,"button",15),I("click",function(){E(e);let o=h();return x(o.confirm())}),b(51),F(52,"enbtranslate"),m()()()}if(n&2){let e=h();
1g("showFooter",!0),oe("data-testid",e.keys.randomUserModal),p(3),ue(L(4,50,"layout.menu.dev.selectedUserRoles")),p(2),g("id","user-roles-grid")("selectedItems",e.selectedRoles().map(e.mkGridItem))("allItems",e.allRoles.map(e.mkGridItem)),p(4),g("id","random-user-seed-input"),ae("value",e.seed),g("variant",e.InputVariant.Number)("placeholder","Seed"),oe("data-testid",e.keys.randomUserModalSeedInput),p(),oe("data-testid",e.keys.randomUserModalSeedRegenerate),p(),g("name",e.EnbIcon.ArrowClockwise),p(5),ae("model",e.hasDevices),g("htmlId","random-user-has-devices")("disabled",!1),p(4),ae("model",e.hasContracts),g("htmlId","random-user-has-contracts")("disabled",!1),p(4),ae("model",e.isRegistered),g("htmlId","random-user-is-registered")("disabled",!1),p(4),ae("model",e.hasLiveData),g("htmlId","random-user-has-live-data")("disabled",!1),p(4),ae("model",e.hasMeterData),g("htmlId","random-user-has-meter-data")("disabled",!1),p(4),ae("model",e.hasInvoices),g("htmlId","random-user-has-invoices")("disabled",!1),p(4),ae("model",e.hasMultipleSubjekts),g("htmlId","random-user-has-multiple-subjekts")("disabled",!1),p(),g("id","random-user-subjekt-count-input"),ae("value",e.subjektCount),g("variant",e.InputVariant.Number)("placeholder","Subjekt count"),oe("data-testid",e.keys.randomUserModalSubjektCountInput),p(2),ue(L(44,52,"layout.menu.dev.randomUserString")),p(2),g("id","random-user-string-input"),ae("value",e.randomString),g("variant",e.InputVariant.Text)("placeholder","layout.menu.dev.randomUserString"),oe("data-testid",e.keys.randomUserModalInput),p(2),oe("data-testid",e.keys.randomUserModalCancel),p(),j(" ",L(49,54,"common.abort")," "),p(2),g("disabled",e.isGenerating()),oe("data-testid",e.keys.randomUserModalConfirm),p(),j(" ",L(52,56,"layout.menu.dev.generateRandomUser")," ")}}var ys=(()=>{class n{constructor(){this.generatorService=c(Vt),this.alertService=c(yi),this.modalService=c(fi),this.randomUserModalTemplate=ci("randomUserModal"),this.keys=Oi,this.InputVariant=yr,this.EnbIcon=Ei,this.allRoles=Object.values(jt).filter(e=>e!==jt.TwoFactor&&e!==jt.Technical&&e!==jt.ServiceDesk),this.selectedRoles=K([]),this.isGenerating=K(!1),this.seed=K(this.generateRandomSeed()),this.hasDevices=this.mkSwitchButton(!0),this.hasContracts=this.mkSwitchButton(!0),this.isRegistered=this.mkSwitchButton(!0),this.hasLiveData=this.mkSwitchButton(!0),this.hasMeterData=this.mkSwitchButton(!0),this.hasInvoices=this.mkSwitchButton(!0),this.hasMultipleSubjekts=this.mkSwitchButton(!0),this.subjektCount=K("1"),this.randomString=Vo(()=>this.generatedRandomString()),this.mkGridItem=e=>({name:e,id:e,value:e})}open(){this.selectedRoles.set([]),this.isGenerating.set(!1),this.seed.set(this.generateRandomSeed()),this.resetSwitch(this.hasDevices),this.resetSwitch(this.hasContracts),this.resetSwitch(this.isRegistered),this.resetSwitch(this.hasLiveData),this.resetSwitch(this.hasMeterData),this.resetSwitch(this.hasInvoices),this.resetSwitch(this.hasMultipleSubjekts),this.subjektCount.set("1");let e=this.randomUserModalTemplate();e&&this.modalService.open({id:"dev-random-user-modal",header:{title:"layout.menu.dev.generateRandomUser",icon:mkNone(),extraButtons:[]},template:e,size:hi.EvuModalSize.Large,closeCallback:mkNone()})}updateSelectedRoles(e){this.selectedRoles.set(e)}regenerateSeed(){this.seed.set(this.generateRandomSeed())}cancel(){this.modalService.close()}confirm(){this.isGenerating()||(this.isGenerating.set(!0),this.generatorService.generateAndRegisterRandomUser({body:{randomString:this.randomString(),roles:this.selectedRoles()}}).pipe(ft(()=>{this.isGenerating.set(!1),this.modalService.close()})).subscribe({next:()=>{let e={id:"dev-random-user-modal-generate-success",variant:Ct.Success,fadeVariant:Dt.Default,message:"User has been created"};this.alertService.addAlert(e)},error:e=>{let i={id:"dev-random-user-modal-generate-error",variant:Ct.Error,fadeVariant:Dt.Default,message:`Failed to create user: ${e}`};this.alertService.addAlert(i)}}))}generatedRandomString(){let e=this.toBitField(this.hasDevices().checked,this.hasContracts().checked,this.isRegistered().checked),i=this.toBitField(this.hasLiveData().checked,this.hasMeterData().checked,this.hasInvoices().checked);return`${this.seed()}-${e.toString(16)}-${i.toString(16)}-${Number(this.hasMultipleSubjekts().checked)}${this.subjektCount()}`}generateRandomSeed(){return Math.floor(Math.random()*1e9).toString()}mkSwitchButton(e){return K({checked:e,states:[],showLabel:!1,smallSwitchButton:!1,iconOff:mkNone(),iconOn:mkNone()})}resetSwitch(e){e.update(i=>ht(Ae({},i),{checked:!0}))}toBitField(...e){return e.reduce((i,o,r)=>i|(o?1<<r:0),0)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-dev-random-user-modal"]],viewQuery:function(i,o){i&1&&oi(o.randomUserModalTemplate,al,5),i&2&&ri()},decls:5,vars:4,consts:[["randomUserModal",""],["type","button",1,"btn","btn-primary",3,"click"],[3,"showFooter"],["modal
1-body","",1,"modal-body","flex-col","gap-lg"],[3,"selectedItemsChange","id","selectedItems","allItems"],[1,"flex-row-vcenter","gap-sm"],[1,"flex-grow-1",3,"valueChange","id","value","variant","placeholder"],["type","button",1,"icon-btn","mb-3",3,"click"],[3,"name"],[1,"d-grid","gap-md"],[1,"flex-row-vcenter","justify-content-between"],[3,"modelChange","model","htmlId","disabled"],[3,"valueChange","id","value","variant","placeholder"],["modal-footer","",1,"modal-footer"],["type","button",1,"btn","btn-secondary","flat-butt",3,"click"],["type","button",1,"btn","btn-primary","flat-butt",3,"click","disabled"]],template:function(i,o){i&1&&(u(0,"button",1),I("click",function(){return o.open()}),b(1),F(2,"enbtranslate"),m(),xe(3,ll,53,58,"ng-template",null,0,je)),i&2&&(oe("data-testid",o.keys.randomUserModalTrigger),p(),j(" ",L(2,2,"layout.menu.dev.generateRandomUser"),` 2`))},dependencies:[br,gi,vs,pr,bi,Ce],encapsulation:2,changeDetection:0})}}return n})();function cl(n,t){if(n&1&&(u(0,"div",4),qe(1,6),m()),n&2){h(3);let e=$e(2);p(),g("ngTemplateOutlet",e)}}function dl(n,t){if(n&1){let e=ee();u(0,"div",7),I("clickOutside",function(){E(e);let o=h(3);return x(o.closeMenu())}),qe(1,6),m()}if(n&2){h(3);let e=$e(2);p(),g("ngTemplateOutlet",e)}}function pl(n,t){if(n&1&&C(0,cl,2,1,"div",4)(1,dl,2,1,"div",5),n&2){let e=h(2);D(e.isTabletOrSmaller()?0:1)}}function ul(n,t){if(n&1){let e=ee();u(0,"div",1)(1,"span",2),I("click",function(o){E(e);let r=h();return x(r.toggleDropDown(o))}),w(2,"repower-icon",3),m(),C(3,pl,2,1),m()}if(n&2){let e=h();p(),se("dd-open",e.ddActive()),g("id",e.keys.devDropDownToggle),p(),g("bicon",!0),oe("active",e.ddActive()),p(),D(e.ddActive()?3:-1)}}function ml(n,t){if(n&1&&(u(0,"div",8)(1,"h5"),b(2),F(3,"enbtranslate"),m(),w(4,"enb-tenant-selector",13),m()),n&2){let e=h(2);p(2),ue(L(3,3,"layout.menu.dev.tenantSelector")),p(2),g("id",e.keys.devDropDownTenantSwitcher)("tenants",e.allTenants)}}function hl(n,t){if(n&1){let e=ee();u(0,"div"),w(1,"enb-dev-random-user-modal"),m(),u(2,"div")(3,"button",10),I("click",function(){E(e);let o=h(2);return x(o.refreshDatabase())}),b(4),F(5,"enbtranslate"),m()(),u(6,"div")(7,"button",10),I("click",function(){E(e);let o=h(2);return x(o.syncEnergyCommunities())}),b(8," Sync Energy Communities "),m()(),u(9,"div")(10,"button",10),I("click",function(){E(e);let o=h(2);return x(o.getAllOrgs())}),b(11," Get all Orgs "),m()()}n&2&&(p(4),j(" ",L(5,1,"layout.menu.dev.refreshDataBase")," "))}function fl(n,t){if(n&1){let e=ee();C(0,ml,5,5,"div",8),u(1,"div",8)(2,"h5"),b(3),F(4,"enbtranslate"),m(),u(5,"evu-single-select",9),I("itemSelected",function(o){E(e);let r=h();return x(r.themeSelected(o))}),m()(),u(6,"div")(7,"button",10),I("click",function(){E(e);let o=h();return x(o.clearStorage())}),b(8),F(9,"enbtranslate"),m()(),u(10,"div")(11,"button",10),I("click",function(){E(e);let o=h();return x(o.datePickerSelectionService.resetDatePickers())}),b(12),F(13,"enbtranslate"),m()(),u(14,"div")(15,"button",10),I("click",function(){E(e);let o=h();return x(o.translationService.reloadTranslations())}),b(16),F(17,"enbtranslate"),m()(),u(18,"div")(19,"span"),b(20),F(21,"enbtranslate"),m(),u(22,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.disableTranslationsModel,o)||(r.disableTranslationsModel=o),x(o)}),I("triggered",function(o){E(e);let r=h();return x(r.disableTranslations(o))}),m(),u(23,"span"),b(24),F(25,"enbtranslate"),m(),u(26,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.enableLocalTranslationsModel,o)||(r.enableLocalTranslationsModel=o),x(o)}),I("triggered",function(o){E(e);let r=h();return x(r.enableLocalTranslations(o))}),m(),u(27,"span"),b(28," Show Language Flags "),m(),u(29,"repower-switch-button",11),ce("modelChange",function(o){E(e);let r=h();return le(r.showFlagsModel,o)||(r.showFlagsModel=o),x(o)}),I("triggered",function(o){E(e);let r=h();return x(r.toggleFlags(o))}),m()(),u(30,"div")(31,"button",12),b(32),F(33,"enbtranslate"),m()(),C(34,hl,12,3)}if(n&2){let e=h();D(e.showTenantSelector()?0:-1),p(3),ue(L(4,26,"layout.menu.dev.themeSelector")),p(2),g("model",e.themeSelectorModel()),p(3),j(" ",L(9,28,"layout.menu.dev.clearStorage")," "),p(4),j(" ",L(13,30,"layout.menu.dev.clearDatepickers")," "),p(4),j(" ",L(17,32,"layout.menu.dev.reloadTranslations")," "),p(4),j(" ",L(21,34,"layout.menu.dev.disableTranslations")," "),p(2),se("switch-button-active",e.translationsDisabled()),g("htmlId","isNoTranslationMode"),ae("model",e.disableTranslationsModel),g("disabled",!1),p(2),j(" ",L(25,36,"layout.menu.dev.localTranslations")," "),p(2),se("switch-button-active",e.localTranslations()),g("htmlId","isNoTranslationMode"),ae("model",e.enableLocalTranslationsModel),g("disabled",!1),p(3),se("switch-button-active",e.showFlags()),g("htmlId","showLanguageFlags"),ae("model",e.showFlagsModel),g("disabled",!1),p(2),g("routerLink","/dev"),p(),j(" ",L(33,38,"layout.menu.dev.page")," "),p(2),D(e.environment.dev?34:-1)}}var bs=(()=>{class n{themeSelected(e){if(e.value.isDevCustom){this.tenantCssService.setThemeExplicitly({variant:e.value.isDark?Y.Dark:Y.Light,isDevCustom:!0}),this.tenantCssService.storeDevTheme(e.value.name),this.themeService.setTheme(e.value);return}this.tenantCssService.setThemeExplicitly({variant:e.id===we.BaseThemeDark?Y.Dark:Y.Light,isDevCustom:!1}),this.tenantCssService.storeDevTheme(null);let i=this.tenantCssService.tenantCss();i&&this.themeService.setTheme({name:e.id,isDark:this.tenantCssService.variant()===Y.Dark,css:i,isDevCustom:!1})}constructor(){this.energyCommunityService=c(or),this.storageService=c(_i),this.environment=c("environmentEnergyboard"),this.translationService=c(He),this.repowerConfigService=c(_t),this.resizeService=c(ze),this.nativeSecureStorageService=c(Cr),this.themeService=c(vi),this.tenantCssService=c(Ke),this.generatorService=c(Vt),this.datePickerSelectionService=c(Pi),this.pageService=c(re),this.keys=Oi,this.showTenantSelector=K(!1),this.entries=K(0),this.translationsDisabled=K(this.translationService.isNoTranslationMode()),this.localTranslations=K(this.translationService.isLocalTranslationMode()),this.show
2Flags=G(this.repowerConfigService.showFlags),this.disableTranslationsModel={checked:this.translationsDisabled(),states:["off","on"],showLabel:!1,smallSwitchButton:!1,iconOff:mkNone(),iconOn:mkNone()},this.enableLocalTranslationsModel={checked:this.localTranslations(),states:["off","on"],showLabel:!1,smallSwitchButton:!1,iconOff:mkNone(),iconOn:mkNone()},this.showFlagsModel={checked:this.showFlags(),states:["off","on"],showLabel:!1,smallSwitchButton:!1,iconOff:mkNone(),iconOn:mkNone()},this.mkThemeItem=i=>({id:i.name,label:i.name,value:i,group:mkNone(),icons:[]}),this.themeSelectorModel=G(()=>({items:Array.from(this.themeService.customThemes()).concat([{name:we.BaseTheme,isDark:!1,css:""},{name:we.BaseThemeDark,isDark:!0,css:""}]).map(this.mkThemeItem),groups:[],selectedItem:mkSome(this.mkThemeItem(this.themeService.theme())),id:"theme-selector"})),this.isTabletOrSmaller=this.resizeService.isTabletOrSmaller,this.dropDownKey="DevDropdown",this.ddActive=G(()=>{let i=this.pageService.dropdown();return isSome(i)&&i.value===this.dropDownKey});let e=this.environment;this.allTenants=te.allTenants(this.environment),this.showTenantSelector.set(e.devMultiTenant),this.showTenantSelector()&&this.entries.update(i=>i+1)}disableTranslations(e){this.translationsDisabled.set(e),this.translationService.setNoTranslationMode(e),this.repowerConfigService.translationsDisabled.set(e)}enableLocalTranslations(e){this.translationsDisabled.set(e),this.translationService.setIsLocalTranslationMode(e),this.translationService.reloadTranslations()}closeMenu(){this.pageService.closeDropdown(this.dropDownKey)}onSelect(){this.pageService.dropdown.set(mkSome(this.dropDownKey))}clearStorage(){this.storageService.clear(),this.nativeSecureStorageService.clearAll(),window.location.reload()}toggleFlags(e){this.repowerConfigService.showFlags.set(e)}toggleDropDown(e){this.pageService.toggleDropdown(this.dropDownKey),e.stopPropagation(),e.preventDefault()}refreshDatabase(){let e=[this.generatorService.clearDataBase(),this.generatorService.fillDataBase()];Yt(e).subscribe({next:()=>{},error:i=>{console.error("Failed to refresh database: ",i)}})}syncEnergyCommunities(){this.energyCommunityService.triggerSync().subscribe({next:()=>console.log("Energy community sync completed"),error:e=>console.error("Sync failed:",e)})}getAllOrgs(){this.energyCommunityService.getAll_2().subscribe({next:()=>console.log("All Energy Communities fetched"),error:e=>console.error("Failed to get orgs:",e)})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-dev-drop-down"]],decls:3,vars:1,consts:[["dropdown",""],[1,"dev-dropdown","d-flex"],[1,"dropdownMenuSpan",3,"click","id"],["name","code",1,"dropdown-circle","lCircle",3,"bicon"],[1,"dev-dropdown-content","mobile"],["enbClickOutside","",1,"dev-dropdown-content"],[3,"ngTemplateOutlet"],["enbClickOutside","",1,"dev-dropdown-content",3,"clickOutside"],[1,"dev-dropdown-row"],[3,"itemSelected","model"],[1,"btn","btn-primary",3,"click"],[3,"modelChange","triggered","htmlId","model","disabled"],[1,"btn","btn-primary",3,"routerLink"],[3,"id","tenants"]],template:function(i,o){i&1&&(C(0,ul,4,6,"div",1),xe(1,fl,35,40,"ng-template",null,0,je)),i&2&&D(o.entries()>0?0:-1)},dependencies:[Et,Ze,os,bi,bt,Sr,vt,ys,Ce],styles:[`:export{maxSmallSize:576px;maxMobileSize:768px;maxTabletSize:992px;maxLaptopSize:1400px}:root{--evu-top-navigation-dev-dropdown-icon: var(--evu-text);--evu-top-navigation-dev-dropdown-icon-hover: var(--evu-primary);--evu-top-navigation-dev-dropdown-bg: var(--evu-primary-bg);--evu-top-navigation-dev-dropdown-hover: var(--evu-primary);--evu-top-navigation-dev-dropdown-border-radius: var(--evu-border-radius);--evu-top-navigation-dev-dropdown-link-hover: var(--evu-primary);--evu-top-navigation-dev-dropdown-link-bg: var(--evu-primary-bg)}.cdk-overlay-container{z-index:2052!important}.active-or-hovered,.dev-dropdown .dd-open{transition:var(--evu-btn-transition);color:var(--evu-top-navigation-dropdown-link-hover)}.dev-dropdown-content{display:flex;flex-direction:column;padding:var(--evu-spacing-xl);gap:var(--evu-spacing-xl);width:400px}.dev-dropdown-content.mobile{position:fixed;top:calc(var(--evu-header-height) + var(--evu-safe-area-inset-top));left:0;right:0;bottom:0;z-index:50;overflow-y:auto;width:100vw;border-top:none;border-radius:0}.dev-dropdown-row{display:flex;flex-direction:column;width:100%}.dev-dropdown-row h5{font-size:1rem;padding:0px var(--evu-spacing-md)}.dev-dropdown{padding:0}.dev-dropdown span.dropdownMenuSpan{text-align:center;align-content:center;display:inline-block}.dev-dropdown>button{display:none}.dev-dropdown>div>ul{max-height:calc(100vh - 100px);overflow-x:hidden;overflow-y:auto}.dev-dropdown{display:inline-block;position:relative;cursor:pointer}.dev-dropdown>button{border:none;background-color:transparent;font-size:1rem;display:inline-block}.dev-dropdown>div{position:absolute;background-color:var(--evu-top-navigation-dev-dropdown-bg);min-width:160px;box-shadow:0 8px 16px #0003;z-index:10001;
2top:3rem;right:0;border-radius:var(--evu-top-navigation-dev-dropdown-border-radius)}.dev-dropdown .dd-open{color:var(--evu-top-navigation-dev-dropdown-link-hover)}.dev-dropdown .dd-open>repower-icon>i>svg{fill:var(--icons-fill)!important}.dev-dropdown .dd-open>repower-icon>i>svg>use{fill:var(--icons-fill)!important}.dev-dropdown .nopadding{padding:0}.ng-clear-wrapper{height:17px;bottom:.5px;padding-left:5px}@media screen and (max-width:992px){.dev-dropdown>div>ul{max-width:300px}} 3`],encapsulation:2,changeDetection:0})}}return n})();var Ss={profilDropDownToggle:"profilDropDown-toggler",profilDropDownPersonalData:"profilDropDown-personalData",profilDropDownProfileData:"profilDropDown-profileData",profilDropDownPaymentData:"profilDropDown-paymentData",profilDropDownContracts:"profilDropDown-contracts",profilDropDownDocuments:"profilDropDown-documents",profilDropDownDataProtection:"profilDropDown-dataProtection",profilDropDownMoostPrivacy:"profilDropDown-moostPrivacy",profilDropDownNotifications:"profilDropDown-notifications",profilDropDownPushNotifications:"profilDropDown-pushNotifications",profilDropDownPrePayments:"profilDropDown-prePayments",profilDropDownCurrentObjects:"profilDropDown-currentObjects",profilDropDownPastObjects:"profilDropDown-pastObjects",profilDropDownOwnerObjects:"profilDropDown-ownerObjects",profilDropDownCaretakerObjects:"profilDropDown-caretakerObjects",profilDropDownCaretakerPastObjects:"profilDropDown-caretakerPastObjects",profilDropDownReports:"profilDropDown-reports",profilDropDownPermissions:"profilDropDown-permissions",profilDropDownForms:"profilDropDown-forms",profilDropDownAdmin:"profilDropDown-admin",profilDropDownLastSubjekt:"profilDropDown-lastSubjekt",profilDropDownLogout:"profilDropDown-logout"};var gl=["*"],vl=()=>({exact:!0});function yl(n,t){if(n&1&&(w(0,"repower-icon",1),F(1,"enbtranslate")),n&2){let e=h();g("name",En(L(1,3,e.icon())))("bicon",!0)}}function bl(n,t){if(n&1&&w(0,"repower-icon",1),n&2){let e=h();g("name",En(e.icon()))("bicon",!0)}}var _s=(()=>{class n{constructor(){this.translationService=c(He),this.resizeService=c(ze),this.isTabletOrSmaller=this.resizeService.isTabletOrSmaller,this.icon=Be.required(),this.name=Be.required(),this.key=Be.required(),this.link=Be.required(),this.click=Be.required()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-profil-drop-down-link"]],inputs:{icon:[1,"icon"],name:[1,"name"],key:[1,"key"],link:[1,"link"],click:[1,"click"]},ngContentSelectors:gl,decls:7,vars:10,consts:[["routerLinkActive","active",1,"flex-row-vcenter","gap-md",3,"click","id","routerLink","routerLinkActiveOptions"],["width","18","height","18",1,"nomargin",3,"bicon","name"]],template:function(i,o){i&1&&(Dn(),u(0,"li")(1,"a",0),I("click",function(){return o.click()()}),C(2,yl,2,5,"repower-icon",1)(3,bl,1,3,"repower-icon",1),b(4),F(5,"enbtranslate"),Tn(6),m()()),i&2&&(p(),se("tablet",o.isTabletOrSmaller()),g("id",o.key())("routerLink",o.link())("routerLinkActiveOptions",li(9,vl)),p(),D(o.translationService.translate()(o.icon())!==o.icon()?2:3),p(2),j(" ",L(5,7,o.name())," "))},dependencies:[Ze,bt,ir,Ce],styles:["[_nghost-%COMP%] .tablet{--evu-sidebar-bg: var(--evu-primary-bg);--evu-sidebar-border: var(--evu-border-width) solid var(--evu-border-strong);--evu-sidebar-btn: var(--evu-text);--evu-sidebar-btn-hover: var(--evu-sidebar-btn);--evu-sidebar-btn-active: var(--evu-text-primary-contrast);--evu-sidebar-btn-icon: var(--evu-bicon);--evu-sidebar-btn-icon-hover: var(--evu-sidebar-btn-icon);--evu-sidebar-btn-icon-active: var(--evu-text-primary-contrast);--evu-sidebar-btn-bg: var(--evu-primary-bg);--evu-sidebar-btn-bg-mobile-mixin: var(--evu-primary);--evu-sidebar-btn-bg-mobile-mixin-amount: 5%;--evu-sidebar-btn-bg-mobile: color-mix( in oklch, var(--evu-primary-bg), var(--evu-sidebar-btn-bg-mobile-mixin) var(--evu-sidebar-btn-bg-mobile-mixin-amount) );--evu-sidebar-btn-bg-hover: color-mix( in oklch, var(--evu-sidebar-btn-bg), var(--evu-sidebar-btn-bg-active) var(--evu-btn-hover-amount) );--evu-sidebar-btn-bg-active: var(--evu-primary);--evu-sidebar-btn-padding: var(--evu-spacing-lg)}[_nghost-%COMP%] .tablet{display:flex;align-items:center;width:100%;padding:var(--evu-spacing-lg);margin:var(--evu-spacing-md) 0px;border-radius:var(--evu-border-radius);transition:var(--evu-transition);background-color:var(--evu-sidebar-btn-bg-mobile);color:var(--evu-sidebar-btn)}[_nghost-%COMP%] .tablet repower-icon i.bicon{color:var(--evu-sidebar-btn)}[_nghost-%COMP%] .tablet:hover{background-color:var(--evu-sidebar-btn-bg-hover);color:var(--evu-sidebar-btn-hover)}[_nghost-%COMP%] .tablet:hover repower-icon i.bicon{color:var(--evu-sidebar-btn-hover)}[_nghost-%COMP%] .tablet:active{background-color:var(--evu-sidebar-btn-bg-active);color:var(--evu-sidebar-btn-active)}
3[_nghost-%COMP%] .tablet:active repower-icon i.bicon{color:var(--evu-sidebar-btn-active)}"]})}}return n})();function Sl(n,t){if(n&1&&(u(0,"div",4),qe(1,6),m()),n&2){h(2);let e=$e(5);p(),g("ngTemplateOutlet",e)}}function _l(n,t){if(n&1){let e=ee();u(0,"div",7),I("clickOutside",function(){E(e);let o=h(2);return x(o.closeMenu())}),qe(1,6),m()}if(n&2){h(2);let e=$e(5);p(),g("ngTemplateOutlet",e)}}function wl(n,t){if(n&1&&C(0,Sl,2,1,"div",4)(1,_l,2,1,"div",5),n&2){let e=h();D(e.isTabletOrSmaller()?0:1)}}function Cl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",16),n&2){let e=h(3);g("key",e.keys.profilDropDownPaymentData)("click",e.closeMenu)}}function Dl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",17),n&2){let e=h(3);g("key",e.keys.profilDropDownContracts)("click",e.closeMenu)}}function Tl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",18),n&2){let e=h(3);g("key",e.keys.profilDropDownDocuments)("click",e.closeMenu)}}function kl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",19),n&2){let e=h(3);g("key",e.keys.profilDropDownDataProtection)("click",e.closeMenu)}}function El(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",20),n&2){let e=h(3);g("key",e.keys.profilDropDownDataProtection)("click",e.closeMenu)}}function xl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",21),n&2){let e=h(3);g("key",e.keys.profilDropDownNotifications)("click",e.closeMenu)}}function Ml(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",22),n&2){let e=h(3);g("key",e.keys.profilDropDownPushNotifications)("click",e.closeMenu)}}function Pl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",23),n&2){let e=h(3);g("key",e.keys.profilDropDownPrePayments)("click",e.closeMenu)}}function Al(n,t){if(n&1&&(u(0,"enb-profil-drop-down-link",24)(1,"span",32),b(2),m()()),n&2){let e=h(3);g("key",e.keys.profilDropDownCurrentObjects)("click",e.closeMenu),p(2),ue(e.personalDataPageService.currentObjects())}}function Il(n,t){if(n&1&&(u(0,"enb-profil-drop-down-link",25)(1,"span",32),b(2),m()()),n&2){let e=h(3);g("key",e.keys.profilDropDownPastObjects)("click",e.closeMenu),p(2),ue(e.personalDataPageService.pastObjects())}}function Nl(n,t){if(n&1&&(u(0,"enb-profil-drop-down-link",26)(1,"span",32),b(2),m()()),n&2){let e=h(3);g("key",e.keys.profilDropDownOwnerObjects)("click",e.closeMenu),p(2),ue(e.personalDataPageService.ownerObjects())}}function Ol(n,t){if(n&1&&(u(0,"enb-profil-drop-down-link",27)(1,"span",32),b(2),m()()),n&2){let e=h(3);g("key",e.keys.profilDropDownCaretakerObjects)("click",e.closeMenu),p(2),ue(e.personalDataPageService.caretakerObjects())}}function Rl(n,t){if(n&1&&(u(0,"enb-profil-drop-down-link",28)(1,"span",32),b(2),m()()),n&2){let e=h(3);g("key",e.keys.profilDropDownCaretakerPastObjects)("click",e.closeMenu),p(2),ue(e.personalDataPageService.caretakerObjectsPast())}}function Fl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",29),n&2){let e=h(3);g("key",e.keys.profilDropDownReports)("click",e.closeMenu)}}function Ll(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",30),n&2){let e=h(3);g("key",e.keys.profilDropDownPermissions)("click",e.closeMenu)}}function jl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",31),n&2){let e=h(3);g("key",e.keys.profilDropDownForms)("click",e.closeMenu)}}function Bl(n,t){if(n&1&&(w(0,"enb-profil-drop-down-link",14)(1,"enb-profil-drop-down-link",15),C(2,Cl,1,2,"enb-profil-drop-down-link",16),C(3,Dl,1,2,"enb-profil-drop-down-link",17),C(4,Tl,1,2,"enb-profil-drop-down-link",18),C(5,kl,1,2,"enb-profil-drop-down-link",19),C(6,El,1,2,"enb-profil-drop-down-link",20),C(7,xl,1,2,"enb-profil-drop-down-link",21),C(8,Ml,1,2,"enb-profil-drop-down-link",22),C(9,Pl,1,2,"enb-profil-drop-down-link",23),C(10,Al,3,3,"enb-profil-drop-down-link",24),C(11,Il,3,3,"enb-profil-drop-down-link",25),C(12,Nl,3,3,"enb-profil-drop-down-link",26),C(13,Ol,3,3,"enb-profil-drop-down-link",27),C(14,Rl,3,3,"enb-profil-drop-down-link",28),C(15,Fl,1,2,"enb-profil-drop-down-link",29),C(16,Ll,1,2,"enb-profil-drop-down-link",30),C(17,jl,1,2,"enb-profil-drop-down-link",31)),n&2){let e=h(2);g("key",e.keys.profilDropDownProfileData)("click",e.closeMenu),p(),g("key",e.keys.profilDropDownPersonalData)("click",e.closeMenu),p(),D(e.personalDataPageService.paymentDataEnabled()?2:-1),p(),D(e.personalDataPageService.contractsEnabled()?3:-1),p(),D(e.personalDataPageService.documentsEnabled()?4:-1),p(),D(!e.personalDataPageService.hideDataProtection()&&e.personalDataPageService.hasSPObjects()?5:-1),p(),D(e.personalDataPageService.showMoostPrivacy()?6:-1),p(),D(e.personalDataPageService.hasMobileApp()&&e.personalDataPageService.pushEnabled()?7:-1),p(),D(e.hasPushNotificationsSettings?8:-1),p(),D(e.personalDataPageService.hasPrepayments()?9:-1),p(),D(e.personalDataPageService.currentObjects()>0?10:-1),p(),D(e.personalDataPageService.pastObjects()>0?11:-1),p(),D(e.personalDataPageService.ownerObjects()>0?12:-1),p(),D(e.personalDataPageService.caretakerObjects()>0?13:-1),p(),D(e.personalDataPageService.caretakerObjectsPast()>0?14:-1),p(),D(e.personalDataPageService.showReports()?15:-1),p(),D(e.personalDataPageService.showPermissions()?16:-1),p(),D(e.personalDataPageService.showForms()?17:-1)}}function Vl(n,t){n&1&&w(0,"hr",10)}function zl(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",11),n&2){let e=h(2);g("key",e.keys.profilDropDownAdmin)("click",e.closeMenu)}}function Ul(n,t){if(n&1&&w(0,"enb-profil-drop-down-link",12),n&2){let e=h(2);g("key",e.keys.profilDropDownLastSubjekt)("click",e.usePreviousSubject)}}function Hl(n,t){if(n&1&&(u(0,"ul")(1,"li"),w(2,"enb-personal-data-subjekt-information"),m(),u(3,"li",8),w(4,"hr",9),m(),C(5,Bl,18,20),C(6,Vl,1,0,"hr",10),C(7,zl,1,2,"enb-profil-drop-down-link",11),C(8,Ul,1,2,"enb-profil-drop-down-link",12),w(9,"enb-profil-drop-down-link",13),m()),n&2){let e=h();p(5),D(e.isSome(e.selectedIdSubjekt())?5:-1);let i=e.selectedIdSubjekt();p(),D(e.isSome(i)&&i.value>=0?6:-1),p(),D(e.isSome(e.selectedIdSubjekt())&&e.userHasServiceDeskRole||e.isNone(e.selectedIdSubjekt())?7:-1),p(),D(e.isNone(e.selectedIdSubjekt())&&e.userHasServiceDeskRole?8:-1),p(),g("key",e.keys.profilDropDownLogout)("click",e.logoutAndCloseMenu)}}var ws=(()=>{class n{constructor(){this.userSelectionService=c(me),this.router=c(_e),this.resizeService=c(ze),this.tenantNameService=c(Me),this.pageService=c(re),this.logoutService=c(Ur),this.personalDataPageService=c(Jr),this.translationService=c(He),this.isLoadedSubscription=null,this.keys=Ss,this.isSome=isSome,this.myControl=new cr,this.filteredCustomers=new To,this.hasPushNotificationsSettings=!1,this.selectedValue=[],this.selectedIdSubjekt=K(this.userSelectionService.tryGetSubjektId()),this.userHasServiceDeskRole=!1,this.isTabletOrSmaller=this.resizeService.isTabletOrSmaller,this.isNone=isNone,this.dropDownKey="ProfileDropdown",this.ddActive=G(()=>{let e=this.pageService.dropdown();return isSome(e)&&e.value===this.dropDownKey}),this.closeMenu=()=>{this.pageService.closeDropdown(this.dropDownKey)},this.logoutAndCloseMenu=()=>{this.closeMenu(),this.logoutService.logout()},this.usePreviousSubject=()=>{let e=this.userSelectionService.lastSubject();if(isDefined(e)&&e>0){this.userSelectionService.setSubjekt(e),this.router.navigate([""]);return}let i=this.tenantNameService.tenant();this.userSelectionService.getAvailableSubjektIds().pipe(Jt(1)).subscribe(({tenants:o,customers:r})=>{let s=o.findIndex(a=>a===i);if(s>=0&&r[s]?.id){let a=parseInt(r[s].id,10);this.userSelectionService.setSubjekt(a),this.router.navigate([""])}else if(r.length>0&&r[0].id){let a=parseInt(r[0].id,10);this.userSelectionService.setSubjekt(a),this.router.navigate([""])}})}}ngOnInit(){this.updateCustomer(),this.userSelectionService.subjektIdChanged.subscribe(e=>{e===-1?this.selectedIdSubjekt.set(mkNone()):(this.selectedIdSubjekt.set(mkSome(e)),this.userSelectionService.lastSubject.set(e)),this.updateCustomer()})}ngOnDestroy(){this.isLoadedSubscription&&this.isLoadedSubscription.unsubscribe()}updateCustomer(){let e=this.userSelectionService.getLoggedInUser();this.userHasServiceDeskRole=e.hasServiceDeskRole}toggleDropDown(e){this.pageService.toggleDropdown(this.dropDownKey),e.stopPropagation(),e.preventDefault()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-profil-drop-down-button"]],decls:6,vars:6,consts:[["dropdown",""],[1,"evu-profil-dropdown"],[1,"dropdownMenuSpan","text-center","align-content-center","me-2",3,"click","id"],["name","account",1,"dropdown-circle","lCircle",3,"bicon"],[1,"enb-profile-drop-down","mobile"],["enbClickOutside","",1,"enb-profile-drop-down"],[3,"ngTemplateOutlet"],["enbClickOutside","",1,"enb-profile-drop-down",3,"clickOutside"],[1,"seperator"],[1,"mt-1"],[1,"m-0","mb-2","w-100"],["name","repowerWebpartPersonalData.admin","icon","settings","link","/admin/dashboard",3,"key","click"],["name","repowerWebpartPersonalData.lastSubjekt","icon","revert","link","",3,"key","click"],["name","layout.menu.logout","icon","icons.profile.menu.logout","link","",3,"key","click"],["name","components.settings.profileData","icon","icons.profile.menu.personalData","link","personal-data",3,"key","click"],["name","personalData.title","icon","icons.profile.menu.personalData","link","personal-data/data",3,"key","click"],["name","personalData.paymentData","icon","icons.profile.menu.paymentData","link","personal-data/payment",3,"key","click"],["name","personalData.contracts","icon","icons.profile.menu.contracts","link","personal-data/contracts",3,"key","click"],["name","personalData.documents","icon","icons.profile.menu.documents","link","personal-data/documents",3,"key","click"],["name","repowerWebpartPersonalData.dataprotection","icon","icons.profile.menu.dataprotection","link","personal-data/data_protection",3,"key","click"],["name","components.moost.privacy.menulabel","icon","icons.profile.menu.moostPrivacy","link","personal-data/moost_privacy",3,"key","click"],["name","pages.notification.title","icon","icons.profile.menu.notification","link","personal-data/notifications",3,"key","click"],["name","repowerWebpartPersonalData.push-notifications-settings.title","icon","icons.profile.menu.push-notifications-settings","link","/personal-data/push-notifications-settings",3,"key","click"],["name","repowerWebpartPersonalData.prepayments.title","icon","icons.profile.menu.prepayments","link","/personal-data/pre-payments",3,"key","click"],["name","personalData.currentObjects","icon","icons.profile.menu.currentObjects","link","personal-data/current_objects",3,"key","click"],["name","personalData.oldObjects","icon","icons.profile.menu.oldObjects","link","personal-data/past_objects",3,"key","click"],["name","personalData.ownerObjects","icon","icons.profile.menu.ownerObjects","link","personal-data/owner_objects",3,"key","click"],["name","personalData.caretakerObjects","icon","icons.profile.menu.caretakerObjects","link","personal-data/caretaker_objects",3,"key","click"],["name","personalData.caretakerObjectsPast","icon","icons.profile.menu.caretakerObjects","link","personal-data/caretaker_objects_past",3,"key","click"],["name","repowerWebpartPersonalData.reports.title","icon","icons.profile.menu.reports","link","personal-data/reports",3,"key","click"],["name","components.permissions.menulabel","icon","icons.profile.menu.permissions","link","personal-data/permissions",3,"key","click"],["name","repowerWebpartPersonalData.forms.title","icon","icons.profile.menu.forms","link","/personal-data/forms",3,"key","click"],[1,"ms-1","badge","badge-pill"]],template:function(i,o){i&1&&(u(0,"div",1)(1,"span",2),I("click",function(s){return o.toggleDropDown(s)}),w(2,"repower-icon",3),m(),C(3,wl,2,1),m(),xe(4,Hl,10,6,"ng-template",null,0,je)),i&2&&(p(),se("dd-open",o.ddActive()),g("id",o.keys.profilDropDownToggle),p(),g("bicon",!0),oe("active",o.ddActive()),p(),D(o.ddActive()?3:-1))},dependencies:[Et,Ze,zr,_s,vt],styles:[`:root{--evu-top-navigation-dropdown-profile: var(--evu-text);--evu-top-navigation-dropdown-profile-hover: var(--evu-primary);--evu-top-navigation-dropdown-profile-width: 350px}.last-update{white-space:normal}.cdk-overlay-container{z-index:2052!important}.active-or-hovered{transition:var(--evu-btn-transition);color:var(--evu-top-navigation-dropdown-link-hover)}.evu-profil-dropdown{padding:0}
3.evu-profil-dropdown span.dropdownMenuSpan{display:inline-block;height:100%;text-align:center;align-content:center}.evu-profil-dropdown span.dropdownMenuSpan>repower-icon>i{cursor:pointer}.evu-profil-dropdown button{display:none}.evu-profil-dropdown>div>ul{max-height:calc(100vh - var(--evu-header-height) - var(--evu-spacing-lg));overflow-x:hidden;overflow-y:auto}.evu-profil-dropdown>div>ul>.dropdown-link,.evu-profil-dropdown>div>ul>enb-profil-drop-down-link>li>a{color:var(--evu-top-navigation-dropdown-link)}.evu-profil-dropdown>div>ul>.dropdown-link:hover,.evu-profil-dropdown>div>ul>enb-profil-drop-down-link>li>a:hover{color:var(--evu-top-navigation-dropdown-link-hover)}.evu-profil-dropdown>div>ul>.dropdown-link:active,.evu-profil-dropdown>div>ul>enb-profil-drop-down-link>li>a:active{color:var(--evu-top-navigation-dropdown-link-active)}.evu-profil-dropdown>div>ul{color:var(--evu-top-navigation-dropdown-link)}.evu-profil-dropdown{display:inline-block;position:relative}.evu-profil-dropdown button{border:none;background-color:transparent;font-size:1rem;display:inline-block}.evu-profil-dropdown>div{display:block;position:absolute;background-color:var(--evu-top-navigation-dropdown-bg);width:var(--evu-top-navigation-dropdown-profile-width);box-shadow:0 8px 16px #0003;z-index:10001;right:0;border-radius:var(--evu-top-navigation-dropdown-border-radius)}.evu-profil-dropdown>div>ul{min-width:160px;text-align:left;list-style:none;padding:var(--evu-spacing-xl);margin:0}.evu-profil-dropdown>div>ul>enb-profil-drop-down-link>li>a:hover{text-decoration:none!important}.evu-profil-dropdown>div>ul>enb-profil-drop-down-link>li>a{padding:.5rem 0;width:100%;display:inline-flex;clear:both;font-weight:400;text-align:inherit;white-space:nowrap;cursor:pointer}.evu-profil-dropdown>div>ul>enb-profil-drop-down-link>li>a>repower-icon.nomargin{color:var(--evu-top-navigation-dropdown-profile);margin-left:0}.evu-profil-dropdown>div>ul>.header{padding:0}.evu-profil-dropdown>div>ul>.header>.clickable,.evu-profil-dropdown>div>ul>.header>a{padding:0;cursor:pointer}.evu-profil-dropdown>div>ul>.header>.clickable>span,.evu-profil-dropdown>div>ul>.header>a>span{display:table-cell;vertical-align:middle}.evu-profil-dropdown>div>ul>.header>.clickable:hover,.evu-profil-dropdown>div>ul>.header>a:hover{transition:var(--evu-btn-transition);color:var(--evu-top-navigation-dropdown-profile-hover);text-decoration:none!important}.evu-profil-dropdown>div>ul>.header>.clickable:hover i.bicon:before,.evu-profil-dropdown>div>ul>.header>a:hover i.bicon:before{transition:var(--evu-btn-transition);color:var(--evu-top-navigation-dropdown-profile-hover)}.evu-profil-dropdown .seperator{padding:0}.evu-profil-dropdown .seperator>hr{margin:0}.evu-profil-dropdown repower-icon{position:relative}.evu-profil-dropdown .nopadding{padding:0}.ng-clear-wrapper{height:17px;bottom:.5px;padding-left:5px}.enb-profile-drop-down{overflow-y:auto}.enb-profile-drop-down.mobile{position:fixed;top:calc(var(--evu-header-height) + var(--evu-safe-area-inset-top));left:0;right:0;bottom:0;background-color:var(--evu-primary-bg, #000);z-index:50;width:100vw;border:none;border-radius:0}:host hr{height:1px;background-color:var(--evu-border-weak)}.enb-profile-drop-down-header{min-width:0}.enb-profile-drop-down-name{font-size:var(--evu-fontsize-lg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.enb-profile-drop-down-email{color:var(--evu-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.profile-link{min-width:0}.theme-switcher{margin-top:var(--evu-spacing-lg);flex-wrap:nowrap;display:flex;align-items:center;justify-content:space-between} 4`],encapsulation:2})}}return n})();var Kl=(n,t)=>t.id;function Gl(n,t){if(n&1&&(u(0,"span",3),b(1),m()),n&2){let e=h();p(),j(" ",e.unreadNotifications().length>9?"":e.unreadNotifications().length," ")}}function Wl(n,t){if(n&1&&(u(0,"div",5),qe(1,7),m()),n&2){h(2);let e=$e(6);p(),g("ngTemplateOutlet",e)}}function ql(n,t){if(n&1){let e=ee();u(0,"div",8),I("clickOutside",function(){E(e);let o=h(2);return x(o.closeMenu())}),qe(1,7),m()}if(n&2){h(2);let e=$e(6);p(),g("ngTemplateOutlet",e)}}function $l(n,t){if(n&1&&C(0,Wl,2,1,"div",5)(1,ql,2,1,"div",6),n&2){let e=h();D(e.isTabletOrSmaller()?0:1)}}function Ql(n,t){n&1&&w(0,"hr")}function Xl(n,t){if(n&1){let e=ee();u(0,"div",11),I("click",function(){let o=E(e).$implicit,r=h(3);return x(r.navigateToNotification(o))}),u(1,"div",12),b(2),m(),u(3,"div",13),w(4,"repower-icon",14),b(5),F(6,"date"),m()(),C(7,Ql,1,0,"hr")}if(n&2){let e=t.$implicit,i=t.$index,o=t.$count;p(),se("unread",!(e.readed??!1)),p(),j(" ",e.title," "),p(2),g("bicon",!0)("fontSize",12),p(),j(" ",jo(6,7,e.executionDate,"dd.MM.yyyy HH:mm")," "),p(2),D(i!==o-1?7:-1)}}function Yl(n,t){if(n&1&&ii(0,Xl,8,10,null,null,Kl),n&2){let e=h(2);ni(e.notifications().slice(0,3))}}function Jl(n,t){n&1&&(b(0),F(1,"enbtranslate")),n&2&&j(" ",L(1,1,"component.notificationDropDown.noNotifications")," ")}function Zl(n,t){if(n&1){let e=ee();u(0,"div",9)(1,"span"),b(2),F(3,"enbtranslate"),m(),w(4,"hr"),m(),C(5,Yl,2,0)(6,Jl,2,3),u(7,"button",10),I("click",function(){E(e);let o=h();return x(o.navigateToNotification())}),b(8),F(9,"enbtranslate"),m()}if(n&2){let e=h();p(2),ue(L(3,3,"components.settings.notifications")),p(3),D(e.notifications().length>0?5:6),p(3),j(" ",L(9,5,"component.notificationDropDown.showAll")," ")}}var Cs=(()=>{class n{constructor(){this.resizeService=c(ze),this.personalDataService=c(Ai),this.notificationEventService=c(rr),this.activityService=c(nr),this.translationService=c(He),this.route=c(_e),this.tenantSubscriptionsService=c(Ue),this.tenantNameService=c(Me),this.userSelectionService=c(me),this.authService=c(ye),this.pageService=c(re),this.isTabletOrSmaller=this.resizeService.isTabletOrSmaller,this.notifications=K([]),this.unreadNotifications=G(()=>this.notifications().filter(r=>!(r.readed??!1))),this.dropDownKey="NotificationDropdown",this.ddActive=G(()=>{let r=this.pageService.dropdown();return isSome(r)&&r.value===this.dropDownKey});let e=this.tenantSubscriptionsService.getSetting(we.NotificationPushEnabled,this.tenantNameService.tenant()),i=this.tenantSubscriptionsService.getSetting(we.CustomerServiceEnabled,this.tenantNameService.tenant()),o=this.personalDataService.PersonalDataModel$??Nt(null);ko([e,i,o]).pipe(gt(([r,s,a])=>{let l=(a?.hasMobileApp??!1)&&r,d=a?.idSubjekt??-1;return l?this.notificationEventService.getPagedUserNotificationEvents({subjektId:d,skip:0,take:50,sortProperty:"executionDate",sortDirection:"DESC"}).pipe(H(f=>({notifications:f.notificationEvents??[],customerServiceEnabled:s}))):Nt({notifications:[],customerServiceEnabled:s})})).subscribe(({notifications:r,customerServiceEnabled:s})=>{this.loadActivitiesAndMerge(r,s)})}loadActivitiesAndMerge(e,i=!0){let o=this.userSelectionService.tryGetSubjektId();if(isNone(o)||!i||!this.authService.isLoggedIn()){this.notifications.set(e);return}this.activityService.getBySubjektId({subjektId:o.value}).subscribe({next:r=>
4{let s=(r??[]).map(l=>{let f=this.translationService.translate()("components.activities."+l.activityKind)+(l.title&&l.title.length>0?" - "+l.title:"");return{id:l.id??0,title:f,executionDate:l.createdDate??new Date().toISOString(),readed:!l.isActive,isActivity:!0}}),a=[...e,...s].sort((l,d)=>{let f=l.executionDate?new Date(l.executionDate).getTime():0;return(d.executionDate?new Date(d.executionDate).getTime():0)-f});this.notifications.set(a)},error:()=>{this.notifications.set(e)}})}closeMenu(){this.pageService.closeDropdown(this.dropDownKey)}navigateToNotification(e){if(e?.isActivity){this.route.navigate(["/personal-data/notifications"]),this.closeMenu();return}let i=e?.title??"",o=i.length>0?{search:encodeURIComponent(i)}:{};this.route.navigate(["/personal-data/notifications"],{queryParams:o}),this.closeMenu()}toggleDD(e){this.pageService.toggleDropdown(this.dropDownKey),e.stopPropagation(),e.preventDefault()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-notification-drop-down"]],decls:7,vars:6,consts:[["dropdown",""],[1,"notification-dropdown","d-flex"],[1,"dropdownMenuSpan",3,"click"],[1,"badge","badge-pill","text-center","align-content-center"],["name","bell",1,"dropdown-circle","lCircle",3,"bicon"],[1,"notification-dropdown-content","tablet"],["enbClickOutside","",1,"notification-dropdown-content"],[3,"ngTemplateOutlet"],["enbClickOutside","",1,"notification-dropdown-content",3,"clickOutside"],[1,"mb-2","header"],[1,"btn","btn-primary","mt-3",3,"click"],["role","button",3,"click"],[1,"title","mb-1"],[1,"date"],["name","history",1,"m-0","me-1",3,"bicon","fontSize"]],template:function(i,o){i&1&&(u(0,"div",1)(1,"span",2),I("click",function(s){return o.toggleDD(s)}),C(2,Gl,2,1,"span",3),w(3,"repower-icon",4),m(),C(4,$l,2,1),m(),xe(5,Zl,10,7,"ng-template",null,0,je)),i&2&&(p(),se("dd-open",o.ddActive()),p(),D(o.unreadNotifications().length>0?2:-1),p(),g("bicon",!0),oe("active",o.ddActive()),p(),D(o.ddActive()?4:-1))},dependencies:[Et,Ze,Qe,vt,Ce,di],styles:[`:export{maxSmallSize:576px;maxMobileSize:768px;maxTabletSize:992px;maxLaptopSize:1400px}:root{--evu-top-navigation-notification-dropdown-icon: var(--evu-text);--evu-top-navigation-notification-dropdown-icon-hover: var(--evu-primary);--evu-top-navigation-notification-dropdown-bg: var(--evu-primary-bg);--evu-top-navigation-notification-dropdown-border-radius: var( --evu-border-radius );--evu-top-navigation-notification-dropdown-link-hover: var(--evu-primary)}.notification-dropdown-content{display:flex;flex-direction:column;padding:var(--evu-spacing-2xl);width:400px;max-height:500px;overflow-y:auto}.notification-dropdown-content div>.title.unread{font-weight:700}.notification-dropdown-content div>.date{color:var(--evu-text-muted);font-size:var(--evu-fontsize-sm)}.notification-dropdown-content div.header>span{font-weight:700;font-size:var(--evu-fontsize-lg)}.notification-dropdown-content hr{height:1px;background-color:var(--evu-border-strong)}.notification-dropdown-content.tablet{position:fixed;top:calc(var(--evu-header-height) + var(--evu-safe-area-inset-top));left:0;right:0;bottom:0;background-color:var(--evu-primary-bg, #000);z-index:50;overflow-y:auto;width:100vw;border-top:none;max-height:none;border-radius:0}.notification-dropdown{height:60px;padding:0}.notification-dropdown span.dropdownMenuSpan{text-align:center;align-content:center;display:inline-block;height:100%}.notification-dropdown>div>ul{max-height:calc(100vh - 100px);overflow-x:hidden;overflow-y:auto}.notification-dropdown{display:inline-block;position:relative;cursor:pointer}.notification-dropdown>button{border:none;background-color:transparent;font-size:1rem;display:inline-block}.notification-dropdown>div{position:absolute;background-color:var(--evu-top-navigation-notification-dropdown-bg);min-width:160px;box-shadow:0 8px 16px #0003;z-index:10001;top:3rem;right:0;border-radius:var(--evu-top-navigation-notification-dropdown-border-radius)}.notification-dropdown .dd-open{transition:var(--evu-btn-transition)}.notification-dropdown .dd-open>repower-icon>i>
4svg{fill:var(--icons-fill)!important}.notification-dropdown .dd-open>repower-icon>i>svg>use{fill:var(--icons-fill)!important}.notification-dropdown .dropdownMenuSpan{position:relative;display:inline-flex;align-items:center;justify-content:center}.notification-dropdown .dropdownMenuSpan .badge{position:absolute;top:0;right:0;transform:translate(40%,10%);padding:.25em .5em;font-size:var(--evu-fontsize-sm);line-height:1;border-radius:50%;background-color:var(--evu-secondary);color:#fff;z-index:2000;min-width:16px;min-height:16px}@media screen and (max-width:576px){.notification-dropdown .dropdownMenuSpan .badge{transform:translate(10%,30%)}} 5`],encapsulation:2})}}return n})();var Ms=Ja(Za(),1);var Ds=(()=>{class n{constructor(){this.measuringConsumptionGroupSelectionService=c(Mr),this.invoiceConsumptionGroupSelectionService=c(Pr),this.objektSelectionService=c(Tt),this.typesSelectionService=c(Tr),this.pageService=c(re),this.menuItemService=c(Mi),this.submenus=[],this.showSwitchTabs=!1,this.doUpdate=!1,Ve(this.menuItemService.menuLoaded).subscribe(e=>{e&&this.doUpdate&&(this.doUpdate=!1,this.initSubmenu())}),this.objektSelectionService.objektIdsChanged.subscribe(()=>{this.menuItemService.menuLoaded()?this.initSubmenu():this.doUpdate=!0}),this.measuringConsumptionGroupSelectionService.groupsChanged.subscribe(()=>{this.menuItemService.menuLoaded()?this.initSubmenu():this.doUpdate=!0}),this.invoiceConsumptionGroupSelectionService.groupsChanged.subscribe(()=>{this.menuItemService.menuLoaded()?this.initSubmenu():this.doUpdate=!0})}createMenu(e,i,o){return[o,{id:e,icon:mkNone(),badge:mkNone(),variant:wt.MenuVariant.Link,label:i,path:o,exact:!0}]}initSubmenu(){if(!this.typesSelectionService.showSwitchTabs())return;this.submenus=[];let e=this.createMenu("invoice","repowerWebpartConsumption.source.invoice","/consumptions"),i=this.createMenu("measuringData","repowerWebpartConsumption.source.measuringData","/consumptions/data");this.submenus.push(e),this.submenus.push(i);let o=new Map(this.submenus),r={underline:wt.MenuUnderlined.Full,submenuEntries:o};this.pageService.setSubmenuEntries("/consumptions",r)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ts=(()=>{class n{constructor(){this.pageService=c(re)}initFilter(){this.pageService.addFilter("/invoices",at.Invoices)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ks=(()=>{class n{constructor(){this.pageService=c(re)}initFilter(){this.pageService.addFilter("/consumptions",at.Consumption),this.pageService.addFilter("/consumptions/data",at.Consumption)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Es=(()=>{class n{constructor(){this.pageService=c(re)}initFilter(){this.pageService.addFilter("/admin/stats",at.StatsPage)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var xs=(()=>{class n{constructor(){this.router=c(_e),this.dynamicTariffFetchService=c(ns),this.tenantSubscriptionsService=c(Ue),this.pageService=c(re),this.destroyed=c(ei),this.currentTariffObs=Ve(this.dynamicTariffFetchService.currentTariff),this.subscriptionsObs=Ve(this.tenantSubscriptionsService.subscriptions),this.selectedTab=K(mkNone()),this.paths=[],this.submenus=[],this.menuClick=new Ao}initSubmenu(){let e=()=>{if(!this.tenantSubscriptionsService.subscriptions().DynamicTariff)return;let o=this.dynamicTariffFetchService.currentTariff(),r=optMatch(o,{onSome:()=>[kt.Overview,kt.Simulation,kt.TimePlan],onNone:()=>[]});this.paths=r,this.updateMenu()};this.currentTariffObs.pipe(Rt(this.destroyed)).subscribe(e),this.subscriptionsObs.pipe(Rt(this.destroyed)).subscribe(e)}updateMenu(){this.submenus=[],this.paths.forEach(o=>{let r=this.createMenuItem(o);this.submenus.push(r)});let e=new Map(this.submenus),i={underline:wt.MenuUnderlined.Full,submenuEntries:e};this.pageService.setSubmenuEntries(kt.Overview,i)}createMenuItem(e){return[e,{id:e,icon:mkNone(),badge:mkNone(),label:"components.dynamic-tarif."+kt.toComponentName(e),variant:wt.MenuVariant.Button,click:i=>{this.router.navigate([i]),this.menuClick.emit(e)},value:e}]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ui=(()=>{class n{constructor(){this.resizeService=c(ze),this.translationAPIservervice=c(ar),this.userSelectionService=c(me),this.liveDataService=c(Ii),this.objectSelectionService=c(Tt),this.menuService=c(Mi),this.matomoService=c(Br),this.personalDataService=c(Ai),this.colorThemeConfigService=c(xr),this.tenantSubscriptionsService=c(Ue),this.tenantNameService=c(Me),this.tenantSelectionService=c(Or),this.energyboardConfigService=c(st),this.adminSettingsSubmenuService=c(as),this.efficiencySubmenuService=c(Hr),this.dynamicTarifSubmenuService=c(xs),this.consumptionSubmenuService=c(Ds),this.personalDataSubmenuService=c(Zr),this.invoicesFilterService=c(Ts),this.consumptionFilterService=c(ks),this.statsPageFilterService=c(Es),this.personalDataFilterService=c(es),this.destroyedRef=c(ei),this.environment=c("environmentEnergyboard"),this.router=c(_e),this.themeService=c(vi),this.translationService=c(He),this.layoutConfigService=c(xi),this.storageService=c(_i),this.tenantCssService=c(Ke),this.authService=c(ye),this.repowerConfigService=c(_t),this.currentRouteService=c(jr),this.menu=new Qt([]),this.menuItems=[],this.showedMenuItems=[],this.subjektChanged=!1,this.currentRoute=this.currentRouteService.currentRoute,this.ignoreMenuItems=G(()=>{let e=this.energyboardConfigService.config().ignoreRoutes??[];return e.length>0?e:this.layoutConfigService.layoutConfig()?.ignoreRoutes}),this.isLoggedIn=G(()=>this.authService.loggedIn()),this.logoSRC="",this.isMobile=this.resizeService.isMobile,this.isTabletOrSmaller=this.resizeService.isTabletOrSmaller,this.logoWidth=145,this.loaded=K(!1),this.didSub
5scribe=!1,this.liveDataSubcription=void 0,this.hasMobileApp=K(!1),this.customerServiceEnabled=G(()=>this.tenantSubscriptionsService.subscriptions().CustomerServiceEnabled),this.pushNotificationsEnabled=G(()=>this.tenantSubscriptionsService.subscriptions().NotificationPushEnabled)}initServiceHookups(){Ve(this.tenantCssService.tenantCss).subscribe(e=>{this.tenantCssService.setTheme(e)}),this.repowerConfigService.configChanged.subscribe(()=>{this.layoutConfigService.setEnbLayout()}),this.repowerConfigService.languageChanged.subscribe(()=>{this.onLanguageChanged()}),this.userSelectionService.doLogout.subscribe(()=>{this.onLogout()}),this.userSelectionService.subjektIdChanged.subscribe(()=>{this.triggerMenuUpdate(),this.subjektChanged=!0}),this.objectSelectionService.objektIdsChanged.subscribe(()=>{this.triggerMenuUpdate(),this.subjektChanged=!1}),Ve(this.menuService.menuLoaded).subscribe(e=>{e&&this.authService.isLoggedIn()&&(this.repowerConfigService.initSubmenuServices([this.adminSettingsSubmenuService,this.efficiencySubmenuService,this.dynamicTarifSubmenuService,this.consumptionSubmenuService,this.personalDataSubmenuService]),this.repowerConfigService.initFilterServices([this.invoicesFilterService,this.consumptionFilterService,this.statsPageFilterService,this.personalDataFilterService]))}),this.tenantCssService.initListeners()}triggerMenuUpdate(){this.repowerConfigService.config=this.menuService.load(this.ignoreMenuItems()),this.repowerConfigService.configChanged.emit()}initContent(){this.changeToSuperTenant(this.router.url),this.router.events.pipe(Rt(this.destroyedRef)).subscribe(i=>this.onRouteChange(i)),this.initHTMLContent();let e=this.tenantCssService.tenantCss();this.tenantCssService.setTheme(e)}initHTMLContent(){this.isMobile()&&(this.logoWidth=100),Ms.default.locale("de"),this.colorThemeConfigService.colorThemeConfig.subscribe(e=>{e&&this.loaded.set(!0)}),this.translationService.reloadTranslations(),this.authService.loggedIn$.subscribe(e=>{this.tenantSubscriptionsService.refreshSubscriptions().pipe(ft(()=>{this.triggerMenuUpdate(),this.triggerSettingsUpdate(),e&&this.personalDataService.initData()})).subscribe()}),this.repowerConfigService.config&&(this.repowerConfigService.config.application="Customer Portal")}triggerSettingsUpdate(){this.isLoggedIn()&&this.personalDataService.PersonalDataModel$?.subscribe(e=>this.hasMobileApp.set(e?.hasMobileApp??!1))}mapMenuItem(e){return{path:e.path,id:e.id,icon:e.icon,isBootstrap:e.isBootstrap,label:e.label,fullscreen:e.fullscreen||!1,accessId:"",hidden:e.hidden}}onLogout(){Ni.allDetails.forEach(e=>this.liveDataService.closeConnection(e)),this.userSelectionService.signout()}hasSubjectId(){let e=this.userSelectionService.tryGetSubjektId();return isSome(e)}onLanguageChanged(){let e=this.tenantNameService.tenantOrDefaultForTranslations(),i=this.userSelectionService.tryGetSubjektId();if(isNone(i)){this.translationService.reloadTranslations();return}let o={subjectId:`${i.value}`,languageCode:this.repowerConfigService.currentLanguage(),tenantId:e};this.translationAPIservervice.setCurrentLanguage(o).subscribe(()=>{this.translationService.reloadTranslations()})}onRouteChange(e){if(e instanceof Zo){let i=e.url;(i===""||i==="/")&&(i="/"),this.currentRoute.set(i)}e instanceof er&&(this.matomoService.sendEvent(),this.changeToSuperTenant(e.url))}changeToSuperTenant(e){if(this.environment.superTenantOnlyRoutes.has(e)){let i=this.tenantNameService.getTenant();te.hasSuperTenant(i)&&this.tenantSelectionService.setTenant(Rr.defaultOptions,te.getSuperTenantOrSelf(i))}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ps=wi("EdgeToEdge",{});var As=(()=>{class n{constructor(){this.tenantCssService=c(Ke),this.isInitialized=!1,this.isDarkMode=G(()=>{let e=this.tenantCssService.variant();return e===Y.Dark?!0:e===Y.Light?!1:e===Y.System?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches:!1})}initializeStatusBar(){return ne(this,null,function*(){if(this.isInitialized)return;this.setupThemeEffect();let e=An.getPlatform();e==="ios"?yield this.setupIOSStatusBar():e==="android"&&(yield this.setupAndroidStatusBar()),this.isInitialized=!0})}setupThemeEffect(){ot(()=>ne(this,null,function*(){let e=this.tenantCssService.tenantCss();An.getPlatform()==="android"&&e&&(yield this.setupAndroidStatusBar())}))}setupIOSStatusBar(){return ne(this,null,function*(){document.body.classList.add("ios-safe-area-styled")})}setupAndroidStatusBar(){return ne(this,null,function*(){let e=this.isDarkMode(),i;e?(i="#000000",yield Nn.setStyle({style:In.Dark})):(i="#ffffff",yield Nn.setStyle({style:In.Light}));let o=this.getCSSVariable("--evu-primary-bg"),r=o&&o.length>0&&o!=="#ffffff"&&o!=="#000000"?o:i;
5yield Ps.setBackgroundColor({color:r})})}getCSSVariable(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Hi=wi("SplashScreen",{web:()=>import("./chunk-GS7QQ37J.js").then(n=>new n.SplashScreenWeb)});var Is=(()=>{class n{showSplashscreen(e){return ne(this,null,function*(){e?yield Hi.show({showDuration:e,autoHide:!0}):yield Hi.show()})}hideSplashscreen(){return ne(this,null,function*(){yield Hi.hide()})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ns=(()=>{class n{constructor(){this.document=c(Zt)}initialize(){this.setEvuViewportHeight(),Eo(window,"resize").subscribe(()=>this.setEvuViewportHeight())}setEvuViewportHeight(){let e=window.innerHeight*.01;this.document.documentElement.style.setProperty("--evu-viewport-height",`${e}px`)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Un={[te.EVULUTION]:{iosStoreId:"1599699537",androidAppId:"com.evulution.energyboard.evulution"},[te.ARBON]:{iosStoreId:"1599714217",androidAppId:"com.evulution.energyboard.arbon"},[te.EKS]:{iosStoreId:"6746044207",androidAppId:"com.evulution.energyboard.eks"},[te.EVB]:{iosStoreId:"6451201913",androidAppId:"com.evulution.energyboard.evb"},[te.EWA]:{iosStoreId:"1599714367",androidAppId:"com.evulution.energyboard.ewa"},[te.EWH]:{iosStoreId:"6470380189",androidAppId:"com.evulution.energyboard.ewh"},[te.EWJR]:{iosStoreId:"6744863299",androidAppId:"com.evulution.energyboard.ewjr"},[te.EWN]:{iosStoreId:"6463010161",androidAppId:"com.evulution.energyboard.ewn"},[te.EWS]:{iosStoreId:"6746044354",androidAppId:"com.evulution.energyboard.ews"},[te.HERRLI]:{iosStoreId:"6744921060",androidAppId:"com.evulution.energyboard.herrli"},[te.HORN]:{iosStoreId:"6445884578",androidAppId:"com.evulution.energyboard.horn"},[te.SAF]:{iosStoreId:"6511243734",androidAppId:"com.evulution.energyboard.saf"},[te.TBR]:{iosStoreId:"6447607484",androidAppId:"com.evulution.energyboard.rorschach.tbr"}};var Os=(()=>{class n{constructor(){this.tenantNameService=c(Me),this.baseIosLink="https://apps.apple.com/app/id",this.baseAndroidLink="https://play.google.com/store/apps/details?id=",this.iosLink=G(()=>{let e=Un[this.tenantNameService.tenant()];return e?.iosStoreId?`${this.baseIosLink}${e.iosStoreId}`:null}),this.androidLink=G(()=>{let e=Un[this.tenantNameService.tenant()];return e?.androidAppId?`${this.baseAndroidLink}${e.androidAppId}`:null}),this.isAvailable=G(()=>this.iosLink()!==null||this.androidLink()!==null)}getAppStoreLinks(){return{ios:this.iosLink(),android:this.androidLink()}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function ec(n,t){n&1&&(u(0,"div",0),w(1,"evu-spinner"),u(2,"span",1),b(3),F(4,"enbtranslate"),m()()),n&2&&(p(3),j(" ",L(4,1,"components.welcomemessage.isrefreshing")," "))}var Rs=(()=>{class n{constructor(){this.userSelectionService=c(me),this.isUpdating=this.userSelectionService.isUpdating}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-customer-import"]],decls:1,vars:1,consts:[[1,"flex-row-vcenter","gap-lg"],[1,"customer-import-text"]],template:function(i,o){i&1&&C(0,ec,5,3,"div",0),i&2&&D(o.isUpdating()?0:-1)},dependencies:[ur,Ce],styles:["[_ngcontent-%COMP%]:export{maxSmallSize:576px;maxMobileSize:768px;maxTabletSize:992px;maxLaptopSize:1400px}.customer-import-text[_ngcontent-%COMP%]{color:var(--evu-bad)}@media screen and (max-width:768px){.customer-import-text[_ngcontent-%COMP%]{display:none}}"]})}}return n})();var tc=["app_download_info_modal"];function ic(n,t){n&1&&(u(0,"div",1)(1,"div",2),w(2,"img",3),u(3,"h1",4),b(4," Seite derzeit nicht verf\xFCgbar "),m(),u(5,"p",5),b(6," Wir k\xF6nnen diese Seite im Moment nicht anzeigen. Dies kann an Wartungsarbeiten oder einer unterbrochenen Internetverbindung liegen. "),m(),u(7,"p",6),b(8," Bitte \xFCberpr\xFCfen Sie Ihre Internetverbindung oder versuchen Sie es in K\xFCrze erneut. "),m(),u(9,"p"),b(10,"Vielen Dank f\xFCr Ihr Verst\xE4ndnis!"),m()()())}function nc(n,t){n&1&&(u(0,"div"),w(1,"enb-loading-spinner"),m())}function oc(n,t){if(n&1){let e=ee();u(0,"evu-group-switch",16),ce("modelChange",function(o){E(e);let r=h(3);return le(r.themeSwitcherModel,o)||(r.themeSwitcherModel=o),x(o)}),I("selected",function(o){E(e);let r=h(3);return x(r.switchTheme(o))}),m()}if(n&2){let e=h(3);se("switch-button-active",e.tenantCssService.variant()===e.ThemeVariant.Dark),ae("model",e.themeSwitcherModel)}}function rc(n,t){n&1&&w(0,"enb-dev-drop-down")}function sc(n,t){n&1&&w(0,"enb-notification-drop-down")}function ac(n,t){n&1&&w(0,"enb-profil-drop-down-button")}function lc(n,t){if(n&1&&(C(0,sc,1,0,"enb-notification-drop-down"),C(1,ac,1,0,"enb-profil-drop-down-button")),n&2){let e=h(3);D(e.isSome(e.subjectId())&&(e.pushNotificationsEnabled()&&e.hasMobileApp()||e.customerServiceEnabled())?0:-1),p(),D(e.isMobile()?-1:1)}}function cc(n,t){if(n&1&&(u(0,"div",14),w(1,"enb-filters",17),m()),n&2){h();let e=ai(9);p(),g("page",e.value)}}function dc(n,t){if(n&1&&(u(0,"evulution-app",7)(1,"top-navigation",8)(2,"div",9),w(3,"enb-customer-import"),m(),u(4,"div",10),C(5,oc,1,3,"evu-group-switch",11),m(),u(6,"div",12),C(7,rc,1,0,"enb-dev-drop-down"),C(8,lc,2,2),m()(),
5kn(9),u(10,"evulution-layout",13),C(11,cc,2,1,"div",14),u(12,"div",15),w(13,"router-outlet"),m()()()),n&2){let e=h(2);g("iconConfig",e.iconConfig),p(),g("logoRoutes",e.logoRoutes),p(4),D(e.layoutConfigService.isDarkThemeAllowed()&&!e.isMobile()?5:-1),p(2),D(e.isDev?7:-1),p(),D(e.isLoggedIn()?8:-1),p();let i=si(e.pageService.filter());p(),g("showFilter",e.isSome(i)),p(),D(e.isSome(i)?11:-1)}}function pc(n,t){if(n&1&&C(0,nc,2,0,"div")(1,dc,14,8,"evulution-app",7),n&2){let e=h();D(e.loaded()?1:0)}}function uc(n,t){if(n&1&&(u(0,"a",24),w(1,"i",27),u(2,"span",28),b(3,"App Store"),m()()),n&2){h();let e=ai(10);g("href",e,Sn)}}function mc(n,t){if(n&1&&(u(0,"a",24),w(1,"i",29),u(2,"span",28),b(3,"Google Play "),m()()),n&2){h();let e=ai(11);g("href",e,Sn)}}function hc(n,t){if(n&1){let e=ee();u(0,"evu-modal",18)(1,"div",19)(2,"div",20)(3,"p",21),b(4),F(5,"enbtranslate"),m(),u(6,"p",22),b(7),F(8,"enbtranslate"),m()(),u(9,"div",23),kn(10)(11),C(12,uc,4,1,"a",24),C(13,mc,4,1,"a",24),m()(),u(14,"div",25)(15,"button",26),I("click",function(){E(e);let o=h();return x(o.disableAppInfoMessage())}),b(16),F(17,"enbtranslate"),m()()()}if(n&2){let e=h();
5g("showFooter",!0),p(4),j(" ",L(5,6,"mobileApp.appStoreDownloadInfo.text1")," "),p(3),j(" ",L(8,8,"mobileApp.appStoreDownloadInfo.text2")," "),p(3);let i=si(e.appStoreLinksService.getAppStoreLinks().ios);p();let o=si(e.appStoreLinksService.getAppStoreLinks().android);p(),D(i&&e.webBrowserOS===e.MobileOS.IOS?12:-1),p(),D(o&&e.webBrowserOS===e.MobileOS.Android?13:-1),p(3),j(" ",L(17,12,"mobileApp.appStoreDownloadInfo.doNotShowAgain")," ")}}var Fs=(()=>{class n extends Ui{updateFooter(){this.hideContact=this.repowerConfigService.config.hideContact,this.hideFAQ=this.repowerConfigService.config.hideFAQ}constructor(){super(),this.appStatusService=c(Si),this.ebUserSelectionService=c(me),this.platformService=c(Ci),this.nativePlatformService=c(qr),this.nativeStatusbarService=c(As),this.nativeSplashscreenService=c(Is),this.titleService=c(Jo),this.faviconService=c(Nr),this.modalService=c(fi),this.notificationIntentHandler=c(Wr),this.appStoreLinksService=c(Os),this.pageService=c(re),this.router=c(_e),this.tenantCssService=c(Ke),this.viewportService=c(Ns),this.environment=c("environmentEnergyboard"),this.isSome=isSome,this.iconConfig=Dr,this.ThemeVariant=Y,this.MobileOS=wr,this.themeOptions=Y.variants.map(i=>({value:i,icon:Y.toIcon(i),id:i})),this.themeSwitcherModel={selected:this.themeOptions.find(i=>i.value===this.tenantCssService.variant())??this.themeOptions[0],options:this.themeOptions,disabled:!1,id:"themeSwitcher"},this.logoRoutes=new Set(["/login","/dashboard","/admin/dashboard"]),this.currentYear=new Date().getFullYear(),this.hideFAQ=!1,this.hideContact=!1,this.status=!1,this.webBrowserOS=null,this.appInfoMessageDisabled=this.storageService.localSignal("disableAppInfoMessage"),this.showMaintenance=G(()=>this.appStatusService.isApiUnreachable()),this.subjectId=K(mkNone()),this.modalAppDownloadInfo=ci("app_download_info_modal"),this.getInitialConsoleMessage(),ot(()=>{let i=this.translationService.translate()("layout.htmlTitle");this.titleService.setTitle(i)}),this.platformService.isNativePlatform()&&(this.nativeSplashscreenService.showSplashscreen(),this.nativeStatusbarService.initializeStatusBar(),this.nativePlatformService.initializeNativePlatform(),ot(()=>ne(this,null,function*(){this.loaded()&&this.nativeSplashscreenService.hideSplashscreen()}))),this.ebUserSelectionService.subjektIdChanged.subscribe(i=>{this.subjectId.set(mkSome(i))}),this.subjectId.set(this.ebUserSelectionService.tryGetSubjektId());let e=this.environment;this.viewportService.initialize(),this.isDev=e.dev??!1,this.initServiceHookups(),this.repowerConfigService.configChanged.subscribe(()=>{this.updateFooter()}),this.initMatomo(),this.initGoogleTagManagerNoscript(),Ve(this.tenantCssService.variant).subscribe(i=>{let o=this.themeOptions.find(r=>r.value===i);o&&(this.themeSwitcherModel.selected=o)})}ngOnInit(){return ne(this,null,function*(){this.initContent(),this.repowerConfigService.removeFooter.set(!0),this.environment.devMultiTenant&&(yield this.themeService.initCustomThemes());let e=this.platformService.isNativePlatform(),i=this.platformService.isWeb();if(this.repowerConfigService.setConfig({isNative:e}),this.faviconService.reloadFavicon(),e&&this.notificationIntentHandler.initialize(),i&&this.appStoreLinksService.isAvailable()&&(this.webBrowserOS=yield this.platformService.getMobileWebBrowserOS(),this.webBrowserOS!==null)){if(this.appInfoMessageDisabled()===!0)return;let r=this.modalAppDownloadInfo();r&&this.showAppDownloadInfoMessage(r)}})}switchTheme(e){this.tenantCssService.setThemeExplicitly({variant:e,isDevCustom:!1})}toggleMenu(){this.status=!this.status}logout(){this.onLogout()}initMatomo(){let e=this.environment.production?this.layoutConfigService.layoutConfig()?.matomoProd:this.layoutConfigService.layoutConfig()?.matomoStage;if(!e)return;let i=window._paq=window._paq||[];i.push(["trackPageView"]),i.push(["enableLinkTracking"]),(function(){let o="https://matomo.energyboard.ch/";i.push(["setTrackerUrl",o+"matomo.php"]),i.push(["setSiteId",e]);let r=document,s=r.createElement("script"),a=r.getElementsByTagName("script")[0];s.type="text/javascript",s.async=!0,s.src=o+"matomo.js",a.parentNode?.insertBefore(s,a)})()}disableAppInfoMessage(){this.appInfoMessageDisabled.set(!0),this.modalService.close()}showAppDownloadInfoMessage(e){let i={id:"app-store-download-info-message",header:{title:"mobileAp
5p.appStoreDownloadInfoTitle",icon:mkSome(Ei.Phone),extraButtons:[]},template:e,size:hi.EvuModalSize.Normal,closeCallback:mkNone()};this.modalService.open(i)}initGoogleTagManagerNoscript(){if(!this.layoutConfigService.layoutConfig()?.googleAnalyticsId)return;let e=document.createElement("iframe");e.src=`https://www.googletagmanager.com/ns.html?id=${this.layoutConfigService.layoutConfig()?.googleAnalyticsId}`,e.height="0",e.width="0",e.style.display="none",e.style.visibility="hidden",document.body.appendChild(e)}getInitialConsoleMessage(){console.clear(),console.log(`%c 6 _____ _ _ _ _ %c_ _ 7%c | ___ | | | | | |%c | | _ (_) 8%c | ____|\\ V /| |_| %c| | _ _ _| |_ _ ___ ____ 9%c |_____) \\_/ |____/%c| || | | (_ _) |/ _ \\| _ \\ 10%c %c | || |_| | | |_| | |_| | | | | 11%c %c \\_)____/ \\__)_|\\___/|_| |_| 12`,"color: #CCCCCC; font-weight: bold","color: #00BEAC; font-weight: bold","color: #CCCCCC; font-weight: bold","color: #00BEAC; font-weight: bold","color: #CCCCCC; font-weight: bold","color: #00BEAC; font-weight: bold","color: #CCCCCC; font-weight: bold","color: #00BEAC; font-weight: bold","color: #CCCCCC; font-weight: bold","color: #00BEAC; font-weight: bold","color: #CCCCCC; font-weight: bold","color: #00BEAC; font-weight: bold"),console.log("%cEnergyBoard \u2013 Developer Console","color: #B585BB; font-size: 16px; font-weight: 600;"),console.log(`%cProduct:%c EnergyBoard 13%cVersion:%c v4.2.0 14%cCompany:%c EVUlution AG 15%cWebsite:%c https://www.evulution.com/karriere`,"color: #7FACCB","color: #CCCCCC","color: #7FACCB","color: #CCCCCC","color: #7FACCB","color: #CCCCCC","color: #7FACCB","color: #CCCCCC"),console.log(`%c\xA9 ${new Date().getFullYear()} EVUlution AG \u2013 All rights reserved.`,"color: #5A585A; font-weight: 500")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=Z({type:n,selectors:[["enb-root"]],viewQuery:function(i,o){i&1&&oi(o.modalAppDownloadInfo,tc,5),i&2&&ri()},features:[_n],decls:4,vars:1,consts:[["app_download_info_modal",""],[1,"maintenance-page","d-flex","align-items-center","justify-content-center","vh-100","bg-white"],[1,"text-center","p-4","rounded"],["src","/assets/static/maintenance.png","alt","Seite nicht verf\xFCgbar",1,"img-fluid","mb
15-4"],[1,"display-4","mb-4",2,"color","#159bba"],[1,"lead","mb-3"],[1,"mb-2"],[3,"iconConfig"],["navigation","",3,"logoRoutes"],["custom",""],["toggles","",1,"dropdowns","flex-row-vcenter"],[1,"theme-switcher-slider","ms-2",3,"switch-button-active","model"],["dropdowns","",1,"dropdowns"],["layout","",3,"showFilter"],["filter",""],["screen",""],[1,"theme-switcher-slider","ms-2",3,"modelChange","selected","model"],[3,"page"],[3,"showFooter"],["modal-body","",1,"modal-body"],[1,"description","text-center","mt-3"],[1,"my-4"],[1,"fw-bold","mb-4"],[1,"d-flex","flex-row","gap-3","justify-content-center"],["target","_blank",1,"btn","btn-primary","d-flex","align-items-center",3,"href"],["modal-footer","",1,"modal-footer"],[1,"btn","btn-outline-primary",3,"click"],[1,"bi","bi-apple","fs-1"],[1,"ms-2"],[1,"bi","bi-google-play","fs-2"]],template:function(i,o){i&1&&(C(0,ic,11,0,"div",1)(1,pc,2,1),xe(2,hc,18,14,"ng-template",null,0,je)),i&2&&D(o.showMaintenance()?0:1)},dependencies:[Ar,vr,bs,ws,tr,Cs,gr,fr,gi,Yr,_r,Rs,Ce],styles:[`:export{maxSmallSize:576px;maxMobileSize:768px;maxTabletSize:992px;maxLaptopSize:1400px}.theme-switcher-slider{margin-top:0;--evu-group-switch-size: 26px;--evu-group-switch-option-size: 12px;--evu-group-switch-gap: var(--evu-spacing-lg)}.notifications-alert-container{position:fixed;top:60px;right:20px;max-width:300px;z-index:10000}@media(max-width:576px){.current-user-email{font-size:.8rem}} 16`],encapsulation:2})}}return n})();function Ls(n){return new R(3e3,!1)}function fc(){return new R(3100,!1)}function gc(){return new R(3101,!1)}function vc(n){return new R(3001,!1)}function yc(n){return new R(3003,!1)}function bc(n){return new R(3004,!1)}function Bs(n,t){return new R(3005,!1)}function Vs(){return new R(3006,!1)}function zs(){return new R(3007,!1)}function Us(n,t){return new R(3008,!1)}function Hs(n){return new R(3002,!1)}function Ks(n,t,e,i,o){return new R(3010,!1)}function Gs(){return new R(3011,!1)}function Ws(){return new R(3012,!1)}function qs(){return new R(3200,!1)}function $s(){return new R(3202,!1)}function Qs(){return new R(3013,!1)}function Xs(n){return new R(3014,!1)}function Ys(n){return new R(3015,!1)}function Js(n){return new R(3016,!1)}function Zs(n,t){return new R(3404,!1)}function Sc(n){return new R(3502,!1)}function ea(n){return new R(3503,!1)}function ta(){return new R(3300,!1)}function ia(n){return new R(3504,!1)}function na(n){return new R(3301,!1)}function oa(n,t){return new R(3302,!1)}function ra(n){return new R(3303,!1)}function sa(n,t){return new R(3400,!1)}function aa(n){return new R(3401,!1)}function la(n){return new R(3402,!1)}function ca(n,t){return new R(3505,!1)}function Ye(n){switch(n.length){case 0:return new rt;case 1:return n[0];default:return new mi(n)}}function Wn(n,t,e=new Map,i=new Map){let o=[],r=[],s=-1,a=null;if(t.forEach(l=>{let d=l.get("offset"),f=d==s,v=f&&a||new Map;l.forEach((P,M)=>{let S=M,T=P;if(M!=="offset")switch(S=n.normalizePropertyName(S,o),T){case Ft:T=e.get(M);break;case Ie:T=i.get(M);break;default:T=n.normalizeStyleValue(M,S,T,o);break}v.set(S,T)}),f||r.push(v),a=v,s=d}),o.length)throw Sc(o);return r}function Ki(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Hn(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Hn(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Hn(e,"destroy",n)));break}}function Hn(n,t,e){let i=e.totalTime,o=!!e.disabled,r=Gi(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,i??n.totalTime,o),s=n._data;return s!=null&&(r._data=s),r}function Gi(n,t,e,i,o="",r=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function De(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function qn(n){let t=n.indexOf(":"),e=n.substring(1,t),i=n.slice(t+1);return[e,i]}var _c=typeof document>"u"?null:document.documentElement;function Wi(n){let t=n.parentNode||n.host||null;return t===_c?null:t}function wc(n){return n.substring(1,6)=="ebkit"}var ct=null,js=!1;function da(n){ct||(ct=Cc()||{},js=ct.style?"WebkitAppearance"in ct.style:!1);let t=!0;return ct.style&&!wc(n)&&(t=n in ct.style,!t&&js&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ct.style)),t}function Cc(){return typeof document<"u"?document.body:null}function $n(n,t){for(;t;){if(t===n)return!0;t=Wi(t)}return!1}function Qn(n,t,e){if(e)return Array.from(n.querySelectorAll(t));let i=n.querySelector(t);return i?[i]:[]}var Dc=1e3,Xn="{{",Tc="}}",Yn="ng-enter",qi="ng-leave",zt="ng-trigger",Ut=".ng-trigger",Jn="ng-animating",$i=".ng-animating";function Ge(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Kn(parseFloat(t[1]),t[2])}function Kn(n,t){return t==="s"?n*Dc:n}function Ht(n,t,e){return n.hasOwnProperty("duration")?n:Ec(n,t,e)}var kc=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Ec(n,t,e){let i,o=0,r="";if(typeof n=="string"){let s=n.match(kc);if(s===null)return t.push(Ls(n)),{duration:0,delay:0,easing:""};i=Kn(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(o=Kn(parseFloat(a),s[4]));let l=s[5];l&&(r=l)}else i=n;if(!e){let s=!1,a=t.length;i<0&&(t.push(fc()),s=!0),o<0&&(t.push(gc()),s=!0),s&&t.splice(a,0,Ls(n))}return{duration:i,delay:o,easing:r}}function pa(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function Ne(n,t,e){t.forEach((i,o)=>{let r=Qi(o);e&&!e.has(o)&&e.set(o,n.style[r]),n.style[r]=i})}function et(n,t){t.forEach((e,i)=>{let o=Qi(i);n.style[o]=""})}function Mt(n){return Array.isArray(n)?n.length==1?n[0]:lr(n):n}function ua(n,t,e){let i=t.params||{},o=Zn(n);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(vc(r))})}var Gn=new RegExp(`${Xn}\\s*(.+?)\\s*${Tc}`,"g");function Zn(n){let t=[];if(typeof n=="string"){let e;for(;e=Gn.exec(n);)t.push(e[1]);Gn.lastIndex=0}return t}function Pt(n,t,e){let i=`${n}`,o=i.replace(Gn,(r,s)=>{let a=t[s];return a==null&&(e.push(yc(s)),a=""),a.toString()});
vendor: 50,431 bytes, line 16
16return o==i?n:o}var xc=/-+([a-z0-9])/g;function Qi(n){return n.replace(xc,(...t)=>t[1].toUpperCase())}function ma(n,t){return n===0||t===0}function ha(n,t,e){if(e.size&&t.length){let i=t[0],o=[];if(e.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;r<t.length;r++){let s=t[r];o.forEach(a=>s.set(a,Xi(n,a)))}}return t}function Te(n,t,e){switch(t.type){case N.Trigger:return n.visitTrigger(t,e);case N.State:return n.visitState(t,e);case N.Transition:return n.visitTransition(t,e);case N.Sequence:return n.visitSequence(t,e);case N.Group:return n.visitGroup(t,e);case N.Animate:return n.visitAnimate(t,e);case N.Keyframes:return n.visitKeyframes(t,e);case N.Style:return n.visitStyle(t,e);case N.Reference:return n.visitReference(t,e);case N.AnimateChild:return n.visitAnimateChild(t,e);case N.AnimateRef:return n.visitAnimateRef(t,e);case N.Query:return n.visitQuery(t,e);case N.Stagger:return n.visitStagger(t,e);default:throw bc(t.type)}}function Xi(n,t){return window.getComputedStyle(n)[t]}var vo=(()=>{class n{validateStyleProperty(e){return da(e)}containsElement(e,i){return $n(e,i)}getParentElement(e){return Wi(e)}query(e,i,o){return Qn(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,s,a=[],l){return new rt(o,r)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=A({token:n,factory:n.\u0275fac})}return n})(),pt=class{static NOOP=new vo},ut=class{};var Mc=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"]),tn=class extends ut{normalizePropertyName(t,e){return Qi(t)}normalizeStyleValue(t,e,i,o){let r="",s=i.toString().trim();if(Mc.has(e)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(Bs(t,i))}return s+r}};var nn="*";function Pc(n,t){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>Ac(i,e,t)):e.push(n),e}function Ac(n,t,e){if(n[0]==":"){let l=Ic(n,e);if(typeof l=="function"){t.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(Ys(n)),t;let o=i[1],r=i[2],s=i[3];t.push(fa(o,s));let a=o==nn&&s==nn;r[0]=="<"&&!a&&t.push(fa(s,o))}function Ic(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(Js(n)),"* => *"}}var Yi=new Set(["true","1"]),Ji=new Set(["false","0"]);function fa(n,t){let e=Yi.has(n)||Ji.has(n),i=Yi.has(t)||Ji.has(t);return(o,r)=>{let s=n==nn||n==o,a=t==nn||t==r;return!s&&e&&typeof o=="boolean"&&(s=o?Yi.has(n):Ji.has(n)),!a&&i&&typeof r=="boolean"&&(a=r?Yi.has(t):Ji.has(t)),s&&a}}var Ta=":self",Nc=new RegExp(`s*${Ta}s*,?`,"g");function ka(n,t,e,i){return new ro(n).build(t,e,i)}var ga="",ro=class{_driver;constructor(t){this._driver=t}build(t,e,i){let o=new so(e);return this._resetContextStyleTimingState(o),Te(this,Mt(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector=ga,t.collectedStyles=new Map,t.collectedStyles.set(ga,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,o=e.depCount=0,r=[],s=[];return t.name.charAt(0)=="@"&&e.errors.push(Vs()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==N.State){let l=a,d=l.name;d.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,r.push(this.visitState(l,e))}),l.name=d}else if(a.type==N.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push(zs())}),{type:N.Trigger,name:t.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(i.containsDynamicStyles){let r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Zn(l).forEach(d=>{s.hasOwnProperty(d)||r.add(d)})})}),r.size&&e.errors.push(Us(t.name,[...r.values()]))}return{type:N.State,name:t.name,style:i,options:o?{params:o}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=Te(this,Mt(t.animation),e),o=Pc(t.expr,e.errors);return{type:N.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:dt(t.options)}}visitSequence(t,e){return{type:N.Sequence,steps:t.steps.map(i=>Te(this,i,e)),options:dt(t.options)}}visitGroup(t,e){let i=e.currentTime,o=0,r=t.steps.map(s=>{e.currentTime=i;let a=Te(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:N.Group,steps:r,options:dt(t.options)}}visitAnimate(t,e){let i=Lc(t.timings,e.errors);e.currentAnimateTimings=i;let o,r=t.styles?t.styles:Pn({});if(r.type==N.Keyframes)o=this.visitKeyframes(r,e);else{let s=t.styles,a=!1;if(!s){a=!0;let d={};i.easing&&(d.easing=i.easing),s=Pn(d)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:N.Animate,timings:i,style:o,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)typeof a=="string"?a===Ie?i.push(a):e.errors.push(Hs(a)):i.push(new Map(Object.entries(a)));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Xn)>=0){r=!0;break}}}),{type:N.Style,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let d=e.collectedStyles.get(e.currentQuerySelector),f=d.get(l),v=!0;f&&(r!=o&&r>=f.startTime&&o<=f.endTime&&(e.errors.push(Ks(l,f.startTime,f.endTime,r,o)),v=!1),r=f.startTime),v&&d.set(l,{startTime:r,endTime:o}),e.options&&ua(a,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:N.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Gs()),i;let o=1,r=0,s=[],a=!1,l=!1,d=0,f=t.steps.map(q=>{let $=this._makeStyleAst(q,e),Q=$.offset!=null?$.offset:Fc($.styles),J=0;return Q!=null&&(r++,J=$.offset=Q),l=l||J<0||J>1,a=a||J<d,d=J,s.push(J),$});l&&e.errors.push(Ws()),a&&e.errors.push(qs());let v=t.steps.length,P=0;r>0&&r<v?e.errors.push($s()):r==0&&(P=o/(v-1));let M=v-1,S=e.currentTime,T=e.currentAnimateTimings,U=T.duration;return f.forEach((q,$)=>{let Q=P>0?$==M?1:P*$:s[$],J=Q*U;e.currentTime=S+T.delay+J,T.duration=J,this._validateStyleAst(q,e),q.offset=Q,i.styles.push(q)}),i}visitReference(t,e){return{type:N.Reference,animation:Te(this,Mt(t.animation),e),options:dt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:N.AnimateChild,options:dt(t.options)}}visitAnimateRef(t,e){return{type:N.AnimateRef,animation:this.visitReference(t.animation,e),options:dt(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;let[r,s]=Oc(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,De(e.collectedStyles,e.currentQuerySelector,new Map);let a=Te(this,Mt(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:N.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:dt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(Qs());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Ht(t.timings,e.errors,!0);return{type:N.Stagger,animation:Te(this,Mt(t.animation),e),timings:i,options:null}}};function Oc(n){let t=!!n.split(/\s*,\s*/).find(e=>e==Ta);return t&&(n=n.replace(Nc,"")),n=n.replace(/@\*/g,Ut).replace(/@\w+/g,e=>Ut+"-"+e.slice(1)).replace(/:animating/g,$i),[n,t]}function Rc(n){return n?Ae({},n):null}var so=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(t){this.errors=t}};function Fc(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function Lc(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=Ht(n,t).duration;return eo(r,0,"")}let e=n;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=eo(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=Ht(e,t);return eo(o.duration,o.delay,o.easing)}function dt(n){return n?(n=Ae({},n),n.params&&(n.params=Rc(n.params))):n={},n}function eo(n,t,e){return{duration:n,delay:t,easing:e}}function yo(n,t,e,i,o,r,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}var Gt=class{_map=new Map;get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},jc=1,Bc=":enter",Vc=new RegExp(Bc,"g"),zc=":leave",Uc=new RegExp(zc,"g");function Ea(n,t,e,i,o,r=new Map,s=new Map,a,l,d=[]){return new ao().buildKeyframes(n,t,e,i,o,r,s,a,l,d)}var ao=class{buildKeyframes(t,e,i,o,r,s,a,l,d,f=[]){d=d||new Gt;let v=new lo(t,e,d,o,r,f,[]);v.options=l;let P=l.delay?Ge(l.delay):0;v.currentTimeline.delayNextStep(P),v.currentTimeline.setStyles([s],null,v.errors,l),Te(this,i,v);let M=v.timelines.filter(S=>S.containsAnimation());if(M.length&&a.size){let S;for(let T=M.length-1;T>=0;T--){let U=M[T];if(U.element===e){S=U;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([a],null,v.errors,l)}return M.length?M.map(S=>S.buildKeyframes()):[yo(e,[],[],[],0,P,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let o=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let o of t){let r=o?.delay;if(r){let s=typeof r=="number"?r:Ge(Pt(r,o?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let r=e.currentTimeline.currentTime,s=i.duration!=null?Ge(i.duration):null,a=i.delay!=null?Ge(i.delay):null;return s!==0&&t.forEach(l=>{let d=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,d.duration+d.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),Te(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,o=e,r=t.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==N.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=on);let s=Ge(r.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Te(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],o=e.currentTimeline.currentTime,r=t.options&&t.options.delay?Ge(t.options.delay):0;t.steps.forEach(s=>{let a=e.createSubContext(t.options);r&&a.delayNextStep(r),Te(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,o=e.params?Pt(i,e.params,e.errors):i;return Ht(o,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());let r=t.style;r.type==N.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=o&&o.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{let d=l.offset||0;a.forwardTime(d*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,o=t.options||{},r=o.delay?Ge(o.delay):0;r&&(e.previousNode.type===N.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=on);let s=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((d,f)=>{e.currentQueryIndex=f;let v=e.createSubContext(t.options,d);r&&v.delayNextStep(r),d===e.element&&(l=v.currentTimeline),Te(this,t.animation,v),v.currentTimeline.applyStylesToKeyframe();let P=v.currentTimeline.currentTime;s=Math.max(s,P)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,o=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let f=e.currentTimeline;l&&f.delayNextStep(l);let v=f.currentTime;Te(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=o.currentTime-v+(o.startTime-i.currentTimeline.startTime)}},on={},lo=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=on;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,i,o,r,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.currentTimeline=l||new rn(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,o=this.options;i.duration!=null&&(o.duration=Ge(i.duration)),i.delay!=null&&(o.delay=Ge(i.delay));let r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Pt(r[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return t}createSubContext(t=null,e,i){let o=e||this.element,r=new n(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=on,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let o={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},r=new co(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,o,r,s){let a=[];if(o&&a.push(this.element),t.length>0){t=t.replace(Vc,"."+this._enterClassName),t=t.replace(Uc,"."+this._leaveClassName);let l=i!=1,d=this._driver.query(this.element,t,l);i!==0&&(d=i<0?d.slice(d.length+i,d.length):d.slice(0,i)),a.push(...d)}return!r&&a.length==0&&s.push(Xs(e)),a}},rn=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(t,e,i,o){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new n(this._driver,t,e||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+=jc,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ie),this._currentKeyframe.set(e,Ie);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},s=Hc(t,this._globalTimelineStyles);for(let[a,l]of s){let d=Pt(l,r,i);this._pendingStyles.set(a,d),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ie),this._updateStyle(a,d)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,l)=>{let d=new Map([...this._backFill,...a]);d.forEach((f,v)=>{f===Ft?t.add(v):f===Ie&&e.add(v)}),i||d.set("offset",l/this.duration),o.push(d)});let r=[...t.values()],s=[...e.values()];if(i){let a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return yo(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}},co=class extends rn{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,i,o,r,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],s=i+e,a=e/s,l=new Map(t[0]);l.set("offset",0),r.push(l);let d=new Map(t[0]);d.set("offset",va(a)),r.push(d);let f=t.length-1;for(let v=1;v<=f;v++){let P=new Map(t[v]),M=P.get("offset"),S=e+M*i;P.set("offset",va(S/s)),r.push(P)}i=s,e=0,o="",t=r}return yo(this.element,t,this.preStyleProps,this.postStyleProps,i,e,o,!0)}};function va(n,t=3){let e=Math.pow(10,t-1);return Math.round(n*e)/e}function Hc(n,t){let e=new Map,i;return n.forEach(o=>{if(o==="*"){i??=t.keys();for(let r of i)e.set(r,Ie)}else for(let[r,s]of o)e.set(r,s)}),e}function ya(n,t,e,i,o,r,s,a,l,d,f,v,P){return{type:0,element:n,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:d,postStyleProps:f,totalTime:v,errors:P}}var to={},sn=class{_triggerName;ast;_stateStyles;constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,o){return Kc(this.ast.matchers,t,e,i,o)}buildStyles(t,e,i){let o=this._stateStyles.get("*");return t!==void 0&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(e,i):new Map}build(t,e,i,o,r,s,a,l,d,f){let v=[],P=this.ast.options&&this.ast.options.params||to,M=a&&a.params||to,S=this.buildStyles(i,M,v),T=l&&l.params||to,U=this.buildStyles(o,T,v),q=new Set,$=new Map,Q=new Map,J=o==="void",We={params:xa(T,P),delay:this.ast.options?.delay},Re=f?[]:Ea(t,e,this.ast.animation,r,s,S,U,We,d,v),fe=0;return Re.forEach(be=>{fe=Math.max(be.duration+be.delay,fe)}),v.length?ya(e,this._triggerName,i,o,J,S,U,[],[],$,Q,fe,v):(Re.forEach(be=>{let tt=be.element,mt=De($,tt,new Set);be.preStyleProps.forEach(it=>mt.add(it));let So=De(Q,tt,new Set);be.postStyleProps.forEach(it=>So.add(it)),tt!==e&&q.add(tt)}),ya(e,this._triggerName,i,o,J,S,U,Re,[...q.values()],$,Q,fe))}};function Kc(n,t,e,i,o){return n.some(r=>r(t,e,i,o))}function xa(n,t){let e=Ae({},t);return Object.entries(n).forEach(([i,o])=>{o!=null&&(e[i]=o)}),e}var po=class{styles;defaultParams;normalizer;constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,o=xa(t,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,a)=>{s&&(s=Pt(s,o,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}};function Gc(n,t,e){return new uo(n,t,e)}var uo=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new po(o.style,r,i))}),ba(this.states,"true","1"),ba(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new sn(t,o,this.states))}),this.fallbackTransition=Wc(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,o){return this.transitionFactories.find(s=>s.match(t,e,i,o))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function Wc(n,t,e){let i=[(s,a)=>!0],o={type:N.Sequence,steps:[],options:null},r={type:N.Transition,animation:o,matchers:i,options:null,queryCount:0,depCount:0};return new sn(n,r,t)}function ba(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}var qc=new Gt,mo=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i}register(t,e){let i=[],o=[],r=ka(this._driver,e,i,o);if(i.length)throw ea(i);this._animations.set(t,r)}_buildPlayer(t,e,i){let o=t.element,r=Wn(this._normalizer,t.keyframes,e,i);return this._driver.animate(o,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let o=[],r=this._animations.get(t),s,a=new Map;if(r?(s=Ea(this._driver,e,r,Yn,qi,new Map,new Map,i,qc,o),s.forEach(f=>{let v=De(a,f.element,new Map);f.postStyleProps.forEach(P=>v.set(P,null))})):(o.push(ta()),s=[]),o.length)throw ia(o);a.forEach((f,v)=>{f.forEach((P,M)=>{f.set(M,this._driver.computeStyle(v,M,Ie))})});let l=s.map(f=>{let v=a.get(f.element);return this._buildPlayer(f,new Map,v)}),d=Ye(l);return this._playersById.set(t,d),d.onDestroy(()=>this.destroy(t)),this.players.push(d),d}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw na(t);return e}listen(t,e,i,o){let r=Gi(e,"","","");return Ki(this._getPlayer(t),i,r,o),()=>{}}command(t,e,i,o){if(i=="register"){this.register(t,o[0]);return}if(i=="create"){let s=o[0]||{};this.create(t,e,s);return}let r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t);break}}},Sa="ng-animate-queued",$c=".ng-animate-queued",io="ng-animate-disabled",Qc=".ng-animate-disabled",Xc="ng-star-inserted",Yc=".ng-star-inserted",Jc=[],Ma={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Zc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Oe="__ng_removed",Wt=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),o=i?t.value:t;if(this.value=td(o),i){let r=t,{value:s}=r,a=Do(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(o=>{i[o]==null&&(i[o]=e[o])})}}},Kt="void",no=new Wt(Kt),ho=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+t,Pe(e,this._hostClassName)}listen(t,e,i,o){if(!this._triggers.has(e))throw oa(i,e);if(i==null||i.length==0)throw ra(e);if(!id(i))throw sa(i,e);let r=De(this._elementListeners,t,[]),s={name:e,phase:i,callback:o};r.push(s);let a=De(this._engine.statesByElement,t,new Map);return a.has(e)||(Pe(t,zt),Pe(t,zt+"-"+e),a.set(e,no)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw aa(t);return e}trigger(t,e,i,o=!0){let r=this._getTrigger(e),s=new qt(this.id,e,t),a=this._engine.statesByElement.get(t);a||(Pe(t,zt),Pe(t,zt+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e),d=new Wt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&d.absorbOptions(l.options),a.set(e,d),l||(l=no),!(d.value===Kt)&&l.value===d.value){if(!rd(l.params,d.params)){let T=[],U=r.matchStyles(l.value,l.params,T),q=r.matchStyles(d.value,d.params,T);T.length?this._engine.reportError(T):this._engine.afterFlush(()=>{et(t,U),Ne(t,q)})}return}let P=De(this._engine.playersByElement,t,[]);P.forEach(T=>{T.namespaceId==this.id&&T.triggerName==e&&T.queued&&T.destroy()});let M=r.matchTransition(l.value,d.value,t,d.params),S=!1;if(!M){if(!o)return;M=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:M,fromState:l,toState:d,player:s,isFallbackTransition:S}),S||(Pe(t,Sa),s.onStart(()=>{At(t,Sa)})),s.onDone(()=>{let T=this.players.indexOf(s);T>=0&&this.players.splice(T,1);let U=this._engine.playersByElement.get(t);if(U){let q=U.indexOf(s);q>=0&&U.splice(q,1)}}),this.players.push(s),P.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,Ut,!0);i.forEach(o=>{if(o[Oe])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,e,i,o){let r=this._engine.statesByElement.get(t),s=new Map;if(r){let a=[];if(r.forEach((l,d)=>{if(s.set(d,l.value),this._triggers.has(d)){let f=this.trigger(t,d,Kt,o);f&&a.push(f)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Ye(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let o=new Set;e.forEach(r=>{let s=r.name;if(o.has(s))return;o.add(s);let l=this._triggers.get(s).fallbackTransition,d=i.get(s)||no,f=new Wt(Kt),v=new qt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:d,toState:f,player:v,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(t):[];if(r&&r.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)i.markElementAsRemoved(this.id,t,!1,e);else{let r=t[Oe];(!r||r===Ma)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Pe(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let o=i.player;if(o.destroyed)return;let r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){let l=Gi(r,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Ki(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{let r=i.transition.ast.depCount,s=o.transition.ast.depCount;return r==0||s==0?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},fo=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new ho(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=o.get(a);if(l){let d=i.indexOf(l);i.splice(d+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return o.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let o=this._namespaceLookup[t];o&&o.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let o of i.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(t,e,i,o){if(Zi(e)){let r=this._fetchNamespace(t);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(t,e,i,o){if(!Zi(e))return;let r=e[Oe];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Pe(t,io)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),At(t,io))}removeNode(t,e,i){if(Zi(e)){let o=t?this._fetchNamespace(t):null;o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,o,r){this.collectedLeaveElements.push(e),e[Oe]={namespaceId:t,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(t,e,i,o,r){return Zi(e)?this._fetchNamespace(t).listen(e,i,o,r):()=>{}}_buildInstruction(t,e,i,o,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,o,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,Ut,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,$i,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ye(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[Oe];if(e&&e.setForRemoval){if(t[Oe]=Ma,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(io)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Qc,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let o=this.collectedEnterElements[i];Pe(o,Xc)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,t)}finally{for(let o=0;o<i.length;o++)i[o]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let o=this.collectedLeaveElements[i];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ye(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(t){throw la(t)}_flushAnimations(t,e){let i=new Gt,o=[],r=new Map,s=[],a=new Map,l=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(y=>{f.add(y);let _=this.driver.query(y,$c,!0);for(let k=0;k<_.length;k++)f.add(_[k])});let v=this.bodyNode,P=Array.from(this.statesByElement.keys()),M=Ca(P,this.collectedEnterElements),S=new Map,T=0;M.forEach((y,_)=>{let k=Yn+T++;S.set(_,k),y.forEach(O=>Pe(O,k))});let U=[],q=new Set,$=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let _=this.collectedLeaveElements[y],k=_[Oe];k&&k.setForRemoval&&(U.push(_),q.add(_),k.hasAnimation?this.driver.query(_,Yc,!0).forEach(O=>q.add(O)):$.add(_))}let Q=new Map,J=Ca(P,Array.from(q));J.forEach((y,_)=>{let k=qi+T++;Q.set(_,k),y.forEach(O=>Pe(O,k))}),t.push(()=>{M.forEach((y,_)=>{let k=S.get(_);y.forEach(O=>At(O,k))}),J.forEach((y,_)=>{let k=Q.get(_);y.forEach(O=>At(O,k))}),U.forEach(y=>{this.processLeaveNode(y)})});let We=[],Re=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(e).forEach(k=>{let O=k.player,ie=k.element;if(We.push(O),this.collectedEnterElements.length){let de=ie[Oe];if(de&&de.setForMove){if(de.previousTriggersValues&&de.previousTriggersValues.has(k.triggerName)){let nt=de.previousTriggersValues.get(k.triggerName),Ee=this.statesByElement.get(k.element);if(Ee&&Ee.has(k.triggerName)){let $t=Ee.get(k.triggerName);$t.value=nt,Ee.set(k.triggerName,$t)}}O.destroy();return}}let Fe=!v||!this.driver.containsElement(v,ie),ke=Q.get(ie),Je=S.get(ie),W=this._buildInstruction(k,i,Je,ke,Fe);if(W.errors&&W.errors.length){Re.push(W);return}if(Fe){O.onStart(()=>et(ie,W.fromStyles)),O.onDestroy(()=>Ne(ie,W.toStyles)),o.push(O);return}if(k.isFallbackTransition){O.onStart(()=>et(ie,W.fromStyles)),O.onDestroy(()=>Ne(ie,W.toStyles)),o.push(O);return}let Co=[];W.timelines.forEach(de=>{de.stretchStartingKeyframe=!0,this.disabledNodes.has(de.element)||Co.push(de)}),W.timelines=Co,i.append(ie,W.timelines);let Ya={instruction:W,player:O,element:ie};s.push(Ya),W.queriedElements.forEach(de=>De(a,de,[]).push(O)),W.preStyleProps.forEach((de,nt)=>{if(de.size){let Ee=l.get(nt);Ee||l.set(nt,Ee=new Set),de.forEach(($t,hn)=>Ee.add(hn))}}),W.postStyleProps.forEach((de,nt)=>{let Ee=d.get(nt);Ee||d.set(nt,Ee=new Set),de.forEach(($t,hn)=>Ee.add(hn))})});if(Re.length){let y=[];Re.forEach(_=>{y.push(ca(_.triggerName,_.errors))}),We.forEach(_=>_.destroy()),this.reportError(y)}let fe=new Map,be=new Map;s.forEach(y=>{let _=y.element;i.has(_)&&(be.set(_,_),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,fe))}),o.forEach(y=>{let _=y.element;this._getPreviousPlayers(_,!1,y.namespaceId,y.triggerName,null).forEach(O=>{De(fe,_,[]).push(O),O.destroy()})});let tt=U.filter(y=>Da(y,l,d)),mt=new Map;wa(mt,this.driver,$,d,Ie).forEach(y=>{Da(y,l,d)&&tt.push(y)});let it=new Map;M.forEach((y,_)=>{wa(it,this.driver,new Set(y),l,Ft)}),tt.forEach(y=>{let _=mt.get(y),k=it.get(y);mt.set(y,new Map([..._?.entries()??[],...k?.entries()??[]]))});let mn=[],_o=[],wo={};s.forEach(y=>{let{element:_,player:k,instruction:O}=y;if(i.has(_)){if(f.has(_)){k.onDestroy(()=>Ne(_,O.toStyles)),k.disabled=!0,k.overrideTotalTime(O.totalTime),o.push(k);return}let ie=wo;if(be.size>1){let ke=_,Je=[];for(;ke=ke.parentNode;){let W=be.get(ke);if(W){ie=W;break}Je.push(ke)}Je.forEach(W=>be.set(W,ie))}let Fe=this._buildAnimation(k.namespaceId,O,fe,r,it,mt);if(k.setRealPlayer(Fe),ie===wo)mn.push(k);else{let ke=this.playersByElement.get(ie);ke&&ke.length&&(k.parentPlayer=Ye(ke)),o.push(k)}}else et(_,O.fromStyles),k.onDestroy(()=>Ne(_,O.toStyles)),_o.push(k),f.has(_)&&o.push(k)}),_o.forEach(y=>{let _=r.get(y.element);if(_&&_.length){let k=Ye(_);y.setRealPlayer(k)}}),o.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<U.length;y++){let _=U[y],k=_[Oe];if(At(_,qi),k&&k.hasAnimation)continue;let O=[];if(a.size){let Fe=a.get(_);Fe&&Fe.length&&O.push(...Fe);let ke=this.driver.query(_,$i,!0);for(let Je=0;Je<ke.length;Je++){let W=a.get(ke[Je]);W&&W.length&&O.push(...W)}}let ie=O.filter(Fe=>!Fe.destroyed);ie.length?nd(this,_,ie):this.processLeaveNode(_)}return U.length=0,mn.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let _=this.players.indexOf(y);this.players.splice(_,1)}),y.play()}),mn}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,o,r){let s=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let l=!r||r==Kt;a.forEach(d=>{d.queued||!l&&d.triggerName!=o||s.push(d)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){let o=e.triggerName,r=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let d=l.element,f=d!==r,v=De(i,d,[]);this._getPreviousPlayers(d,f,s,a,e.toState).forEach(M=>{let S=M.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),M.destroy(),v.push(M)})}et(r,e.fromStyles)}_buildAnimation(t,e,i,o,r,s){let a=e.triggerName,l=e.element,d=[],f=new Set,v=new Set,P=e.timelines.map(S=>{let T=S.element;f.add(T);let U=T[Oe];if(U&&U.removedBeforeQueried)return new rt(S.duration,S.delay);let q=T!==l,$=od((i.get(T)||Jc).map(fe=>fe.getRealPlayer())).filter(fe=>{let be=fe;return be.element?be.element===T:!1}),Q=r.get(T),J=s.get(T),We=Wn(this._normalizer,S.keyframes,Q,J),Re=this._buildPlayer(S,We,$);if(S.subTimeline&&o&&v.add(T),q){let fe=new qt(t,a,T);fe.setRealPlayer(Re),d.push(fe)}return Re});d.forEach(S=>{De(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>ed(this.playersByQueriedElement,S.element,S))}),f.forEach(S=>Pe(S,Jn));let M=Ye(P);return M.onDestroy(()=>{f.forEach(S=>At(S,Jn)),Ne(l,e.toStyles)}),v.forEach(S=>{De(o,S,[]).push(M)}),M}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new rt(t.duration,t.delay)}},qt=class{namespaceId;triggerName;element;_player=new rt;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>Ki(t,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){De(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function ed(n,t,e){let i=n.get(t);if(i){if(i.length){let o=i.indexOf(e);i.splice(o,1)}i.length==0&&n.delete(t)}return i}function td(n){return n??null}function Zi(n){return n&&n.nodeType===1}function id(n){return n=="start"||n=="done"}function _a(n,t){let e=n.style.display;return n.style.display=t??"none",e}function wa(n,t,e,i,o){let r=[];e.forEach(l=>r.push(_a(l)));let s=[];i.forEach((l,d)=>{let f=new Map;l.forEach(v=>{let P=t.computeStyle(d,v,o);f.set(v,P),(!P||P.length==0)&&(d[Oe]=Zc,s.push(d))}),n.set(d,f)});let a=0;return e.forEach(l=>_a(l,r[a++])),s}function Ca(n,t){let e=new Map;if(n.forEach(a=>e.set(a,[])),t.length==0)return e;let i=1,o=new Set(t),r=new Map;function s(a){if(!a)return i;let l=r.get(a);if(l)return l;let d=a.parentNode;return e.has(d)?l=d:o.has(d)?l=i:l=s(d),r.set(a,l),l}return t.forEach(a=>{let l=s(a);l!==i&&e.get(l).push(a)}),e}function Pe(n,t){n.classList?.add(t)}function At(n,t){n.classList?.remove(t)}function nd(n,t,e){Ye(e).onDone(()=>n.processLeaveNode(t))}function od(n){let t=[];return Pa(n,t),t}function Pa(n,t){for(let e=0;e<n.length;e++){let i=n[e];i instanceof mi?Pa(i.players,t):t.push(i)}}function rd(n,t){let e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let o=0;o<e.length;o++){let r=e[o];if(!t.hasOwnProperty(r)||n[r]!==t[r])return!1}return!0}function Da(n,t,e){let i=e.get(n);if(!i)return!1;let o=t.get(n);return o?i.forEach(r=>o.add(r)):t.set(n,i),e.delete(n),!0}var It=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new fo(t.body,e,i),this._timelineEngine=new mo(t.body,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(t,e,i,o,r){let s=t+"-"+o,a=this._triggerCache[s];if(!a){let l=[],d=[],f=ka(this._driver,r,l,d);if(l.length)throw Zs(o,l);a=Gc(o,f,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,o){this._transitionEngine.insertNode(t,e,i,o)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,o){if(i.charAt(0)=="@"){let[r,s]=qn(i),a=o;this._timelineEngine.command(r,e,s,a)}else this._transitionEngine.trigger(t,e,i,o)}listen(t,e,i,o,r){if(i.charAt(0)=="@"){let[s,a]=qn(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(t,e,i,o,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function sd(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=oo(t[0]),t.length>1&&(i=oo(t[t.length-1]))):t instanceof Map&&(e=oo(t)),e||i?new ad(n,e,i):null}var ad=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o;let r=n.initialStylesByElement.get(e);r||n.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ne(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ne(this._element,this._initialStyles),this._endStyles&&(Ne(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(et(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(et(this._element,this._endStyles),this._endStyles=null),Ne(this._element,this._initialStyles),this._state=3)}}return n})();function oo(n){let t=null;return n.forEach((e,i)=>{ld(i)&&(t=t||new Map,t.set(i,e))}),t}function ld(n){return n==="display"||n==="position"}var an=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(t,e,i,o){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=o,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let t=this.keyframes,e=this._triggerWebAnimation(this.element,t,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=t.length?t[t.length-1]:new Map;let i=()=>this._onFinish();return e.addEventListener("finish",i),this.onDestroy(()=>{e.removeEventListener("finish",i)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){let o=this._convertKeyframesToObject(e);try{return t.animate(o,i)}catch(r){return null}}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){let t=this._buildPlayer();t&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),t.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=t*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{o!=="offset"&&t.set(o,this._finished?i:Xi(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>
16i()),e.length=0}},ln=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return $n(t,e)}getParentElement(t){return Wi(t)}query(t,e,i){return Qn(t,e,i)}computeStyle(t,e,i){return Xi(t,e)}animate(t,e,i,o,r,s=[]){let a=o==0?"both":"forwards",l={duration:i,delay:o,fill:a};r&&(l.easing=r);let d=new Map,f=s.filter(M=>M instanceof an);ma(i,o)&&f.forEach(M=>{M.currentSnapshot.forEach((S,T)=>d.set(T,S))});let v=pa(e).map(M=>new Map(M));v=ha(t,v,d);let P=sd(t,v);return new an(t,v,l,P)}};var en="@",Aa="@.disabled",cn=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,i,o){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,o=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,o)}removeChild(t,e,i,o){if(o){this.delegate.removeChild(t,e,i,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,o){this.delegate.setAttribute(t,e,i,o)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,o){this.delegate.setStyle(t,e,i,o)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==en&&e==Aa?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i,o){return this.delegate.listen(t,e,i,o)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},go=class extends cn{factory;constructor(t,e,i,o,r){super(e,i,o,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==en?e.charAt(1)=="."&&e==Aa?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i,o){if(e.charAt(0)==en){let r=cd(t),s=e.slice(1),a="";return s.charAt(0)!=en&&([s,a]=dd(s)),this.engine.listen(this.namespaceId,r,s,a,l=>{let d=l._data||-1;this.factory.scheduleListenerCallback(d,i,l)})}return this.delegate.listen(t,e,i,o)}};function cd(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function dd(n){let t=n.indexOf("."),e=n.substring(0,t),i=n.slice(t+1);return[e,i]}var dn=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(t,e){let o=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let d=this._rendererCache,f=d.get(o);if(!f){let v=()=>d.delete(o);f=new cn("",o,this.engine,v),d.set(o,f)}return f}let r=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=d=>{Array.isArray(d)?d.forEach(a):this.engine.registerTrigger(r,s,t,d.name,d)};return e.data.animation.forEach(a),new go(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(i));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(t){this.engine.flush(),this.delegate.componentReplaced?.(t)}};var ud=(()=>{class n extends It{constructor(e,i,o){super(e,i,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||n)(Le(Zt),Le(pt),Le(ut))};static \u0275prov=A({token:n,factory:n.\u0275fac})}return n})();function md(){return new tn}function hd(){return new dn(c(Ko),c(It),c(Io))}var Na=[{provide:ut,useFactory:md},{provide:It,useClass:ud},{provide:Oo,useFactory:hd}],fd=[{provide:pt,useClass:vo},{provide:bn,useValue:"NoopAnimations"},...Na],Ia=[{provide:pt,useFactory:()=>new ln},{provide:bn,useFactory:()=>"BrowserAnimations"},...Na],Oa=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?fd:Ia}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=ve({type:n});static \u0275inj=ge({providers:Ia,imports:[yt]})}return n})();function Ra(n,t){if(n)throw new Error(`${t} has already been loaded. Import Core modules in the AppModule only.`)}var pn=class{preload(t,e){return t.data&&t.data.preload?e():Nt(null)}};function gd(n,t){return()=>{n.rootUrl=t.environment.apiHost}}var Fa=(()=>{class n{constructor(){let e=c(n,{optional:!0,skipSelf:!0});Ra(e,"CoreModule")}static forRoot(){return{ngModule:n,providers:[pn,ye,ti(()=>gd(c(ui),c(st))())]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ve({type:n})}static{this.\u0275inj=ge({})}}return n})();var wd=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=ve({type:n});static \u0275inj=ge({imports:[Qe]})}return n})();var La=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=ve({type:n});static \u0275inj=ge({imports:[Qe]})}return n})();var ja=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=ve({type:n});static \u0275inj=ge({imports:[Qe]})}return n})();var Ba=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=ve({type:n});static \u0275inj=ge({imports:[Qe,wd]})}return n})();var Va=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=ve({type:n});static \u0275inj=ge({imports:[Qe,La,Ba,ja]})}return n})();var za=(()=>{class n{constructor(){this.adalService=c(ye),this.liveDataService=c(Ii)}intercept(e,i){let o=this.adalService.getToken();
16return o&&Ni.allDetails.forEach(r=>{this.liveDataService.refreshToken(r,o)}),e=this.adalService.addHeader(e),i.handle(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac})}}return n})();var Ua=(()=>{class n{constructor(){this.injector=c(Po)}handleError(e){let i=this.injector.get(Di),o="ApplicationError";e instanceof Error?(typeof e.name=="string"&&e.name&&(o=e.name),i.error(o,e)):(o==="ApplicationError"&&(o="UnhandledObjectError"),i.error(o,"Unhandled non-Error object",e))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac})}}return n})();var Ha=(()=>{class n{constructor(){this.userSelectionService=c(me),this.authenticationService=c(ye),this.notificationService=c(yi),this.refreshTokenSubject=new Qt(null),this.refreshTokenInProgress=!1}intercept(e,i){return this.isRefreshTokenRequest(e)?i.handle(e):this.authenticationService.isLoggedIn()&&this.authenticationService.isTokenExpired()?this.refreshTokenOrSignout(e,i):i.handle(e).pipe(yn(o=>{if(o&&o.status===401)return this.authenticationService.isLoggedIn()?this.refreshTokenOrSignout(e,i):Xt;if(o&&o.status===403&&this.userSelectionService.signout(),o.message){let r={id:crypto.randomUUID(),message:o.message,variant:Ct.Error,fadeVariant:Dt.Default};this.notificationService.addAlert(r)}else if(o.error.message){let r={id:crypto.randomUUID(),message:o.error.message,variant:Ct.Error,fadeVariant:Dt.Default};this.notificationService.addAlert(r)}return gn(()=>o)}))}refreshTokenOrSignout(e,i){return fn(this.authenticationService.hasRefreshToken()).pipe(gt(o=>o?this.tryRefreshToken(e,i):this.signout()))}tryRefreshToken(e,i){return this.refreshTokenInProgress?this.refreshTokenSubject.pipe(pe(o=>o!==null),Jt(1),gt(o=>(console.log(o),o===!1?gn(()=>new Qo({status:401,statusText:"Refresh token rejected"})):i.handle(this.authenticationService.addHeader(e.clone()))))):(this.refreshTokenInProgress=!0,this.refreshTokenSubject.next(null),this.authenticationService.refreshToken().pipe(gt(o=>{let r=JSON.parse(o);return!o||r.error&&r.error!==""?this.signout():(this.refreshTokenSubject.next(o),i.handle(this.authenticationService.addHeader(e.clone())))}),yn(()=>this.signout()),ft(()=>{this.refreshTokenSubject.next(!1),this.refreshTokenInProgress=!1})))}signout(){return fn(this.userSelectionService.signout()).pipe(xo())}isRefreshTokenRequest(e){return e.url.toLowerCase().endsWith("/login/refreshtoken")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac})}}return n})();function Cd(n,t,e,i,o,r,s,a,l,d,f,v,P,M){let S=v.getLogger("APP INIT"),T=f.tenant();r.tenant.set(T),r.subtenantImageAssetString.set(f.subtenantImageAssetString()),f.setMultitenantBaseHref(),s.initSubscriptions(),e.rootUrl=a.environment.apiHost,i.rootUrl=a.environment.generatorHost;let U=[];U.push(o.getLayout());let q=document.createElement("style");q.innerHTML=".screen {max-width: 200px;}";let $=t.isLoggedIn();return $&&U.push(o.getConfigDto({tenant:T})),()=>vn(Yt(U)).then(Q=>ne(null,null,function*(){let J=Q[0],We=Q[1];J&&l.setLayout(J),$&&We&&a.setConfig(We),yield Dd(n,o,d,l,T,M)})).catch(Q=>(S.error("API Error",Q),Q.status===0&&P.isApiUnreachable.set(!0),Xt))}function Dd(n,t,e,i,o,r){return ne(this,null,function*(){let s=r.isNativePlatform(),a=i.isDarkThemeAllowed(),l=e.storedTheme(),d=null;if(l)try{d=l}catch(f){console.error(`Stored dev theme was configured wrong: ${f}`)}n.dev&&d?e.restoreStoredTheme(d):d&&!s?match(d.variant).pipe(mWhen(Y.Dark,()=>{a?e.variant.set(d.variant):e.variant.set(Y.Light)}),mWhen(Y.Light,()=>e.variant.set(d.variant)),mWhen(Y.System,()=>e.variant.set(d.variant)),mExhaustive):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&a?e.variant.set(Y.System):s&&a&&e.variant.set(Y.System),yield vn(t.getSettingAsCss({key:"BaseTheme-BaseCss",tenantId:o,tenant:o,variant:e.variant()})).then(f=>{let v=f;v&&e.tenantCss.set(v),e.initListeners()})})}var Ka=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[st,{provide:"environmentEnergyboard",useValue:e},{provide:"isTest",useValue:!1},ti(()=>
16Cd(c("environmentEnergyboard"),c(ye),c(ui),c(xt),c(sr),c(_t),c(Ue),c(st),c(xi),c(Ke),c(Me),c(Di),c(Si),c(Ci))())]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ve({type:n})}static{this.\u0275inj=ge({providers:[{provide:Mn,useClass:Ha,multi:!0},{provide:Mn,useClass:za,multi:!0},{provide:No,useClass:Ua},ye,X,Ti,St,Lt,di,Fr,me,Ir,Tt,Pi,Lr,St,Ui,Vr,ss,Xo(Yo())],imports:[yt,Oa,Fa.forRoot(),Ot,Va,is,dr,rs.forRoot({baseUrl:"assets/lib",defaultOptions:{},monacoLoad:()=>{}})]})}}return n})();function Ga(){if(typeof window>"u")return;let n=window.__EB_RUNTIME__;if(n==null||typeof n!="object")return;let t=n,e={};return"dev"in t&&typeof t.dev=="boolean"&&(e.dev=t.dev),"devMultiTenant"in t&&typeof t.devMultiTenant=="boolean"&&(e.devMultiTenant=t.devMultiTenant),Object.keys(e).length>0?e:void 0}var un;(function(n){function t(i){return B.isOption(i)?B.isSome(i):i!=null}n.isDefined=t;function e(i){return B.isOption(i)?B.isNone(i):i==null}n.isUndefined=e})(un||(un={}));var Wa=Symbol.for("evu.extensions.either.initialized");function Td(n,t){return typeof t=="function"?t(n):t}function kd(n,t){return typeof t=="function"?t(n):t}function Ed(n){return z.getOrElse(this,t=>Td(t,n))}function xd(n){return z.orElse(this,t=>kd(t,n))}function Md(n){return z.map(this,n)}function Pd(n){return z.flatMap(this,n)}function Ad(n){z.isRight(this)&&n(this.right)}function Id(){return z.getOrNull(this)}function Nd(){return z.getOrUndefined(this)}function Od(n){return z.match(this,n)}function Rd(){return z.isRight(this)}function Fd(){return z.isLeft(this)}function Ld(){return z.isRight(this)}function jd(){return z.isLeft(this)}function Bd(n,t){return n==null?t?z.left(t()):z.left(null):z.right(n)}function Vd(n,t){return t?z.fromOption(n,t):z.fromOption(n,()=>null)}function qa(n){let t={orElse:Ed,orElseEither:xd,map:Md,flatMap:Pd,iter:Ad,toNullable:Id,toUndefined:Nd,match:Od,isRight:Rd,isLeft:Fd,isOk:Ld,isError:jd,fromNullable:Bd,fromOption:Vd};for(let[e,i]of Object.entries(t))if(!Object.prototype.hasOwnProperty.call(n,e))try{Object.defineProperty(n,e,{value:i,configurable:!0,writable:!0,enumerable:!1})}catch(o){return}}function zd(){let n=globalThis;n[Wa]||(qa(Object.getPrototypeOf(z.right(void 0))),qa(Object.getPrototypeOf(z.left(void 0))),n[Wa]=!0)}var $a=Symbol.for("evu.extensions.option.initialized");function Ud(n){return typeof n=="function"?n():n}function Hd(n){return typeof n=="function"?n():n}function Kd(n){return B.getOrElse(this,()=>Ud(n))}function Gd(n){return B.orElse(this,()=>Hd(n))}function Wd(n){return B.map(this,n)}function qd(n){B.isSome(this)&&n(this.value)}function $d(n){return B.flatMap(this,n)}function Qd(){return B.getOrNull(this)}function Xd(){return B.getOrUndefined(this)}function Yd(n){return B.match(this,n)}function Jd(){return B.isSome(this)}function Zd(){return B.isNone(this)}function ep(n){return B.fromNullable(n)}function tp(n){return B.getRight(n)}function Qa(n){let t={orElse:Kd,orElseOption:Gd,map:Wd,iter:qd,flatMap:$d,toNullable:Qd,toUndefined:Xd,match:Yd,isSome:Jd,isNone:Zd,fromNullable:ep,fromEither:tp};for(let[e,i]of Object.entries(t))if(!Object.prototype.hasOwnProperty.call(n,e))try{Object.defineProperty(n,e,{value:i,configurable:!0,writable:!0,enumerable:!1})}catch(o){return}}function ip(){let n=globalThis;n[$a]||(Qa(Object.getPrototypeOf(B.none())),Qa(Object.getPrototypeOf(B.some(void 0))),n[$a]=!0)}function Xa(){ip(),zd(),globalThis.isSome=B.isSome,globalThis.isNone=B.isNone,globalThis.mkSome=B.some,globalThis.mkNone=B.none,globalThis.isOk=z.isRight,globalThis.isError=z.isLeft,globalThis.mkOk=z.right,globalThis.mkError=z.left,globalThis.optMatch=B.match,globalThis.optMap=B.map,globalThis.optFlatMap=B.flatMap,globalThis.nToOption=B.fromNullable,globalThis.iToOption=B.fromIterable,globalThis.optFromNullable=B.fromNullable,globalThis.optFromEither=B.getRight,globalThis.optOrElse=B.getOrElse,globalThis.mDefined=Xe.defined,globalThis.mUndefined=Xe.undefined,globalThis.match=Xe.value,globalThis.mMatcher=Xe.type,globalThis.mWhen=Xe.when,globalThis.mOrElse=Xe.orElse,globalThis.mExhaustive=Xe.exhaustive,globalThis.etMatch=z.match,globalThis.etMap=z.map,globalThis.etFlatMap=z.flatMap,globalThis.etOrElse=z.getOrElse,globalThis.nToEither=z.fromNullable,globalThis.oToEither=z.fromOption,globalThis.mExhaustive=Xe.exhaustive,globalThis.isUndefined=un.isUndefined,globalThis.isDefined=un.isDefined}Array.init=function(n){let t=[];for(let e=0;e<n;e++)t.push(null);return t};Array.initWith=function(n,t){let e=[];for(let i=0;i<n;i++)e.push(t());return e};Array.initWithIndex=function(n,t){let e=[];for(let i=0;i<n;i++)e.push(t(i));return e};Array.prototype.intersperse=function*(n){let t=!0;for(let e of this)t||(yield n),t=!1,yield e};Array.prototype.remove=function(n){return n>=0&&n<this.length?this.splice(n,1):this};Object.getPrototypeOf(function*(){}).toArray=function(){let n=[];for(let t of this)n.push(t);return n};kr.register(...Er);Xa();var bo=xn(cs,Ga());bo.production&&void 0;var np=[Mo(yt,ms,hr.forRoot(bo),Ka.forRoot(bo)),St,Me,Bo()];Go(Fs,{providers:np}).catch(n=>console.log(n));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.