diff --git a/browser/account-transfers.module-5U5L3F6Y.js b/browser/account-transfers.module-M43K676L.js similarity index 99% rename from browser/account-transfers.module-5U5L3F6Y.js rename to browser/account-transfers.module-M43K676L.js index 57cd5450d..4552820bb 100644 --- a/browser/account-transfers.module-5U5L3F6Y.js +++ b/browser/account-transfers.module-M43K676L.js @@ -1,4 +1,4 @@ -import{a as D}from"./chunk-E52UQNEX.js";import{$b as G,$c as rt,$e as Gt,Ac as w,Bd as pt,Ca as Lt,Cc as Ae,Cd as dt,Dd as ut,Ee as yt,F as H,Fa as At,Fc as ht,Fd as ft,G as Vt,Ga as Mt,Gc as z,Ha as kt,Hd as U,I as R,Ia as E,Ja as t,Ka as c,Kc as Q,Kd as xt,La as _,Lc as g,Ma as v,Mc as W,N as h,Na as Se,Nc as et,O as C,Od as Pe,Of as Re,Pa as Te,Qa as he,Qc as Ft,Qf as Le,Ra as Ce,Rc as Me,Rf as He,Sc as nt,Sd as _t,Sf as je,Ta as L,Tc as Ct,Ua as Z,Uc as ke,Vc as it,Wa as o,Xa as l,Xb as q,Xe as jt,Ya as Bt,Yc as at,Yd as Ne,Ye as $t,Ze as Ut,_ as me,_b as Tt,_c as Be,_f as $e,af as zt,bc as ce,bd as Fe,ca as a,cf as Qt,db as be,dd as bt,df as Wt,eb as ye,ec as j,ed as we,fb as tt,fd as O,ff as Yt,ga as I,gb as N,gd as V,gf as Jt,ha as M,ia as Rt,if as Kt,jd as $,la as u,ld as ot,lf as wt,na as m,ob as Ee,pd as Y,qd as lt,ra as n,rc as De,rd as Oe,re as qe,sa as e,se as Ve,ta as f,td as st,tg as Ue,ua as k,ub as F,ud as J,va as B,vd as Ht,wd as K,xa as A,xd as mt,ya as T,za as S,zd as ct}from"./chunk-DUPCOD76.js";import{a as Nt,b as qt}from"./chunk-O7S4L63H.js";var Je=()=>["../","edit"],Ke=()=>["../","list-account-transactions"];function Xe(i,p){i&1&&(n(0,"button",1),t(1),o(2,"translate"),e()),i&2&&(m("routerLink",L(4,Ke)),a(),_(` +import{a as D}from"./chunk-35O6DUHT.js";import{$b as G,$c as rt,$e as Gt,Ac as w,Bd as pt,Ca as Lt,Cc as Ae,Cd as dt,Dd as ut,Ee as yt,F as H,Fa as At,Fc as ht,Fd as ft,G as Vt,Ga as Mt,Gc as z,Ha as kt,Hd as U,I as R,Ia as E,Ja as t,Ka as c,Kc as Q,Kd as xt,La as _,Lc as g,Ma as v,Mc as W,N as h,Na as Se,Nc as et,O as C,Od as Pe,Of as Re,Pa as Te,Qa as he,Qc as Ft,Qf as Le,Ra as Ce,Rc as Me,Rf as He,Sc as nt,Sd as _t,Sf as je,Ta as L,Tc as Ct,Ua as Z,Uc as ke,Vc as it,Wa as o,Xa as l,Xb as q,Xe as jt,Ya as Bt,Yc as at,Yd as Ne,Ye as $t,Ze as Ut,_ as me,_b as Tt,_c as Be,_f as $e,af as zt,bc as ce,bd as Fe,ca as a,cf as Qt,db as be,dd as bt,df as Wt,eb as ye,ec as j,ed as we,fb as tt,fd as O,ff as Yt,ga as I,gb as N,gd as V,gf as Jt,ha as M,ia as Rt,if as Kt,jd as $,la as u,ld as ot,lf as wt,na as m,ob as Ee,pd as Y,qd as lt,ra as n,rc as De,rd as Oe,re as qe,sa as e,se as Ve,ta as f,td as st,tg as Ue,ua as k,ub as F,ud as J,va as B,vd as Ht,wd as K,xa as A,xd as mt,ya as T,za as S,zd as ct}from"./chunk-DMOOHS3H.js";import{a as Nt,b as qt}from"./chunk-O7S4L63H.js";var Je=()=>["../","edit"],Ke=()=>["../","list-account-transactions"];function Xe(i,p){i&1&&(n(0,"button",1),t(1),o(2,"translate"),e()),i&2&&(m("routerLink",L(4,Ke)),a(),_(` `,l(2,2,"labels.buttons.View Transactions History"),` `))}function Ze(i,p){i&1&&(n(0,"span"),t(1),o(2,"translate"),e()),i&2&&(a(),_(" ",l(2,1,"labels.inputs.Within Bank")," "))}function tn(i,p){i&1&&(n(0,"span"),t(1),o(2,"translate"),e()),i&2&&(a(),_(" ",l(2,1,"labels.inputs.Own Account")," "))}var Xt=(()=>{class i{constructor(r){this.route=r,this.allowclientedit=!1,this.route.data.subscribe(d=>{this.standingInstructionsData=d.standingInstructionsData,this.standingInstructionsData.fromClient.id===this.standingInstructionsData.toClient.id&&(this.allowclientedit=!1)})}static{this.\u0275fac=function(d){return new(d||i)(I(q))}}static{this.\u0275cmp=M({type:i,selectors:[["mifosx-view-standing-instructions"]],decls:215,vars:90,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-fill"],[3,"inset"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[4,"ngIf"]],template:function(d,s){d&1&&(n(0,"div",0),t(1,` `),n(2,"button",1),t(3,` diff --git a/browser/chunk-E52UQNEX.js b/browser/chunk-35O6DUHT.js similarity index 97% rename from browser/chunk-E52UQNEX.js rename to browser/chunk-35O6DUHT.js index b9251ae40..12ecd8f1e 100644 --- a/browser/chunk-E52UQNEX.js +++ b/browser/chunk-35O6DUHT.js @@ -1 +1 @@ -import{A as g,Bb as m,Cb as a,Cc as i,F as f,Fb as N,I as l}from"./chunk-DUPCOD76.js";import{a as d,b as h}from"./chunk-O7S4L63H.js";var P=(()=>{class c{constructor(t){this.http=t}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){let n=new a().set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:n})}updateStandingInstructionsData(t,n){let s=new a().set("command","update");return this.http.put(`/standinginstructions/${t}`,n,{params:s})}getStandingInstructionsTemplate(t,n,s,e){let r=new a().set("fromAccountType",s).set("fromClientId",t).set("fromOfficeId",n);if(e){let o=Object.getOwnPropertyNames(e);for(let p=0;p{let o=JSON.stringify(h(d({},s),{ownerFspId:r.fspId}));return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/partyinfo`,o,{headers:e})}))}sendInterbankTransfer(t){let n=new m({"Content-Type":"application/json"});return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/executetransfer`,t,{headers:n})}static{this.\u0275fac=function(n){return new(n||c)(l(N))}}static{this.\u0275prov=f({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{P as a}; +import{A as g,Bb as m,Cb as a,Cc as i,F as f,Fb as N,I as l}from"./chunk-DMOOHS3H.js";import{a as d,b as h}from"./chunk-O7S4L63H.js";var P=(()=>{class c{constructor(t){this.http=t}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){let n=new a().set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:n})}updateStandingInstructionsData(t,n){let s=new a().set("command","update");return this.http.put(`/standinginstructions/${t}`,n,{params:s})}getStandingInstructionsTemplate(t,n,s,e){let r=new a().set("fromAccountType",s).set("fromClientId",t).set("fromOfficeId",n);if(e){let o=Object.getOwnPropertyNames(e);for(let p=0;p{let o=JSON.stringify(h(d({},s),{ownerFspId:r.fspId}));return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/partyinfo`,o,{headers:e})}))}sendInterbankTransfer(t){let n=new m({"Content-Type":"application/json"});return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/executetransfer`,t,{headers:n})}static{this.\u0275fac=function(n){return new(n||c)(l(N))}}static{this.\u0275prov=f({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{P as a}; diff --git a/browser/chunk-REXE4A5X.js b/browser/chunk-5TDJB75T.js similarity index 97% rename from browser/chunk-REXE4A5X.js rename to browser/chunk-5TDJB75T.js index ac36b82e1..e9dbeec27 100644 --- a/browser/chunk-REXE4A5X.js +++ b/browser/chunk-5TDJB75T.js @@ -1 +1 @@ -import{Cb as c,F as i,Fb as d,I as p,Tf as n,k as u}from"./chunk-DUPCOD76.js";var h=class{constructor(a){this.selectOptions=[],this.childParameters=[],this.name=a[0],this.variable=a[1],this.label=a[2],this.displayType=a[3],this.formatType=a[4],this.defaultVal=a[5],this.selectOne=a[6],this.selectAll=a[7],this.parentParameterName=a[8],this.inputName=`R_${a[1]}`}};var l=class{constructor(a){this.id=a[0],this.name=a[1]}};var f=class{constructor(a){this.keysLabel=a.columnHeaders[0].columnName,this.valuesLabel=a.columnHeaders[1].columnName,this.keys=a.data.map(t=>t.row[0]),this.values=a.data.map(t=>t.row[1])}};var F=(()=>{class e{constructor(t){this.http=t}getReports(){return this.http.get("/reports")}getReportParams(t){let r=new c().set("R_reportListing",`'${t}'`).set("parameterType","true");return this.http.get("/runreports/FullParameterList",{params:r}).pipe(u(s=>s.data.map(o=>new h(o.row))))}getSelectOptions(t){let r=new c().set("parameterType","true");return this.http.get(`/runreports/${t}`,{params:r}).pipe(u(s=>s.data.map(o=>new l(o.row))))}getPentahoParams(t){let r=new c().set("fields","reportParameters");return this.http.get(`/reports/${t}`,{params:r}).pipe(u(s=>s.reportParameters))}getRunReportData(t,r){let s=new c;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${t}`,{params:s})}getChartRunReportData(t,r){let s=new c;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${t}`,{params:s}).pipe(u(o=>new f(o)))}getPentahoRunReportData(t,r,s,o,m){let g=new c().set("tenantIdentifier",s).set("locale",o).set("dateFormat",m);for(let[b,w]of Object.entries(r))g=g.set(b,w);return this.http.get(`/runreports/${t}`,{responseType:"arraybuffer",observe:"response",params:g})}static{this.\u0275fac=function(r){return new(r||e)(p(d))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var L=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.parent.paramMap.get("groupId");return this.groupsService.getGroupAccountsData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();var C=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.parent.paramMap.get("groupId");return this.groupsService.getGSIMAccountsData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();var B=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.paramMap.get("groupId");return this.groupsService.getGroupData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();export{F as a,L as b,C as c,B as d}; +import{Cb as c,F as i,Fb as d,I as p,Tf as n,k as u}from"./chunk-DMOOHS3H.js";var h=class{constructor(a){this.selectOptions=[],this.childParameters=[],this.name=a[0],this.variable=a[1],this.label=a[2],this.displayType=a[3],this.formatType=a[4],this.defaultVal=a[5],this.selectOne=a[6],this.selectAll=a[7],this.parentParameterName=a[8],this.inputName=`R_${a[1]}`}};var l=class{constructor(a){this.id=a[0],this.name=a[1]}};var f=class{constructor(a){this.keysLabel=a.columnHeaders[0].columnName,this.valuesLabel=a.columnHeaders[1].columnName,this.keys=a.data.map(t=>t.row[0]),this.values=a.data.map(t=>t.row[1])}};var F=(()=>{class e{constructor(t){this.http=t}getReports(){return this.http.get("/reports")}getReportParams(t){let r=new c().set("R_reportListing",`'${t}'`).set("parameterType","true");return this.http.get("/runreports/FullParameterList",{params:r}).pipe(u(s=>s.data.map(o=>new h(o.row))))}getSelectOptions(t){let r=new c().set("parameterType","true");return this.http.get(`/runreports/${t}`,{params:r}).pipe(u(s=>s.data.map(o=>new l(o.row))))}getPentahoParams(t){let r=new c().set("fields","reportParameters");return this.http.get(`/reports/${t}`,{params:r}).pipe(u(s=>s.reportParameters))}getRunReportData(t,r){let s=new c;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${t}`,{params:s})}getChartRunReportData(t,r){let s=new c;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${t}`,{params:s}).pipe(u(o=>new f(o)))}getPentahoRunReportData(t,r,s,o,m){let g=new c().set("tenantIdentifier",s).set("locale",o).set("dateFormat",m);for(let[b,w]of Object.entries(r))g=g.set(b,w);return this.http.get(`/runreports/${t}`,{responseType:"arraybuffer",observe:"response",params:g})}static{this.\u0275fac=function(r){return new(r||e)(p(d))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var L=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.parent.paramMap.get("groupId");return this.groupsService.getGroupAccountsData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();var C=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.parent.paramMap.get("groupId");return this.groupsService.getGSIMAccountsData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();var B=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.paramMap.get("groupId");return this.groupsService.getGroupData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();export{F as a,L as b,C as c,B as d}; diff --git a/browser/chunk-DUPCOD76.js b/browser/chunk-DMOOHS3H.js similarity index 99% rename from browser/chunk-DUPCOD76.js rename to browser/chunk-DMOOHS3H.js index 30c2d1f8d..98b94a651 100644 --- a/browser/chunk-DUPCOD76.js +++ b/browser/chunk-DMOOHS3H.js @@ -13,7 +13,7 @@ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(` `+t.message,r,e,n),t[eN]=r,t[t0]=null,t}function oN(t,i,e,n=null){t=t&&t.charAt(0)===` `&&t.charAt(1)==nN?t.slice(2):t;let r=Qi(i);if(Array.isArray(i))r=i.map(Qi).join(" -> ");else if(typeof i=="object"){let a=[];for(let o in i)if(i.hasOwnProperty(o)){let s=i[o];a.push(o+":"+(typeof s=="string"?JSON.stringify(s):Qi(s)))}r=`{${a.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(tN,` `)}`}var hr=Yb(Nb("Optional"),8);var Yr=Yb(Nb("SkipSelf"),4);function Fs(t,i){let e=t.hasOwnProperty(J3);return e?t[J3]:null}function sN(t,i,e){if(t.length!==i.length)return!1;for(let n=0;nArray.isArray(e)?n8(e,i):i(e))}function Qb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function n0(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function lN(t,i){let e=[];for(let n=0;ni;){let a=r-2;t[r]=t[a],r--}t[i]=e,t[i+1]=n}}function P0(t,i,e){let n=H1(t,i);return n>=0?t[n|1]=e:(n=~n,dN(t,n,i,e)),n}function Ph(t,i){let e=H1(t,i);if(e>=0)return t[e|1]}function H1(t,i){return uN(t,i,1)}function uN(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){let a=n+(r-n>>1),o=t[a<i?r=a:n=a+1}return~(r<{e.push(o)};return n8(i,o=>{let s=o;Qh(s,a,[],n)&&(r||=[],r.push(s))}),r!==void 0&&ty(r,a),e}function ty(t,i){for(let e=0;e{i(a,n)})}}function Qh(t,i,e,n){if(t=di(t),!t)return!1;let r=null,a=jv(t),o=!a&&Bo(t);if(!a&&!o){let d=t.ngModule;if(a=jv(d),a)r=d;else return!1}else{if(o&&!o.standalone)return!1;r=t}let s=n.has(r);if(o){if(s)return!1;if(n.add(r),o.dependencies){let d=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let h of d)Qh(h,i,e,n)}}else if(a){if(a.imports!=null&&!s){n.add(r);let h;try{n8(a.imports,v=>{Qh(v,i,e,n)&&(h||=[],h.push(v))})}finally{}h!==void 0&&ty(h,i)}if(!s){let h=Fs(r)||(()=>new r);i({provide:r,useFactory:h,deps:Ai},r),i({provide:Zb,useValue:r,multi:!0},r),i({provide:gl,useValue:()=>ae(r),multi:!0},r)}let d=a.providers;if(d!=null&&!s){let h=t;i8(d,v=>{i(v,h)})}}else return!1;return r!==t&&t.providers!==void 0}function i8(t,i){for(let e of t)$b(e)&&(e=e.\u0275providers),Array.isArray(e)?i8(e,i):i(e)}var fN=Wt({provide:String,useValue:Wt});function ny(t){return t!==null&&typeof t=="object"&&fN in t}function hN(t){return!!(t&&t.useExisting)}function gN(t){return!!(t&&t.useFactory)}function _l(t){return typeof t=="function"}function _N(t){return!!t.useClass}var T0=new A(""),Y3={},Wv={},Th;function A0(){return Th===void 0&&(Th=new i0),Th}var fn=class{},O1=class extends fn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,Zh(i,o=>this.processProvider(o)),this.records.set(Kb,dl(void 0,this)),r.has("environment")&&this.records.set(fn,dl(void 0,this));let a=this.records.get(T0);a!=null&&typeof a.value=="string"&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Zb,Ai,ft.Self))}retrieve(i,e){let n=e;return this.get(i,n.optional?p3:Hs,n)}destroy(){w1(this),this._destroyed=!0;let i=ht(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ht(i)}}onDestroy(i){return w1(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){w1(this);let e=Xa(this),n=qi(void 0),r;try{return i()}finally{Xa(e),qi(n)}}get(i,e=Hs,n=ft.Default){if(w1(this),i.hasOwnProperty($v))return i[$v](this);n=I0(n);let r,a=Xa(this),o=qi(void 0);try{if(!(n&ft.SkipSelf)){let d=this.records.get(i);if(d===void 0){let h=xN(i)&&O0(i);h&&this.injectableDefInScope(h)?d=dl(Kh(i),Y3):d=null,this.records.set(i,d)}if(d!=null)return this.hydrate(i,d,n)}let s=n&ft.Self?A0():this.parent;return e=n&ft.Optional&&e===Hs?null:e,s.get(i,e)}catch(s){if(s.name==="NullInjectorError"){if((s[t0]=s[t0]||[]).unshift(Qi(i)),a)throw s;return aN(s,i,"R3InjectorError",this.source)}else throw s}finally{qi(o),Xa(a)}}resolveInjectorInitializers(){let i=ht(null),e=Xa(this),n=qi(void 0),r;try{let a=this.get(gl,Ai,ft.Self);for(let o of a)o()}finally{Xa(e),qi(n),ht(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(Qi(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=di(i);let e=_l(i)?i:di(i&&i.provide),n=bN(i);if(!_l(i)&&i.multi===!0){let r=this.records.get(e);r||(r=dl(void 0,Y3,!0),r.factory=()=>Yh(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let r=ht(null);try{return e.value===Wv?Gb(Qi(i)):e.value===Y3&&(e.value=Wv,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&CN(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ht(r)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=di(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function Kh(t){let i=O0(t),e=i!==null?i.factory:Fs(t);if(e!==null)return e;if(t instanceof A)throw new Ce(204,!1);if(t instanceof Function)return vN(t);throw new Ce(204,!1)}function vN(t){if(t.length>0)throw new Ce(204,!1);let e=WH(t);return e!==null?()=>e.factory(t):()=>new t}function bN(t){if(ny(t))return dl(void 0,t.useValue);{let i=iy(t);return dl(i,Y3)}}function iy(t,i,e){let n;if(_l(t)){let r=di(t);return Fs(r)||Kh(r)}else if(ny(t))n=()=>di(t.useValue);else if(gN(t))n=()=>t.useFactory(...Yh(t.deps||[]));else if(hN(t))n=(r,a)=>ae(di(t.useExisting),a!==void 0&&a&ft.Optional?ft.Optional:void 0);else{let r=di(t&&(t.useClass||t.provide));if(yN(t))n=()=>new r(...Yh(t.deps));else return Fs(r)||Kh(r)}return n}function w1(t){if(t.destroyed)throw new Ce(205,!1)}function dl(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function yN(t){return!!t.deps}function CN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function xN(t){return typeof t=="function"||typeof t=="object"&&t instanceof A}function Zh(t,i){for(let e of t)Array.isArray(e)?Zh(e,i):e&&$b(e)?Zh(e.\u0275providers,i):i(e)}function Ki(t,i){let e;t instanceof O1?(w1(t),e=t):e=new e0(t);let n,r=Xa(e),a=qi(void 0);try{return i()}finally{Xa(r),qi(a)}}function r8(){return Wb()!==void 0||_1()!=null}function a8(t){if(!r8())throw new Ce(-203,!1)}function MN(t){let i=ii.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function wN(t){return typeof t=="function"}var lo=0,ct=1,et=2,vi=3,qr=4,Zi=5,vl=6,r0=7,qn=8,bl=9,ao=10,an=11,I1=12,qv=13,Sl=14,pr=15,Bs=16,ul=17,oo=18,V0=19,ry=20,No=21,Ah=22,js=23,Ir=24,fl=25,Sn=26,ay=1;var Us=7,a0=8,yl=9,_i=10;function Fo(t){return Array.isArray(t)&&typeof t[ay]=="object"}function uo(t){return Array.isArray(t)&&t[ay]===!0}function o8(t){return(t.flags&4)!==0}function kl(t){return t.componentOffset>-1}function L0(t){return(t.flags&1)===1}function ya(t){return!!t.template}function o0(t){return(t[et]&512)!==0}function El(t){return(t[et]&256)===256}var Xh=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function oy(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var Pe=(()=>{let t=()=>sy;return t.ngInherit=!0,t})();function sy(t){return t.type.prototype.ngOnChanges&&(t.setInput=SN),DN}function DN(){let t=ly(this),i=t?.current;if(i){let e=t.previous;if(e===ba)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function SN(t,i,e,n,r){let a=this.declaredInputs[n],o=ly(t)||kN(t,{previous:ba,current:null}),s=o.current||(o.current={}),d=o.previous,h=d[a];s[a]=new Xh(h&&h.currentValue,e,d===ba),oy(t,i,r,e)}var cy="__ngSimpleChanges__";function ly(t){return t[cy]||null}function kN(t,i){return t[cy]=i}var Yv=null;var Qt=function(t,i=null,e){Yv?.(t,i,e)},dy="svg",EN="math";function Ca(t){for(;Array.isArray(t);)t=t[lo];return t}function uy(t,i){return Ca(i[t])}function Da(t,i){return Ca(i[t.index])}function s8(t,i){return t.data[i]}function N1(t,i){return t[i]}function my(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function xa(t,i){let e=i[t];return Fo(e)?e:e[lo]}function ON(t){return(t[et]&4)===4}function c8(t){return(t[et]&128)===128}function IN(t){return uo(t[vi])}function jo(t,i){return i==null?null:t[i]}function py(t){t[ul]=0}function fy(t){t[et]&1024||(t[et]|=1024,c8(t)&&Ol(t))}function PN(t,i){for(;t>0;)i=i[Sl],t--;return i}function R0(t){return!!(t[et]&9216||t[Ir]?.dirty)}function Jh(t){t[ao].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),R0(t)&&Ol(t)}function Ol(t){t[ao].changeDetectionScheduler?.notify(0);let i=$s(t);for(;i!==null&&!(i[et]&8192||(i[et]|=8192,!c8(i)));)i=$s(i)}function hy(t,i){if(El(t))throw new Ce(911,!1);t[No]===null&&(t[No]=[]),t[No].push(i)}function TN(t,i){if(t[No]===null)return;let e=t[No].indexOf(i);e!==-1&&t[No].splice(e,1)}function $s(t){let i=t[vi];return uo(i)?i[vi]:i}function l8(t){return t[r0]??=[]}function d8(t){return t.cleanup??=[]}function AN(t,i,e,n){let r=l8(i);r.push(e),t.firstCreatePass&&d8(t).push(n,r.length-1)}var ut={lFrame:Cy(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var e6=!1;function VN(){return ut.lFrame.elementDepthCount}function LN(){ut.lFrame.elementDepthCount++}function RN(){ut.lFrame.elementDepthCount--}function u8(){return ut.bindingsEnabled}function gy(){return ut.skipHydrationRootTNode!==null}function zN(t){return ut.skipHydrationRootTNode===t}function HN(){ut.skipHydrationRootTNode=null}function je(){return ut.lFrame.lView}function Kt(){return ut.lFrame.tView}function G(t){return ut.lFrame.contextLView=t,t[qn]}function W(t){return ut.lFrame.contextLView=null,t}function yi(){let t=_y();for(;t!==null&&t.type===64;)t=t.parent;return t}function _y(){return ut.lFrame.currentTNode}function NN(){let t=ut.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function Uo(t,i){let e=ut.lFrame;e.currentTNode=t,e.isParent=i}function m8(){return ut.lFrame.isParent}function p8(){ut.lFrame.isParent=!1}function FN(){return ut.lFrame.contextLView}function vy(){return e6}function s0(t){let i=e6;return e6=t,i}function Zs(){let t=ut.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function f8(){return ut.lFrame.bindingIndex}function BN(t){return ut.lFrame.bindingIndex=t}function Xs(){return ut.lFrame.bindingIndex++}function F1(t){let i=ut.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function jN(){return ut.lFrame.inI18n}function UN(t,i){let e=ut.lFrame;e.bindingIndex=e.bindingRootIndex=t,t6(i)}function $N(){return ut.lFrame.currentDirectiveIndex}function t6(t){ut.lFrame.currentDirectiveIndex=t}function GN(t){let i=ut.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function h8(){return ut.lFrame.currentQueryIndex}function z0(t){ut.lFrame.currentQueryIndex=t}function WN(t){let i=t[ct];return i.type===2?i.declTNode:i.type===1?t[Zi]:null}function by(t,i,e){if(e&ft.SkipSelf){let r=i,a=t;for(;r=r.parent,r===null&&!(e&ft.Host);)if(r=WN(a),r===null||(a=a[Sl],r.type&10))break;if(r===null)return!1;i=r,t=a}let n=ut.lFrame=yy();return n.currentTNode=i,n.lView=t,!0}function g8(t){let i=yy(),e=t[ct];ut.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function yy(){let t=ut.lFrame,i=t===null?null:t.child;return i===null?Cy(t):i}function Cy(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function xy(){let t=ut.lFrame;return ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var My=xy;function _8(){let t=xy();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function qN(t){return(ut.lFrame.contextLView=PN(t,ut.lFrame.contextLView))[qn]}function Qr(){return ut.lFrame.selectedIndex}function Gs(t){ut.lFrame.selectedIndex=t}function Il(){let t=ut.lFrame;return s8(t.tView,t.selectedIndex)}function Ut(){ut.lFrame.currentNamespace=dy}function Sa(){YN()}function YN(){ut.lFrame.currentNamespace=null}function QN(){return ut.lFrame.currentNamespace}var wy=!0;function H0(){return wy}function N0(t){wy=t}function KN(t,i,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=i.type.prototype;if(n){let o=sy(i);(e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o)}r&&(e.preOrderHooks??=[]).push(0-t,r),a&&((e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a))}function v8(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[d]<0&&(t[ul]+=65536),(s>14>16&&(t[et]&3)===i&&(t[et]+=16384,Qv(s,a)):Qv(s,a)}var hl=-1,Ws=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n){this.factory=i,this.canSeeViewProviders=e,this.injectImpl=n}};function XN(t){return(t.flags&8)!==0}function JN(t){return(t.flags&16)!==0}function eF(t,i,e){let n=0;for(;ni){o=a-1;break}}}for(;a>16}function l0(t,i){let e=nF(t),n=i;for(;e>0;)n=n[Sl],e--;return n}var n6=!0;function d0(t){let i=n6;return n6=t,i}var iF=256,Ey=iF-1,Oy=5,rF=0,va={};function aF(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(S1)&&(n=e[S1]),n==null&&(n=e[S1]=rF++);let r=n&Ey,a=1<>Oy)]|=a}function u0(t,i){let e=Iy(t,i);if(e!==-1)return e;let n=i[ct];n.firstCreatePass&&(t.injectorIndex=i.length,Lh(n.data,t),Lh(i,null),Lh(n.blueprint,null));let r=b8(t,i),a=t.injectorIndex;if(ky(r)){let o=c0(r),s=l0(r,i),d=s[ct].data;for(let h=0;h<8;h++)i[a+h]=s[o+h]|d[o+h]}return i[a+8]=r,a}function Lh(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Iy(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function b8(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;r!==null;){if(n=Ly(r),n===null)return hl;if(e++,r=r[Sl],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return hl}function i6(t,i,e){aF(t,i,e)}function oF(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,r=0;for(;r>20,C=n?s:s+v,S=r?s+v:h;for(let D=C;D=d&&L.type===e)return D}if(r){let D=o[d];if(D&&ya(D)&&D.type===e)return d}return null}function P1(t,i,e,n,r){let a=t[e],o=i.data;if(a instanceof Ws){let s=a;s.resolving&&Gb(XH(o[e]));let d=d0(s.canSeeViewProviders);s.resolving=!0;let h,v=s.injectImpl?qi(s.injectImpl):null,C=by(t,n,ft.Default);try{a=t[e]=s.factory(void 0,r,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&KN(e,o[e],i)}finally{v!==null&&qi(v),d0(d),s.resolving=!1,My()}}return a}function cF(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(S1)?t[S1]:void 0;return typeof i=="number"?i>=0?i&Ey:lF:i}function Zv(t,i,e){let n=1<>Oy)]&n)}function Xv(t,i){return!(t&ft.Self)&&!(t&ft.Host&&i)}var Ns=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return Ay(this._tNode,this._lView,i,I0(n),e)}};function lF(){return new Ns(yi(),je())}function we(t){return z1(()=>{let i=t.prototype.constructor,e=i[J3]||r6(i),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let a=r[J3]||r6(r);if(a&&a!==e)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function r6(t){return Fb(t)?()=>{let i=r6(di(t));return i&&i()}:Fs(t)}function dF(t,i,e,n,r){let a=t,o=i;for(;a!==null&&o!==null&&o[et]&2048&&!o0(o);){let s=Vy(a,o,e,n|ft.Self,va);if(s!==va)return s;let d=a.parent;if(!d){let h=o[ry];if(h){let v=h.get(e,va,n);if(v!==va)return v}d=Ly(o),o=o[Sl]}a=d}return r}function Ly(t){let i=t[ct],e=i.type;return e===2?i.declTNode:e===1?t[Zi]:null}function F0(t){return oF(yi(),t)}function Jv(t,i=null,e=null,n){let r=Ry(t,i,e,n);return r.resolveInjectorInitializers(),r}function Ry(t,i=null,e=null,n,r=new Set){let a=[e||Ai,pN(t)];return n=n||(typeof t=="object"?void 0:Qi(t)),new O1(a,i||A0(),n||null,r)}var Te=class t{static THROW_IF_NOT_FOUND=Hs;static NULL=new i0;static create(i,e){if(Array.isArray(i))return Jv({name:""},e,i,"");{let n=i.name??"";return Jv({name:n},i.parent,i.providers,n)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>ae(Kb)});static __NG_ELEMENT_ID__=-1};var hn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>F0(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},uF=new A("");uF.__NG_ELEMENT_ID__=t=>{let i=yi();if(i===null)throw new Ce(204,!1);if(i.type&2)return i.value;if(t&ft.Optional)return null;throw new Ce(204,!1)};var zy=!1,$o=(()=>{class t{static __NG_ELEMENT_ID__=mF;static __NG_ENV_ID__=e=>e}return t})(),m0=class extends $o{_lView;constructor(i){super(),this._lView=i}onDestroy(i){let e=this._lView;return El(e)?(i(),()=>{}):(hy(e,i),()=>TN(e,i))}};function mF(){return new m0(je())}var qs=class{},y8=new A("",{providedIn:"root",factory:()=>!1});var Hy=new A(""),Ny=new A(""),mo=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Je(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();var a6=class extends N{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,r8()&&(this.destroyRef=u($o,{optional:!0})??void 0,this.pendingTasks=u(mo,{optional:!0})??void 0)}emit(i){let e=ht(null);try{super.next(i)}finally{ht(e)}}subscribe(i,e,n){let r=i,a=e||(()=>null),o=n;if(i&&typeof i=="object"){let d=i;r=d.next?.bind(d),a=d.error?.bind(d),o=d.complete?.bind(d)}this.__isAsync&&(a=this.wrapInTimeout(a),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:a,complete:o});return i instanceof Me&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},j=a6;function T1(...t){}function Fy(t){let i,e;function n(){t=T1;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch{}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function eb(t){return queueMicrotask(()=>t()),()=>{t=T1}}var C8="isAngularZone",p0=C8+"_ID",pF=0,se=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new j(!1);onMicrotaskEmpty=new j(!1);onStable=new j(!1);onError=new j(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:a=zy}=i;if(typeof Zone>"u")throw new Ce(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,o.scheduleInRootZone=a,gF(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(C8)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Ce(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Ce(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){let a=this._inner,o=a.scheduleEventTask("NgZoneEvent: "+r,i,fF,T1,T1);try{return a.runTask(o,e,n)}finally{a.cancelTask(o)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},fF={};function x8(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function hF(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Fy(()=>{t.callbackScheduled=!1,o6(t),t.isCheckStableRunning=!0,x8(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),o6(t)}function gF(t){let i=()=>{hF(t)},e=pF++;t._inner=t._inner.fork({name:"angular",properties:{[C8]:!0,[p0]:e,[p0+e]:!0},onInvokeTask:(n,r,a,o,s,d)=>{if(_F(d))return n.invokeTask(a,o,s,d);try{return tb(t),n.invokeTask(a,o,s,d)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),nb(t)}},onInvoke:(n,r,a,o,s,d,h)=>{try{return tb(t),n.invoke(a,o,s,d,h)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!vF(d)&&i(),nb(t)}},onHasTask:(n,r,a,o)=>{n.hasTask(a,o),r===a&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,o6(t),x8(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,a,o)=>(n.handleError(a,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function o6(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function tb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function nb(t){t._nesting--,x8(t)}var f0=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new j;onMicrotaskEmpty=new j;onStable=new j;onError=new j;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}};function _F(t){return By(t,"__ignore_ng_zone__")}function vF(t){return By(t,"__scheduler_tick__")}function By(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function bF(t="zone.js",i){return t==="noop"?new f0:t==="zone.js"?new se(i):t}var Vi=class{_console=console;handleError(i){this._console.error("ERROR",i)}},yF=new A("",{providedIn:"root",factory:()=>{let t=u(se),i=u(Vi);return e=>t.runOutsideAngular(()=>i.handleError(e))}});function ib(t,i){return Hb(t,i)}function CF(t){return Hb(zb,t)}var jy=(ib.required=CF,ib);function xF(){return Pl(yi(),je())}function Pl(t,i){return new Y(Da(t,i))}var Y=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=xF}return t})();function Uy(t){return t instanceof Y?t.nativeElement:t}function Go(t){return typeof t=="function"&&t[Gi]!==void 0}function Hn(t,i){let e=uh(t,i?.equal),n=e[Gi];return e.set=r=>g1(n,r),e.update=r=>mh(n,r),e.asReadonly=MF.bind(e),e}function MF(){let t=this[Gi];if(t.readonlyFn===void 0){let i=()=>this();i[Gi]=t,t.readonlyFn=i}return t.readonlyFn}function $y(t){return Go(t)&&typeof t.set=="function"}function wF(){return this._results[Symbol.iterator]()}var kn=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new N}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=cN(i);(this._changesDetected=!sN(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=wF};function Gy(t){return(t.flags&128)===128}var Wy=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Wy||{}),qy=new Map,DF=0;function SF(){return DF++}function kF(t){qy.set(t[V0],t)}function s6(t){qy.delete(t[V0])}var rb="__ngContext__";function Tl(t,i){Fo(i)?(t[rb]=i[V0],kF(i)):t[rb]=i}function Yy(t){return Ky(t[I1])}function Qy(t){return Ky(t[qr])}function Ky(t){for(;t!==null&&!uo(t);)t=t[qr];return t}var c6;function Zy(t){c6=t}function Xy(){if(c6!==void 0)return c6;if(typeof document<"u")return document;throw new Ce(210,!1)}var Js=new A("",{providedIn:"root",factory:()=>EF}),EF="ng",M8=new A(""),Wo=new A("",{providedIn:"platform",factory:()=>"unknown"});var ze=new A(""),B1=new A("",{providedIn:"root",factory:()=>Xy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var OF="h",IF="b";var Jy=!1,PF=new A("",{providedIn:"root",factory:()=>Jy});var w8=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(w8||{}),Al=new A(""),ab=new Set;function qo(t){ab.has(t)||(ab.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var D8=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=TF}return t})();function TF(){return new D8(je(),yi())}var ml=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ml||{}),eC=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),AF=[ml.EarlyRead,ml.Write,ml.MixedReadWrite,ml.Read],VF=(()=>{class t{ngZone=u(se);scheduler=u(qs);errorHandler=u(Vi,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Al,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Qt(16),this.executing=!0;for(let n of AF)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let a=r.hooks[n];return a(r.pipelinedValue)},r.snapshot))}catch(a){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(a)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Qt(17)}register(e){let{view:n}=e;n!==void 0?((n[fl]??=[]).push(e),Ol(n),n[et]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,n){return n?n.run(w8.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),l6=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,r,a,o=null){this.impl=i,this.hooks=e,this.view=n,this.once=r,this.snapshot=o,this.unregisterOnDestroy=a?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[fl];i&&(this.view[fl]=i.filter(e=>e!==this))}};function ec(t,i){!i?.injector&&a8(ec);let e=i?.injector??u(Te);return qo("NgAfterRender"),tC(t,e,i,!1)}function kt(t,i){!i?.injector&&a8(kt);let e=i?.injector??u(Te);return qo("NgAfterNextRender"),tC(t,e,i,!0)}function LF(t,i){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[i]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function tC(t,i,e,n){let r=i.get(eC);r.impl??=i.get(VF);let a=i.get(Al,null,{optional:!0}),o=e?.phase??ml.MixedReadWrite,s=e?.manualCleanup!==!0?i.get($o):null,d=i.get(D8,null,{optional:!0}),h=new l6(r.impl,LF(t,o),d?.view,n,s,a?.snapshot(null));return r.impl.register(h),h}var RF=(t,i,e,n)=>{};function zF(t,i,e,n){RF(t,i,e,n)}var HF=()=>null;function nC(t,i,e=!1){return HF(t,i,e)}function iC(t,i){let e=t.contentQueries;if(e!==null){let n=ht(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return U3}function B0(t){return NF()?.createHTML(t)||t}var $3;function rC(){if($3===void 0&&($3=null,ii.trustedTypes))try{$3=ii.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return $3}function ob(t){return rC()?.createHTML(t)||t}function sb(t){return rC()?.createScriptURL(t)||t}var so=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rb})`}},u6=class extends so{getTypeName(){return"HTML"}},m6=class extends so{getTypeName(){return"Style"}},p6=class extends so{getTypeName(){return"Script"}},f6=class extends so{getTypeName(){return"URL"}},h6=class extends so{getTypeName(){return"ResourceURL"}};function Pr(t){return t instanceof so?t.changingThisBreaksApplicationSecurity:t}function po(t,i){let e=FF(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Rb})`)}return e===i}function FF(t){return t instanceof so&&t.getTypeName()||null}function aC(t){return new u6(t)}function oC(t){return new m6(t)}function sC(t){return new p6(t)}function cC(t){return new f6(t)}function lC(t){return new h6(t)}function BF(t){let i=new _6(t);return jF()?new g6(i):i}var g6=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(B0(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},_6=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=B0(i),e}};function jF(){try{return!!new window.DOMParser().parseFromString(B0(""),"text/html")}catch{return!1}}var UF=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function j0(t){return t=String(t),t.match(UF)?t:"unsafe:"+t}function fo(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function j1(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var dC=fo("area,br,col,hr,img,wbr"),uC=fo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mC=fo("rp,rt"),$F=j1(mC,uC),GF=j1(uC,fo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),WF=j1(mC,fo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),cb=j1(dC,GF,WF,$F),pC=fo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qF=fo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),YF=fo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),QF=j1(pC,qF,YF),KF=fo("script,style,template"),v6=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=JF(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let a=XF(e);if(a){e=a;break}e=r.pop()}}return this.buf.join("")}startElement(i){let e=lb(i).toLowerCase();if(!cb.hasOwnProperty(e))return this.sanitizedSomething=!0,!KF.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let r=0;r"),!0}endElement(i){let e=lb(i).toLowerCase();cb.hasOwnProperty(e)&&!dC.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(db(i))}};function ZF(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function XF(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw fC(i);return i}function JF(t){let i=t.firstChild;if(i&&ZF(t,i))throw fC(i);return i}function lb(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function fC(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var eB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tB=/([^\#-~ |!])/g;function db(t){return t.replace(/&/g,"&").replace(eB,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(tB,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var G3;function k8(t,i){let e=null;try{G3=G3||BF(t);let n=i?String(i):"";e=G3.getInertBodyElement(n);let r=5,a=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=a,a=e.innerHTML,e=G3.getInertBodyElement(n)}while(n!==a);let s=new v6().sanitizeChildren(ub(e)||e);return B0(s)}finally{if(e){let n=ub(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function ub(t){return"content"in t&&nB(t)?t.content:null}function nB(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ln=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ln||{});function Vl(t){let i=O8();return i?ob(i.sanitize(Ln.HTML,t)||""):po(t,"HTML")?ob(Pr(t)):k8(Xy(),Yi(t))}function E8(t){let i=O8();return i?i.sanitize(Ln.URL,t)||"":po(t,"URL")?Pr(t):j0(Yi(t))}function iB(t){let i=O8();if(i)return sb(i.sanitize(Ln.RESOURCE_URL,t)||"");if(po(t,"ResourceURL"))return sb(Pr(t));throw new Ce(904,!1)}function rB(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?iB:E8}function hC(t,i,e){return rB(i,e)(t)}function O8(){let t=je();return t&&t[ao].sanitizer}var aB=/^>|^->||--!>|)/g,sB="\u200B$1\u200B";function cB(t){return t.replace(aB,i=>i.replace(oB,sB))}function Que(t){return t.ownerDocument.defaultView}function Kue(t){return t.ownerDocument}function gC(t){return t instanceof Function?t():t}function lB(t,i,e){let n=t.length;for(;;){let r=t.indexOf(i,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let a=i.length;if(r+a===n||t.charCodeAt(r+a)<=32)return r}e=r+1}}var _C="ng-template";function dB(t,i,e,n){let r=0;if(n){for(;r-1){let a;for(;++ra?C="":C=r[v+1].toLowerCase(),n&2&&h!==C){if(Gr(n))return!1;o=!0}}}}return Gr(n)||o}function Gr(t){return(t&1)===0}function pB(t,i,e,n){if(i===null)return-1;let r=0;if(n||!e){let a=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!Gr(o)&&(i+=mb(a,r),r=""),n=o,a=a||!Gr(n);e++}return r!==""&&(i+=mb(a,r)),i}function bB(t){return t.map(vB).join(",")}function yB(t){let i=[],e=[],n=1,r=2;for(;nSn&&wC(t,i,Sn,!1),Qt(o?2:0,r),e(n,r)}finally{Gs(a),Qt(o?3:1,r)}}function $0(t,i,e){LB(t,i,e),(e.flags&64)===64&&RB(t,i,e)}function V8(t,i,e=Da){let n=i.localNames;if(n!==null){let r=i.index+1;for(let a=0;anull;function AB(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function U1(t,i,e,n,r,a,o,s){if(!s&&R8(i,t,e,n,r)){kl(i)&&VB(e,i.index);return}if(i.type&3){let d=Da(i,e);n=AB(n),r=o!=null?o(r,i.value||"",n):r,a.setProperty(d,n,r)}else i.type&12}function VB(t,i){let e=xa(i,t);e[et]&16||(e[et]|=64)}function LB(t,i,e){let n=e.directiveStart,r=e.directiveEnd;kl(e)&&OB(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||u0(e,i);let a=e.initialInputs;for(let o=n;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[e[o+1]];e[o].call(s)}n!==null&&(i[r0]=null);let r=i[No];if(r!==null){i[No]=null;for(let o=0;o{Ol(t.lView)},consumerOnSignalRead(){this.lView[Ir]=this}});function cj(t){let i=t[Ir]??Object.create(lj);return i.lView=t,i}var lj=Be(q({},Yc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=$s(t.lView);for(;i&&!AC(i[ct]);)i=$s(i);i&&fy(i)},consumerOnSignalRead(){this.lView[Ir]=this}});function AC(t){return t.type!==2}function VC(t){if(t[js]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[js])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[et]&8192)}}var dj=100;function LC(t,i=!0,e=0){let r=t[ao].rendererFactory,a=!1;a||r.begin?.();try{uj(t,e)}catch(o){throw i&&BB(t,o),o}finally{a||r.end?.()}}function uj(t,i){let e=vy();try{s0(!0),C6(t,i);let n=0;for(;R0(t);){if(n===dj)throw new Ce(103,!1);n++,C6(t,1)}}finally{s0(e)}}function mj(t,i,e,n){if(El(i))return;let r=i[et],a=!1,o=!1;g8(i);let s=!0,d=null,h=null;a||(AC(t)?(h=rj(i),d=f1(h)):oh()===null?(s=!1,h=cj(i),d=f1(h)):i[Ir]&&(h1(i[Ir]),i[Ir]=null));try{py(i),BN(t.bindingStartIndex),e!==null&&DC(t,i,e,2,n);let v=(r&3)===3;if(!a)if(v){let D=t.preOrderCheckHooks;D!==null&&Q3(i,D,null)}else{let D=t.preOrderHooks;D!==null&&K3(i,D,0,null),Vh(i,0)}if(o||pj(i),VC(i),RC(i,0),t.contentQueries!==null&&iC(t,i),!a)if(v){let D=t.contentCheckHooks;D!==null&&Q3(i,D)}else{let D=t.contentHooks;D!==null&&K3(i,D,1),Vh(i,1)}hj(t,i);let C=t.components;C!==null&&HC(i,C,0);let S=t.viewQuery;if(S!==null&&d6(2,S,n),!a)if(v){let D=t.viewCheckHooks;D!==null&&Q3(i,D)}else{let D=t.viewHooks;D!==null&&K3(i,D,2),Vh(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Ah]){for(let D of i[Ah])D();i[Ah]=null}a||(PC(i),i[et]&=-73)}catch(v){throw a||Ol(i),v}finally{h!==null&&(s3(h,d),s&&oj(h)),_8()}}function RC(t,i){for(let e=Yy(t);e!==null;e=Qy(e))for(let n=_i;n0&&(t[e-1][qr]=n[qr]);let a=n0(t,_i+i);WB(n[ct],n);let o=a[oo];o!==null&&o.detachView(a[ct]),n[vi]=null,n[qr]=null,n[et]&=-129}return n}function gj(t,i,e,n){let r=_i+n,a=e.length;n>0&&(e[r-1][qr]=i),n-1&&(A1(i,n),n0(e,n))}this._attachedToViewContainer=!1}G0(this._lView[ct],this._lView)}onDestroy(i){hy(this._lView,i)}markForCheck(){j8(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Jh(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,LC(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=o0(this._lView),e=this._lView[Bs];e!==null&&!i&&F8(e,this._lView),SC(this._lView[ct],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ce(902,!1);this._appRef=i;let e=o0(this._lView),n=this._lView[Bs];n!==null&&!e&&jC(n,this._lView),Jh(this._lView)}};var Qe=(()=>{class t{static __NG_ELEMENT_ID__=bj}return t})(),_j=Qe,vj=class extends _j{_declarationLView;_declarationTContainer;elementRef;constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){let r=$1(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:e,dehydratedView:n});return new V1(r)}};function bj(){return Y0(yi(),je())}function Y0(t,i){return t.type&4?new vj(i,t,Pl(t,i)):null}function Ll(t,i,e,n,r){let a=t.data[i];if(a===null)a=yj(t,i,e,n,r),jN()&&(a.flags|=32);else if(a.type&64){a.type=e,a.value=n,a.attrs=r;let o=NN();a.injectorIndex=o===null?-1:o.injectorIndex}return Uo(a,!0),a}function yj(t,i,e,n,r){let a=_y(),o=m8(),s=o?a:a&&a.parent,d=t.data[i]=xj(t,s,e,i,n,r);return Cj(t,d,a,o),d}function Cj(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function xj(t,i,e,n,r,a){let o=i?i.injectorIndex:-1,s=0;return gy()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var Jue=new RegExp(`^(\\d+)*(${IF}|${OF})*(.*)`);var Mj=()=>null;function Ml(t,i){return Mj(t,i)}var wj=class{},UC=class{},x6=class{resolveComponentFactory(i){throw Error(`No component factory found for ${Qi(i)}.`)}},Q0=class{static NULL=new x6},En=class{},Ke=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>Dj()}return t})();function Dj(){let t=je(),i=yi(),e=xa(i.index,t);return(Fo(e)?e:t)[an]}var Sj=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var zh={},M6=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=I0(n);let r=this.injector.get(i,zh,n);return r!==zh||e===zh?r:this.parentInjector.get(i,e,n)}};function w6(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,a=0;if(i!==null)for(let o=0;o0&&(e.directiveToIndex=new Map);for(let S=0;S0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function Rj(t,i,e){if(e){if(i.exportAs)for(let n=0;n{let[e,n,r]=t[i],a={propName:e,templateName:i,isSignal:(n&U0.SignalBased)!==0};return r&&(a.transform=r),a})}function Nj(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function Fj(t,i,e){let n=i instanceof fn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new M6(e,n):e}function Bj(t){let i=t.get(En,null);if(i===null)throw new Ce(407,!1);let e=t.get(Sj,null),n=t.get(qs,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n}}function jj(t,i){let e=(t.selectors[0][0]||"div").toLowerCase();return bC(i,e,e==="svg"?dy:e==="math"?EN:null)}var Ys=class extends UC{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Hj(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Nj(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=bB(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,r){Qt(22);let a=ht(null);try{let o=this.componentDef,s=n?["ng-version","19.2.14"]:yB(this.componentDef.selectors[0]),d=P8(0,null,null,1,0,null,null,null,null,[s],null),h=Fj(o,r||this.ngModule,i),v=Bj(h),C=v.rendererFactory.createRenderer(null,o),S=n?IB(C,n,o.encapsulation,h):jj(o,C),D=T8(null,d,null,512|xC(o),null,null,v,C,h,null,nC(S,h,!0));D[Sn]=S,g8(D);let L=null;try{let ne=GC(Sn,d,D,"#host",()=>[this.componentDef],!0,0);S&&(CC(C,S,ne),Tl(S,D)),$0(d,D,ne),S8(d,ne,D),WC(d,ne),e!==void 0&&Uj(ne,this.ngContentSelectors,e),L=xa(ne.index,D),D[qn]=L[qn],z8(d,D,null)}catch(ne){throw L!==null&&s6(L),s6(D),ne}finally{Qt(23),_8()}return new D6(this.componentType,D)}finally{ht(a)}}},D6=class extends wj{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e){super(),this._rootLView=e,this._tNode=s8(e[ct],Sn),this.location=Pl(this._tNode,e),this.instance=xa(this._tNode.index,e)[qn],this.hostView=this.changeDetectorRef=new V1(e,void 0,!1),this.componentType=i}setInput(i,e){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let r=this._rootLView,a=R8(n,r[ct],r,i,e);this.previousInputValues.set(i,e);let o=xa(n.index,r);j8(o,1)}get injector(){return new Ns(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function Uj(t,i,e){let n=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=$j}return t})();function $j(){let t=yi();return YC(t,je())}var Gj=rt,qC=class extends Gj{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Pl(this._hostTNode,this._hostLView)}get injector(){return new Ns(this._hostTNode,this._hostLView)}get parentInjector(){let i=b8(this._hostTNode,this._hostLView);if(ky(i)){let e=l0(i,this._hostLView),n=c0(i),r=e[ct].data[n+8];return new Ns(r,e)}else return new Ns(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=vb(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-_i}createEmbeddedView(i,e,n){let r,a;typeof n=="number"?r=n:n!=null&&(r=n.index,a=n.injector);let o=Ml(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},a,o);return this.insertImpl(s,r,xl(this._hostTNode,o)),s}createComponent(i,e,n,r,a){let o=i&&!wN(i),s;if(o)s=e;else{let L=e||{};s=L.index,n=L.injector,r=L.projectableNodes,a=L.environmentInjector||L.ngModuleRef}let d=o?i:new Ys(Bo(i)),h=n||this.parentInjector;if(!a&&d.ngModule==null){let ne=(o?h:this.parentInjector).get(fn,null);ne&&(a=ne)}let v=Bo(d.componentType??{}),C=Ml(this._lContainer,v?.id??null),S=C?.firstChild??null,D=d.create(h,r,S,a);return this.insertImpl(D.hostView,s,xl(this._hostTNode,C)),D}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let r=i._lView;if(IN(r)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let d=r[vi],h=new qC(d,d[Zi],d[vi]);h.detach(h.indexOf(i))}}let a=this._adjustIndex(e),o=this._lContainer;return G1(o,r,a,n),i.attachToViewContainerRef(),Qb(Hh(o),a,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=vb(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=A1(this._lContainer,e);n&&(n0(Hh(this._lContainer),e),G0(n[ct],n))}detach(i){let e=this._adjustIndex(i,-1),n=A1(this._lContainer,e);return n&&n0(Hh(this._lContainer),e)!=null?new V1(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function vb(t){return t[a0]}function Hh(t){return t[a0]||(t[a0]=[])}function YC(t,i){let e,n=i[t.index];return uo(n)?e=n:(e=NC(n,i,null,t),i[t.index]=e,A8(i,e)),qj(e,i,t,n),new qC(e,t,i)}function Wj(t,i){let e=t[an],n=e.createComment(""),r=Da(i,t),a=e.parentNode(r);return h0(e,a,n,e.nextSibling(r),!1),n}var qj=Kj,Yj=()=>!1;function Qj(t,i,e){return Yj(t,i,e)}function Kj(t,i,e,n){if(t[Us])return;let r;e.type&8?r=Ca(n):r=Wj(i,e),t[Us]=r}var S6=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},k6=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,r=[];for(let a=0;a0)n.push(o[s/2]);else{let h=a[s+1],v=i[-d];for(let C=_i;Ci.trim())}function XC(t,i,e){t.queries===null&&(t.queries=new E6),t.queries.track(new O6(i,e))}function iU(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function G8(t,i){return t.queries.getByIndex(i)}function JC(t,i){let e=t[ct],n=G8(e,i);return n.crossesNgTemplate?I6(e,t,i,[]):QC(e,t,n,i)}function ex(t,i,e){let n,r=u3(()=>{n._dirtyCounter();let a=sU(n,t);if(i&&a===void 0)throw new Ce(-951,!1);return a});return n=r[Gi],n._dirtyCounter=Hn(0),n._flatValue=void 0,r}function rU(t){return ex(!0,!1,t)}function aU(t){return ex(!0,!0,t)}function oU(t,i){let e=t[Gi];e._lView=je(),e._queryIndex=i,e._queryList=$8(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function sU(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[et]&4)return i?void 0:Ai;let r=$8(e,n),a=JC(e,n);return r.reset(a,Uy),i?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function bb(t,i){return rU(i)}function cU(t,i){return aU(i)}var tx=(bb.required=cU,bb);function lU(t){let i=[],e=new Map;function n(r){let a=e.get(r);if(!a){let o=t(r);e.set(r,a=o.then(pU))}return a}return b0.forEach((r,a)=>{let o=[];r.templateUrl&&o.push(n(r.templateUrl).then(h=>{r.template=h}));let s=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=s,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let h=r.styles.length,v=r.styleUrls;r.styleUrls.forEach((C,S)=>{s.push(""),o.push(n(C).then(D=>{s[h+S]=D,v.splice(v.indexOf(C),1),v.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&o.push(n(r.styleUrl).then(h=>{s.push(h),r.styleUrl=void 0}));let d=Promise.all(o).then(()=>fU(a));i.push(d)}),uU(),Promise.all(i).then(()=>{})}var b0=new Map,dU=new Set;function uU(){let t=b0;return b0=new Map,t}function mU(){return b0.size===0}function pU(t){return typeof t=="string"?t:t.text()}function fU(t){dU.delete(t)}var co=class{},W8=class{};var y0=class extends co{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new _0(this);constructor(i,e,n,r=!0){super(),this.ngModuleType=i,this._parent=e;let a=Xb(i);this._bootstrapComponents=gC(a.bootstrap),this._r3Injector=Ry(i,e,[{provide:co,useValue:this},{provide:Q0,useValue:this.componentFactoryResolver},...n],Qi(i),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},C0=class extends W8{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new y0(this.moduleType,i,[])}};function hU(t,i,e){return new y0(t,i,e,!1)}var P6=class extends co{injector;componentFactoryResolver=new _0(this);instance=null;constructor(i){super();let e=new O1([...i.providers,{provide:co,useValue:this},{provide:Q0,useValue:this.componentFactoryResolver}],i.parent||A0(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function W1(t,i,e=null){return new P6({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var gU=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=ey(!1,e.type),r=n.length>0?W1([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(ae(fn))})}return t})();function I(t){return z1(()=>{let i=nx(t),e=Be(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Wy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?r=>r.get(gU).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ma.Emulated,styles:t.styles||Ai,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&qo("NgStandalone"),ix(e);let n=t.dependencies;return e.directiveDefs=yb(n,!1),e.pipeDefs=yb(n,!0),e.id=CU(e),e})}function _U(t){return Bo(t)||Jb(t)}function vU(t){return t!==null}function K(t){return z1(()=>({type:t.type,bootstrap:t.bootstrap||Ai,declarations:t.declarations||Ai,imports:t.imports||Ai,exports:t.exports||Ai,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function bU(t,i){if(t==null)return ba;let e={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],a,o,s,d;Array.isArray(r)?(s=r[0],a=r[1],o=r[2]??a,d=r[3]||null):(a=r,o=r,s=U0.None,d=null),e[a]=[n,s,d],i[a]=o}return e}function yU(t){if(t==null)return ba;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function V(t){return z1(()=>{let i=nx(t);return ix(i),i})}function _t(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function nx(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||ba,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ai,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:bU(t.inputs,i),outputs:yU(t.outputs),debugInfo:null}}function ix(t){t.features?.forEach(i=>i(t))}function yb(t,i){if(!t)return null;let e=i?mN:_U;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(vU)}function CU(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let a of n.join("|"))i=Math.imul(31,i)+a.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function xU(t){return Object.getPrototypeOf(t.prototype).constructor}function ce(t){let i=xU(t.type),e=!0,n=[t];for(;i;){let r;if(ya(t))r=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Ce(903,!1);r=i.\u0275dir}if(r){if(e){n.push(r);let o=t;o.inputs=Nh(t.inputs),o.declaredInputs=Nh(t.declaredInputs),o.outputs=Nh(t.outputs);let s=r.hostBindings;s&&kU(t,s);let d=r.viewQuery,h=r.contentQueries;if(d&&DU(t,d),h&&SU(t,h),MU(t,r),$H(t.outputs,r.outputs),ya(r)&&r.data.animation){let v=t.data;v.animation=(v.animation||[]).concat(r.data.animation)}}let a=r.features;if(a)for(let o=0;o=0;n--){let r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=Cl(r.hostAttrs,e=Cl(e,r.hostAttrs))}}function Nh(t){return t===ba?{}:t===Ai?[]:t}function DU(t,i){let e=t.viewQuery;e?t.viewQuery=(n,r)=>{i(n,r),e(n,r)}:t.viewQuery=i}function SU(t,i){let e=t.contentQueries;e?t.contentQueries=(n,r,a)=>{i(n,r,a),e(n,r,a)}:t.contentQueries=i}function kU(t,i){let e=t.hostBindings;e?t.hostBindings=(n,r)=>{i(n,r),e(n,r)}:t.hostBindings=i}function rx(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=ax,e.hostDirectives=n?t.map(T6):[t]):n?e.hostDirectives.unshift(...t.map(T6)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function ax(t,i,e){if(t.hostDirectives!==null)for(let n of t.hostDirectives)if(typeof n=="function"){let r=n();for(let a of r)Cb(T6(a),i,e)}else Cb(n,i,e)}function Cb(t,i,e){let n=Jb(t.directive);EU(n.declaredInputs,t.inputs),ax(n,i,e),e.set(n,t),i.push(n)}function T6(t){return typeof t=="function"?{directive:di(t),inputs:ba,outputs:ba}:{directive:di(t.directive),inputs:xb(t.inputs),outputs:xb(t.outputs)}}function xb(t){if(t===void 0||t.length===0)return ba;let i={};for(let e=0;e{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var Q8=new A(""),Y1=new A(""),Z0=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,r){this._ngZone=e,this.registry=n,r8()&&(this._destroyRef=u($o,{optional:!0})??void 0),K8||(VU(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let a=-1;n&&n>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==a),e()},n)),this._callbacks.push({doneCb:e,timeoutId:a,updateCb:r})}whenStable(e,n,r){if(r&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,r),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}static \u0275fac=function(n){return new(n||t)(ae(se),ae(X0),ae(Y1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),X0=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return K8?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function VU(t){K8=t}var K8,lx=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new A6})}return t})(),A6=class{queuedEffectCount=0;queues=new Map;schedule(i){this.enqueue(i)}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),this.queuedEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||(this.queuedEffectCount++,n.add(i))}flush(){for(;this.queuedEffectCount>0;)for(let[i,e]of this.queues)i===null?this.flushQueue(e):i.run(()=>this.flushQueue(e))}flushQueue(i){for(let e of i)i.delete(e),this.queuedEffectCount--,e.run()}};function Yo(t){return!!t&&typeof t.then=="function"}function Z8(t){return!!t&&typeof t.subscribe=="function"}var dx=new A("");function X8(t){return Dl([{provide:dx,multi:!0,useValue:t}])}var ux=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=u(dx,{optional:!0})??[];injector=u(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let a=Ki(this.injector,r);if(Yo(a))e.push(a);else if(Z8(a)){let o=new Promise((s,d)=>{a.subscribe({complete:s,error:d})});e.push(o)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),J8=new A("");function LU(){dh(()=>{throw new Ce(600,!1)})}function RU(t){return t.isBoundToModule}var zU=10;function mx(t,i){return Array.isArray(i)?i.reduce(mx,t):q(q({},t),i)}var bi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(yF);afterRenderManager=u(eC);zonelessEnabled=u(y8);rootEffectScheduler=u(lx);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new N;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=u(mo).hasPendingTasks.pipe(pe(e=>!e));constructor(){u(Al,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:r=>{r&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=u(fn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,r=Te.NULL){Qt(10);let a=e instanceof UC;if(!this._injector.get(ux).done){let D="";throw new Ce(405,D)}let s;a?s=e:s=this._injector.get(Q0).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let d=RU(s)?void 0:this._injector.get(co),h=n||s.selector,v=s.create(r,[],h,d),C=v.location.nativeElement,S=v.injector.get(Q8,null);return S?.registerApplication(C),v.onDestroy(()=>{this.detachView(v.hostView),X3(this.components,v),S?.unregisterApplication(C)}),this._loadComponent(v),Qt(11,v),v}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Qt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(w8.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Ce(101,!1);let e=ht(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ht(e),this.afterTick.next(),Qt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(En,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++R0(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;X3(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(J8,[]).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>X3(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ce(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function X3(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function HU(t,i,e,n){if(!e&&!R0(t))return;LC(t,i,e&&!n?0:1)}function ee(t,i,e,n){let r=je(),a=Xs();if(fr(r,a,i)){let o=Kt(),s=Il();HB(s,r,t,i,e,n)}return ee}function eg(t,i,e,n){return fr(t,Xs(),e)?i+Yi(e)+n:Yn}function px(t,i,e,n,r,a){let o=f8(),s=L1(t,o,e,r);return F1(2),s?i+Yi(e)+n+Yi(r)+a:Yn}function NU(t,i,e,n,r,a,o,s){let d=f8(),h=sx(t,d,e,r,o);return F1(3),h?i+Yi(e)+n+Yi(r)+a+Yi(o)+s:Yn}function FU(t,i,e,n,r,a,o,s,d,h){let v=f8(),C=cx(t,v,e,r,o,d);return F1(4),C?i+Yi(e)+n+Yi(r)+a+Yi(o)+s+Yi(d)+h:Yn}function W3(t,i){return t<<17|i<<2}function Qs(t){return t>>17&32767}function BU(t){return(t&2)==2}function jU(t,i){return t&131071|i<<17}function V6(t){return t|2}function wl(t){return(t&131068)>>2}function Fh(t,i){return t&-131069|i<<2}function UU(t){return(t&1)===1}function L6(t){return t|1}function $U(t,i,e,n,r,a){let o=a?i.classBindings:i.styleBindings,s=Qs(o),d=wl(o);t[n]=e;let h=!1,v;if(Array.isArray(e)){let C=e;v=C[1],(v===null||H1(C,v)>0)&&(h=!0)}else v=e;if(r)if(d!==0){let S=Qs(t[s+1]);t[n+1]=W3(S,s),S!==0&&(t[S+1]=Fh(t[S+1],n)),t[s+1]=jU(t[s+1],n)}else t[n+1]=W3(s,0),s!==0&&(t[s+1]=Fh(t[s+1],n)),s=n;else t[n+1]=W3(d,0),s===0?s=n:t[d+1]=Fh(t[d+1],n),d=n;h&&(t[n+1]=V6(t[n+1])),Mb(t,v,n,!0),Mb(t,v,n,!1),GU(i,v,t,n,a),o=W3(s,d),a?i.classBindings=o:i.styleBindings=o}function GU(t,i,e,n,r){let a=r?t.residualClasses:t.residualStyles;a!=null&&typeof i=="string"&&H1(a,i)>=0&&(e[n+1]=L6(e[n+1]))}function Mb(t,i,e,n){let r=t[e+1],a=i===null,o=n?Qs(r):wl(r),s=!1;for(;o!==0&&(s===!1||a);){let d=t[o],h=t[o+1];WU(d,i)&&(s=!0,t[o+1]=n?L6(h):V6(h)),o=n?Qs(h):wl(h)}s&&(t[e+1]=n?V6(r):L6(r))}function WU(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?H1(t,i)>=0:!1}var Wr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qU(t){return t.substring(Wr.key,Wr.keyEnd)}function YU(t){return QU(t),fx(t,hx(t,0,Wr.textEnd))}function fx(t,i){let e=Wr.textEnd;return e===i?-1:(i=Wr.keyEnd=KU(t,Wr.key=i,e),hx(t,i,e))}function QU(t){Wr.key=0,Wr.keyEnd=0,Wr.value=0,Wr.valueEnd=0,Wr.textEnd=t.length}function hx(t,i,e){for(;i32;)i++;return i}function y(t,i,e){let n=je(),r=Xs();if(fr(n,r,i)){let a=Kt(),o=Il();U1(a,o,n,t,i,n[an],e,!1)}return y}function R6(t,i,e,n,r){R8(i,t,e,r?"class":"style",n)}function Et(t,i,e){return _x(t,i,e,!1),Et}function te(t,i){return _x(t,i,null,!0),te}function It(t){vx(n$,gx,t,!0)}function gx(t,i){for(let e=YU(i);e>=0;e=fx(i,e))P0(t,qU(i),!0)}function _x(t,i,e,n){let r=je(),a=Kt(),o=F1(2);if(a.firstUpdatePass&&yx(a,t,o,n),i!==Yn&&fr(r,o,i)){let s=a.data[Qr()];Cx(a,s,r,r[an],t,r[o+1]=r$(i,e),n,o)}}function vx(t,i,e,n){let r=Kt(),a=F1(2);r.firstUpdatePass&&yx(r,null,a,n);let o=je();if(e!==Yn&&fr(o,a,e)){let s=r.data[Qr()];if(xx(s,n)&&!bx(r,a)){let d=n?s.classesWithoutHost:s.stylesWithoutHost;d!==null&&(e=Gh(d,e||"")),R6(r,s,o,e,n)}else i$(r,s,o,o[an],o[a+1],o[a+1]=t$(t,i,e),n,a)}}function bx(t,i){return i>=t.expandoStartIndex}function yx(t,i,e,n){let r=t.data;if(r[e+1]===null){let a=r[Qr()],o=bx(t,e);xx(a,n)&&i===null&&!o&&(i=!1),i=ZU(r,a,i,n),$U(r,a,i,e,o,n)}}function ZU(t,i,e,n){let r=GN(t),a=n?i.residualClasses:i.residualStyles;if(r===null)(n?i.classBindings:i.styleBindings)===0&&(e=Bh(null,t,i,e,n),e=R1(e,i.attrs,n),a=null);else{let o=i.directiveStylingLast;if(o===-1||t[o]!==r)if(e=Bh(r,t,i,e,n),a===null){let d=XU(t,i,n);d!==void 0&&Array.isArray(d)&&(d=Bh(null,t,i,d[1],n),d=R1(d,i.attrs,n),JU(t,i,n,d))}else a=e$(t,i,n)}return a!==void 0&&(n?i.residualClasses=a:i.residualStyles=a),e}function XU(t,i,e){let n=e?i.classBindings:i.styleBindings;if(wl(n)!==0)return t[Qs(n)]}function JU(t,i,e,n){let r=e?i.classBindings:i.styleBindings;t[Qs(r)]=n}function e$(t,i,e){let n,r=i.directiveEnd;for(let a=1+i.directiveStylingLast;a0;){let d=t[r],h=Array.isArray(d),v=h?d[1]:d,C=v===null,S=e[r+1];S===Yn&&(S=C?Ai:void 0);let D=C?Ph(S,n):v===n?S:void 0;if(h&&!M0(D)&&(D=Ph(d,n)),M0(D)&&(s=D,o))return s;let L=t[r+1];r=o?Qs(L):wl(L)}if(i!==null){let d=a?i.residualClasses:i.residualStyles;d!=null&&(s=Ph(d,n))}return s}function M0(t){return t!==void 0}function r$(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=Qi(Pr(t)))),t}function xx(t,i){return(t.flags&(i?8:16))!==0}function J0(t,i,e){let n=je(),r=eg(n,t,i,e);vx(P0,gx,r,!0)}var z6=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),r=Math.max(i,e),a=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,a),this.attach(r,o)}else this.attach(n,a)}move(i,e){this.attach(e,this.detach(i))}};function jh(t,i,e,n,r){return t===e&&Object.is(i,n)?1:Object.is(r(t,i),r(e,n))?-1:0}function a$(t,i,e){let n,r,a=0,o=t.length-1,s=void 0;if(Array.isArray(i)){let d=i.length-1;for(;a<=o&&a<=d;){let h=t.at(a),v=i[a],C=jh(a,h,a,v,e);if(C!==0){C<0&&t.updateValue(a,v),a++;continue}let S=t.at(o),D=i[d],L=jh(o,S,d,D,e);if(L!==0){L<0&&t.updateValue(o,D),o--,d--;continue}let ne=e(a,h),oe=e(o,S),ye=e(a,v);if(Object.is(ye,oe)){let qe=e(d,D);Object.is(qe,ne)?(t.swap(a,o),t.updateValue(o,D),d--,o--):t.move(o,a),t.updateValue(a,v),a++;continue}if(n??=new w0,r??=Sb(t,a,o,e),H6(t,n,a,ye))t.updateValue(a,v),a++,o++;else if(r.has(ye))n.set(ne,t.detach(a)),o--;else{let qe=t.create(a,i[a]);t.attach(a,qe),a++,o++}}for(;a<=d;)Db(t,n,e,a,i[a]),a++}else if(i!=null){let d=i[Symbol.iterator](),h=d.next();for(;!h.done&&a<=o;){let v=t.at(a),C=h.value,S=jh(a,v,a,C,e);if(S!==0)S<0&&t.updateValue(a,C),a++,h=d.next();else{n??=new w0,r??=Sb(t,a,o,e);let D=e(a,C);if(H6(t,n,a,D))t.updateValue(a,C),a++,o++,h=d.next();else if(!r.has(D))t.attach(a,t.create(a,C)),a++,o++,h=d.next();else{let L=e(a,v);n.set(L,t.detach(a)),o--}}}for(;!h.done;)Db(t,n,e,t.length,h.value),h=d.next()}for(;a<=o;)t.destroy(t.detach(o--));n?.forEach(d=>{t.destroy(d)})}function H6(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Db(t,i,e,n,r){if(H6(t,i,n,e(n,r)))t.updateValue(n,r);else{let a=t.create(n,r);t.attach(n,a)}}function Sb(t,i,e,n){let r=new Set;for(let a=i;a<=e;a++)r.add(n(a,t.at(a)));return r}var w0=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),i(n,e)}}};function ke(t,i){qo("NgControlFlow");let e=je(),n=Xs(),r=e[n]!==Yn?e[n]:-1,a=r!==-1?D0(e,Sn+r):void 0,o=0;if(fr(e,n,t)){let s=ht(null);try{if(a!==void 0&&BC(a,o),t!==-1){let d=Sn+t,h=D0(e,d),v=j6(e[ct],d),C=Ml(h,v.tView.ssrId),S=$1(e,v,i,{dehydratedView:C});G1(h,S,o,xl(v,C))}}finally{ht(s)}}else if(a!==void 0){let s=FC(a,o);s!==void 0&&(s[qn]=i)}}var N6=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-_i}};function ho(t,i){return i}var F6=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function Xi(t,i,e,n,r,a,o,s,d,h,v,C,S){qo("NgControlFlow");let D=je(),L=Kt(),ne=d!==void 0,oe=je(),ye=s?o.bind(oe[pr][qn]):o,qe=new F6(ne,ye);oe[Sn+t]=qe,x0(D,L,t+1,i,e,n,r,jo(L.consts,a)),ne&&x0(D,L,t+2,d,h,v,C,jo(L.consts,S))}var B6=class extends z6{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-_i}at(i){return this.getLView(i)[qn].$implicit}attach(i,e){let n=e[vl];this.needsIndexUpdate||=i!==this.length,G1(this.lContainer,e,i,xl(this.templateTNode,n))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,o$(this.lContainer,i)}create(i,e){let n=Ml(this.lContainer,this.templateTNode.tView.ssrId),r=$1(this.hostLView,this.templateTNode,new N6(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(i){G0(i[ct],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[qn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i(N0(!0),bC(n,r,QN()));function l$(t,i,e,n,r){let a=i.consts,o=jo(a,n),s=Ll(i,t,8,"ng-container",o);o!==null&&w6(s,o,!0);let d=jo(a,r);return u8()&&U8(i,e,s,d,L8),s.mergedAttrs=Cl(s.mergedAttrs,s.attrs),i.queries!==null&&i.queries.elementStart(i,s),s}function gn(t,i,e){let n=je(),r=Kt(),a=t+Sn,o=r.firstCreatePass?l$(a,r,n,i,e):r.data[a];Uo(o,!0);let s=d$(r,n,o,t);return n[a]=s,H0()&&W0(r,n,s,o),Tl(s,n),L0(o)&&($0(r,n,o),S8(r,o,n)),e!=null&&V8(n,o),gn}function _n(){let t=yi(),i=Kt();return m8()?p8():(t=t.parent,Uo(t,!1)),i.firstCreatePass&&(v8(i,t),o8(t)&&i.queries.elementEnd(t)),_n}function Tt(t,i,e){return gn(t,i,e),_n(),Tt}var d$=(t,i,e,n)=>(N0(!0),MB(i[an],""));function de(){return je()}function zt(t,i,e){let n=je(),r=Xs();if(fr(n,r,i)){let a=Kt(),o=Il();U1(a,o,n,t,i,n[an],e,!0)}return zt}var zs=void 0;function u$(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var m$=["en",[["a","p"],["AM","PM"],zs],[["AM","PM"],zs,zs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],zs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],zs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",zs,"{1} 'at' {0}",zs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",u$],k1={};function Mx(t,i,e){typeof i!="string"&&(e=i,i=t[on.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),k1[i]=t,e&&(k1[i][on.ExtraData]=e)}function er(t){let i=p$(t),e=kb(i);if(e)return e;let n=i.split("-")[0];if(e=kb(n),e)return e;if(n==="en")return m$;throw new Ce(701,!1)}function kb(t){return t in k1||(k1[t]=ii.ng&&ii.ng.common&&ii.ng.common.locales&&ii.ng.common.locales[t]),k1[t]}var on=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(on||{});function p$(t){return t.toLowerCase().replace(/_/g,"-")}var S0="en-US",f$="USD";var h$=S0;function g$(t){typeof t=="string"&&(h$=t.toLowerCase().replace(/_/g,"-"))}function Eb(t,i,e){return function n(r){if(r===Function)return e;let a=kl(t)?xa(t.index,i):i;j8(a,5);let o=i[qn],s=Ob(i,o,e,r),d=n.__ngNextListenerFn__;for(;d;)s=Ob(i,o,d,r)&&s,d=d.__ngNextListenerFn__;return s}}function Ob(t,i,e,n){let r=ht(null);try{return Qt(6,i,e),e(n)!==!1}catch(a){return _$(t,a),!1}finally{Qt(7,i,e),ht(r)}}function _$(t,i){let e=t[bl],n=e?e.get(Vi,null):null;n&&n.handleError(i)}function Ib(t,i,e,n,r,a){let o=i[e],s=i[ct],h=s.data[e].outputs[n],v=o[h],C=s.firstCreatePass?d8(s):null,S=l8(i),D=v.subscribe(a),L=S.length;S.push(a,D),C&&C.push(r,t.index,L,-(L+1))}function z(t,i,e,n){let r=je(),a=Kt(),o=yi();return wx(a,r,r[an],o,t,i,n),z}function v$(t,i,e,n){let r=t.cleanup;if(r!=null)for(let a=0;ad?s[d]:null}typeof o=="string"&&(a+=2)}return null}function wx(t,i,e,n,r,a,o){let s=L0(n),h=t.firstCreatePass?d8(t):null,v=l8(i),C=!0;if(n.type&3||o){let S=Da(n,i),D=o?o(S):S,L=v.length,ne=o?ye=>o(Ca(ye[n.index])):n.index,oe=null;if(!o&&s&&(oe=v$(t,i,r,n.index)),oe!==null){let ye=oe.__ngLastListenerFn__||oe;ye.__ngNextListenerFn__=a,oe.__ngLastListenerFn__=a,C=!1}else{a=Eb(n,i,a),zF(i,D,r,a);let ye=e.listen(D,r,a);v.push(a,ye),h&&h.push(r,ne,L,L+1)}}else a=Eb(n,i,a);if(C){let S=n.outputs?.[r],D=n.hostDirectiveOutputs?.[r];if(D&&D.length)for(let L=0;L(N0(!0),CB(i[an],n));function P(t){return X("",t,""),P}function X(t,i,e){let n=je(),r=eg(n,t,i,e);return r!==Yn&&nu(n,Qr(),r),X}function Ct(t,i,e,n,r){let a=je(),o=px(a,t,i,e,n,r);return o!==Yn&&nu(a,Qr(),o),Ct}function tg(t,i,e,n,r,a,o){let s=je(),d=NU(s,t,i,e,n,r,a,o);return d!==Yn&&nu(s,Qr(),d),tg}function x$(t,i,e,n,r,a,o,s,d){let h=je(),v=FU(h,t,i,e,n,r,a,o,s,d);return v!==Yn&&nu(h,Qr(),v),x$}function nu(t,i,e){let n=uy(i,t);xB(t[an],n,e)}function Q1(t,i,e){$y(i)&&(i=i());let n=je(),r=Xs();if(fr(n,r,i)){let a=Kt(),o=Il();U1(a,o,n,t,i,n[an],e,!1)}return Q1}function iu(t,i){let e=$y(t);return e&&t.set(i),e}function K1(t,i){let e=je(),n=Kt(),r=yi();return wx(n,e,e[an],r,t,i),K1}var M$={};function ng(t){let i=Kt(),e=je(),n=t+Sn,r=Ll(i,n,128,null,null);return Uo(r,!1),my(i,e,n,M$),ng}function w$(t,i,e){let n=Kt();if(n.firstCreatePass){let r=ya(t);U6(e,n.data,n.blueprint,r,!0),U6(i,n.data,n.blueprint,r,!1)}}function U6(t,i,e,n,r){if(t=di(t),Array.isArray(t))for(let a=0;a>20;if(_l(t)||!t.multi){let D=new Ws(h,r,k),L=$h(d,i,r?v:v+S,C);L===-1?(i6(u0(s,o),a,d),Uh(a,t,i.length),i.push(d),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),o.push(D)):(e[L]=D,o[L]=D)}else{let D=$h(d,i,v+S,C),L=$h(d,i,v,v+S),ne=D>=0&&e[D],oe=L>=0&&e[L];if(r&&!oe||!r&&!ne){i6(u0(s,o),a,d);let ye=k$(r?S$:D$,e.length,r,n,h);!r&&oe&&(e[L].providerFactory=ye),Uh(a,t,i.length,0),i.push(d),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(ye),o.push(ye)}else{let ye=kx(e[r?L:D],h,!r&&n);Uh(a,t,D>-1?D:L,ye)}!r&&n&&oe&&e[L].componentProviders++}}}function Uh(t,i,e,n){let r=_l(i),a=_N(i);if(r||a){let d=(a?di(i.useClass):i).prototype.ngOnDestroy;if(d){let h=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){let v=h.indexOf(e);v===-1?h.push(e,[n,d]):h[v+1].push(n,d)}else h.push(e,d)}}}function kx(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function $h(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>w$(n,r?r(t):t,i)}}function tr(t,i,e){let n=Zs()+t,r=je();return r[n]===Yn?q1(r,n,e?i.call(e):i()):IU(r,n)}function go(t,i,e,n){return Ex(je(),Zs(),t,i,e,n)}function ka(t,i,e,n,r){return Ox(je(),Zs(),t,i,e,n,r)}function ru(t,i){let e=t[i];return e===Yn?void 0:e}function Ex(t,i,e,n,r,a){let o=i+e;return fr(t,o,r)?q1(t,o+1,a?n.call(a,r):n(r)):ru(t,o+1)}function Ox(t,i,e,n,r,a,o){let s=i+e;return L1(t,s,r,a)?q1(t,s+2,o?n.call(o,r,a):n(r,a)):ru(t,s+2)}function E$(t,i,e,n,r,a,o,s){let d=i+e;return sx(t,d,r,a,o)?q1(t,d+3,s?n.call(s,r,a,o):n(r,a,o)):ru(t,d+3)}function O$(t,i,e,n,r,a,o,s,d){let h=i+e;return cx(t,h,r,a,o,s)?q1(t,h+4,d?n.call(d,r,a,o,s):n(r,a,o,s)):ru(t,h+4)}function E(t,i){let e=Kt(),n,r=t+Sn;e.firstCreatePass?(n=I$(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??=[]).push(r,n.onDestroy)):n=e.data[r];let a=n.factory||(n.factory=Fs(n.type,!0)),o,s=qi(k);try{let d=d0(!1),h=a();return d0(d),my(e,je(),r,h),h}finally{qi(s)}}function I$(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function O(t,i,e){let n=t+Sn,r=je(),a=N1(r,n);return au(r,n)?Ex(r,Zs(),i,a.transform,e,a):a.transform(e)}function Kr(t,i,e,n){let r=t+Sn,a=je(),o=N1(a,r);return au(a,r)?Ox(a,Zs(),i,o.transform,e,n,o):o.transform(e,n)}function ome(t,i,e,n,r){let a=t+Sn,o=je(),s=N1(o,a);return au(o,a)?E$(o,Zs(),i,s.transform,e,n,r,s):s.transform(e,n,r)}function ig(t,i,e,n,r,a){let o=t+Sn,s=je(),d=N1(s,o);return au(s,o)?O$(s,Zs(),i,d.transform,e,n,r,a,d):d.transform(e,n,r,a)}function au(t,i){return t[ct].data[i].pure}function nr(t,i){return Y0(t,i)}var q3=null;function P$(t){q3!==null&&(t.defaultEncapsulation!==q3.defaultEncapsulation||t.preserveWhitespaces!==q3.preserveWhitespaces)||(q3=t)}var Ks=class{full;major;minor;patch;constructor(i){this.full=i;let e=i.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},rg=new Ks("19.2.14"),G6=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},Ix=(()=>{class t{compileModuleSync(e){return new C0(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),r=Xb(e),a=gC(r.declarations).reduce((o,s)=>{let d=Bo(s);return d&&o.push(new Ys(d)),o},[]);return new G6(n,a)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),T$=new A("");function A$(t,i,e){let n=new C0(e);return Promise.resolve(n)}function Pb(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var V$=(()=>{class t{zone=u(se);changeDetectionScheduler=u(qs);applicationRef=u(bi);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function L$({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new se(Be(q({},Px()),{scheduleInRootZone:e})),[{provide:se,useFactory:t},{provide:gl,multi:!0,useFactory:()=>{let n=u(V$,{optional:!0});return()=>n.initialize()}},{provide:gl,multi:!0,useFactory:()=>{let n=u(R$);return()=>{n.initialize()}}},i===!0?{provide:Hy,useValue:!0}:[],{provide:Ny,useValue:e??zy}]}function Px(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var R$=(()=>{class t{subscription=new Me;initialized=!1;zone=u(se);pendingTasks=u(mo);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var z$=(()=>{class t{appRef=u(bi);taskService=u(mo);ngZone=u(se);zonelessEnabled=u(y8);tracing=u(Al,{optional:!0});disableScheduling=u(Hy,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Me;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(p0):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(Ny,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof f0||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let n=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,n=!0;break}case 12:{this.appRef.dirtyFlags|=16,n=!0;break}case 13:{this.appRef.dirtyFlags|=2,n=!0;break}case 11:{n=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(n))return;let r=this.useMicrotaskScheduler?eb:Fy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(p0+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){throw this.taskService.remove(e),n}finally{this.cleanup()}this.useMicrotaskScheduler=!0,eb(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function H$(){return typeof $localize<"u"&&$localize.locale||S0}var Ea=new A("",{providedIn:"root",factory:()=>u(Ea,ft.Optional|ft.SkipSelf)||H$()}),Tx=new A("",{providedIn:"root",factory:()=>f$});var k0=new A(""),N$=new A("");function M1(t){return!t.moduleRef}function F$(t){let i=M1(t)?t.r3Injector:t.moduleRef.injector,e=i.get(se);return e.run(()=>{M1(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Vi,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:a=>{n.handleError(a)}})}),M1(t)){let a=()=>i.destroy(),o=t.platformInjector.get(k0);o.add(a),i.onDestroy(()=>{r.unsubscribe(),o.delete(a)})}else{let a=()=>t.moduleRef.destroy(),o=t.platformInjector.get(k0);o.add(a),t.moduleRef.onDestroy(()=>{X3(t.allPlatformModules,t.moduleRef),r.unsubscribe(),o.delete(a)})}return j$(n,e,()=>{let a=i.get(ux);return a.runInitializers(),a.donePromise.then(()=>{let o=i.get(Ea,S0);if(g$(o||S0),!i.get(N$,!0))return M1(t)?i.get(bi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(M1(t)){let d=i.get(bi);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return B$(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function B$(t,i){let e=t.injector.get(bi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new Ce(-403,!1);i.push(t)}function j$(t,i,e){try{let n=e();return Yo(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}var Ax=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let r=n?.scheduleInRootZone,a=()=>bF(n?.ngZone,Be(q({},Px({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:r})),o=n?.ignoreChangesOutsideZone,s=[L$({ngZoneFactory:a,ignoreChangesOutsideZone:o}),{provide:qs,useExisting:z$}],d=hU(e.moduleType,this.injector,s);return F$({moduleRef:d,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let r=mx({},n);return A$(this.injector,r,e).then(a=>this.bootstrapModuleFactory(a,r))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ce(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(k0,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(ae(Te))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),E1=null,Vx=new A("");function U$(t){if(E1&&!E1.get(Vx,!1))throw new Ce(400,!1);LU(),E1=t;let i=t.get(Ax);return W$(t),i}function ag(t,i,e=[]){let n=`Platform: ${i}`,r=new A(n);return(a=[])=>{let o=Lx();if(!o||o.injector.get(Vx,!1)){let s=[...e,...a,{provide:r,useValue:!0}];t?t(s):U$($$(s,n))}return G$(r)}}function $$(t=[],i){return Te.create({name:i,providers:[{provide:T0,useValue:"platform"},{provide:k0,useValue:new Set([()=>E1=null])},...t]})}function G$(t){let i=Lx();if(!i)throw new Ce(401,!1);return i}function Lx(){return E1?.get(Ax)??null}function W$(t){let i=t.get(M8,null);Ki(t,()=>{i?.forEach(e=>e())})}var be=(()=>{class t{static __NG_ELEMENT_ID__=q$}return t})();function q$(t){return Y$(yi(),je(),(t&16)===16)}function Y$(t,i,e){if(kl(t)&&!e){let n=xa(t.index,i);return new V1(n,n)}else if(t.type&175){let n=i[pr];return new V1(n,i)}return null}var W6=class{constructor(){}supports(i){return ox(i)}create(i){return new q6(i)}},Q$=(t,i)=>i,q6=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||Q$}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,a=null;for(;e||n;){let o=!n||e&&e.currentIndex{o=this._trackByFn(r,s),e===null||!Object.is(e.trackById,o)?(e=this._mismatch(e,s,o,r),n=!0):(n&&(e=this._verifyReinsertion(e,s,o,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let a;return i===null?a=this._itTail:(a=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,a,r)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,r),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,a,r)):i=this._addAfter(new Y6(e,n),a,r)),i}_verifyReinsertion(i,e,n,r){let a=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return a!==null?i=this._reinsertAfter(a,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let r=i._prevRemoved,a=i._nextRemoved;return r===null?this._removalsHead=a:r._nextRemoved=a,a===null?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let r=e===null?this._itHead:e._next;return i._next=r,i._prev=e,r===null?this._itTail=i:r._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new E0),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new E0),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},Y6=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},Q6=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},E0=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new Q6,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,r=this.map.get(n);return r?r.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Tb(t,i,e){let n=t.previousIndex;if(n===null)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let a=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,a)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let r=this._records.get(i);this._maybeAddToChanges(r,e);let a=r._prev,o=r._next;return a&&(a._next=o),o&&(o._prev=a),r._next=null,r._prev=null,r}let n=new X6(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},X6=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function Ab(){return new gr([new W6])}var gr=(()=>{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:Ab});constructor(e){this.factories=e}static create(e,n){if(n!=null){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ab()),deps:[[t,new Yr,new hr]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n!=null)return n;throw new Ce(901,!1)}}return t})();function Vb(){return new ou([new K6])}var ou=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:Vb});factories;constructor(e){this.factories=e}static create(e,n){if(n){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Vb()),deps:[[t,new Yr,new hr]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n)return n;throw new Ce(901,!1)}}return t})();var Rx=ag(null,"core",[]),zx=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(ae(bi))};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();function B(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ot(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}function ir(t){return ph(t)}function Zr(t,i){return u3(t,i?.equal)}var J6=class{[Gi];constructor(i){this[Gi]=i}destroy(){this[Gi].destroy()}};function Z1(t,i){!i?.injector&&a8(Z1);let e=i?.injector??u(Te),n=i?.manualCleanup!==!0?e.get($o):null,r,a=e.get(D8,null,{optional:!0}),o=e.get(qs);return a!==null&&!i?.forceRoot?(r=X$(a.view,o,t),n instanceof m0&&n._lView===a.view&&(n=null)):r=J$(t,e.get(lx),o),r.injector=e,n!==null&&(r.onDestroyFn=n.onDestroy(()=>r.destroy())),new J6(r)}var Hx=Be(q({},Yc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:T1,run(){if(this.dirty=!1,this.hasRun&&!c3(this))return;this.hasRun=!0;let t=n=>(this.cleanupFns??=[]).push(n),i=f1(this),e=s0(!1);try{this.maybeCleanup(),this.fn(t)}finally{s0(e),s3(this,i)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),K$=Be(q({},Hx),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){h1(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),Z$=Be(q({},Hx),{consumerMarkedDirty(){this.view[et]|=8192,Ol(this.view),this.notifier.notify(13)},destroy(){h1(this),this.onDestroyFn(),this.maybeCleanup(),this.view[js]?.delete(this)}});function X$(t,i,e){let n=Object.create(Z$);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=e,t[js]??=new Set,t[js].add(n),n.consumerMarkedDirty(n),n}function J$(t,i,e){let n=Object.create(K$);return n.fn=t,n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.schedule(n),n.notifier.notify(12),n}function su(t,i){let e=Bo(t),n=i.elementInjector||A0();return new Ys(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector)}function Nx(t){let i=Bo(t);if(!i)return null;let e=new Ys(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var De=new A("");var jx=null;function _r(){return jx}function og(t){jx??=t}var X1=class{},J1=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>u(Ux),providedIn:"platform"})}return t})(),sg=new A(""),Ux=(()=>{class t extends J1{_location;_history;_doc=u(De);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,r){this._history.pushState(e,n,r)}replaceState(e,n,r){this._history.replaceState(e,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function cu(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function Fx(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Xr(t){return t&&t[0]!=="?"?`?${t}`:t}var Jr=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>u(du),providedIn:"root"})}return t})(),lu=new A(""),du=(()=>{class t extends Jr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??u(De).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return cu(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Xr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a));this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ae(J1),ae(lu,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tr=(()=>{class t{_subject=new N;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=nG(Fx(Bx(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Xr(n))}normalize(e){return t.stripTrailingSlash(tG(this._basePath,Bx(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Xr(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Xr(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=Xr;static joinWithSlash=cu;static stripTrailingSlash=Fx;static \u0275fac=function(n){return new(n||t)(ae(Jr))};static \u0275prov=R({token:t,factory:()=>eG(),providedIn:"root"})}return t})();function eG(){return new Tr(ae(Jr))}function tG(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function Bx(t){return t.replace(/\/index.html$/,"")}function nG(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var gg=(()=>{class t extends Jr{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=cu(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ae(J1),ae(lu,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Zx={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Cu=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Cu||{});var Ci=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ci||{}),Gt=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Gt||{}),rr=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(rr||{}),ui={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Xx(t){return er(t)[on.LocaleId]}function Jx(t,i,e){let n=er(t),r=[n[on.DayPeriodsFormat],n[on.DayPeriodsStandalone]],a=Ar(r,i);return Ar(a,e)}function eM(t,i,e){let n=er(t),r=[n[on.DaysFormat],n[on.DaysStandalone]],a=Ar(r,i);return Ar(a,e)}function tM(t,i,e){let n=er(t),r=[n[on.MonthsFormat],n[on.MonthsStandalone]],a=Ar(r,i);return Ar(a,e)}function nM(t,i){let n=er(t)[on.Eras];return Ar(n,i)}function ed(t,i){let e=er(t);return Ar(e[on.DateFormat],i)}function td(t,i){let e=er(t);return Ar(e[on.TimeFormat],i)}function nd(t,i){let n=er(t)[on.DateTimeFormat];return Ar(n,i)}function ta(t,i){let e=er(t),n=e[on.NumberSymbols][i];if(typeof n>"u"){if(i===ui.CurrencyDecimal)return e[on.NumberSymbols][ui.Decimal];if(i===ui.CurrencyGroup)return e[on.NumberSymbols][ui.Group]}return n}function _g(t,i){return er(t)[on.NumberFormats][i]}function iG(t){return er(t)[on.Currencies]}function iM(t){if(!t[on.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[on.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function rM(t){let i=er(t);return iM(i),(i[on.ExtraData][2]||[]).map(n=>typeof n=="string"?cg(n):[cg(n[0]),cg(n[1])])}function aM(t,i,e){let n=er(t);iM(n);let r=[n[on.ExtraData][0],n[on.ExtraData][1]],a=Ar(r,i)||[];return Ar(a,e)||[]}function Ar(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function cg(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}function oM(t,i,e="en"){let n=iG(e)[t]||Zx[t]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||t}var rG=2;function sM(t){let i,e=Zx[t];return e&&(i=e[2]),typeof i=="number"?i:rG}var aG=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,uu={},oG=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function cM(t,i,e,n){let r=hG(t);i=_o(e,i)||i;let o=[],s;for(;i;)if(s=oG.exec(i),s){o=o.concat(s.slice(1));let v=o.pop();if(!v)break;i=v}else{o.push(i);break}let d=r.getTimezoneOffset();n&&(d=dM(n,d),r=fG(r,n));let h="";return o.forEach(v=>{let C=mG(v);h+=C?C(r,e,d):v==="''"?"'":v.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}function gu(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function _o(t,i){let e=Xx(t);if(uu[e]??={},uu[e][i])return uu[e][i];let n="";switch(i){case"shortDate":n=ed(t,rr.Short);break;case"mediumDate":n=ed(t,rr.Medium);break;case"longDate":n=ed(t,rr.Long);break;case"fullDate":n=ed(t,rr.Full);break;case"shortTime":n=td(t,rr.Short);break;case"mediumTime":n=td(t,rr.Medium);break;case"longTime":n=td(t,rr.Long);break;case"fullTime":n=td(t,rr.Full);break;case"short":let r=_o(t,"shortTime"),a=_o(t,"shortDate");n=mu(nd(t,rr.Short),[r,a]);break;case"medium":let o=_o(t,"mediumTime"),s=_o(t,"mediumDate");n=mu(nd(t,rr.Medium),[o,s]);break;case"long":let d=_o(t,"longTime"),h=_o(t,"longDate");n=mu(nd(t,rr.Long),[d,h]);break;case"full":let v=_o(t,"fullTime"),C=_o(t,"fullDate");n=mu(nd(t,rr.Full),[v,C]);break}return n&&(uu[e][i]=n),n}function mu(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e})),t}function ea(t,i,e="-",n,r){let a="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,a=e));let o=String(t);for(;o.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return sG(s,i);let d=ta(o,ui.MinusSign);return ea(s,i,d,n,r)}}function cG(t,i){switch(t){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Zt(t,i,e=Ci.Format,n=!1){return function(r,a){return lG(r,a,t,i,e,n)}}function lG(t,i,e,n,r,a){switch(e){case 2:return tM(i,r,n)[t.getMonth()];case 1:return eM(i,r,n)[t.getDay()];case 0:let o=t.getHours(),s=t.getMinutes();if(a){let h=rM(i),v=aM(i,r,n),C=h.findIndex(S=>{if(Array.isArray(S)){let[D,L]=S,ne=o>=D.hours&&s>=D.minutes,oe=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+ea(o,2,a)+ea(Math.abs(r%60),2,a);case 1:return"GMT"+(r>=0?"+":"")+ea(o,1,a);case 2:return"GMT"+(r>=0?"+":"")+ea(o,2,a)+":"+ea(Math.abs(r%60),2,a);case 3:return n===0?"Z":(r>=0?"+":"")+ea(o,2,a)+":"+ea(Math.abs(r%60),2,a);default:throw new Error(`Unknown zone width "${t}"`)}}}var dG=0,hu=4;function uG(t){let i=gu(t,dG,1).getDay();return gu(t,0,1+(i<=hu?hu:hu+7)-i)}function lM(t){let i=t.getDay(),e=i===0?-3:hu-i;return gu(t.getFullYear(),t.getMonth(),t.getDate()+e)}function lg(t,i=!1){return function(e,n){let r;if(i){let a=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+a)/7)}else{let a=lM(e),o=uG(a.getFullYear()),s=a.getTime()-o.getTime();r=1+Math.round(s/6048e5)}return ea(r,t,ta(n,ui.MinusSign))}}function fu(t,i=!1){return function(e,n){let a=lM(e).getFullYear();return ea(a,t,ta(n,ui.MinusSign),i)}}var dg={};function mG(t){if(dg[t])return dg[t];let i;switch(t){case"G":case"GG":case"GGG":i=Zt(3,Gt.Abbreviated);break;case"GGGG":i=Zt(3,Gt.Wide);break;case"GGGGG":i=Zt(3,Gt.Narrow);break;case"y":i=Nn(0,1,0,!1,!0);break;case"yy":i=Nn(0,2,0,!0,!0);break;case"yyy":i=Nn(0,3,0,!1,!0);break;case"yyyy":i=Nn(0,4,0,!1,!0);break;case"Y":i=fu(1);break;case"YY":i=fu(2,!0);break;case"YYY":i=fu(3);break;case"YYYY":i=fu(4);break;case"M":case"L":i=Nn(1,1,1);break;case"MM":case"LL":i=Nn(1,2,1);break;case"MMM":i=Zt(2,Gt.Abbreviated);break;case"MMMM":i=Zt(2,Gt.Wide);break;case"MMMMM":i=Zt(2,Gt.Narrow);break;case"LLL":i=Zt(2,Gt.Abbreviated,Ci.Standalone);break;case"LLLL":i=Zt(2,Gt.Wide,Ci.Standalone);break;case"LLLLL":i=Zt(2,Gt.Narrow,Ci.Standalone);break;case"w":i=lg(1);break;case"ww":i=lg(2);break;case"W":i=lg(1,!0);break;case"d":i=Nn(2,1);break;case"dd":i=Nn(2,2);break;case"c":case"cc":i=Nn(7,1);break;case"ccc":i=Zt(1,Gt.Abbreviated,Ci.Standalone);break;case"cccc":i=Zt(1,Gt.Wide,Ci.Standalone);break;case"ccccc":i=Zt(1,Gt.Narrow,Ci.Standalone);break;case"cccccc":i=Zt(1,Gt.Short,Ci.Standalone);break;case"E":case"EE":case"EEE":i=Zt(1,Gt.Abbreviated);break;case"EEEE":i=Zt(1,Gt.Wide);break;case"EEEEE":i=Zt(1,Gt.Narrow);break;case"EEEEEE":i=Zt(1,Gt.Short);break;case"a":case"aa":case"aaa":i=Zt(0,Gt.Abbreviated);break;case"aaaa":i=Zt(0,Gt.Wide);break;case"aaaaa":i=Zt(0,Gt.Narrow);break;case"b":case"bb":case"bbb":i=Zt(0,Gt.Abbreviated,Ci.Standalone,!0);break;case"bbbb":i=Zt(0,Gt.Wide,Ci.Standalone,!0);break;case"bbbbb":i=Zt(0,Gt.Narrow,Ci.Standalone,!0);break;case"B":case"BB":case"BBB":i=Zt(0,Gt.Abbreviated,Ci.Format,!0);break;case"BBBB":i=Zt(0,Gt.Wide,Ci.Format,!0);break;case"BBBBB":i=Zt(0,Gt.Narrow,Ci.Format,!0);break;case"h":i=Nn(3,1,-12);break;case"hh":i=Nn(3,2,-12);break;case"H":i=Nn(3,1);break;case"HH":i=Nn(3,2);break;case"m":i=Nn(4,1);break;case"mm":i=Nn(4,2);break;case"s":i=Nn(5,1);break;case"ss":i=Nn(5,2);break;case"S":i=Nn(6,1);break;case"SS":i=Nn(6,2);break;case"SSS":i=Nn(6,3);break;case"Z":case"ZZ":case"ZZZ":i=pu(0);break;case"ZZZZZ":i=pu(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=pu(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=pu(2);break;default:return null}return dg[t]=i,i}function dM(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function pG(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function fG(t,i,e){let r=t.getTimezoneOffset(),a=dM(i,r);return pG(t,-1*(a-r))}function hG(t){if($x(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,a=1,o=1]=t.split("-").map(s=>+s);return gu(r,a-1,o)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(aG))return gG(n)}let i=new Date(t);if(!$x(i))throw new Error(`Unable to convert "${t}" into a date`);return i}function gG(t){let i=new Date(0),e=0,n=0,r=t[8]?i.setUTCFullYear:i.setFullYear,a=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));let o=Number(t[4]||0)-e,s=Number(t[5]||0)-n,d=Number(t[6]||0),h=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return a.call(i,o,s,d,h),i}function $x(t){return t instanceof Date&&!isNaN(t.valueOf())}var _G=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Gx=22,_u=".",id="0",vG=";",bG=",",ug="#",Wx="\xA4";function uM(t,i,e,n,r,a,o=!1){let s="",d=!1;if(!isFinite(t))s=ta(e,ui.Infinity);else{let h=CG(t);o&&(h=yG(h));let v=i.minInt,C=i.minFrac,S=i.maxFrac;if(a){let qe=a.match(_G);if(qe===null)throw new Error(`${a} is not a valid digit info`);let nt=qe[1],An=qe[3],zn=qe[5];nt!=null&&(v=mg(nt)),An!=null&&(C=mg(An)),zn!=null?S=mg(zn):An!=null&&C>S&&(S=C)}xG(h,C,S);let D=h.digits,L=h.integerLen,ne=h.exponent,oe=[];for(d=D.every(qe=>!qe);L0?oe=D.splice(L,D.length):(oe=D,D=[0]);let ye=[];for(D.length>=i.lgSize&&ye.unshift(D.splice(-i.lgSize,D.length).join(""));D.length>i.gSize;)ye.unshift(D.splice(-i.gSize,D.length).join(""));D.length&&ye.unshift(D.join("")),s=ye.join(ta(e,n)),oe.length&&(s+=ta(e,r)+oe.join("")),ne&&(s+=ta(e,ui.Exponential)+"+"+ne)}return t<0&&!d?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function xu(t,i,e,n,r){let a=_g(i,Cu.Currency),o=pM(a,ta(i,ui.MinusSign));return o.minFrac=sM(n),o.maxFrac=o.minFrac,uM(t,o,i,ui.CurrencyGroup,ui.CurrencyDecimal,r).replace(Wx,e).replace(Wx,"").trim()}function mM(t,i,e){let n=_g(i,Cu.Decimal),r=pM(n,ta(i,ui.MinusSign));return uM(t,r,i,ui.Group,ui.Decimal,e)}function pM(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(vG),r=n[0],a=n[1],o=r.indexOf(_u)!==-1?r.split(_u):[r.substring(0,r.lastIndexOf(id)+1),r.substring(r.lastIndexOf(id)+1)],s=o[0],d=o[1]||"";e.posPre=s.substring(0,s.indexOf(ug));for(let v=0;v-1&&(i=i.replace(_u,"")),(a=i.search(/e/i))>0?(r<0&&(r=a),r+=+i.slice(a+1),i=i.substring(0,a)):r<0&&(r=i.length),a=0;i.charAt(a)===id;a++);if(a===(s=i.length))n=[0],r=1;else{for(s--;i.charAt(s)===id;)s--;for(r-=a,n=[],o=0;a<=s;a++,o++)n[o]=Number(i.charAt(a))}return r>Gx&&(n=n.splice(0,Gx-1),e=r-1,r=1),{digits:n,exponent:e,integerLen:r}}function xG(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${e}).`);let n=t.digits,r=n.length-t.integerLen,a=Math.min(Math.max(i,r),e),o=a+t.integerLen,s=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let C=o;C=5)if(o-1<0){for(let C=0;C>o;C--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r=h?L.pop():d=!1),S>=10?1:0},0);v&&(n.unshift(v),t.integerLen++)}function mg(t){let i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+t);return i}var pg=/\s+/,qx=[],yn=(()=>{class t{_ngEl;_renderer;initialClasses=qx;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(pg):qx}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(pg):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(pg).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||t)(k(Y),k(Ke))};static \u0275dir=V({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var vu=class{$implicit;ngForOf;index;count;constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ht=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((r,a,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new vu(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(a===null?void 0:a);else if(a!==null){let s=n.get(a);n.move(s,o),Yx(s,r)}});for(let r=0,a=n.length;r{let a=n.get(r.currentIndex);Yx(a,r)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(k(rt),k(Qe),k(gr))};static \u0275dir=V({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function Yx(t,i){t.context.$implicit=i.item}var Ae=(()=>{class t{_viewContainer;_context=new bu;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Qx(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Qx(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(k(rt),k(Qe))};static \u0275dir=V({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),bu=class{$implicit=null;ngIf=null};function Qx(t,i){if(t&&!t.createEmbeddedView)throw new Ce(2020,!1)}var yu=class{_viewContainerRef;_templateRef;_created=!1;constructor(i,e){this._viewContainerRef=i,this._templateRef=e}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},rd=(()=>{class t{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(e){this._ngSwitch=e,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){let n=e===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(let n of this._defaultViews)n.enforceState(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return t})(),vg=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new yu(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||t)(k(rt),k(Qe),k(rd,9))};static \u0275dir=V({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})(),bg=(()=>{class t{constructor(e,n,r){r._addDefault(new yu(e,n))}static \u0275fac=function(n){return new(n||t)(k(rt),k(Qe),k(rd,9))};static \u0275dir=V({type:t,selectors:[["","ngSwitchDefault",""]]})}return t})();var yg=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,r){this._ngEl=e,this._differs=n,this._renderer=r}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[r,a]=e.split("."),o=r.indexOf("-")===-1?void 0:wa.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,a?`${n}${a}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(k(Y),k(ou),k(Ke))};static \u0275dir=V({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Qo=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(e,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||t)(k(rt))};static \u0275dir=V({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Pe]})}return t})();function Rl(t,i){return new Ce(2100,!1)}var fg=class{createSubscription(i,e){return ir(()=>i.subscribe({next:e,error:n=>{throw n}}))}dispose(i){ir(()=>i.unsubscribe())}},hg=class{createSubscription(i,e){return i.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(i){i.unsubscribe()}},MG=new hg,wG=new fg,ad=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Yo(e))return MG;if(Z8(e))return wG;throw Rl(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(k(be,16))};static \u0275pipe=_t({name:"async",type:t,pure:!1})}return t})(),DG=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Rl(t,e);return e.toLowerCase()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"lowercase",type:t,pure:!0})}return t})(),SG=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,kG=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Rl(t,e);return e.replace(SG,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"titlecase",type:t,pure:!0})}return t})();var EG="mediumDate",fM=new A(""),hM=new A(""),tc=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,a){if(e==null||e===""||e!==e)return null;try{let o=n??this.defaultOptions?.dateFormat??EG,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return cM(e,o,a||this.locale,s)}catch(o){throw Rl(t,o.message)}}static \u0275fac=function(n){return new(n||t)(k(Ea,16),k(fM,24),k(hM,24))};static \u0275pipe=_t({name:"date",type:t,pure:!0})}return t})();var OG=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"json",type:t,pure:!1})}return t})();function IG(t,i){return{key:t,value:i}}var PG=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=Kx;transform(e,n=Kx){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let r=this.differ.diff(e),a=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(IG(o.key,o.currentValue))})),(r||a)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(k(ou,16))};static \u0275pipe=_t({name:"keyvalue",type:t,pure:!1})}return t})();function Kx(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{_locale;constructor(e){this._locale=e}transform(e,n,r){if(!gM(e))return null;r||=this._locale;try{let a=_M(e);return mM(a,r,n)}catch(a){throw Rl(t,a.message)}}static \u0275fac=function(n){return new(n||t)(k(Ea,16))};static \u0275pipe=_t({name:"number",type:t,pure:!0})}return t})();var Cg=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,r="symbol",a,o){if(!gM(e))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=n||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=oM(s,r==="symbol"?"wide":"narrow",o):s=r);try{let d=_M(e);return xu(d,o,s,n,a)}catch(d){throw Rl(t,d.message)}}static \u0275fac=function(n){return new(n||t)(k(Ea,16),k(Tx,16))};static \u0275pipe=_t({name:"currency",type:t,pure:!0})}return t})();function gM(t){return!(t==null||t===""||t!==t)}function _M(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var fe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();function sd(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[r,a]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(a)}return null}var Mu="browser",vM="server";function xg(t){return t===Mu}function wu(t){return t===vM}var nc=class{};function upe(t,i,e){return Mx(t,i,e)}var bM=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new Mg(u(De),window)})}return t})(),Mg=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let e=TG(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],r-a[1])}};function TG(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let a=r.shadowRoot;if(a){let o=a.getElementById(i)||a.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var ku=new A(""),kg=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r,a){return this._findPluginFor(n).addEventListener(e,n,r,a)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(a=>a.supports(e)),!n)throw new Ce(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(ae(ku),ae(se))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),cd=class{_doc;constructor(i){this._doc=i}manager},Du="ng-app-id";function yM(t){for(let i of t)i.remove()}function CM(t,i){let e=i.createElement("style");return e.textContent=t,e}function AG(t,i,e,n){let r=t.head?.querySelectorAll(`style[${Du}="${i}"],link[${Du}="${i}"]`);if(r)for(let a of r)a.removeAttribute(Du),a instanceof HTMLLinkElement?n.set(a.href.slice(a.href.lastIndexOf("/")+1),{usage:0,elements:[a]}):a.textContent&&e.set(a.textContent,{usage:0,elements:[a]})}function Dg(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Eg=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,r,a={}){this.doc=e,this.appId=n,this.nonce=r,this.isServer=wu(a),AG(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let r of e)this.addUsage(r,this.inline,CM);n?.forEach(r=>this.addUsage(r,this.external,Dg))}removeStyles(e,n){for(let r of e)this.removeUsage(r,this.inline);n?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,n,r){let a=n.get(e);a?a.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,r(e,this.doc)))})}removeUsage(e,n){let r=n.get(e);r&&(r.usage--,r.usage<=0&&(yM(r.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])yM(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:r}]of this.inline)r.push(this.addElement(e,CM(n,this.doc)));for(let[n,{elements:r}]of this.external)r.push(this.addElement(e,Dg(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Du,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(ae(De),ae(Js),ae(B1,8),ae(Wo))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),wg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Og=/%COMP%/g;var MM="%COMP%",VG=`_nghost-${MM}`,LG=`_ngcontent-${MM}`,RG=!0,zG=new A("",{providedIn:"root",factory:()=>RG});function HG(t){return LG.replace(Og,t)}function NG(t){return VG.replace(Og,t)}function wM(t,i){return i.map(e=>e.replace(Og,t))}var Ig=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,r,a,o,s,d,h=null,v=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=s,this.ngZone=d,this.nonce=h,this.tracingService=v,this.platformIsServer=wu(s),this.defaultRenderer=new ld(e,o,d,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Ma.ShadowDom&&(n=Be(q({},n),{encapsulation:Ma.Emulated}));let r=this.getOrCreateRenderer(e,n);return r instanceof Su?r.applyToHost(e):r instanceof dd&&r.applyStyles(),r}getOrCreateRenderer(e,n){let r=this.rendererByCompId,a=r.get(n.id);if(!a){let o=this.doc,s=this.ngZone,d=this.eventManager,h=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,C=this.platformIsServer,S=this.tracingService;switch(n.encapsulation){case Ma.Emulated:a=new Su(d,h,n,this.appId,v,o,s,C,S);break;case Ma.ShadowDom:return new Sg(d,h,e,n,o,s,this.nonce,C,S);default:a=new dd(d,h,n,v,o,s,C,S);break}r.set(n.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(ae(kg),ae(Eg),ae(Js),ae(zG),ae(De),ae(Wo),ae(se),ae(B1),ae(Al,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),ld=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,r,a){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=a}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(wg[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(xM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(xM(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new Ce(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;let a=wg[r];a?i.setAttributeNS(a,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let r=wg[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(wa.DashCase|wa.Important)?i.style.setProperty(e,n,r&wa.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&wa.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,r){if(typeof i=="string"&&(i=_r().getGlobalEventTarget(this.doc,i),!i))throw new Ce(5102,!1);let a=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(a=this.tracingService.wrapEventListener(i,e,a)),this.eventManager.addEventListener(i,e,a,r)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function xM(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Sg=class extends ld{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,r,a,o,s,d,h){super(i,a,o,d,h),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let v=r.styles;v=wM(r.id,v);for(let S of v){let D=document.createElement("style");s&&D.setAttribute("nonce",s),D.textContent=S,this.shadowRoot.appendChild(D)}let C=r.getExternalStyles?.();if(C)for(let S of C){let D=Dg(S,a);s&&D.setAttribute("nonce",s),this.shadowRoot.appendChild(D)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},dd=class extends ld{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,r,a,o,s,d,h){super(i,a,o,s,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let v=n.styles;this.styles=h?wM(h,v):v,this.styleUrls=n.getExternalStyles?.(h)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Su=class extends dd{contentAttr;hostAttr;constructor(i,e,n,r,a,o,s,d,h){let v=r+"-"+n.id;super(i,e,n,a,o,s,d,h,v),this.contentAttr=HG(v),this.hostAttr=NG(v)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var Eu=class t extends X1{supportsDOMEvents=!0;static makeCurrent(){og(new t)}onAndCancel(i,e,n,r){return i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=FG();return e==null?null:BG(e)}resetBaseElement(){ud=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return sd(document.cookie,i)}},ud=null;function FG(){return ud=ud||document.head.querySelector("base"),ud?ud.getAttribute("href"):null}function BG(t){return new URL(t,document.baseURI).pathname}var Ou=class{addToWindow(i){ii.getAngularTestability=(n,r=!0)=>{let a=i.findTestabilityInTree(n,r);if(a==null)throw new Ce(5103,!1);return a},ii.getAllAngularTestabilities=()=>i.getAllTestabilities(),ii.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let r=ii.getAllAngularTestabilities(),a=r.length,o=function(){a--,a==0&&n()};r.forEach(s=>{s.whenStable(o)})};ii.frameworkStabilizers||(ii.frameworkStabilizers=[]),ii.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let r=i.getTestability(e);return r??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},jG=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),SM=(()=>{class t extends cd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r,a){return e.addEventListener(n,r,a),()=>this.removeEventListener(e,n,r,a)}removeEventListener(e,n,r,a){return e.removeEventListener(n,r,a)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),DM=["alt","control","meta","shift"],UG={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$G={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},kM=(()=>{class t extends cd{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,r,a){let o=t.parseEventName(n),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,o.domEventName,s,a))}static parseEventName(e){let n=e.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(n.pop()),o="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),o="code."),DM.forEach(h=>{let v=n.indexOf(h);v>-1&&(n.splice(v,1),o+=h+".")}),o+=a,n.length!=0||a.length===0)return null;let d={};return d.domEventName=r,d.fullKey=o,d}static matchEventFullKeyCode(e,n){let r=UG[e.key]||e.key,a="";return n.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),DM.forEach(o=>{if(o!==r){let s=$G[o];s(e)&&(a+=o+".")}}),a+=r,a===n)}static eventCallback(e,n,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>n(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function GG(){Eu.makeCurrent()}function WG(){return new Vi}function qG(){return Zy(document),document}var YG=[{provide:Wo,useValue:Mu},{provide:M8,useValue:GG,multi:!0},{provide:De,useFactory:qG}],QG=ag(Rx,"browser",YG);var KG=[{provide:Y1,useClass:Ou},{provide:Q8,useClass:Z0,deps:[se,X0,Y1]},{provide:Z0,useClass:Z0,deps:[se,X0,Y1]}],ZG=[{provide:T0,useValue:"root"},{provide:Vi,useFactory:WG},{provide:ku,useClass:SM,multi:!0,deps:[De]},{provide:ku,useClass:kM,multi:!0,deps:[De]},Ig,Eg,kg,{provide:En,useExisting:Ig},{provide:nc,useClass:jG},[]],XG=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({providers:[...ZG,...KG],imports:[fe,zx]})}return t})();var Hl=class{},md=class{},vr=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),a=e.slice(n+1).trim();this.addHeaderEntry(r,a)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let a=i.value;if(!a)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(s=>a.indexOf(s)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Pu=class{encodeKey(i){return EM(i)}encodeValue(i){return EM(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function JG(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let a=r.indexOf("="),[o,s]=a==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,a)),i.decodeValue(r.slice(a+1))],d=e.get(o)||[];d.push(s),e.set(o,d)}),e}var eW=/%(\d[a-f0-9])/gi,tW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function EM(t){return encodeURIComponent(t).replace(eW,(i,e)=>tW[e]??i)}function Iu(t){return`${t}`}var Z=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Pu,i.fromString){if(i.fromObject)throw new Ce(2805,!1);this.map=JG(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(Iu):[Iu(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(a=>{e.push({param:n,value:a,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Iu(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(Iu(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Tu=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function nW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function OM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function IM(t){return typeof Blob<"u"&&t instanceof Blob}function PM(t){return typeof FormData<"u"&&t instanceof FormData}function iW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var TM="Content-Type",AM="Accept",LM="X-Request-URL",RM="text/plain",zM="application/json",rW=`${zM}, ${RM}, */*`,zl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let a;if(nW(this.method)||r?(this.body=n!==void 0?n:null,a=r):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new vr,this.context??=new Tu,!this.params)this.params=new Z,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),d=s===-1?"?":sS.set(D,i.setHeaders[D]),h)),i.setParams&&(v=Object.keys(i.setParams).reduce((S,D)=>S.set(D,i.setParams[D]),v)),new t(e,n,o,{params:v,headers:h,context:C,reportProgress:d,responseType:r,withCredentials:s,transferCache:a})}},ic=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ic||{}),Nl=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new vr,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Au=class t extends Nl{constructor(i={}){super(i)}type=ic.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},pd=class t extends Nl{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=ic.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},fd=class extends Nl{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},aW=200,oW=204;function Pg(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var On=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let a;if(e instanceof zl)a=e;else{let d;r.headers instanceof vr?d=r.headers:d=new vr(r.headers);let h;r.params&&(r.params instanceof Z?h=r.params:h=new Z({fromObject:r.params})),a=new zl(e,n,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let o=ie(a).pipe(Ti(d=>this.handler.handle(d)));if(e instanceof zl||r.observe==="events")return o;let s=o.pipe(Ve(d=>d instanceof pd));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return s.pipe(pe(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Ce(2806,!1);return d.body}));case"blob":return s.pipe(pe(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Ce(2807,!1);return d.body}));case"text":return s.pipe(pe(d=>{if(d.body!==null&&typeof d.body!="string")throw new Ce(2808,!1);return d.body}));case"json":default:return s.pipe(pe(d=>d.body))}case"response":return s;default:throw new Ce(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Z().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Pg(r,n))}post(e,n,r={}){return this.request("POST",e,Pg(r,n))}put(e,n,r={}){return this.request("PUT",e,Pg(r,n))}static \u0275fac=function(n){return new(n||t)(ae(Hl))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var sW=new A("");function HM(t,i){return i(t)}function cW(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function lW(t,i,e){return(n,r)=>Ki(e,()=>i(n,a=>t(a,r)))}var NM=new A(""),Ag=new A(""),FM=new A(""),Vg=new A("",{providedIn:"root",factory:()=>!0});function dW(){let t=null;return(i,e)=>{t===null&&(t=(u(NM,{optional:!0})??[]).reduceRight(cW,HM));let n=u(mo);if(u(Vg)){let a=n.add();return t(i,e).pipe(_a(()=>n.remove(a)))}else return t(i,e)}}var Vu=(()=>{class t extends Hl{backend;injector;chain=null;pendingTasks=u(mo);contributeToStability=u(Vg);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Ag),...this.injector.get(FM,[])]));this.chain=n.reduceRight((r,a)=>lW(r,a,this.injector),HM)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(_a(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(ae(md),ae(fn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var uW=/^\)\]\}',?\n/,mW=RegExp(`^${LM}:`,"m");function pW(t){return"responseURL"in t&&t.responseURL?t.responseURL:mW.test(t.getAllResponseHeaders())?t.getResponseHeader(LM):null}var Tg=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Ce(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?jt(n.\u0275loadImpl()):ie(null)).pipe(dt(()=>new Ue(a=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((ne,oe)=>o.setRequestHeader(ne,oe.join(","))),e.headers.has(AM)||o.setRequestHeader(AM,rW),!e.headers.has(TM)){let ne=e.detectContentTypeHeader();ne!==null&&o.setRequestHeader(TM,ne)}if(e.responseType){let ne=e.responseType.toLowerCase();o.responseType=ne!=="json"?ne:"text"}let s=e.serializeBody(),d=null,h=()=>{if(d!==null)return d;let ne=o.statusText||"OK",oe=new vr(o.getAllResponseHeaders()),ye=pW(o)||e.url;return d=new Au({headers:oe,status:o.status,statusText:ne,url:ye}),d},v=()=>{let{headers:ne,status:oe,statusText:ye,url:qe}=h(),nt=null;oe!==oW&&(nt=typeof o.response>"u"?o.responseText:o.response),oe===0&&(oe=nt?aW:0);let An=oe>=200&&oe<300;if(e.responseType==="json"&&typeof nt=="string"){let zn=nt;nt=nt.replace(uW,"");try{nt=nt!==""?JSON.parse(nt):null}catch(Ei){nt=zn,An&&(An=!1,nt={error:Ei,text:nt})}}An?(a.next(new pd({body:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0})),a.complete()):a.error(new fd({error:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0}))},C=ne=>{let{url:oe}=h(),ye=new fd({error:ne,status:o.status||0,statusText:o.statusText||"Unknown Error",url:oe||void 0});a.error(ye)},S=!1,D=ne=>{S||(a.next(h()),S=!0);let oe={type:ic.DownloadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),e.responseType==="text"&&o.responseText&&(oe.partialText=o.responseText),a.next(oe)},L=ne=>{let oe={type:ic.UploadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),a.next(oe)};return o.addEventListener("load",v),o.addEventListener("error",C),o.addEventListener("timeout",C),o.addEventListener("abort",C),e.reportProgress&&(o.addEventListener("progress",D),s!==null&&o.upload&&o.upload.addEventListener("progress",L)),o.send(s),a.next({type:ic.Sent}),()=>{o.removeEventListener("error",C),o.removeEventListener("abort",C),o.removeEventListener("load",v),o.removeEventListener("timeout",C),e.reportProgress&&(o.removeEventListener("progress",D),s!==null&&o.upload&&o.upload.removeEventListener("progress",L)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(ae(nc))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),BM=new A(""),fW="XSRF-TOKEN",hW=new A("",{providedIn:"root",factory:()=>fW}),gW="X-XSRF-TOKEN",_W=new A("",{providedIn:"root",factory:()=>gW}),hd=class{},vW=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=sd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(ae(De),ae(hW))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function bW(t,i){let e=t.url.toLowerCase();if(!u(BM)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=u(hd).getToken(),r=u(_W);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var Lg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lg||{});function yW(t,i){return{\u0275kind:t,\u0275providers:i}}function CW(...t){let i=[On,Tg,Vu,{provide:Hl,useExisting:Vu},{provide:md,useFactory:()=>u(sW,{optional:!0})??u(Tg)},{provide:Ag,useValue:bW,multi:!0},{provide:BM,useValue:!0},{provide:hd,useClass:vW}];for(let e of t)i.push(...e.\u0275providers);return Dl(i)}var VM=new A("");function xW(){return yW(Lg.LegacyInterceptors,[{provide:VM,useFactory:dW},{provide:Ag,useExisting:VM,multi:!0}])}var jM=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=ae(MW),r},providedIn:"root"})}return t})(),MW=(()=>{class t extends vo{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ln.NONE:return n;case Ln.HTML:return po(n,"HTML")?Pr(n):k8(this._doc,String(n)).toString();case Ln.STYLE:return po(n,"Style")?Pr(n):n;case Ln.SCRIPT:if(po(n,"Script"))return Pr(n);throw new Ce(5200,!1);case Ln.URL:return po(n,"URL")?Pr(n):j0(String(n));case Ln.RESOURCE_URL:if(po(n,"ResourceURL"))return Pr(n);throw new Ce(5201,!1);default:throw new Ce(5202,!1)}}bypassSecurityTrustHtml(e){return aC(e)}bypassSecurityTrustStyle(e){return oC(e)}bypassSecurityTrustScript(e){return sC(e)}bypassSecurityTrustUrl(e){return cC(e)}bypassSecurityTrustResourceUrl(e){return lC(e)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Fl=class{},UM=(()=>{class t extends Fl{getTranslation(e){return ie({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),vd=class{},$M=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Ru(t,i){if(t===i)return!0;if(t===null||i===null)return!1;if(t!==t&&i!==i)return!0;let e=typeof t,n=typeof i,r,a,o;if(e==n&&e=="object")if(Array.isArray(t)){if(!Array.isArray(i))return!1;if((r=t.length)==i.length){for(a=0;a{yd(i[n])?n in t?e[n]=Rg(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):Rg({},i)}function zg(t,i){let e=i.split(".");i="";do i+=e.shift(),Ko(t)&&Ko(t[i])&&(yd(t[i])||jg(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function DW(t,i,e){let n=i.split("."),r=t;for(let a=0;a{class t extends Bl{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(Ug(e))return this.interpolateString(e,n);if(wW(e))return this.interpolateFunction(e,n)}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(r,a)=>{let o=zg(n,a);return Ko(o)?o:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),jl=class{},WM=(()=>{class t extends jl{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),bd=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},Hg=new A("ISOLATE_TRANSLATE_SERVICE"),Ng=new A("USE_DEFAULT_LANG"),Fg=new A("DEFAULT_LANGUAGE"),Bg=new A("USE_EXTEND"),_d=t=>Wn(t)?t:ie(t),br=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,n,r,a,o,s=!0,d=!1,h=!1,v){this.store=e,this.currentLoader=n,this.compiler=r,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.extend=h,d&&(this.store=new bd),v&&this.setDefaultLang(v)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(Le(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return ie(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return Wn(n)?(n.pipe(Le(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),ie(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(Ls(1),Le(1));return this.loadingTranslations=n.pipe(pe(r=>this.compiler.compileTranslations(r,e)),Ls(1),Le(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?q(q({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(e,n,r=!1){let a=this.compiler.compileTranslations(n,e);(r||this.extend)&&this.translations[e]?this.translations[e]=Rg(this.translations[e],a):this.translations[e]=a,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let n=e.filter(r=>!this.langs.includes(r));n.length>0&&(this.langs=[...this.langs,...n])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,n,r){let a;if(e&&(a=this.runInterpolation(zg(e,n),r)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(zg(this.translations[this.defaultLang],n),r)),a===void 0){let o={key:n,translateService:this};typeof r<"u"&&(o.interpolateParams=r),a=this.missingTranslationHandler.handle(o)}return a!==void 0?a:n}runInterpolation(e,n){if(jg(e))return e.map(r=>this.runInterpolation(r,n));if(yd(e)){let r={};for(let a in e){let o=this.runInterpolation(e[a],n);o!==void 0&&(r[a]=o)}return r}else return this.parser.interpolate(e,n)}getParsedResult(e,n,r){if(n instanceof Array){let a={},o=!1;for(let d of n)a[d]=this.getParsedResultForKey(e,d,r),o=o||Wn(a[d]);if(!o)return a;let s=n.map(d=>_d(a[d]));return no(s).pipe(pe(d=>{let h={};return d.forEach((v,C)=>{h[n[C]]=v}),h}))}return this.getParsedResultForKey(e,n,r)}get(e,n){if(!Ko(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ti(r=>_d(this.getParsedResult(r,e,n)))):_d(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Ko(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return gi(Pi(()=>this.get(e,n)),this.onTranslationChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return _d(a)})))}stream(e,n){if(!Ko(e)||!e.length)throw new Error('Parameter "key" required');return gi(Pi(()=>this.get(e,n)),this.onLangChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return _d(a)})))}instant(e,n){if(!Ko(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,n);return Wn(r)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:r}set(e,n,r=this.currentLang){DW(this.translations[r],e,Ug(n)?this.compiler.compile(n,r):this.compiler.compileTranslations(n,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(n){return new(n||t)(ae(bd),ae(Fl),ae(jl),ae(Bl),ae(vd),ae(Ng),ae(Hg),ae(Bg),ae(Fg))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ee=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,r){let a=o=>{this.value=o!==void 0?o:e,this.lastKey=e,this._ref.markForCheck()};if(r){let o=this.translate.getParsedResult(r,e,n);Wn(o)?o.subscribe(a):a(o)}this.translate.get(e,n).subscribe(a)}transform(e,...n){if(!e||!e.length)return e;if(Ru(e,this.lastKey)&&Ru(n,this.lastParams))return this.value;let r;if(Ko(n[0])&&n.length)if(Ug(n[0])&&n[0].length){let a=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(a)}catch(o){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else yd(n[0])&&(r=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(a=>{this.lastKey&&a.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(a=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||t)(k(br,16),k(be,16))};static \u0275pipe=_t({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var $g=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Fl,useClass:UM},e.compiler||{provide:jl,useClass:WM},e.parser||{provide:Bl,useClass:GM},e.missingTranslationHandler||{provide:vd,useClass:$M},bd,{provide:Hg,useValue:e.isolate},{provide:Ng,useValue:e.useDefaultLang},{provide:Bg,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},br]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Fl,useClass:UM},e.compiler||{provide:jl,useClass:WM},e.parser||{provide:Bl,useClass:GM},e.missingTranslationHandler||{provide:vd,useClass:$M},{provide:Hg,useValue:e.isolate},{provide:Ng,useValue:e.useDefaultLang},{provide:Bg,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},br]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();var Gg={mifos_x:{version:"251119",hash:"36fb5f2"},allow_switching_backend_instance:!0};var Xt=window.env||{},mt={production:!0,version:Gg.mifos_x.version,hash:Gg.mifos_x.hash,fineractPlatformTenantId:Xt.fineractPlatformTenantId||"default",fineractPlatformTenantIds:Xt.fineractPlatformTenantIds||"default",baseApiUrls:Xt.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:Xt.fineractApiUrl||(Xt.fineractApiUrls?.length>0?Xt.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:Xt.oauthServerUrl||Xt.fineractApiUrl+Xt.apiProvider,allowServerSwitch:Xt.allowServerSwitch||"true",apiProvider:Xt.apiProvider||"/fineract-provider/api",apiVersion:Xt.apiVersion||"/v1",serverUrl:"",oauth:{enabled:Xt.oauthServerEnabled||!1,serverUrl:Xt.oauthServerUrl||"",appId:Xt.oauthAppId||""},enableRememberMe:!1,warningDialog:{title:"Warning",content:"This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.",buttonText:"Close"},defaultLanguage:Xt.defaultLanguage||"en-US",supportedLanguages:Xt.supportedLanguages||"cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW",preloadClients:Xt.preloadClients||!0,defaultCharDelimiter:Xt.defaultCharDelimiter||",",displayBackEndInfo:Xt.displayBackEndInfo||"true",displayTenantSelector:Xt.displayTenantSelector||"true",waitTimeForNotifications:Xt.waitTimeForNotifications||60,waitTimeForCOBCatchUp:Xt.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:Xt.sessionIdleTimeout||3e5}},httpCacheEnabled:Xt.httpCacheEnabled||!1,vNextApiUrl:window.env.vNextApiUrl||"https://apis.mifos.community",vNextApiProvider:window.env.vNextApiProvider||"/vnext1",vNextApiVersion:window.env.vNextApiVersion||"/v1.0",interbankTransfers:window.env.interbankTransfers||!1,minPasswordLength:Xt.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};mt.serverUrl=`${mt.baseApiUrl}${mt.apiProvider}${mt.apiVersion}`;var qM=(()=>{class t{transform(e,n,r,a){if(e){if(n==="loan"&&(r==="closed"?e=e.filter(o=>o.status.code==="loanStatusType.closed.written.off"||o.status.code==="loanStatusType.closed.obligations.met"||o.status.code==="loanStatusType.closed.reschedule.outstanding.amount"||o.status.code==="loanStatusType.withdrawn.by.client"||o.status.code==="loanStatusType.rejected"):e=e.filter(o=>o.status.code!=="loanStatusType.closed.written.off"&&o.status.code!=="loanStatusType.closed.obligations.met"&&o.status.code!=="loanStatusType.closed.reschedule.outstanding.amount"&&o.status.code!=="loanStatusType.withdrawn.by.client"&&o.status.code!=="loanStatusType.rejected")),n==="saving"&&(a==="isFixed"?e=e.filter(o=>o.depositType.value==="Fixed Deposit"):a==="isRecurring"?e=e.filter(o=>o.depositType.value==="Recurring Deposit"):a==="isSavings"&&(e=e.filter(o=>o.depositType.value==="Savings")),r==="closed"?e=e.filter(o=>o.status.code==="savingsAccountStatusType.withdrawn.by.applicant"||o.status.code==="savingsAccountStatusType.closed"||o.status.code==="savingsAccountStatusType.pre.mature.closure"||o.status.code==="savingsAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="savingsAccountStatusType.withdrawn.by.applicant"&&o.status.code!=="savingsAccountStatusType.closed"&&o.status.code!=="savingsAccountStatusType.pre.mature.closure"&&o.status.code!=="savingsAccountStatusType.rejected")),n==="share"&&(r==="closed"?e=e.filter(o=>o.status.code==="shareAccountStatusType.closed"||o.status.code==="shareAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="shareAccountStatusType.closed"&&o.status.code!=="shareAccountStatusType.rejected")),n==="guarantor")if(r===!1)e=e.filter(o=>o.status===!0);else return e;return n==="clientApproval"&&(e=e.filter(o=>o.active===!1&&o.status.value==="Pending")),e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"accountsFilter",type:t,pure:!0})}}return t})();var YM=(()=>{class t{transform(e,n,r,a){return e&&(e=e.filter(o=>!(o.currency.code!==r||a&&o.chargeTimeType.id===12||n.filter(s=>s.id===o.id).length))),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesFilter",type:t,pure:!0})}}return t})();var QM=(()=>{class t{transform(e,n){return e&&(e=e.filter(r=>r.penalty===n)),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Zo=(()=>{class t{constructor(){this.alertEvent=new j}alert(e){this.alertEvent.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $l=r3(Hu());var Li=(()=>{class t{static{this.DEFAULT_DATEFORMAT="yyyy-MM-dd"}static{this.DEFAULT_DATETIMEFORMAT="yyyy-MM-dd HH:mm"}constructor(e){this.datePipe=e}getDate(e){return this.datePipe.transform(e,"YYYY-MM-DD")}formatDate(e,n){return new tc(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,$l.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,$l.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,$l.default)(e).toDate()}parseDatetime(e){return(0,$l.default)(e).toDate()}convertToDate(e,n){return(0,$l.default)(e).toDate()}get language(){return localStorage.getItem("mifosXLanguage")?JSON.parse(localStorage.getItem("mifosXLanguage")):"en"}calculateDiff(e,n){return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/(1e3*60*60*24))}static{this.\u0275fac=function(n){return new(n||t)(ae(tc))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nt=(()=>{class t{static{this.businessDateFormat="yyyy-MM-dd"}static{this.businessDateConfigName="enable-business-date"}static{this.businessDateType="BUSINESS_DATE"}static{this.cobDateType="COB_DATE"}constructor(e,n){this.alertService=e,this.dateUtils=n,this.minAllowedDate=new Date(1950,0,1),this.maxAllowedDate=new Date(2100,0,1)}setDateFormat(e){localStorage.setItem("mifosXDateFormat",JSON.stringify(e))}setLanguage(e){localStorage.setItem("mifosXLanguage",JSON.stringify(e))}setDecimalToDisplay(e){localStorage.setItem("mifosXDecimalsToDisplay",e)}setDefaultLanguage(){let e=mt.defaultLanguage?mt.defaultLanguage:"en-US";this.setLanguage({name:e,code:e.substring(0,2)})}setServer(e){localStorage.setItem("mifosXServerURL",e)}setServers(e){localStorage.setItem("mifosXServers",JSON.stringify(e))}setTenantIdentifiers(e){localStorage.setItem("mifosXTenantIdentifiers",JSON.stringify(e))}setTenantIdentifier(e){localStorage.setItem("mifosXTenantIdentifier",e)}setBusinessDate(e){localStorage.setItem("mifosXServerDate",e)}setBusinessDateConfig(e){localStorage.setItem("mifosXServerBusinessDateEnabled",e)}get dateFormat(){return JSON.parse(localStorage.getItem("mifosXDateFormat"))}get language(){return localStorage.getItem("mifosXLanguage")||this.setDefaultLanguage(),JSON.parse(localStorage.getItem("mifosXLanguage"))}get languageCode(){let e=this.language.code;return e==="es"?"es-MX":e==="en"?"en-US":e+"-"+e.toUpperCase()}get decimals(){return localStorage.getItem("mifosXDecimalsToDisplay")?localStorage.getItem("mifosXDecimalsToDisplay"):"2"}get servers(){return JSON.parse(localStorage.getItem("mifosXServers"))}get server(){return localStorage.getItem("mifosXServerURL")?localStorage.getItem("mifosXServerURL"):mt.baseApiUrl&&mt.baseApiUrl!==""?mt.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+mt.apiProvider}get serverUrl(){return this.server+mt.apiProvider+mt.apiVersion}get serverHost(){return this.server}get businessDate(){return this.dateUtils.convertToDate(localStorage.getItem("mifosXServerDate"),t.businessDateFormat)}get businessDateConfig(){return localStorage.getItem("mifosXServerBusinessDateEnabled")}get minPastDate(){return this.minAllowedDate}get maxFutureDate(){return this.maxAllowedDate}get tenantIdentifiers(){return JSON.parse(localStorage.getItem("mifosXTenantIdentifiers"))}get tenantIdentifier(){return localStorage.getItem("mifosXTenantIdentifier")}validateBusinessDateStatus(e){e.some(n=>{if(n.name===t.businessDateConfigName)return n.enabled})}getBusinessDates(e,n){e.some(r=>{if(r.type===n){let a=new Date(r.date);this.setBusinessDate(this.dateUtils.formatDate(a,t.businessDateFormat)),this.alertService.alert({type:n+" Set",message:this.dateUtils.formatDate(a,this.dateFormat)});return}})}setThemeDarkEnabled(e){localStorage.setItem("mifosXThemeDarkEnabled",JSON.stringify(e))}get themeDarkEnabled(){return JSON.parse(localStorage.getItem("mifosXThemeDarkEnabled"))}static{this.\u0275fac=function(n){return new(n||t)(ae(Zo),ae(Li))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nu=r3(Hu());var yr=(()=>{class t{constructor(e){this.settingsService=e}transform(e,n){let r=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let a;return Nu.default.locale(this.settingsService.language.code),e instanceof Array?a=(0,Nu.default)(e.join("-"),"YYYY-MM-DD"):a=(0,Nu.default)(e),n==null?a.format(r):a.format(n)}static{this.\u0275fac=function(n){return new(n||t)(k(Nt,16))}}static{this.\u0275pipe=_t({name:"dateFormat",type:t,pure:!0})}}return t})();var xd=r3(Hu());var Ia=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let r;if(Array.isArray(e)){let[o,s,d,h,v,C]=e;h!=null?r=(0,xd.default)({year:o,month:(s??1)-1,date:d,hour:h,minute:v??0,second:C??0}):r=(0,xd.default)({year:o,month:(s??1)-1,date:d})}else typeof e=="number"&&e<1e12?r=xd.default.unix(e):r=(0,xd.default)(e);let a=n??"YYYY-MM-DDTHH:mm:ssZ";return r.format(a)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"datetimeFormat",type:t,pure:!0})}}return t})();var Fu=(()=>{class t{transform(e){if(e){if(/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(e))return e.split("-")[4];{let a=e.length;return a>20?e.substring(a-20,a):e}}else return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"externalIdentifier",type:t,pure:!0})}}return t})();var KM=new WeakMap,ZM=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n,r,a){if(!n||!r||e===null||e===void 0)return"";let o=KM.get(n);o||(o=new Map,KM.set(n,o));let s=o.get(r);if(!s){if(s=new Map,Array.isArray(n))for(let v of n)v&&v[r]!==void 0&&v[r]!==null&&s.set(v[r],v);o.set(r,s)}let d=s.get(e),h=d?d[a]??"":"";return typeof h=="string"?this.sanitizer.sanitize(Ln.HTML,h)||"":String(h||"")}static{this.\u0275fac=function(n){return new(n||t)(k(vo,16))}}static{this.\u0275pipe=_t({name:"find",type:t,pure:!0})}}return t})();var Xo=(()=>{class t{constructor(e,n){this.decimalFormat=e,this.settingsService=n}transform(e,n){if(e===void 0)return n||"";let r=this.settingsService.decimals,a=`1.${r}-${r}`;return this.decimalFormat.transform(e,a)}static{this.\u0275fac=function(n){return new(n||t)(k(od,16),k(Nt,16))}}static{this.\u0275pipe=_t({name:"formatNumber",type:t,pure:!0})}}return t})();var ew=r3(JM());var ju=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return ew.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"prettyPrint",type:t,pure:!0})}}return t})();var tw=(()=>{class t{transform(e){return{true:"status-active",false:"status-deleted",Active:"status-active",Block:"status-block","charges.StatusType.active.true":"status-active","loanStatusType.submitted.and.pending.approval":"status-pending","loanStatusType.approved":"status-approved","loanStatusType.active":"status-active","loanStatusType.overpaid":"status-overpaid","loanStatusType.chargeoff":"status-chargeoff","loanStatusType.activeOverdue":"status-active-overdue","loanSubStatusType.contractTermination":"subStatus-contract-termination","savingsAccountStatusType.submitted.and.pending.approval":"status-pending","savingsAccountStatusType.approved":"status-approved","savingsAccountStatusType.active":"status-active","savingsAccountStatusType.activeInactive":"status-active-overdue","savingsAccountStatusType.activeDormant":"status-active-overdue","savingsAccountStatusType.matured":"status-matured","shareAccountStatusType.submitted.and.pending.approval":"status-pending","shareAccountStatusType.approved":"status-approved","shareAccountStatusType.active":"status-active","shareAccountStatusType.rejected":"status-rejected","loanProduct.active":"status-active","loanProduct.inActive":"status-inactive","clientStatusType.pending":"status-pending","clientStatusType.closed":"status-closed","clientStatusType.rejected":"status-rejected","clientStatusType.withdraw":"status-withdraw","clientStatusType.active":"status-active","clientStatusType.submitted.and.pending.approval":"status-pending","clientStatusTYpe.approved":"status-approved","clientStatusType.transfer.in.progress":"status-transfer-progress","clientStatusType.transfer.on.hold":"status-transfer-hold","groupingStatusType.active":"status-active","groupingStatusType.pending":"status-pending","groupingStatusType.submitted.and.pending.approval":"status-pending","groupingStatusType.approved":"status-approved","smsCampaignStatus.active":"status-active","smsCampaignStatus.pending":"status-pending","smsCampaignStatus.closed":"status-closed","purchasedSharesStatusType.applied":"status-pending"}[e]??"status-unknown"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"statusLookup",type:t,pure:!0})}}return t})();var rc=(()=>{class t{constructor(e){this.translateService=e}transform(e,n,r="labels"){let a=`${r}.${n}.${e}`;return this.translateService.instant(a)}static{this.\u0275fac=function(n){return new(n||t)(k(br,16))}}static{this.\u0275pipe=_t({name:"translateKey",type:t,pure:!0})}}return t})();var Uu=(()=>{class t{transform(e,n){if(e.length<=40)return e;let r=e.substring(0,30);return n&&(r=e.substring(0,n)),r}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"truncateText",type:t,pure:!0})}}return t})();var iw=(()=>{class t{transform(e){e=decodeURIComponent(e);let n=e.slice(1).split("/");if(e.includes("?")){let a=n.pop(),o=a.slice(0,a.indexOf("?"));n.push(o)}return n.map(a=>a.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")).join(" | ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"urlToString",type:t,pure:!0})}}return t})();var $u=(()=>{class t{constructor(e){this.translateService=e}transform(e,...n){if(e==null)return null;let r=e?"Yes":"No";return this.translateService.instant("labels.buttons."+r)}static{this.\u0275fac=function(n){return new(n||t)(k(br,16))}}static{this.\u0275pipe=_t({name:"yesNo",type:t,pure:!0})}}return t})();var rw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({providers:[tw,qM,YM,QM,ZM,iw,yr,Ia,Fu,Xo,$u,ju,rc,Uu],imports:[fe]})}}return t})();var yo={headers:{"Fineract-Platform-TenantId":mt.fineractPlatformTenantId}},Gu="Authorization",OW="Fineract-Platform-TenantId",aw="Fineract-Platform-TFA-Token",ow=(()=>{class t{constructor(e){this.settingsService=e}intercept(e,n){return this.settingsService.tenantIdentifier&&(yo.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:yo.headers}),n.handle(e)}setAuthorizationToken(e){mt.oauth.enabled?yo.headers[Gu]=`Bearer ${e}`:yo.headers[Gu]=`Basic ${e}`}setTwoFactorAccessToken(e){yo.headers[aw]=e}removeAuthorization(){delete yo.headers[Gu]}removeAuthorizationTenant(){delete yo.headers[Gu],delete yo.headers[OW]}removeTwoFactorAuthorization(){delete yo.headers[aw]}static{this.\u0275fac=function(n){return new(n||t)(ae(Nt))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Wu=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(e,n,r){this.http=e,this.alertService=n,this.authenticationInterceptor=r,this.userLoggedIn$=new Je(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.dialogShown=!1,this.credentialsStorageKey="mifosXCredentials",this.oAuthTokenDetailsStorageKey="mifosXOAuthTokenDetails",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken",this.userLoggedIn=!1,this.rememberMe=!1,this.storage=sessionStorage;let a=JSON.parse(sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey));if(a){a.rememberMe&&(this.rememberMe=!0,this.storage=localStorage);let o=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));mt.oauth.enabled?this.refreshOAuthAccessToken():r.setAuthorizationToken(a.base64EncodedAuthenticationKey),o&&r.setTwoFactorAccessToken(o.token),this.userLoggedIn=!0,this.userLoggedIn$.next(!0)}}login(e){this.alertService.alert({type:"Authentication Start",message:"Please wait..."});let n=mt.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,mt.oauth.enabled){let r=new Z;r=r.set("username",e.username),r=r.set("password",e.password),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("grant_type","password"),r=r.set("remember_me",this.rememberMe?"true":"false");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).pipe(pe(o=>(this.getUserDetails(o),ie(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(pe(r=>(this.onLoginSuccess(r),ie(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new vr;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${mt.serverUrl}/userdetails`,{headers:n}).subscribe(r=>{this.onLoginSuccess(r),r.shouldRenewPassword||this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(e))})}refreshTokenOnExpiry(e){setTimeout(()=>this.refreshOAuthAccessToken(),e*1e3)}refreshOAuthAccessToken(){var e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey));if(e==null)return;e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,this.authenticationInterceptor.removeAuthorization();let n=JSON.parse(this.storage.getItem(this.credentialsStorageKey)),r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e),r=r.set("grant_type","refresh_token");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).subscribe(o=>{this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(o)),this.authenticationInterceptor.setAuthorizationToken(o.access_token),this.refreshTokenOnExpiry(o.expires_in);let s=JSON.parse(this.storage.getItem(this.credentialsStorageKey));s.accessToken=o.access_token,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(s))})}onLoginSuccess(e){this.userLoggedIn=!0,this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,mt.oauth.enabled?this.authenticationInterceptor.setAuthorizationToken(e.accessToken):this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey),e.isTwoFactorAuthenticationRequired?(this.credentials=e,this.alertService.alert({type:"Two Factor Authentication Required",message:"Two Factor Authentication Required"})):e.shouldRenewPassword?(this.credentials=e,this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"})):(this.setCredentials(e),this.alertService.alert({type:"Authentication Success",message:`${e.username} successfully logged in!`}),delete this.credentials)}logoutAuthSession(){let e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,n=JSON.parse(this.storage.getItem(this.credentialsStorageKey));this.authenticationInterceptor.removeAuthorizationTenant();let r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e);let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/logout`,r.toString(),{headers:a}).subscribe()}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey))&&this.logoutAuthSession(),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn=!1,this.userLoggedIn$.next(!1),ie(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){this.onOTPValidateSuccess(r)}))}onOTPValidateSuccess(e){this.authenticationInterceptor.setTwoFactorAccessToken(e.token),this.credentials.shouldRenewPassword?this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"}):(this.setCredentials(this.credentials),this.alertService.alert({type:"Authentication Success",message:`${this.credentials.username} successfully logged in!`}),delete this.credentials,this.storage.setItem(this.twoFactorAuthenticationTokenStorageKey,JSON.stringify(e)))}resetPassword(e){return this.http.put(`/users/${this.credentials.userId}`,e).pipe(pe(()=>{this.alertService.alert({type:"Password Reset Success",message:"Your password was sucessfully reset!"}),this.authenticationInterceptor.removeAuthorization(),this.authenticationInterceptor.removeTwoFactorAuthorization();let n={username:this.credentials.username,password:e.password,remember:this.rememberMe};this.login(n).subscribe()}))}getUserLoggedIn(){return this.userLoggedIn}static{this.\u0275fac=function(n){return new(n||t)(ae(On),ae(Zo),ae(ow))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Jo=(()=>{class t{constructor(e,n,r){this.templateRef=e,this.viewContainer=n,this.authenticationService=r;let a=this.authenticationService.getCredentials();this.userPermissions=a.permissions}set mifosxHasPermission(e){if(typeof e!="string")throw new Error("hasPermission value must be a string");this.viewContainer.clear(),this.hasPermission(e)&&this.viewContainer.createEmbeddedView(this.templateRef)}hasPermission(e){return e=e.trim(),this.userPermissions.includes("ALL_FUNCTIONS")?!0:e!==""?e.substring(0,5)==="READ_"&&this.userPermissions.includes("ALL_FUNCTIONS_READ")?!0:!!this.userPermissions.includes(e):!1}static{this.\u0275fac=function(n){return new(n||t)(k(Qe),k(rt),k(Wu))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var hw=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(k(Ke),k(Y))};static \u0275dir=V({type:t})}return t})(),gw=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,features:[ce]})}return t})(),Qn=new A("");var PW={provide:Qn,useExisting:wt(()=>ai),multi:!0};function TW(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var AW=new A(""),ai=(()=>{class t extends hw{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!TW())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(k(Ke),k(Y),k(AW,8))};static \u0275dir=V({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},standalone:!1,features:[ue([PW]),ce]})}return t})();function Kg(t){return t==null||Zg(t)===0}function Zg(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var oi=new A(""),oc=new A(""),VW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vn=class{static min(i){return _w(i)}static max(i){return vw(i)}static required(i){return bw(i)}static requiredTrue(i){return LW(i)}static email(i){return RW(i)}static minLength(i){return yw(i)}static maxLength(i){return Cw(i)}static pattern(i){return zW(i)}static nullValidator(i){return Yu()}static compose(i){return kw(i)}static composeAsync(i){return Ew(i)}};function _w(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function bw(t){return Kg(t.value)?{required:!0}:null}function LW(t){return t.value===!0?null:{required:!0}}function RW(t){return Kg(t.value)||VW.test(t.value)?null:{email:!0}}function yw(t){return i=>{let e=i.value?.length??Zg(i.value);return e===null||e===0?null:e{let e=i.value?.length??Zg(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function zW(t){if(!t)return Yu;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Kg(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Yu(t){return null}function xw(t){return t!=null}function Mw(t){return Yo(t)?jt(t):t}function ww(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function Dw(t,i){return i.map(e=>e(t))}function HW(t){return!t.validate}function Sw(t){return t.map(i=>HW(i)?i:e=>i.validate(e))}function kw(t){if(!t)return null;let i=t.filter(xw);return i.length==0?null:function(e){return ww(Dw(e,i))}}function Xg(t){return t!=null?kw(Sw(t)):null}function Ew(t){if(!t)return null;let i=t.filter(xw);return i.length==0?null:function(e){let n=Dw(e,i).map(Mw);return no(n).pipe(pe(ww))}}function Jg(t){return t!=null?Ew(Sw(t)):null}function cw(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Ow(t){return t._rawValidators}function Iw(t){return t._rawAsyncValidators}function qg(t){return t?Array.isArray(t)?t:[t]:[]}function Qu(t,i){return Array.isArray(t)?t.includes(i):t===i}function lw(t,i){let e=qg(i);return qg(t).forEach(r=>{Qu(e,r)||e.push(r)}),e}function dw(t,i){return qg(i).filter(e=>!Qu(t,e))}var Ku=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Xg(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Jg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},ri=class extends Ku{name;get formDirective(){return null}get path(){return null}},Fn=class extends Ku{_parent=null;name=null;valueAccessor=null},Zu=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},NW={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},r6e=Be(q({},NW),{"[class.ng-submitted]":"isSubmitted"}),Jt=(()=>{class t extends Zu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(k(Fn,2))};static \u0275dir=V({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[ce]})}return t})(),Lr=(()=>{class t extends Zu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(k(ri,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[ce]})}return t})();var Md="VALID",qu="INVALID",Wl="PENDING",wd="DISABLED",ts=class{},Xu=class extends ts{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Sd=class extends ts{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},kd=class extends ts{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},ql=class extends ts{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Ju=class extends ts{source;constructor(i){super(),this.source=i}},em=class extends ts{source;constructor(i){super(),this.source=i}};function e5(t){return(rm(t)?t.validators:t)||null}function FW(t){return Array.isArray(t)?Xg(t):t||null}function t5(t,i){return(rm(i)?i.asyncValidators:t)||null}function BW(t){return Array.isArray(t)?Jg(t):t||null}function rm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Pw(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Ce(1e3,"");if(!n[e])throw new Ce(1001,"")}function Tw(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Ce(1002,"")})}var Yl=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return ir(this.statusReactive)}set status(i){ir(()=>this.statusReactive.set(i))}_status=Zr(()=>this.statusReactive());statusReactive=Hn(void 0);get valid(){return this.status===Md}get invalid(){return this.status===qu}get pending(){return this.status==Wl}get disabled(){return this.status===wd}get enabled(){return this.status!==wd}errors;get pristine(){return ir(this.pristineReactive)}set pristine(i){ir(()=>this.pristineReactive.set(i))}_pristine=Zr(()=>this.pristineReactive());pristineReactive=Hn(!0);get dirty(){return!this.pristine}get touched(){return ir(this.touchedReactive)}set touched(i){ir(()=>this.touchedReactive.set(i))}_touched=Zr(()=>this.touchedReactive());touchedReactive=Hn(!1);get untouched(){return!this.touched}_events=new N;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(lw(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(lw(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(dw(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(dw(i,this._rawAsyncValidators))}hasValidator(i){return Qu(this._rawValidators,i)}hasAsyncValidator(i){return Qu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new kd(!0,n))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new kd(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Sd(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Sd(!0,n))}markAsPending(i={}){this.status=Wl;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ql(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Be(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=wd,this.errors=null,this._forEachChild(r=>{r.disable(Be(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Xu(this.value,n)),this._events.next(new ql(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Md,this._forEachChild(n=>{n.enable(Be(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Md||this.status===Wl)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Xu(this.value,e)),this._events.next(new ql(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Be(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wd:Md}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Wl,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Mw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new ql(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?wd:this.errors?qu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wl)?Wl:this._anyControlsHaveStatus(qu)?qu:Md}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),r&&this._events.next(new Sd(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new kd(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){rm(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=FW(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=BW(this._rawAsyncValidators)}},ac=class extends Yl{constructor(i,e,n){super(e5(e),t5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){Tw(this,!0,i),Object.keys(i).forEach(n=>{Pw(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,a)=>{n=e(n,r,a)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Aw=ac;var Yg=class extends ac{};var Ql=new A("",{providedIn:"root",factory:()=>am}),am="always";function om(t,i){return[...i.path,t]}function Ed(t,i,e=am){n5(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),UW(t,i),GW(t,i),$W(t,i),jW(t,i)}function tm(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),im(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function nm(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function jW(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function n5(t,i){let e=Ow(t);i.validator!==null?t.setValidators(cw(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Iw(t);i.asyncValidator!==null?t.setAsyncValidators(cw(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();nm(i._rawValidators,r),nm(i._rawAsyncValidators,r)}function im(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=Ow(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.validator);a.length!==r.length&&(e=!0,t.setValidators(a))}}if(i.asyncValidator!==null){let r=Iw(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.asyncValidator);a.length!==r.length&&(e=!0,t.setAsyncValidators(a))}}}let n=()=>{};return nm(i._rawValidators,n),nm(i._rawAsyncValidators,n),e}function UW(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Vw(t,i)})}function $W(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Vw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Vw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function GW(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Lw(t,i){t==null,n5(t,i)}function WW(t,i){return im(t,i)}function i5(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function qW(t){return Object.getPrototypeOf(t.constructor)===gw}function Rw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r5(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(a=>{a.constructor===ai?e=a:qW(a)?n=a:r=a}),r||n||e||null}function YW(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var QW={provide:ri,useExisting:wt(()=>Kl)},Dd=Promise.resolve(),Kl=(()=>{class t extends ri{callSetDisabledState;get submitted(){return ir(this.submittedReactive)}_submitted=Zr(()=>this.submittedReactive());submittedReactive=Hn(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new ac({},Xg(e),Jg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Dd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Ed(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Dd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Dd.then(()=>{let n=this._findContainer(e.path),r=new ac({});Lw(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Dd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Dd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Rw(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Ju(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new em(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(k(oi,10),k(oc,10),k(Ql,8))};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([QW]),ce]})}return t})();function uw(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function mw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var es=class extends Yl{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(e5(e),t5(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(mw(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){uw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){uw(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){mw(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},xi=es,KW=t=>t instanceof es,ZW=(()=>{class t extends ri{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return om(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,standalone:!1,features:[ce]})}return t})();var XW={provide:Fn,useExisting:wt(()=>JW)},pw=Promise.resolve(),JW=(()=>{class t extends Fn{_changeDetectorRef;callSetDisabledState;control=new es;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new j;constructor(e,n,r,a,o,s){super(),this._changeDetectorRef=o,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=r5(this,a)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i5(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ed(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){pw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&B(n);pw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?om(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(k(ri,9),k(oi,10),k(oc,10),k(Qn,10),k(be,8),k(Ql,8))};static \u0275dir=V({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ue([XW]),ce,Pe]})}return t})();var ns=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),eq={provide:Qn,useExisting:wt(()=>tq),multi:!0},tq=(()=>{class t extends gw{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[ue([eq]),ce]})}return t})();var a5=new A(""),nq={provide:Fn,useExisting:wt(()=>mi)},mi=(()=>{class t extends Fn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r5(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&tm(n,this,!1),Ed(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i5(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&tm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(k(oi,10),k(oc,10),k(Qn,10),k(a5,8),k(Ql,8))};static \u0275dir=V({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ue([nq]),ce,Pe]})}return t})(),iq={provide:ri,useExisting:wt(()=>Kn)},Kn=(()=>{class t extends ri{callSetDisabledState;get submitted(){return ir(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zr(()=>this._submittedReactive());_submittedReactive=Hn(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new j;constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(im(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Ed(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){tm(e.control||null,e,!1),YW(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Rw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ju(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new em(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(tm(n||null,e),KW(r)&&(Ed(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Lw(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&WW(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){n5(this.form,this),this._oldForm&&im(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(k(oi,10),k(oc,10),k(Ql,8))};static \u0275dir=V({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([iq]),ce,Pe]})}return t})(),rq={provide:ri,useExisting:wt(()=>zw)},zw=(()=>{class t extends ZW{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Nw(this._parent)}static \u0275fac=function(n){return new(n||t)(k(ri,13),k(oi,10),k(oc,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ue([rq]),ce]})}return t})(),aq={provide:ri,useExisting:wt(()=>Hw)},Hw=(()=>{class t extends ri{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Nw(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return om(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(k(ri,13),k(oi,10),k(oc,10))};static \u0275dir=V({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ue([aq]),ce]})}return t})();function Nw(t){return!(t instanceof zw)&&!(t instanceof Kn)&&!(t instanceof Hw)}var oq={provide:Fn,useExisting:wt(()=>Cr)},Cr=(()=>{class t extends Fn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=r5(this,a)}ngOnChanges(e){this._added||this._setUpControl(),i5(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return om(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||t)(k(ri,13),k(oi,10),k(oc,10),k(Qn,10),k(a5,8))};static \u0275dir=V({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ue([oq]),ce,Pe]})}return t})();function Fw(t){return typeof t=="number"?t:parseInt(t,10)}function Bw(t){return typeof t=="number"?t:parseFloat(t)}var Od=(()=>{class t{_validator=Yu;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Yu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,features:[Pe]})}return t})(),sq={provide:oi,useExisting:wt(()=>cq),multi:!0},cq=(()=>{class t extends Od{max;inputName="max";normalizeInput=e=>Bw(e);createValidator=e=>vw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[ue([sq]),ce]})}return t})(),lq={provide:oi,useExisting:wt(()=>dq),multi:!0},dq=(()=>{class t extends Od{min;inputName="min";normalizeInput=e=>Bw(e);createValidator=e=>_w(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[ue([lq]),ce]})}return t})(),uq={provide:oi,useExisting:wt(()=>na),multi:!0};var na=(()=>{class t extends Od{required;inputName="required";normalizeInput=B;createValidator=e=>bw;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ee("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ue([uq]),ce]})}return t})();var mq={provide:oi,useExisting:wt(()=>pq),multi:!0},pq=(()=>{class t extends Od{minlength;inputName="minlength";normalizeInput=e=>Fw(e);createValidator=e=>yw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ue([mq]),ce]})}return t})(),fq={provide:oi,useExisting:wt(()=>hq),multi:!0},hq=(()=>{class t extends Od{maxlength;inputName="maxlength";normalizeInput=e=>Fw(e);createValidator=e=>Cw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ue([fq]),ce]})}return t})();var jw=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})(),Qg=class extends Yl{constructor(i,e,n){super(e5(e),t5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){Tw(this,!1,i),i.forEach((n,r)=>{Pw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function fw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var gq=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),a={};return fw(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new ac(r,a)}record(e,n=null){let r=this._reduceControls(e);return new Yg(r,n)}control(e,n,r){let a={};return this.useNonNullable?(fw(n)?a=n:(a.validators=n,a.asyncValidators=r),new es(e,Be(q({},a),{nonNullable:!0}))):new es(e,n,r)}array(e,n,r){let a=e.map(o=>this._createControl(o));return new Qg(a,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof es)return e;if(e instanceof Yl)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(n,r,a)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var is=(()=>{class t extends gq{group(e,n=null){return super.group(e,n)}control(e,n,r){return super.control(e,n,r)}array(e,n,r){return super.array(e,n,r)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Uw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ql,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[jw]})}return t})(),_e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a5,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ql,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[jw]})}return t})();var $w=(()=>{class t{set _(e){let n=e.split(":");this.currencyCode=n[0],this.displaySymbol=n.length>1?n[1]:"$",this.digitsInfo=n.length>2?n[2]:"1.2-2"}blur(e){e.value=this.parse(e.value)}focus(e){typeof this.control.value>"u"?e.value="":e.value=this.control.value}ngOnInit(){setTimeout(()=>{this.el.nativeElement.value=this.parse(this.el.nativeElement.value)})}constructor(e,n,r){this.locale=e,this.el=n,this.control=r,this.format="N0",this.digitsInfo="1.0-0",this.sufix=""}parse(e){return xu(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)(k(Ea),k(Y),k(Fn))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,r){n&1&&z("blur",function(o){return r.blur(o.target)})("focus",function(o){return r.focus(o.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var d6e=(()=>{class t{constructor(e,n){this.control=e,this.el=n}onFocus(){this.control.control?.markAsTouched(),this.control.control?.updateValueAndValidity()}static{this.\u0275fac=function(n){return new(n||t)(k(Fn),k(Y))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,r){n&1&&z("focus",function(){return r.onFocus()})}})}}return t})();var Gw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({imports:[fe]})}}return t})();var Rr=class{constructor(i={}){this.controlType=i.controlType||"",this.controlName=i.controlName||"",this.label=i.label||"",this.value=i.value===void 0?"":i.value,this.required=!!i.required,this.order=i.order===void 0?1:i.order,this.validators=i.validators===void 0?[]:i.validators,this.min=i.min===void 0?null:i.min,this.max=i.max===void 0?null:i.max}};function Co(t){return t.buttons===0||t.detail===0}function xo(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var o5;function Ww(){if(o5==null){let t=typeof document<"u"?document.head:null;o5=!!(t&&(t.createShadowRoot||t.attachShadow))}return o5}function sc(t){if(Ww()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Ri(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function In(t){return t.composedPath?t.composedPath()[0]:t.target}function Dt(t,i,e,n,r){let a=parseInt(rg.major),o=parseInt(rg.minor);return a>19||a===19&&o>0||a===0&&o===0?t.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)})}var s5;try{s5=typeof Intl<"u"&&Intl.v8BreakIterator}catch{s5=!1}var He=(()=>{class t{_platformId=u(Wo);isBrowser=this._platformId?xg(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||s5)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Id;function qw(){if(Id==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Id=!0}))}finally{Id=Id||!1}return Id}function rs(t){return qw()?t:!!t.capture}function sn(t,i=0){return sm(t)?Number(t):arguments.length===2?i:0}function sm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Cn(t){return t instanceof Y?t.nativeElement:t}var Yw=new A("cdk-input-modality-detector-options"),Qw={ignoreKeys:[18,17,224,91,16]},Kw=650,c5={passive:!0,capture:!0},Zw=(()=>{class t{_platform=u(He);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Je(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=In(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(xo(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=In(e)};constructor(){let e=u(se),n=u(De),r=u(Yw,{optional:!0});if(this._options=q(q({},Qw),r),this.modalityDetected=this._modality.pipe(Rs(1)),this.modalityChanged=this.modalityDetected.pipe(cl()),this._platform.isBrowser){let a=u(En).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[Dt(a,n,"keydown",this._onKeydown,c5),Dt(a,n,"mousedown",this._onMousedown,c5),Dt(a,n,"touchstart",this._onTouchstart,c5)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pd=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Pd||{}),Xw=new A("cdk-focus-monitor-default-options"),cm=rs({passive:!0,capture:!0}),qt=(()=>{class t{_ngZone=u(se);_platform=u(He);_inputModalityDetector=u(Zw);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=u(De,{optional:!0});_stopInputModalityDetector=new N;constructor(){let e=u(Xw,{optional:!0});this._detectionMode=e?.detectionMode||Pd.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=In(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,n=!1){let r=Cn(e);if(!this._platform.isBrowser||r.nodeType!==1)return ie();let a=sc(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return n&&(o.checkChildren=!0),o.subject;let s={checkChildren:n,subject:new N,rootNode:a};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Cn(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let a=Cn(e),o=this._getDocument().activeElement;a===o?this._getClosestElementsInfo(a).forEach(([s,d])=>this._originChanged(s,n,d)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Pd.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Pd.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Kw:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),a=In(e);!r||!r.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,cm),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,cm)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ve(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cm),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cm),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&n.push([a,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let o=0;o{class t{_elementRef=u(Y);_focusMonitor=u(qt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var lm=new WeakMap,Ze=(()=>{class t{_appRef;_injector=u(Te);_environmentInjector=u(fn);load(e){let n=this._appRef=this._appRef||this._injector.get(bi),r=lm.get(n);r||(r={loaders:new Set,refs:[]},lm.set(n,r),n.onDestroy(()=>{lm.get(n)?.refs.forEach(a=>a.destroy()),lm.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(su(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ar=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),a=e.slice(n+1).trim();this.addHeaderEntry(r,a)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let a=i.value;if(!a)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(s=>a.indexOf(s)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Pu=class{encodeKey(i){return EM(i)}encodeValue(i){return EM(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function JG(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let a=r.indexOf("="),[o,s]=a==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,a)),i.decodeValue(r.slice(a+1))],d=e.get(o)||[];d.push(s),e.set(o,d)}),e}var eW=/%(\d[a-f0-9])/gi,tW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function EM(t){return encodeURIComponent(t).replace(eW,(i,e)=>tW[e]??i)}function Iu(t){return`${t}`}var Z=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Pu,i.fromString){if(i.fromObject)throw new Ce(2805,!1);this.map=JG(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(Iu):[Iu(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(a=>{e.push({param:n,value:a,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Iu(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(Iu(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Tu=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function nW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function OM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function IM(t){return typeof Blob<"u"&&t instanceof Blob}function PM(t){return typeof FormData<"u"&&t instanceof FormData}function iW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var TM="Content-Type",AM="Accept",LM="X-Request-URL",RM="text/plain",zM="application/json",rW=`${zM}, ${RM}, */*`,zl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let a;if(nW(this.method)||r?(this.body=n!==void 0?n:null,a=r):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new vr,this.context??=new Tu,!this.params)this.params=new Z,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),d=s===-1?"?":sS.set(D,i.setHeaders[D]),h)),i.setParams&&(v=Object.keys(i.setParams).reduce((S,D)=>S.set(D,i.setParams[D]),v)),new t(e,n,o,{params:v,headers:h,context:C,reportProgress:d,responseType:r,withCredentials:s,transferCache:a})}},ic=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ic||{}),Nl=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new vr,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Au=class t extends Nl{constructor(i={}){super(i)}type=ic.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},pd=class t extends Nl{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=ic.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},fd=class extends Nl{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},aW=200,oW=204;function Pg(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var On=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let a;if(e instanceof zl)a=e;else{let d;r.headers instanceof vr?d=r.headers:d=new vr(r.headers);let h;r.params&&(r.params instanceof Z?h=r.params:h=new Z({fromObject:r.params})),a=new zl(e,n,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let o=ie(a).pipe(Ti(d=>this.handler.handle(d)));if(e instanceof zl||r.observe==="events")return o;let s=o.pipe(Ve(d=>d instanceof pd));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return s.pipe(pe(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Ce(2806,!1);return d.body}));case"blob":return s.pipe(pe(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Ce(2807,!1);return d.body}));case"text":return s.pipe(pe(d=>{if(d.body!==null&&typeof d.body!="string")throw new Ce(2808,!1);return d.body}));case"json":default:return s.pipe(pe(d=>d.body))}case"response":return s;default:throw new Ce(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Z().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Pg(r,n))}post(e,n,r={}){return this.request("POST",e,Pg(r,n))}put(e,n,r={}){return this.request("PUT",e,Pg(r,n))}static \u0275fac=function(n){return new(n||t)(ae(Hl))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var sW=new A("");function HM(t,i){return i(t)}function cW(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function lW(t,i,e){return(n,r)=>Ki(e,()=>i(n,a=>t(a,r)))}var NM=new A(""),Ag=new A(""),FM=new A(""),Vg=new A("",{providedIn:"root",factory:()=>!0});function dW(){let t=null;return(i,e)=>{t===null&&(t=(u(NM,{optional:!0})??[]).reduceRight(cW,HM));let n=u(mo);if(u(Vg)){let a=n.add();return t(i,e).pipe(_a(()=>n.remove(a)))}else return t(i,e)}}var Vu=(()=>{class t extends Hl{backend;injector;chain=null;pendingTasks=u(mo);contributeToStability=u(Vg);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Ag),...this.injector.get(FM,[])]));this.chain=n.reduceRight((r,a)=>lW(r,a,this.injector),HM)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(_a(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(ae(md),ae(fn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var uW=/^\)\]\}',?\n/,mW=RegExp(`^${LM}:`,"m");function pW(t){return"responseURL"in t&&t.responseURL?t.responseURL:mW.test(t.getAllResponseHeaders())?t.getResponseHeader(LM):null}var Tg=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Ce(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?jt(n.\u0275loadImpl()):ie(null)).pipe(dt(()=>new Ue(a=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((ne,oe)=>o.setRequestHeader(ne,oe.join(","))),e.headers.has(AM)||o.setRequestHeader(AM,rW),!e.headers.has(TM)){let ne=e.detectContentTypeHeader();ne!==null&&o.setRequestHeader(TM,ne)}if(e.responseType){let ne=e.responseType.toLowerCase();o.responseType=ne!=="json"?ne:"text"}let s=e.serializeBody(),d=null,h=()=>{if(d!==null)return d;let ne=o.statusText||"OK",oe=new vr(o.getAllResponseHeaders()),ye=pW(o)||e.url;return d=new Au({headers:oe,status:o.status,statusText:ne,url:ye}),d},v=()=>{let{headers:ne,status:oe,statusText:ye,url:qe}=h(),nt=null;oe!==oW&&(nt=typeof o.response>"u"?o.responseText:o.response),oe===0&&(oe=nt?aW:0);let An=oe>=200&&oe<300;if(e.responseType==="json"&&typeof nt=="string"){let zn=nt;nt=nt.replace(uW,"");try{nt=nt!==""?JSON.parse(nt):null}catch(Ei){nt=zn,An&&(An=!1,nt={error:Ei,text:nt})}}An?(a.next(new pd({body:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0})),a.complete()):a.error(new fd({error:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0}))},C=ne=>{let{url:oe}=h(),ye=new fd({error:ne,status:o.status||0,statusText:o.statusText||"Unknown Error",url:oe||void 0});a.error(ye)},S=!1,D=ne=>{S||(a.next(h()),S=!0);let oe={type:ic.DownloadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),e.responseType==="text"&&o.responseText&&(oe.partialText=o.responseText),a.next(oe)},L=ne=>{let oe={type:ic.UploadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),a.next(oe)};return o.addEventListener("load",v),o.addEventListener("error",C),o.addEventListener("timeout",C),o.addEventListener("abort",C),e.reportProgress&&(o.addEventListener("progress",D),s!==null&&o.upload&&o.upload.addEventListener("progress",L)),o.send(s),a.next({type:ic.Sent}),()=>{o.removeEventListener("error",C),o.removeEventListener("abort",C),o.removeEventListener("load",v),o.removeEventListener("timeout",C),e.reportProgress&&(o.removeEventListener("progress",D),s!==null&&o.upload&&o.upload.removeEventListener("progress",L)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(ae(nc))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),BM=new A(""),fW="XSRF-TOKEN",hW=new A("",{providedIn:"root",factory:()=>fW}),gW="X-XSRF-TOKEN",_W=new A("",{providedIn:"root",factory:()=>gW}),hd=class{},vW=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=sd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(ae(De),ae(hW))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function bW(t,i){let e=t.url.toLowerCase();if(!u(BM)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=u(hd).getToken(),r=u(_W);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var Lg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lg||{});function yW(t,i){return{\u0275kind:t,\u0275providers:i}}function CW(...t){let i=[On,Tg,Vu,{provide:Hl,useExisting:Vu},{provide:md,useFactory:()=>u(sW,{optional:!0})??u(Tg)},{provide:Ag,useValue:bW,multi:!0},{provide:BM,useValue:!0},{provide:hd,useClass:vW}];for(let e of t)i.push(...e.\u0275providers);return Dl(i)}var VM=new A("");function xW(){return yW(Lg.LegacyInterceptors,[{provide:VM,useFactory:dW},{provide:Ag,useExisting:VM,multi:!0}])}var jM=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=ae(MW),r},providedIn:"root"})}return t})(),MW=(()=>{class t extends vo{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ln.NONE:return n;case Ln.HTML:return po(n,"HTML")?Pr(n):k8(this._doc,String(n)).toString();case Ln.STYLE:return po(n,"Style")?Pr(n):n;case Ln.SCRIPT:if(po(n,"Script"))return Pr(n);throw new Ce(5200,!1);case Ln.URL:return po(n,"URL")?Pr(n):j0(String(n));case Ln.RESOURCE_URL:if(po(n,"ResourceURL"))return Pr(n);throw new Ce(5201,!1);default:throw new Ce(5202,!1)}}bypassSecurityTrustHtml(e){return aC(e)}bypassSecurityTrustStyle(e){return oC(e)}bypassSecurityTrustScript(e){return sC(e)}bypassSecurityTrustUrl(e){return cC(e)}bypassSecurityTrustResourceUrl(e){return lC(e)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Fl=class{},UM=(()=>{class t extends Fl{getTranslation(e){return ie({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),vd=class{},$M=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Ru(t,i){if(t===i)return!0;if(t===null||i===null)return!1;if(t!==t&&i!==i)return!0;let e=typeof t,n=typeof i,r,a,o;if(e==n&&e=="object")if(Array.isArray(t)){if(!Array.isArray(i))return!1;if((r=t.length)==i.length){for(a=0;a{yd(i[n])?n in t?e[n]=Rg(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):Rg({},i)}function zg(t,i){let e=i.split(".");i="";do i+=e.shift(),Ko(t)&&Ko(t[i])&&(yd(t[i])||jg(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function DW(t,i,e){let n=i.split("."),r=t;for(let a=0;a{class t extends Bl{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(Ug(e))return this.interpolateString(e,n);if(wW(e))return this.interpolateFunction(e,n)}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(r,a)=>{let o=zg(n,a);return Ko(o)?o:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),jl=class{},WM=(()=>{class t extends jl{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),bd=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},Hg=new A("ISOLATE_TRANSLATE_SERVICE"),Ng=new A("USE_DEFAULT_LANG"),Fg=new A("DEFAULT_LANGUAGE"),Bg=new A("USE_EXTEND"),_d=t=>Wn(t)?t:ie(t),br=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,n,r,a,o,s=!0,d=!1,h=!1,v){this.store=e,this.currentLoader=n,this.compiler=r,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.extend=h,d&&(this.store=new bd),v&&this.setDefaultLang(v)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(Le(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return ie(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return Wn(n)?(n.pipe(Le(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),ie(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(Ls(1),Le(1));return this.loadingTranslations=n.pipe(pe(r=>this.compiler.compileTranslations(r,e)),Ls(1),Le(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?q(q({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(e,n,r=!1){let a=this.compiler.compileTranslations(n,e);(r||this.extend)&&this.translations[e]?this.translations[e]=Rg(this.translations[e],a):this.translations[e]=a,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let n=e.filter(r=>!this.langs.includes(r));n.length>0&&(this.langs=[...this.langs,...n])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,n,r){let a;if(e&&(a=this.runInterpolation(zg(e,n),r)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(zg(this.translations[this.defaultLang],n),r)),a===void 0){let o={key:n,translateService:this};typeof r<"u"&&(o.interpolateParams=r),a=this.missingTranslationHandler.handle(o)}return a!==void 0?a:n}runInterpolation(e,n){if(jg(e))return e.map(r=>this.runInterpolation(r,n));if(yd(e)){let r={};for(let a in e){let o=this.runInterpolation(e[a],n);o!==void 0&&(r[a]=o)}return r}else return this.parser.interpolate(e,n)}getParsedResult(e,n,r){if(n instanceof Array){let a={},o=!1;for(let d of n)a[d]=this.getParsedResultForKey(e,d,r),o=o||Wn(a[d]);if(!o)return a;let s=n.map(d=>_d(a[d]));return no(s).pipe(pe(d=>{let h={};return d.forEach((v,C)=>{h[n[C]]=v}),h}))}return this.getParsedResultForKey(e,n,r)}get(e,n){if(!Ko(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ti(r=>_d(this.getParsedResult(r,e,n)))):_d(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Ko(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return gi(Pi(()=>this.get(e,n)),this.onTranslationChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return _d(a)})))}stream(e,n){if(!Ko(e)||!e.length)throw new Error('Parameter "key" required');return gi(Pi(()=>this.get(e,n)),this.onLangChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return _d(a)})))}instant(e,n){if(!Ko(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,n);return Wn(r)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:r}set(e,n,r=this.currentLang){DW(this.translations[r],e,Ug(n)?this.compiler.compile(n,r):this.compiler.compileTranslations(n,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(n){return new(n||t)(ae(bd),ae(Fl),ae(jl),ae(Bl),ae(vd),ae(Ng),ae(Hg),ae(Bg),ae(Fg))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ee=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,r){let a=o=>{this.value=o!==void 0?o:e,this.lastKey=e,this._ref.markForCheck()};if(r){let o=this.translate.getParsedResult(r,e,n);Wn(o)?o.subscribe(a):a(o)}this.translate.get(e,n).subscribe(a)}transform(e,...n){if(!e||!e.length)return e;if(Ru(e,this.lastKey)&&Ru(n,this.lastParams))return this.value;let r;if(Ko(n[0])&&n.length)if(Ug(n[0])&&n[0].length){let a=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(a)}catch(o){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else yd(n[0])&&(r=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(a=>{this.lastKey&&a.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(a=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||t)(k(br,16),k(be,16))};static \u0275pipe=_t({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var $g=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Fl,useClass:UM},e.compiler||{provide:jl,useClass:WM},e.parser||{provide:Bl,useClass:GM},e.missingTranslationHandler||{provide:vd,useClass:$M},bd,{provide:Hg,useValue:e.isolate},{provide:Ng,useValue:e.useDefaultLang},{provide:Bg,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},br]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Fl,useClass:UM},e.compiler||{provide:jl,useClass:WM},e.parser||{provide:Bl,useClass:GM},e.missingTranslationHandler||{provide:vd,useClass:$M},{provide:Hg,useValue:e.isolate},{provide:Ng,useValue:e.useDefaultLang},{provide:Bg,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},br]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();var Gg={mifos_x:{version:"251119",hash:"d769e84"},allow_switching_backend_instance:!0};var Xt=window.env||{},mt={production:!0,version:Gg.mifos_x.version,hash:Gg.mifos_x.hash,fineractPlatformTenantId:Xt.fineractPlatformTenantId||"default",fineractPlatformTenantIds:Xt.fineractPlatformTenantIds||"default",baseApiUrls:Xt.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:Xt.fineractApiUrl||(Xt.fineractApiUrls?.length>0?Xt.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:Xt.oauthServerUrl||Xt.fineractApiUrl+Xt.apiProvider,allowServerSwitch:Xt.allowServerSwitch||"true",apiProvider:Xt.apiProvider||"/fineract-provider/api",apiVersion:Xt.apiVersion||"/v1",serverUrl:"",oauth:{enabled:Xt.oauthServerEnabled||!1,serverUrl:Xt.oauthServerUrl||"",appId:Xt.oauthAppId||""},enableRememberMe:!1,warningDialog:{title:"Warning",content:"This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.",buttonText:"Close"},defaultLanguage:Xt.defaultLanguage||"en-US",supportedLanguages:Xt.supportedLanguages||"cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW",preloadClients:Xt.preloadClients||!0,defaultCharDelimiter:Xt.defaultCharDelimiter||",",displayBackEndInfo:Xt.displayBackEndInfo||"true",displayTenantSelector:Xt.displayTenantSelector||"true",waitTimeForNotifications:Xt.waitTimeForNotifications||60,waitTimeForCOBCatchUp:Xt.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:Xt.sessionIdleTimeout||3e5}},httpCacheEnabled:Xt.httpCacheEnabled||!1,vNextApiUrl:window.env.vNextApiUrl||"https://apis.mifos.community",vNextApiProvider:window.env.vNextApiProvider||"/vnext1",vNextApiVersion:window.env.vNextApiVersion||"/v1.0",interbankTransfers:window.env.interbankTransfers||!1,minPasswordLength:Xt.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};mt.serverUrl=`${mt.baseApiUrl}${mt.apiProvider}${mt.apiVersion}`;var qM=(()=>{class t{transform(e,n,r,a){if(e){if(n==="loan"&&(r==="closed"?e=e.filter(o=>o.status.code==="loanStatusType.closed.written.off"||o.status.code==="loanStatusType.closed.obligations.met"||o.status.code==="loanStatusType.closed.reschedule.outstanding.amount"||o.status.code==="loanStatusType.withdrawn.by.client"||o.status.code==="loanStatusType.rejected"):e=e.filter(o=>o.status.code!=="loanStatusType.closed.written.off"&&o.status.code!=="loanStatusType.closed.obligations.met"&&o.status.code!=="loanStatusType.closed.reschedule.outstanding.amount"&&o.status.code!=="loanStatusType.withdrawn.by.client"&&o.status.code!=="loanStatusType.rejected")),n==="saving"&&(a==="isFixed"?e=e.filter(o=>o.depositType.value==="Fixed Deposit"):a==="isRecurring"?e=e.filter(o=>o.depositType.value==="Recurring Deposit"):a==="isSavings"&&(e=e.filter(o=>o.depositType.value==="Savings")),r==="closed"?e=e.filter(o=>o.status.code==="savingsAccountStatusType.withdrawn.by.applicant"||o.status.code==="savingsAccountStatusType.closed"||o.status.code==="savingsAccountStatusType.pre.mature.closure"||o.status.code==="savingsAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="savingsAccountStatusType.withdrawn.by.applicant"&&o.status.code!=="savingsAccountStatusType.closed"&&o.status.code!=="savingsAccountStatusType.pre.mature.closure"&&o.status.code!=="savingsAccountStatusType.rejected")),n==="share"&&(r==="closed"?e=e.filter(o=>o.status.code==="shareAccountStatusType.closed"||o.status.code==="shareAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="shareAccountStatusType.closed"&&o.status.code!=="shareAccountStatusType.rejected")),n==="guarantor")if(r===!1)e=e.filter(o=>o.status===!0);else return e;return n==="clientApproval"&&(e=e.filter(o=>o.active===!1&&o.status.value==="Pending")),e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"accountsFilter",type:t,pure:!0})}}return t})();var YM=(()=>{class t{transform(e,n,r,a){return e&&(e=e.filter(o=>!(o.currency.code!==r||a&&o.chargeTimeType.id===12||n.filter(s=>s.id===o.id).length))),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesFilter",type:t,pure:!0})}}return t})();var QM=(()=>{class t{transform(e,n){return e&&(e=e.filter(r=>r.penalty===n)),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Zo=(()=>{class t{constructor(){this.alertEvent=new j}alert(e){this.alertEvent.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $l=r3(Hu());var Li=(()=>{class t{static{this.DEFAULT_DATEFORMAT="yyyy-MM-dd"}static{this.DEFAULT_DATETIMEFORMAT="yyyy-MM-dd HH:mm"}constructor(e){this.datePipe=e}getDate(e){return this.datePipe.transform(e,"YYYY-MM-DD")}formatDate(e,n){return new tc(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,$l.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,$l.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,$l.default)(e).toDate()}parseDatetime(e){return(0,$l.default)(e).toDate()}convertToDate(e,n){return(0,$l.default)(e).toDate()}get language(){return localStorage.getItem("mifosXLanguage")?JSON.parse(localStorage.getItem("mifosXLanguage")):"en"}calculateDiff(e,n){return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/(1e3*60*60*24))}static{this.\u0275fac=function(n){return new(n||t)(ae(tc))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nt=(()=>{class t{static{this.businessDateFormat="yyyy-MM-dd"}static{this.businessDateConfigName="enable-business-date"}static{this.businessDateType="BUSINESS_DATE"}static{this.cobDateType="COB_DATE"}constructor(e,n){this.alertService=e,this.dateUtils=n,this.minAllowedDate=new Date(1950,0,1),this.maxAllowedDate=new Date(2100,0,1)}setDateFormat(e){localStorage.setItem("mifosXDateFormat",JSON.stringify(e))}setLanguage(e){localStorage.setItem("mifosXLanguage",JSON.stringify(e))}setDecimalToDisplay(e){localStorage.setItem("mifosXDecimalsToDisplay",e)}setDefaultLanguage(){let e=mt.defaultLanguage?mt.defaultLanguage:"en-US";this.setLanguage({name:e,code:e.substring(0,2)})}setServer(e){localStorage.setItem("mifosXServerURL",e)}setServers(e){localStorage.setItem("mifosXServers",JSON.stringify(e))}setTenantIdentifiers(e){localStorage.setItem("mifosXTenantIdentifiers",JSON.stringify(e))}setTenantIdentifier(e){localStorage.setItem("mifosXTenantIdentifier",e)}setBusinessDate(e){localStorage.setItem("mifosXServerDate",e)}setBusinessDateConfig(e){localStorage.setItem("mifosXServerBusinessDateEnabled",e)}get dateFormat(){return JSON.parse(localStorage.getItem("mifosXDateFormat"))}get language(){return localStorage.getItem("mifosXLanguage")||this.setDefaultLanguage(),JSON.parse(localStorage.getItem("mifosXLanguage"))}get languageCode(){let e=this.language.code;return e==="es"?"es-MX":e==="en"?"en-US":e+"-"+e.toUpperCase()}get decimals(){return localStorage.getItem("mifosXDecimalsToDisplay")?localStorage.getItem("mifosXDecimalsToDisplay"):"2"}get servers(){return JSON.parse(localStorage.getItem("mifosXServers"))}get server(){return localStorage.getItem("mifosXServerURL")?localStorage.getItem("mifosXServerURL"):mt.baseApiUrl&&mt.baseApiUrl!==""?mt.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+mt.apiProvider}get serverUrl(){return this.server+mt.apiProvider+mt.apiVersion}get serverHost(){return this.server}get businessDate(){return this.dateUtils.convertToDate(localStorage.getItem("mifosXServerDate"),t.businessDateFormat)}get businessDateConfig(){return localStorage.getItem("mifosXServerBusinessDateEnabled")}get minPastDate(){return this.minAllowedDate}get maxFutureDate(){return this.maxAllowedDate}get tenantIdentifiers(){return JSON.parse(localStorage.getItem("mifosXTenantIdentifiers"))}get tenantIdentifier(){return localStorage.getItem("mifosXTenantIdentifier")}validateBusinessDateStatus(e){e.some(n=>{if(n.name===t.businessDateConfigName)return n.enabled})}getBusinessDates(e,n){e.some(r=>{if(r.type===n){let a=new Date(r.date);this.setBusinessDate(this.dateUtils.formatDate(a,t.businessDateFormat)),this.alertService.alert({type:n+" Set",message:this.dateUtils.formatDate(a,this.dateFormat)});return}})}setThemeDarkEnabled(e){localStorage.setItem("mifosXThemeDarkEnabled",JSON.stringify(e))}get themeDarkEnabled(){return JSON.parse(localStorage.getItem("mifosXThemeDarkEnabled"))}static{this.\u0275fac=function(n){return new(n||t)(ae(Zo),ae(Li))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nu=r3(Hu());var yr=(()=>{class t{constructor(e){this.settingsService=e}transform(e,n){let r=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let a;return Nu.default.locale(this.settingsService.language.code),e instanceof Array?a=(0,Nu.default)(e.join("-"),"YYYY-MM-DD"):a=(0,Nu.default)(e),n==null?a.format(r):a.format(n)}static{this.\u0275fac=function(n){return new(n||t)(k(Nt,16))}}static{this.\u0275pipe=_t({name:"dateFormat",type:t,pure:!0})}}return t})();var xd=r3(Hu());var Ia=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let r;if(Array.isArray(e)){let[o,s,d,h,v,C]=e;h!=null?r=(0,xd.default)({year:o,month:(s??1)-1,date:d,hour:h,minute:v??0,second:C??0}):r=(0,xd.default)({year:o,month:(s??1)-1,date:d})}else typeof e=="number"&&e<1e12?r=xd.default.unix(e):r=(0,xd.default)(e);let a=n??"YYYY-MM-DDTHH:mm:ssZ";return r.format(a)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"datetimeFormat",type:t,pure:!0})}}return t})();var Fu=(()=>{class t{transform(e){if(e){if(/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(e))return e.split("-")[4];{let a=e.length;return a>20?e.substring(a-20,a):e}}else return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"externalIdentifier",type:t,pure:!0})}}return t})();var KM=new WeakMap,ZM=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n,r,a){if(!n||!r||e===null||e===void 0)return"";let o=KM.get(n);o||(o=new Map,KM.set(n,o));let s=o.get(r);if(!s){if(s=new Map,Array.isArray(n))for(let v of n)v&&v[r]!==void 0&&v[r]!==null&&s.set(v[r],v);o.set(r,s)}let d=s.get(e),h=d?d[a]??"":"";return typeof h=="string"?this.sanitizer.sanitize(Ln.HTML,h)||"":String(h||"")}static{this.\u0275fac=function(n){return new(n||t)(k(vo,16))}}static{this.\u0275pipe=_t({name:"find",type:t,pure:!0})}}return t})();var Xo=(()=>{class t{constructor(e,n){this.decimalFormat=e,this.settingsService=n}transform(e,n){if(e===void 0)return n||"";let r=this.settingsService.decimals,a=`1.${r}-${r}`;return this.decimalFormat.transform(e,a)}static{this.\u0275fac=function(n){return new(n||t)(k(od,16),k(Nt,16))}}static{this.\u0275pipe=_t({name:"formatNumber",type:t,pure:!0})}}return t})();var ew=r3(JM());var ju=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return ew.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"prettyPrint",type:t,pure:!0})}}return t})();var tw=(()=>{class t{transform(e){return{true:"status-active",false:"status-deleted",Active:"status-active",Block:"status-block","charges.StatusType.active.true":"status-active","loanStatusType.submitted.and.pending.approval":"status-pending","loanStatusType.approved":"status-approved","loanStatusType.active":"status-active","loanStatusType.overpaid":"status-overpaid","loanStatusType.chargeoff":"status-chargeoff","loanStatusType.activeOverdue":"status-active-overdue","loanSubStatusType.contractTermination":"subStatus-contract-termination","savingsAccountStatusType.submitted.and.pending.approval":"status-pending","savingsAccountStatusType.approved":"status-approved","savingsAccountStatusType.active":"status-active","savingsAccountStatusType.activeInactive":"status-active-overdue","savingsAccountStatusType.activeDormant":"status-active-overdue","savingsAccountStatusType.matured":"status-matured","shareAccountStatusType.submitted.and.pending.approval":"status-pending","shareAccountStatusType.approved":"status-approved","shareAccountStatusType.active":"status-active","shareAccountStatusType.rejected":"status-rejected","loanProduct.active":"status-active","loanProduct.inActive":"status-inactive","clientStatusType.pending":"status-pending","clientStatusType.closed":"status-closed","clientStatusType.rejected":"status-rejected","clientStatusType.withdraw":"status-withdraw","clientStatusType.active":"status-active","clientStatusType.submitted.and.pending.approval":"status-pending","clientStatusTYpe.approved":"status-approved","clientStatusType.transfer.in.progress":"status-transfer-progress","clientStatusType.transfer.on.hold":"status-transfer-hold","groupingStatusType.active":"status-active","groupingStatusType.pending":"status-pending","groupingStatusType.submitted.and.pending.approval":"status-pending","groupingStatusType.approved":"status-approved","smsCampaignStatus.active":"status-active","smsCampaignStatus.pending":"status-pending","smsCampaignStatus.closed":"status-closed","purchasedSharesStatusType.applied":"status-pending"}[e]??"status-unknown"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"statusLookup",type:t,pure:!0})}}return t})();var rc=(()=>{class t{constructor(e){this.translateService=e}transform(e,n,r="labels"){let a=`${r}.${n}.${e}`;return this.translateService.instant(a)}static{this.\u0275fac=function(n){return new(n||t)(k(br,16))}}static{this.\u0275pipe=_t({name:"translateKey",type:t,pure:!0})}}return t})();var Uu=(()=>{class t{transform(e,n){if(e.length<=40)return e;let r=e.substring(0,30);return n&&(r=e.substring(0,n)),r}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"truncateText",type:t,pure:!0})}}return t})();var iw=(()=>{class t{transform(e){e=decodeURIComponent(e);let n=e.slice(1).split("/");if(e.includes("?")){let a=n.pop(),o=a.slice(0,a.indexOf("?"));n.push(o)}return n.map(a=>a.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")).join(" | ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"urlToString",type:t,pure:!0})}}return t})();var $u=(()=>{class t{constructor(e){this.translateService=e}transform(e,...n){if(e==null)return null;let r=e?"Yes":"No";return this.translateService.instant("labels.buttons."+r)}static{this.\u0275fac=function(n){return new(n||t)(k(br,16))}}static{this.\u0275pipe=_t({name:"yesNo",type:t,pure:!0})}}return t})();var rw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({providers:[tw,qM,YM,QM,ZM,iw,yr,Ia,Fu,Xo,$u,ju,rc,Uu],imports:[fe]})}}return t})();var yo={headers:{"Fineract-Platform-TenantId":mt.fineractPlatformTenantId}},Gu="Authorization",OW="Fineract-Platform-TenantId",aw="Fineract-Platform-TFA-Token",ow=(()=>{class t{constructor(e){this.settingsService=e}intercept(e,n){return this.settingsService.tenantIdentifier&&(yo.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:yo.headers}),n.handle(e)}setAuthorizationToken(e){mt.oauth.enabled?yo.headers[Gu]=`Bearer ${e}`:yo.headers[Gu]=`Basic ${e}`}setTwoFactorAccessToken(e){yo.headers[aw]=e}removeAuthorization(){delete yo.headers[Gu]}removeAuthorizationTenant(){delete yo.headers[Gu],delete yo.headers[OW]}removeTwoFactorAuthorization(){delete yo.headers[aw]}static{this.\u0275fac=function(n){return new(n||t)(ae(Nt))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Wu=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(e,n,r){this.http=e,this.alertService=n,this.authenticationInterceptor=r,this.userLoggedIn$=new Je(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.dialogShown=!1,this.credentialsStorageKey="mifosXCredentials",this.oAuthTokenDetailsStorageKey="mifosXOAuthTokenDetails",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken",this.userLoggedIn=!1,this.rememberMe=!1,this.storage=sessionStorage;let a=JSON.parse(sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey));if(a){a.rememberMe&&(this.rememberMe=!0,this.storage=localStorage);let o=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));mt.oauth.enabled?this.refreshOAuthAccessToken():r.setAuthorizationToken(a.base64EncodedAuthenticationKey),o&&r.setTwoFactorAccessToken(o.token),this.userLoggedIn=!0,this.userLoggedIn$.next(!0)}}login(e){this.alertService.alert({type:"Authentication Start",message:"Please wait..."});let n=mt.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,mt.oauth.enabled){let r=new Z;r=r.set("username",e.username),r=r.set("password",e.password),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("grant_type","password"),r=r.set("remember_me",this.rememberMe?"true":"false");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).pipe(pe(o=>(this.getUserDetails(o),ie(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(pe(r=>(this.onLoginSuccess(r),ie(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new vr;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${mt.serverUrl}/userdetails`,{headers:n}).subscribe(r=>{this.onLoginSuccess(r),r.shouldRenewPassword||this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(e))})}refreshTokenOnExpiry(e){setTimeout(()=>this.refreshOAuthAccessToken(),e*1e3)}refreshOAuthAccessToken(){var e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey));if(e==null)return;e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,this.authenticationInterceptor.removeAuthorization();let n=JSON.parse(this.storage.getItem(this.credentialsStorageKey)),r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e),r=r.set("grant_type","refresh_token");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).subscribe(o=>{this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(o)),this.authenticationInterceptor.setAuthorizationToken(o.access_token),this.refreshTokenOnExpiry(o.expires_in);let s=JSON.parse(this.storage.getItem(this.credentialsStorageKey));s.accessToken=o.access_token,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(s))})}onLoginSuccess(e){this.userLoggedIn=!0,this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,mt.oauth.enabled?this.authenticationInterceptor.setAuthorizationToken(e.accessToken):this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey),e.isTwoFactorAuthenticationRequired?(this.credentials=e,this.alertService.alert({type:"Two Factor Authentication Required",message:"Two Factor Authentication Required"})):e.shouldRenewPassword?(this.credentials=e,this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"})):(this.setCredentials(e),this.alertService.alert({type:"Authentication Success",message:`${e.username} successfully logged in!`}),delete this.credentials)}logoutAuthSession(){let e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,n=JSON.parse(this.storage.getItem(this.credentialsStorageKey));this.authenticationInterceptor.removeAuthorizationTenant();let r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e);let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/logout`,r.toString(),{headers:a}).subscribe()}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey))&&this.logoutAuthSession(),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn=!1,this.userLoggedIn$.next(!1),ie(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){this.onOTPValidateSuccess(r)}))}onOTPValidateSuccess(e){this.authenticationInterceptor.setTwoFactorAccessToken(e.token),this.credentials.shouldRenewPassword?this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"}):(this.setCredentials(this.credentials),this.alertService.alert({type:"Authentication Success",message:`${this.credentials.username} successfully logged in!`}),delete this.credentials,this.storage.setItem(this.twoFactorAuthenticationTokenStorageKey,JSON.stringify(e)))}resetPassword(e){return this.http.put(`/users/${this.credentials.userId}`,e).pipe(pe(()=>{this.alertService.alert({type:"Password Reset Success",message:"Your password was sucessfully reset!"}),this.authenticationInterceptor.removeAuthorization(),this.authenticationInterceptor.removeTwoFactorAuthorization();let n={username:this.credentials.username,password:e.password,remember:this.rememberMe};this.login(n).subscribe()}))}getUserLoggedIn(){return this.userLoggedIn}static{this.\u0275fac=function(n){return new(n||t)(ae(On),ae(Zo),ae(ow))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Jo=(()=>{class t{constructor(e,n,r){this.templateRef=e,this.viewContainer=n,this.authenticationService=r;let a=this.authenticationService.getCredentials();this.userPermissions=a.permissions}set mifosxHasPermission(e){if(typeof e!="string")throw new Error("hasPermission value must be a string");this.viewContainer.clear(),this.hasPermission(e)&&this.viewContainer.createEmbeddedView(this.templateRef)}hasPermission(e){return e=e.trim(),this.userPermissions.includes("ALL_FUNCTIONS")?!0:e!==""?e.substring(0,5)==="READ_"&&this.userPermissions.includes("ALL_FUNCTIONS_READ")?!0:!!this.userPermissions.includes(e):!1}static{this.\u0275fac=function(n){return new(n||t)(k(Qe),k(rt),k(Wu))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var hw=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(k(Ke),k(Y))};static \u0275dir=V({type:t})}return t})(),gw=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,features:[ce]})}return t})(),Qn=new A("");var PW={provide:Qn,useExisting:wt(()=>ai),multi:!0};function TW(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var AW=new A(""),ai=(()=>{class t extends hw{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!TW())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(k(Ke),k(Y),k(AW,8))};static \u0275dir=V({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},standalone:!1,features:[ue([PW]),ce]})}return t})();function Kg(t){return t==null||Zg(t)===0}function Zg(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var oi=new A(""),oc=new A(""),VW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vn=class{static min(i){return _w(i)}static max(i){return vw(i)}static required(i){return bw(i)}static requiredTrue(i){return LW(i)}static email(i){return RW(i)}static minLength(i){return yw(i)}static maxLength(i){return Cw(i)}static pattern(i){return zW(i)}static nullValidator(i){return Yu()}static compose(i){return kw(i)}static composeAsync(i){return Ew(i)}};function _w(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function bw(t){return Kg(t.value)?{required:!0}:null}function LW(t){return t.value===!0?null:{required:!0}}function RW(t){return Kg(t.value)||VW.test(t.value)?null:{email:!0}}function yw(t){return i=>{let e=i.value?.length??Zg(i.value);return e===null||e===0?null:e{let e=i.value?.length??Zg(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function zW(t){if(!t)return Yu;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Kg(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Yu(t){return null}function xw(t){return t!=null}function Mw(t){return Yo(t)?jt(t):t}function ww(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function Dw(t,i){return i.map(e=>e(t))}function HW(t){return!t.validate}function Sw(t){return t.map(i=>HW(i)?i:e=>i.validate(e))}function kw(t){if(!t)return null;let i=t.filter(xw);return i.length==0?null:function(e){return ww(Dw(e,i))}}function Xg(t){return t!=null?kw(Sw(t)):null}function Ew(t){if(!t)return null;let i=t.filter(xw);return i.length==0?null:function(e){let n=Dw(e,i).map(Mw);return no(n).pipe(pe(ww))}}function Jg(t){return t!=null?Ew(Sw(t)):null}function cw(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Ow(t){return t._rawValidators}function Iw(t){return t._rawAsyncValidators}function qg(t){return t?Array.isArray(t)?t:[t]:[]}function Qu(t,i){return Array.isArray(t)?t.includes(i):t===i}function lw(t,i){let e=qg(i);return qg(t).forEach(r=>{Qu(e,r)||e.push(r)}),e}function dw(t,i){return qg(i).filter(e=>!Qu(t,e))}var Ku=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Xg(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Jg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},ri=class extends Ku{name;get formDirective(){return null}get path(){return null}},Fn=class extends Ku{_parent=null;name=null;valueAccessor=null},Zu=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},NW={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},r6e=Be(q({},NW),{"[class.ng-submitted]":"isSubmitted"}),Jt=(()=>{class t extends Zu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(k(Fn,2))};static \u0275dir=V({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[ce]})}return t})(),Lr=(()=>{class t extends Zu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(k(ri,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[ce]})}return t})();var Md="VALID",qu="INVALID",Wl="PENDING",wd="DISABLED",ts=class{},Xu=class extends ts{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Sd=class extends ts{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},kd=class extends ts{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},ql=class extends ts{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Ju=class extends ts{source;constructor(i){super(),this.source=i}},em=class extends ts{source;constructor(i){super(),this.source=i}};function e5(t){return(rm(t)?t.validators:t)||null}function FW(t){return Array.isArray(t)?Xg(t):t||null}function t5(t,i){return(rm(i)?i.asyncValidators:t)||null}function BW(t){return Array.isArray(t)?Jg(t):t||null}function rm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Pw(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Ce(1e3,"");if(!n[e])throw new Ce(1001,"")}function Tw(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Ce(1002,"")})}var Yl=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return ir(this.statusReactive)}set status(i){ir(()=>this.statusReactive.set(i))}_status=Zr(()=>this.statusReactive());statusReactive=Hn(void 0);get valid(){return this.status===Md}get invalid(){return this.status===qu}get pending(){return this.status==Wl}get disabled(){return this.status===wd}get enabled(){return this.status!==wd}errors;get pristine(){return ir(this.pristineReactive)}set pristine(i){ir(()=>this.pristineReactive.set(i))}_pristine=Zr(()=>this.pristineReactive());pristineReactive=Hn(!0);get dirty(){return!this.pristine}get touched(){return ir(this.touchedReactive)}set touched(i){ir(()=>this.touchedReactive.set(i))}_touched=Zr(()=>this.touchedReactive());touchedReactive=Hn(!1);get untouched(){return!this.touched}_events=new N;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(lw(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(lw(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(dw(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(dw(i,this._rawAsyncValidators))}hasValidator(i){return Qu(this._rawValidators,i)}hasAsyncValidator(i){return Qu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new kd(!0,n))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new kd(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Sd(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Sd(!0,n))}markAsPending(i={}){this.status=Wl;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ql(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Be(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=wd,this.errors=null,this._forEachChild(r=>{r.disable(Be(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Xu(this.value,n)),this._events.next(new ql(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Md,this._forEachChild(n=>{n.enable(Be(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Md||this.status===Wl)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Xu(this.value,e)),this._events.next(new ql(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Be(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wd:Md}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Wl,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Mw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new ql(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?wd:this.errors?qu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wl)?Wl:this._anyControlsHaveStatus(qu)?qu:Md}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),r&&this._events.next(new Sd(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new kd(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){rm(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=FW(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=BW(this._rawAsyncValidators)}},ac=class extends Yl{constructor(i,e,n){super(e5(e),t5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){Tw(this,!0,i),Object.keys(i).forEach(n=>{Pw(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,a)=>{n=e(n,r,a)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Aw=ac;var Yg=class extends ac{};var Ql=new A("",{providedIn:"root",factory:()=>am}),am="always";function om(t,i){return[...i.path,t]}function Ed(t,i,e=am){n5(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),UW(t,i),GW(t,i),$W(t,i),jW(t,i)}function tm(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),im(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function nm(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function jW(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function n5(t,i){let e=Ow(t);i.validator!==null?t.setValidators(cw(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Iw(t);i.asyncValidator!==null?t.setAsyncValidators(cw(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();nm(i._rawValidators,r),nm(i._rawAsyncValidators,r)}function im(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=Ow(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.validator);a.length!==r.length&&(e=!0,t.setValidators(a))}}if(i.asyncValidator!==null){let r=Iw(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.asyncValidator);a.length!==r.length&&(e=!0,t.setAsyncValidators(a))}}}let n=()=>{};return nm(i._rawValidators,n),nm(i._rawAsyncValidators,n),e}function UW(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Vw(t,i)})}function $W(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Vw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Vw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function GW(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Lw(t,i){t==null,n5(t,i)}function WW(t,i){return im(t,i)}function i5(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function qW(t){return Object.getPrototypeOf(t.constructor)===gw}function Rw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r5(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(a=>{a.constructor===ai?e=a:qW(a)?n=a:r=a}),r||n||e||null}function YW(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var QW={provide:ri,useExisting:wt(()=>Kl)},Dd=Promise.resolve(),Kl=(()=>{class t extends ri{callSetDisabledState;get submitted(){return ir(this.submittedReactive)}_submitted=Zr(()=>this.submittedReactive());submittedReactive=Hn(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new ac({},Xg(e),Jg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Dd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Ed(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Dd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Dd.then(()=>{let n=this._findContainer(e.path),r=new ac({});Lw(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Dd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Dd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Rw(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Ju(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new em(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(k(oi,10),k(oc,10),k(Ql,8))};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([QW]),ce]})}return t})();function uw(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function mw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var es=class extends Yl{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(e5(e),t5(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(mw(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){uw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){uw(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){mw(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},xi=es,KW=t=>t instanceof es,ZW=(()=>{class t extends ri{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return om(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,standalone:!1,features:[ce]})}return t})();var XW={provide:Fn,useExisting:wt(()=>JW)},pw=Promise.resolve(),JW=(()=>{class t extends Fn{_changeDetectorRef;callSetDisabledState;control=new es;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new j;constructor(e,n,r,a,o,s){super(),this._changeDetectorRef=o,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=r5(this,a)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i5(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ed(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){pw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&B(n);pw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?om(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(k(ri,9),k(oi,10),k(oc,10),k(Qn,10),k(be,8),k(Ql,8))};static \u0275dir=V({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ue([XW]),ce,Pe]})}return t})();var ns=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),eq={provide:Qn,useExisting:wt(()=>tq),multi:!0},tq=(()=>{class t extends gw{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[ue([eq]),ce]})}return t})();var a5=new A(""),nq={provide:Fn,useExisting:wt(()=>mi)},mi=(()=>{class t extends Fn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r5(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&tm(n,this,!1),Ed(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i5(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&tm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(k(oi,10),k(oc,10),k(Qn,10),k(a5,8),k(Ql,8))};static \u0275dir=V({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ue([nq]),ce,Pe]})}return t})(),iq={provide:ri,useExisting:wt(()=>Kn)},Kn=(()=>{class t extends ri{callSetDisabledState;get submitted(){return ir(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zr(()=>this._submittedReactive());_submittedReactive=Hn(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new j;constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(im(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Ed(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){tm(e.control||null,e,!1),YW(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Rw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ju(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new em(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(tm(n||null,e),KW(r)&&(Ed(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Lw(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&WW(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){n5(this.form,this),this._oldForm&&im(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(k(oi,10),k(oc,10),k(Ql,8))};static \u0275dir=V({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([iq]),ce,Pe]})}return t})(),rq={provide:ri,useExisting:wt(()=>zw)},zw=(()=>{class t extends ZW{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Nw(this._parent)}static \u0275fac=function(n){return new(n||t)(k(ri,13),k(oi,10),k(oc,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ue([rq]),ce]})}return t})(),aq={provide:ri,useExisting:wt(()=>Hw)},Hw=(()=>{class t extends ri{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Nw(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return om(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(k(ri,13),k(oi,10),k(oc,10))};static \u0275dir=V({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ue([aq]),ce]})}return t})();function Nw(t){return!(t instanceof zw)&&!(t instanceof Kn)&&!(t instanceof Hw)}var oq={provide:Fn,useExisting:wt(()=>Cr)},Cr=(()=>{class t extends Fn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=r5(this,a)}ngOnChanges(e){this._added||this._setUpControl(),i5(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return om(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||t)(k(ri,13),k(oi,10),k(oc,10),k(Qn,10),k(a5,8))};static \u0275dir=V({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ue([oq]),ce,Pe]})}return t})();function Fw(t){return typeof t=="number"?t:parseInt(t,10)}function Bw(t){return typeof t=="number"?t:parseFloat(t)}var Od=(()=>{class t{_validator=Yu;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Yu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,features:[Pe]})}return t})(),sq={provide:oi,useExisting:wt(()=>cq),multi:!0},cq=(()=>{class t extends Od{max;inputName="max";normalizeInput=e=>Bw(e);createValidator=e=>vw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[ue([sq]),ce]})}return t})(),lq={provide:oi,useExisting:wt(()=>dq),multi:!0},dq=(()=>{class t extends Od{min;inputName="min";normalizeInput=e=>Bw(e);createValidator=e=>_w(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[ue([lq]),ce]})}return t})(),uq={provide:oi,useExisting:wt(()=>na),multi:!0};var na=(()=>{class t extends Od{required;inputName="required";normalizeInput=B;createValidator=e=>bw;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ee("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ue([uq]),ce]})}return t})();var mq={provide:oi,useExisting:wt(()=>pq),multi:!0},pq=(()=>{class t extends Od{minlength;inputName="minlength";normalizeInput=e=>Fw(e);createValidator=e=>yw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ue([mq]),ce]})}return t})(),fq={provide:oi,useExisting:wt(()=>hq),multi:!0},hq=(()=>{class t extends Od{maxlength;inputName="maxlength";normalizeInput=e=>Fw(e);createValidator=e=>Cw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ue([fq]),ce]})}return t})();var jw=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})(),Qg=class extends Yl{constructor(i,e,n){super(e5(e),t5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){Tw(this,!1,i),i.forEach((n,r)=>{Pw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function fw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var gq=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),a={};return fw(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new ac(r,a)}record(e,n=null){let r=this._reduceControls(e);return new Yg(r,n)}control(e,n,r){let a={};return this.useNonNullable?(fw(n)?a=n:(a.validators=n,a.asyncValidators=r),new es(e,Be(q({},a),{nonNullable:!0}))):new es(e,n,r)}array(e,n,r){let a=e.map(o=>this._createControl(o));return new Qg(a,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof es)return e;if(e instanceof Yl)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(n,r,a)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var is=(()=>{class t extends gq{group(e,n=null){return super.group(e,n)}control(e,n,r){return super.control(e,n,r)}array(e,n,r){return super.array(e,n,r)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Uw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ql,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[jw]})}return t})(),_e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a5,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ql,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[jw]})}return t})();var $w=(()=>{class t{set _(e){let n=e.split(":");this.currencyCode=n[0],this.displaySymbol=n.length>1?n[1]:"$",this.digitsInfo=n.length>2?n[2]:"1.2-2"}blur(e){e.value=this.parse(e.value)}focus(e){typeof this.control.value>"u"?e.value="":e.value=this.control.value}ngOnInit(){setTimeout(()=>{this.el.nativeElement.value=this.parse(this.el.nativeElement.value)})}constructor(e,n,r){this.locale=e,this.el=n,this.control=r,this.format="N0",this.digitsInfo="1.0-0",this.sufix=""}parse(e){return xu(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)(k(Ea),k(Y),k(Fn))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,r){n&1&&z("blur",function(o){return r.blur(o.target)})("focus",function(o){return r.focus(o.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var d6e=(()=>{class t{constructor(e,n){this.control=e,this.el=n}onFocus(){this.control.control?.markAsTouched(),this.control.control?.updateValueAndValidity()}static{this.\u0275fac=function(n){return new(n||t)(k(Fn),k(Y))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,r){n&1&&z("focus",function(){return r.onFocus()})}})}}return t})();var Gw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({imports:[fe]})}}return t})();var Rr=class{constructor(i={}){this.controlType=i.controlType||"",this.controlName=i.controlName||"",this.label=i.label||"",this.value=i.value===void 0?"":i.value,this.required=!!i.required,this.order=i.order===void 0?1:i.order,this.validators=i.validators===void 0?[]:i.validators,this.min=i.min===void 0?null:i.min,this.max=i.max===void 0?null:i.max}};function Co(t){return t.buttons===0||t.detail===0}function xo(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var o5;function Ww(){if(o5==null){let t=typeof document<"u"?document.head:null;o5=!!(t&&(t.createShadowRoot||t.attachShadow))}return o5}function sc(t){if(Ww()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Ri(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function In(t){return t.composedPath?t.composedPath()[0]:t.target}function Dt(t,i,e,n,r){let a=parseInt(rg.major),o=parseInt(rg.minor);return a>19||a===19&&o>0||a===0&&o===0?t.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)})}var s5;try{s5=typeof Intl<"u"&&Intl.v8BreakIterator}catch{s5=!1}var He=(()=>{class t{_platformId=u(Wo);isBrowser=this._platformId?xg(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||s5)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Id;function qw(){if(Id==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Id=!0}))}finally{Id=Id||!1}return Id}function rs(t){return qw()?t:!!t.capture}function sn(t,i=0){return sm(t)?Number(t):arguments.length===2?i:0}function sm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Cn(t){return t instanceof Y?t.nativeElement:t}var Yw=new A("cdk-input-modality-detector-options"),Qw={ignoreKeys:[18,17,224,91,16]},Kw=650,c5={passive:!0,capture:!0},Zw=(()=>{class t{_platform=u(He);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Je(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=In(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(xo(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=In(e)};constructor(){let e=u(se),n=u(De),r=u(Yw,{optional:!0});if(this._options=q(q({},Qw),r),this.modalityDetected=this._modality.pipe(Rs(1)),this.modalityChanged=this.modalityDetected.pipe(cl()),this._platform.isBrowser){let a=u(En).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[Dt(a,n,"keydown",this._onKeydown,c5),Dt(a,n,"mousedown",this._onMousedown,c5),Dt(a,n,"touchstart",this._onTouchstart,c5)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pd=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Pd||{}),Xw=new A("cdk-focus-monitor-default-options"),cm=rs({passive:!0,capture:!0}),qt=(()=>{class t{_ngZone=u(se);_platform=u(He);_inputModalityDetector=u(Zw);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=u(De,{optional:!0});_stopInputModalityDetector=new N;constructor(){let e=u(Xw,{optional:!0});this._detectionMode=e?.detectionMode||Pd.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=In(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,n=!1){let r=Cn(e);if(!this._platform.isBrowser||r.nodeType!==1)return ie();let a=sc(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return n&&(o.checkChildren=!0),o.subject;let s={checkChildren:n,subject:new N,rootNode:a};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Cn(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let a=Cn(e),o=this._getDocument().activeElement;a===o?this._getClosestElementsInfo(a).forEach(([s,d])=>this._originChanged(s,n,d)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Pd.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Pd.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Kw:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),a=In(e);!r||!r.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,cm),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,cm)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ve(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cm),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cm),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&n.push([a,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let o=0;o{class t{_elementRef=u(Y);_focusMonitor=u(qt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var lm=new WeakMap,Ze=(()=>{class t{_appRef;_injector=u(Te);_environmentInjector=u(fn);load(e){let n=this._appRef=this._appRef||this._injector.get(bi),r=lm.get(n);r||(r={loaders:new Set,refs:[]},lm.set(n,r),n.onDestroy(()=>{lm.get(n)?.refs.forEach(a=>a.destroy()),lm.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(su(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ar=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} `],encapsulation:2,changeDetection:0})}return t})();function as(t){return Array.isArray(t)?t:[t]}var Jw=new Set,cc,tD=(()=>{class t{_platform=u(He);_nonce=u(B1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&_q(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _q(t,i){if(!Jw.has(t))try{cc||(cc=document.createElement("style"),i&&cc.setAttribute("nonce",i),cc.setAttribute("type","text/css"),document.head.appendChild(cc)),cc.sheet&&(cc.sheet.insertRule(`@media ${t} {body{ }}`,0),Jw.add(t))}catch(e){console.error(e)}}function vq(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var lc=(()=>{class t{_mediaMatcher=u(tD);_zone=u(se);_queries=new Map;_destroySubject=new N;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return eD(as(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=eD(as(e)).map(o=>this._registerQuery(o).observable),a=ni(r);return a=gi(a.pipe(Le(1)),a.pipe(Rs(1),$r(0))),a.pipe(pe(o=>{let s={matches:!1,breakpoints:{}};return o.forEach(({matches:d,query:h})=>{s.matches=s.matches||d,s.breakpoints[h]=d}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),a={observable:new Ue(o=>{let s=d=>this._zone.run(()=>o.next(d));return n.addListener(s),()=>{n.removeListener(s)}}).pipe($e(n),pe(({matches:o})=>({query:e,matches:o})),ve(this._destroySubject)),mql:n};return this._queries.set(e,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eD(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function bq(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iD=(()=>{class t{_mutationObserverFactory=u(nD);_observedElements=new Map;_ngZone=u(se);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Cn(e);return new Ue(r=>{let o=this._observeElement(n).pipe(pe(s=>s.filter(d=>!bq(d))),Ve(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{o.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new N,r=this._mutationObserverFactory.create(a=>n.next(a));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ad=(()=>{class t{_contentObserver=u(iD);_elementRef=u(Y);event=new j;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=sn(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe($r(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",B],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Zl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({providers:[nD]})}return t})();var ss=(()=>{class t{_platform=u(He);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Cq(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=yq(Oq(e));if(n&&(rD(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),a=rD(e);return e.hasAttribute("contenteditable")?a!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!kq(e)?!1:r==="audio"?e.hasAttribute("controls")?a!==-1:!1:r==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return Eq(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yq(t){try{return t.frameElement}catch{return null}}function Cq(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function xq(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function Mq(t){return Dq(t)&&t.type=="hidden"}function wq(t){return Sq(t)&&t.hasAttribute("href")}function Dq(t){return t.nodeName.toLowerCase()=="input"}function Sq(t){return t.nodeName.toLowerCase()=="a"}function sD(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function rD(t){if(!sD(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function kq(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function Eq(t){return Mq(t)?!1:xq(t)||wq(t)||t.hasAttribute("contenteditable")||sD(t)}function Oq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var dm=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,r,a=!1,o){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._injector=o,a||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?kt(i,{injector:this._injector}):setTimeout(i)}},Xl=(()=>{class t{_checker=u(ss);_ngZone=u(se);_document=u(De);_injector=u(Te);constructor(){u(Ze).load(ar)}create(e,n=!1){return new dm(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),d5=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(Xl);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(He).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Ri(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",B],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",B]},exportAs:["cdkTrapFocus"],features:[Pe]})}return t})(),cD=new A("liveAnnouncerElement",{providedIn:"root",factory:lD});function lD(){return null}var dD=new A("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Iq=0,Vd=(()=>{class t{_ngZone=u(se);_defaultOptions=u(dD,{optional:!0});_liveElement;_document=u(De);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(cD,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let r=this._defaultOptions,a,o;return n.length===1&&typeof n[0]=="number"?o=n[0]:[a,o]=n,this.clear(),clearTimeout(this._previousTimeout),a||(a=r&&r.politeness?r.politeness:"polite"),o==null&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof o=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(He);_hasCheckedHighContrastMode;_document=u(De);_breakpointSubscription;constructor(){this._breakpointSubscription=u(lc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return os.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return os.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return os.BLACK_ON_WHITE}return os.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(l5,aD,oD),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===os.BLACK_ON_WHITE?e.add(l5,aD):n===os.WHITE_ON_BLACK&&e.add(l5,oD)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mo=(()=>{class t{constructor(){u(um)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[Zl]})}return t})();var u5={},Fe=(()=>{class t{_appId=u(Js);getId(e){return this._appId!=="ng"&&(e+=this._appId),u5.hasOwnProperty(e)||(u5[e]=0),`${e}${u5[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pq=200,Jl=class{_letterKeyStream=new N;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new N;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:Pq;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Mt(e=>this._pressedLetters.push(e)),$r(i),Ve(()=>this._pressedLetters.length>0),pe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;nt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var e2=class{_items;_activeItemIndex=-1;_activeItem=Hn(null);_wrap=!1;_typeaheadSubscription=Me.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof kn?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):Go(i)&&(this._effectRef=Z1(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new N;change=new N;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Jl(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(a=>!i[a]||this._allowedModifierKeys.indexOf(a)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let a=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(a>0?a:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let a=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(a-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dc=class extends e2{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var aa=class extends e2{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function uc(t){return Wn(t)?t:ie(t)}var m5=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=i=>!1;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=Me.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let i=0;for(let n=0;n{this._items=n.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):Wn(i)?i.subscribe(n=>{this._items=n,this._typeahead?.setItems(n),this._updateActiveItemIndex(n),this._initializeFocus()}):(this._items=i,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new N;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(i){switch(i.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(i.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(i,e={}){e.emitChangeEvent??=!0;let n=typeof i=="number"?i:this._items.findIndex(o=>this._trackByFn(o)===this._trackByFn(i));if(n<0||n>=this._items.length)return;let r=this._items[n];if(this._activeItem!==null&&this._trackByFn(r)===this._trackByFn(this._activeItem))return;let a=this._activeItem;this._activeItem=r??null,this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n),this._activeItem?.focus(),a?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(i){let e=this._activeItem;if(!e)return;let n=i.findIndex(r=>this._trackByFn(r)===this._trackByFn(e));n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}_setTypeAhead(i){this._typeahead=new Jl(this._items,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(i){for(let e=i+1;e=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return i}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let i=this._activeItem.getParent();if(!i||this._skipPredicateFn(i))return;this.focusItem(i)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?uc(this._activeItem.getChildren()).pipe(Le(1)).subscribe(i=>{let e=i.find(n=>!this._skipPredicateFn(n));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(i){return typeof i.isDisabled=="boolean"?i.isDisabled:i.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let i=this._activeItem.getParent(),e;i?e=uc(i.getChildren()):e=ie(this._items.filter(n=>n.getParent()===null)),e.pipe(Le(1)).subscribe(n=>{for(let r of n)r.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function Tq(){return(t,i)=>new m5(t,i)}var pD=new A("tree-key-manager",{providedIn:"root",factory:Tq});var hD=" ";function t2(t,i,e){let n=hm(t,i);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(hD)))}function cs(t,i,e){let n=hm(t,i);e=e.trim();let r=n.filter(a=>a!==e);r.length?t.setAttribute(i,r.join(hD)):t.removeAttribute(i)}function hm(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var gD="cdk-describedby-message",fm="cdk-describedby-host",f5=0,n2=(()=>{class t{_platform=u(He);_document=u(De);_messageRegistry=new Map;_messagesContainer=null;_id=`${f5++}`;constructor(){u(Ze).load(ar),this._id=u(Js)+"-"+f5++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;let a=p5(n,r);typeof n!="string"?(fD(n,this._id),this._messageRegistry.set(a,{messageElement:n,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,a)||this._addMessageReference(e,a)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;let a=p5(n,r);if(this._isElementDescribedByMessage(e,a)&&this._removeMessageReference(e,a),typeof n=="string"){let o=this._messageRegistry.get(a);o&&o.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${fm}="${this._id}"]`);for(let n=0;nr.indexOf(gD)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let r=this._messageRegistry.get(n);t2(e,"aria-describedby",r.messageElement.id),e.setAttribute(fm,this._id),r.referenceCount++}_removeMessageReference(e,n){let r=this._messageRegistry.get(n);r.referenceCount--,cs(e,"aria-describedby",r.messageElement.id),e.removeAttribute(fm)}_isElementDescribedByMessage(e,n){let r=hm(e,"aria-describedby"),a=this._messageRegistry.get(n),o=a&&a.messageElement.id;return!!o&&r.indexOf(o)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let r=n==null?"":`${n}`.trim(),a=e.getAttribute("aria-label");return r?!a||a.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function p5(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function fD(t,i){t.id||(t.id=`${gD}-${i}-${f5++}`)}var Aq=["mat-internal-form-field",""],Vq=["*"],i2=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){n&2&&te("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:Aq,ngContentSelectors:Vq,decls:1,vars:0,template:function(n,r){n&1&&(xe(),re(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} `],encapsulation:2,changeDetection:0})}return t})();var Yt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} `],encapsulation:2,changeDetection:0})}return t})();var oa=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(oa||{}),gm,mc;function _m(){if(mc==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return mc=!1,mc;if("scrollBehavior"in document.documentElement.style)mc=!0;else{let t=Element.prototype.scrollTo;t?mc=!/\{\s*\[native code\]\s*\}/.test(t.toString()):mc=!1}}return mc}function r2(){if(typeof document!="object"||!document)return oa.NORMAL;if(gm==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),gm=oa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,gm=t.scrollLeft===0?oa.NEGATED:oa.INVERTED),t.remove()}return gm}function h5(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var a2,_D=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function g5(){if(a2)return a2;if(typeof document!="object"||!document)return a2=new Set(_D),a2;let t=document.createElement("input");return a2=new Set(_D.filter(i=>(t.setAttribute("type",i),t.type===i))),a2}function en(t){return t!=null&&`${t}`!="false"}function Rn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function vD(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let r of n){let a=`${r}`.trim();a&&e.push(a)}}return e}var zr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(zr||{}),_5=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=zr.HIDDEN;constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},bD=rs({passive:!0,capture:!0}),v5=class{_events=new Map;addHandler(i,e,n,r){let a=this._events.get(e);if(a){let o=a.get(n);o?o.add(r):a.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,bD)})}removeHandler(i,e,n){let r=this._events.get(i);if(!r)return;let a=r.get(e);a&&(a.delete(n),a.size===0&&r.delete(e),r.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,bD)))}_delegateEventHandler=i=>{let e=In(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(a=>a.handleEvent(i))})}},zd={enterDuration:225,exitDuration:150},Lq=800,yD=rs({passive:!0,capture:!0}),CD=["mousedown","touchstart"],xD=["mouseup","mouseleave","touchend","touchcancel"],Rq=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} diff --git a/browser/chunk-BVE6E676.js b/browser/chunk-DV7IA4RU.js similarity index 99% rename from browser/chunk-BVE6E676.js rename to browser/chunk-DV7IA4RU.js index a4e972554..9e0350646 100644 --- a/browser/chunk-BVE6E676.js +++ b/browser/chunk-DV7IA4RU.js @@ -1 +1 @@ -import{Cb as r,F as o,Fb as u,Gc as c,I as p,zc as f}from"./chunk-DUPCOD76.js";import{a as g,b as d}from"./chunk-O7S4L63H.js";var E=(()=>{class a{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||a)(p(f))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac})}}return a})();var T=(()=>{class a{static{this.LOAN_SCHEDULE_TYPE_CUMULATIVE="CUMULATIVE"}static{this.LOAN_SCHEDULE_TYPE_PROGRESSIVE="PROGRESSIVE"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL="HORIZONTAL"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_VERTICAL="VERTICAL"}static{this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY="advanced-payment-allocation-strategy"}static{this.DAYS_BEFORE_REPAYMENT_IS_DUE="days-before-repayment-is-due"}static{this.DAYS_AFTER_REPAYMENT_IS_OVERDUE="days-after-repayment-is-overdue"}static isAdvancedPaymentAllocationStrategy(t){return t===this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY}constructor(t){this.settingsService=t,this.globalConfigurations=[a.DAYS_BEFORE_REPAYMENT_IS_DUE,a.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(s=>{this.globalConfigurations.includes(s.name)&&e.push(s)}),e}updateLoanProductDefaults(t,e){return t.itemsByDefault.forEach(n=>{let i=this.resolvePropertyName(n.name);i!==""&&(e?(!t[i]||t[i]==="")&&(t[i]=n.value):t[i]=n.value)}),t}buildPayload(t,e){let s=this.settingsService.dateFormat,n=this.settingsService.language.code,i=d(g({},t),{charges:t.charges.map(h=>({id:h.id})),dateFormat:s,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(h=>{let l=this.resolvePropertyName(h.name);l!==""&&(!i[l]||i[l]==="")&&(i[l]=h.value)}),i}isItemByDefault(t){return this.propertyNames.includes(t)}isGlobalConfigurations(t){return this.globalConfigurations.includes(t)}resolvePropertyName(t){if(this.globalConfigurations.includes(t)){let e=this.globalConfigurations.indexOf(t);if(e>-1)return this.propertyNames[e]}return""}static{this.\u0275fac=function(e){return new(e||a)(p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var b=(()=>{class a{constructor(t){this.http=t,this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers/active-transfer`,{params:e})}retrieveExternalAssetOwnerTransferJournalEntries(t){return this.http.get(`${this.basePath}/transfers/${t}/journal-entries`)}searchExternalAssetOwnerTransfer(t){return this.http.post(`${this.basePath}/search`,t)}static{this.\u0275fac=function(e){return new(e||a)(p(u))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var F=(()=>{class a{constructor(t,e){this.http=t,this.settingsService=e}getProvisioningCriterias(){return this.http.get("/provisioningcriteria")}getProvisioningCriteriaTemplate(){return this.http.get("/provisioningcriteria/template")}getProvisioningCriteria(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:s})}createProvisioningCriteria(t){return this.http.post("/provisioningcriteria",t)}updateProvisioningCriteria(t,e){return this.http.put(`/provisioningcriteria/${t}`,e)}deleteProvisioningCriteria(t){return this.http.delete(`/provisioningcriteria/${t}`)}getOffices(){return this.http.get("/offices")}getOfficeTemplate(t){let e=new r().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let s=new r().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:s})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:s})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new r().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let s=new r().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:s})}addOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,s,{params:n})}editOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,s,{params:n})}deleteDatatableContent(t,e){let s=new r().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:s})}getEmployees(){let t=new r().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let s=new r().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:s})}getCurrencies(){return this.http.get("/currencies")}updateCurrencies(t){return this.http.put("/currencies",{currencies:t})}getSmsCampaigns(){return this.http.get("/smscampaigns")}getSmsCampaign(t){return this.http.get(`/smscampaigns/${t}`)}createSmsCampaign(t){return this.http.post("/smscampaigns",t)}updateSmsCampaign(t,e){return this.http.put(`/smscampaigns/${e}`,t)}deleteSmsCampaign(t){return this.http.delete(`/smscampaigns/${t}`)}getSmsCampaignTemplate(){return this.http.get("/smscampaigns/template")}executeSmsCampaignCommand(t,e,s){let n=new r().set("command",s.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new r().set("status",t.status.toString()).set("locale",t.locale).set("dateFormat",t.dateFormat);return e=t.fromDate?e.set("fromDate",t.fromDate):e,e=t.toDate?e.set("toDate",t.toDate):e,this.http.get(`/sms/${t.id}/messageByStatus`,{params:e})}getAdhocQueries(){return this.http.get("/adhocquery")}getAdhocQuery(t){return this.http.get(`/adhocquery/${t}`)}getAdhocQueryTemplate(){return this.http.get("/adhocquery/template")}getAdhocQueryAndTemplate(t){let e=new r().set("template","true");return this.http.get(`/adhocquery/${t}`,{params:e})}createAdhocQuery(t){return this.http.post("/adhocquery",t)}updateAdhocQuery(t,e){return this.http.put(`/adhocquery/${t}`,e)}deleteAdhocQuery(t){return this.http.delete(`/adhocquery/${t}`)}getTellers(){return this.http.get("/tellers")}getTeller(t){return this.http.get(`/tellers/${t}`)}getCashiers(t){return this.http.get(`/tellers/${t}/cashiers`)}getCashier(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}`)}getCashierSummaryAndTransactions(t,e,s){let n=new r().set("currencyCode",s);return this.http.get(`/tellers/${t}/cashiers/${e}/summaryandtransactions`,{params:n})}getCashierTransactionTemplate(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}/transactions/template`)}createCashier(t,e){return this.http.post(`/tellers/${t}/cashiers`,e)}deleteCashier(t,e){return this.http.delete(`/tellers/${t}/cashiers/${e}`)}settleCash(t,e,s){let n=new r().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,s,{params:n})}allocateCash(t,e,s){let n=new r().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,s,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,s){return this.http.put(`/tellers/${t}/cashiers/${e}`,s)}deleteTeller(t){return this.http.delete(`/tellers/${t}`)}createTeller(t){return this.http.post("/tellers",t)}getPaymentTypes(){return this.http.get("/paymenttypes")}getPaymentTypesWithCode(){return this.http.get("/paymenttypes?onlyWithCode=true")}createPaymentType(t){return this.http.post("/paymenttypes",t)}deletePaymentType(t){return this.http.delete(`/paymenttypes/${t}`)}getPaymentType(t){return this.http.get(`/paymenttypes/${t}`)}updatePaymentType(t,e){return this.http.put(`/paymenttypes/${t}`,e)}getPasswordPreferencesTemplate(){return this.http.get("/passwordpreferences/template")}updatePasswordPreferences(t){return this.http.put("/passwordpreferences",t)}getEntityDataTableChecks(t=0,e=-1){let s=new r().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:s})}getEntityDataTableChecksTemplate(){return this.http.get("/entityDatatableChecks/template")}createEntityDataTableChecks(t){return this.http.post("/entityDatatableChecks",t)}deleteEntityDataTableCheck(t){return this.http.delete(`/entityDatatableChecks/${t}`)}getWorkingDays(){return this.http.get("/workingdays")}updateWorkingDays(t){return this.http.put("/workingdays",t)}getHolidays(t){let e=new r().set("officeId",t.toString());return this.http.get("/holidays",{params:e})}getHoliday(t){return this.http.get(`/holidays/${t}`)}getHolidayTemplate(){return this.http.get("/holidays/template")}createHoliday(t){return this.http.post("/holidays",t)}updateHoliday(t,e){return this.http.put(`/holidays/${t}`,e)}deleteHoliday(t){return this.http.delete(`/holidays/${t}`)}activateHoliday(t){let e=new r().set("command","activate");return this.http.post(`/holidays/${t}`,null,{params:e})}updateEmployee(t,e){return this.http.put(`/staff/${t}`,e)}updateTeller(t,e){return this.http.put(`/tellers/${t}`,e)}getFunds(){return this.http.get("/funds")}getFund(t){return this.http.get(`/funds/${t}`)}createFund(t){return this.http.post("/funds",t)}editFund(t,e){return this.http.put(`/funds/${t}`,e)}getStaffs(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new r().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new r().set("entityType",t);return this.http.get("/imports",{params:e})}getAdvanceSearchTemplate(){return this.http.get("/search/template")}retrieveAdvanceSearchResults(t){return this.http.post("/search/advance",t)}getStandingInstructionTemplate(){return this.http.get("/standinginstructions/template")}getStandingInstructions(t){let e=new r;for(let s in t)t[s]!==""&&t[s]!==null&&(e=e.set(s,t[s]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,s,n){let i=new r().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),s&&(i=i.set("staffId",s.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new r().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,s){let n=new r;s.length&&(n=n.set("legalFormType",s));let i=new FormData;return i.append("file",t),i.append("locale",this.settingsService.language.code),i.append("dateFormat",this.settingsService.dateFormat),this.http.post(`${e}/uploadtemplate`,i,{params:n})}static{this.\u0275fac=function(e){return new(e||a)(p(u),p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var k=(()=>{class a{constructor(){this.defaultDate="9999-12-31"}validateStatus(t,e){return t!=null?t.status===e:!1}itemCurrentStatus(t){return this.isBuyBackPending(t)?t.status+" PENDING":t.status}itemStatus(t){return"status-"+t.toLowerCase()}isPending(t){return t.status==="PENDING"}isPendingOrCanceled(t){return t.status==="PENDING"||t.status==="CANCELLED"||this.isBuyBackPending(t)}isBuyBackPending(t){return t.status==="BUYBACK"&&t.effectiveTo===this.defaultDate}canBeCancelled(t){return this.validateStatus(t,"PENDING")}canBeSold(t){return t==null?!0:["","CANCELLED"].includes(t.status)||t.status==="BUYBACK"&&t.effectiveTo!==this.defaultDate}canBeBuyed(t){return this.validateStatus(t,"ACTIVE")}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{E as a,T as b,b as c,F as d,k as e}; +import{Cb as r,F as o,Fb as u,Gc as c,I as p,zc as f}from"./chunk-DMOOHS3H.js";import{a as g,b as d}from"./chunk-O7S4L63H.js";var E=(()=>{class a{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||a)(p(f))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac})}}return a})();var T=(()=>{class a{static{this.LOAN_SCHEDULE_TYPE_CUMULATIVE="CUMULATIVE"}static{this.LOAN_SCHEDULE_TYPE_PROGRESSIVE="PROGRESSIVE"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL="HORIZONTAL"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_VERTICAL="VERTICAL"}static{this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY="advanced-payment-allocation-strategy"}static{this.DAYS_BEFORE_REPAYMENT_IS_DUE="days-before-repayment-is-due"}static{this.DAYS_AFTER_REPAYMENT_IS_OVERDUE="days-after-repayment-is-overdue"}static isAdvancedPaymentAllocationStrategy(t){return t===this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY}constructor(t){this.settingsService=t,this.globalConfigurations=[a.DAYS_BEFORE_REPAYMENT_IS_DUE,a.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(s=>{this.globalConfigurations.includes(s.name)&&e.push(s)}),e}updateLoanProductDefaults(t,e){return t.itemsByDefault.forEach(n=>{let i=this.resolvePropertyName(n.name);i!==""&&(e?(!t[i]||t[i]==="")&&(t[i]=n.value):t[i]=n.value)}),t}buildPayload(t,e){let s=this.settingsService.dateFormat,n=this.settingsService.language.code,i=d(g({},t),{charges:t.charges.map(h=>({id:h.id})),dateFormat:s,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(h=>{let l=this.resolvePropertyName(h.name);l!==""&&(!i[l]||i[l]==="")&&(i[l]=h.value)}),i}isItemByDefault(t){return this.propertyNames.includes(t)}isGlobalConfigurations(t){return this.globalConfigurations.includes(t)}resolvePropertyName(t){if(this.globalConfigurations.includes(t)){let e=this.globalConfigurations.indexOf(t);if(e>-1)return this.propertyNames[e]}return""}static{this.\u0275fac=function(e){return new(e||a)(p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var b=(()=>{class a{constructor(t){this.http=t,this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers/active-transfer`,{params:e})}retrieveExternalAssetOwnerTransferJournalEntries(t){return this.http.get(`${this.basePath}/transfers/${t}/journal-entries`)}searchExternalAssetOwnerTransfer(t){return this.http.post(`${this.basePath}/search`,t)}static{this.\u0275fac=function(e){return new(e||a)(p(u))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var F=(()=>{class a{constructor(t,e){this.http=t,this.settingsService=e}getProvisioningCriterias(){return this.http.get("/provisioningcriteria")}getProvisioningCriteriaTemplate(){return this.http.get("/provisioningcriteria/template")}getProvisioningCriteria(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:s})}createProvisioningCriteria(t){return this.http.post("/provisioningcriteria",t)}updateProvisioningCriteria(t,e){return this.http.put(`/provisioningcriteria/${t}`,e)}deleteProvisioningCriteria(t){return this.http.delete(`/provisioningcriteria/${t}`)}getOffices(){return this.http.get("/offices")}getOfficeTemplate(t){let e=new r().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let s=new r().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:s})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:s})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new r().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let s=new r().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:s})}addOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,s,{params:n})}editOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,s,{params:n})}deleteDatatableContent(t,e){let s=new r().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:s})}getEmployees(){let t=new r().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let s=new r().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:s})}getCurrencies(){return this.http.get("/currencies")}updateCurrencies(t){return this.http.put("/currencies",{currencies:t})}getSmsCampaigns(){return this.http.get("/smscampaigns")}getSmsCampaign(t){return this.http.get(`/smscampaigns/${t}`)}createSmsCampaign(t){return this.http.post("/smscampaigns",t)}updateSmsCampaign(t,e){return this.http.put(`/smscampaigns/${e}`,t)}deleteSmsCampaign(t){return this.http.delete(`/smscampaigns/${t}`)}getSmsCampaignTemplate(){return this.http.get("/smscampaigns/template")}executeSmsCampaignCommand(t,e,s){let n=new r().set("command",s.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new r().set("status",t.status.toString()).set("locale",t.locale).set("dateFormat",t.dateFormat);return e=t.fromDate?e.set("fromDate",t.fromDate):e,e=t.toDate?e.set("toDate",t.toDate):e,this.http.get(`/sms/${t.id}/messageByStatus`,{params:e})}getAdhocQueries(){return this.http.get("/adhocquery")}getAdhocQuery(t){return this.http.get(`/adhocquery/${t}`)}getAdhocQueryTemplate(){return this.http.get("/adhocquery/template")}getAdhocQueryAndTemplate(t){let e=new r().set("template","true");return this.http.get(`/adhocquery/${t}`,{params:e})}createAdhocQuery(t){return this.http.post("/adhocquery",t)}updateAdhocQuery(t,e){return this.http.put(`/adhocquery/${t}`,e)}deleteAdhocQuery(t){return this.http.delete(`/adhocquery/${t}`)}getTellers(){return this.http.get("/tellers")}getTeller(t){return this.http.get(`/tellers/${t}`)}getCashiers(t){return this.http.get(`/tellers/${t}/cashiers`)}getCashier(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}`)}getCashierSummaryAndTransactions(t,e,s){let n=new r().set("currencyCode",s);return this.http.get(`/tellers/${t}/cashiers/${e}/summaryandtransactions`,{params:n})}getCashierTransactionTemplate(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}/transactions/template`)}createCashier(t,e){return this.http.post(`/tellers/${t}/cashiers`,e)}deleteCashier(t,e){return this.http.delete(`/tellers/${t}/cashiers/${e}`)}settleCash(t,e,s){let n=new r().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,s,{params:n})}allocateCash(t,e,s){let n=new r().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,s,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,s){return this.http.put(`/tellers/${t}/cashiers/${e}`,s)}deleteTeller(t){return this.http.delete(`/tellers/${t}`)}createTeller(t){return this.http.post("/tellers",t)}getPaymentTypes(){return this.http.get("/paymenttypes")}getPaymentTypesWithCode(){return this.http.get("/paymenttypes?onlyWithCode=true")}createPaymentType(t){return this.http.post("/paymenttypes",t)}deletePaymentType(t){return this.http.delete(`/paymenttypes/${t}`)}getPaymentType(t){return this.http.get(`/paymenttypes/${t}`)}updatePaymentType(t,e){return this.http.put(`/paymenttypes/${t}`,e)}getPasswordPreferencesTemplate(){return this.http.get("/passwordpreferences/template")}updatePasswordPreferences(t){return this.http.put("/passwordpreferences",t)}getEntityDataTableChecks(t=0,e=-1){let s=new r().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:s})}getEntityDataTableChecksTemplate(){return this.http.get("/entityDatatableChecks/template")}createEntityDataTableChecks(t){return this.http.post("/entityDatatableChecks",t)}deleteEntityDataTableCheck(t){return this.http.delete(`/entityDatatableChecks/${t}`)}getWorkingDays(){return this.http.get("/workingdays")}updateWorkingDays(t){return this.http.put("/workingdays",t)}getHolidays(t){let e=new r().set("officeId",t.toString());return this.http.get("/holidays",{params:e})}getHoliday(t){return this.http.get(`/holidays/${t}`)}getHolidayTemplate(){return this.http.get("/holidays/template")}createHoliday(t){return this.http.post("/holidays",t)}updateHoliday(t,e){return this.http.put(`/holidays/${t}`,e)}deleteHoliday(t){return this.http.delete(`/holidays/${t}`)}activateHoliday(t){let e=new r().set("command","activate");return this.http.post(`/holidays/${t}`,null,{params:e})}updateEmployee(t,e){return this.http.put(`/staff/${t}`,e)}updateTeller(t,e){return this.http.put(`/tellers/${t}`,e)}getFunds(){return this.http.get("/funds")}getFund(t){return this.http.get(`/funds/${t}`)}createFund(t){return this.http.post("/funds",t)}editFund(t,e){return this.http.put(`/funds/${t}`,e)}getStaffs(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new r().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new r().set("entityType",t);return this.http.get("/imports",{params:e})}getAdvanceSearchTemplate(){return this.http.get("/search/template")}retrieveAdvanceSearchResults(t){return this.http.post("/search/advance",t)}getStandingInstructionTemplate(){return this.http.get("/standinginstructions/template")}getStandingInstructions(t){let e=new r;for(let s in t)t[s]!==""&&t[s]!==null&&(e=e.set(s,t[s]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,s,n){let i=new r().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),s&&(i=i.set("staffId",s.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new r().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,s){let n=new r;s.length&&(n=n.set("legalFormType",s));let i=new FormData;return i.append("file",t),i.append("locale",this.settingsService.language.code),i.append("dateFormat",this.settingsService.dateFormat),this.http.post(`${e}/uploadtemplate`,i,{params:n})}static{this.\u0275fac=function(e){return new(e||a)(p(u),p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var k=(()=>{class a{constructor(){this.defaultDate="9999-12-31"}validateStatus(t,e){return t!=null?t.status===e:!1}itemCurrentStatus(t){return this.isBuyBackPending(t)?t.status+" PENDING":t.status}itemStatus(t){return"status-"+t.toLowerCase()}isPending(t){return t.status==="PENDING"}isPendingOrCanceled(t){return t.status==="PENDING"||t.status==="CANCELLED"||this.isBuyBackPending(t)}isBuyBackPending(t){return t.status==="BUYBACK"&&t.effectiveTo===this.defaultDate}canBeCancelled(t){return this.validateStatus(t,"PENDING")}canBeSold(t){return t==null?!0:["","CANCELLED"].includes(t.status)||t.status==="BUYBACK"&&t.effectiveTo!==this.defaultDate}canBeBuyed(t){return this.validateStatus(t,"ACTIVE")}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{E as a,T as b,b as c,F as d,k as e}; diff --git a/browser/chunk-EGST4LTW.js b/browser/chunk-HBORYL33.js similarity index 82% rename from browser/chunk-EGST4LTW.js rename to browser/chunk-HBORYL33.js index 1b79bd38c..2e8da9404 100644 --- a/browser/chunk-EGST4LTW.js +++ b/browser/chunk-HBORYL33.js @@ -1 +1 @@ -import{F as r,I as c,Vf as a}from"./chunk-DUPCOD76.js";var f=(()=>{class t{constructor(i){this.savingsService=i}resolve(i){let e=i.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountData(e)}static{this.\u0275fac=function(e){return new(e||t)(c(a))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{f as a}; +import{F as r,I as c,Vf as a}from"./chunk-DMOOHS3H.js";var f=(()=>{class t{constructor(i){this.savingsService=i}resolve(i){let e=i.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountData(e)}static{this.\u0275fac=function(e){return new(e||t)(c(a))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{f as a}; diff --git a/browser/chunk-NPY5HGMH.js b/browser/chunk-MP5A5PC4.js similarity index 91% rename from browser/chunk-NPY5HGMH.js rename to browser/chunk-MP5A5PC4.js index 04ea4ed25..798b5e302 100644 --- a/browser/chunk-NPY5HGMH.js +++ b/browser/chunk-MP5A5PC4.js @@ -1 +1 @@ -import{F as r,I as i,Vf as n}from"./chunk-DUPCOD76.js";var m=(()=>{class t{constructor(e){this.savingsService=e}resolve(e){let a=e.parent.parent.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("recurringDepositAccountId"),c=e.paramMap.get("datatableName");return this.savingsService.getSavingsDatatable(a,c)}static{this.\u0275fac=function(a){return new(a||t)(i(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var S=(()=>{class t{constructor(e){this.savingsService=e}resolve(){return this.savingsService.getSavingsDatatables()}static{this.\u0275fac=function(a){return new(a||t)(i(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{m as a,S as b}; +import{F as r,I as i,Vf as n}from"./chunk-DMOOHS3H.js";var m=(()=>{class t{constructor(e){this.savingsService=e}resolve(e){let a=e.parent.parent.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("recurringDepositAccountId"),c=e.paramMap.get("datatableName");return this.savingsService.getSavingsDatatable(a,c)}static{this.\u0275fac=function(a){return new(a||t)(i(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var S=(()=>{class t{constructor(e){this.savingsService=e}resolve(){return this.savingsService.getSavingsDatatables()}static{this.\u0275fac=function(a){return new(a||t)(i(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{m as a,S as b}; diff --git a/browser/chunk-EQJKMM2V.js b/browser/chunk-MZXIWGVF.js similarity index 89% rename from browser/chunk-EQJKMM2V.js rename to browser/chunk-MZXIWGVF.js index b12c29b68..8a20cb85e 100644 --- a/browser/chunk-EQJKMM2V.js +++ b/browser/chunk-MZXIWGVF.js @@ -1,4 +1,4 @@ -import{Ac as S,Ja as t,Ka as m,La as u,Ta as f,Wa as o,Xa as a,ca as n,ec as x,fd as E,ga as p,ha as d,na as c,pc as v,ra as e,sa as i,sc as D,tc as M,ub as g,uc as b,vc as C}from"./chunk-DUPCOD76.js";var T=()=>({confirm:!0}),O=(()=>{class l{constructor(s){this.dialogRef=s}static{this.\u0275fac=function(r){return new(r||l)(p(v))}}static{this.\u0275cmp=d({type:l,selectors:[["mifosx-undo-transaction-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(r,h){r&1&&(e(0,"h1",0),t(1),o(2,"translate"),i(),t(3,` +import{Ac as S,Ja as t,Ka as m,La as u,Ta as f,Wa as o,Xa as a,ca as n,ec as x,fd as E,ga as p,ha as d,na as c,pc as v,ra as e,sa as i,sc as D,tc as M,ub as g,uc as b,vc as C}from"./chunk-DMOOHS3H.js";var T=()=>({confirm:!0}),O=(()=>{class l{constructor(s){this.dialogRef=s}static{this.\u0275fac=function(r){return new(r||l)(p(v))}}static{this.\u0275cmp=d({type:l,selectors:[["mifosx-undo-transaction-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(r,h){r&1&&(e(0,"h1",0),t(1),o(2,"translate"),i(),t(3,` `),e(4,"div",1),t(5,` `),e(6,"p"),t(7),o(8,"translate"),i(),t(9,` `),i(),t(10,` diff --git a/browser/collaterals.module-IEV4WYRD.js b/browser/collaterals.module-HHNV7PVW.js similarity index 99% rename from browser/collaterals.module-IEV4WYRD.js rename to browser/collaterals.module-HHNV7PVW.js index b2d68552c..f092602cb 100644 --- a/browser/collaterals.module-IEV4WYRD.js +++ b/browser/collaterals.module-HHNV7PVW.js @@ -1,4 +1,4 @@ -import{$b as V,$c as mt,$e as St,Ac as N,Cb as X,F as E,Fb as Y,Fd as ft,G as y,Gc as tt,Hd as xt,I as w,Ja as t,Ka as c,Kc as et,Kd as ht,La as h,Lc as it,Ma as b,Mc as at,N as Q,Nc as nt,O as z,Od as bt,Of as Rt,Rf as Pt,Sc as lt,Ta as B,Vc as ot,Wa as m,Xa as p,Xb as F,Xe as vt,Yc as rt,Ye as gt,Ze as _t,_b as O,_f as Tt,af as Dt,bc as U,ca as o,cf as It,dd as pt,df as Mt,ec as L,fd as A,ff as Et,ga as f,gb as W,gd as j,gf as yt,ha as R,ia as P,if as wt,jd as H,la as d,ld as st,na as C,pd as ct,qd as dt,ra as i,rc as Z,sa as a,ta as u,tg as Bt,ua as D,ub as g,ud as ut,va as I,wd as Ct,xa as J,ya as T,za as K}from"./chunk-DUPCOD76.js";import"./chunk-O7S4L63H.js";var _=(()=>{class e{constructor(n){this.http=n}getFilteredClients(n,l,r,x,v){let S=new X().set("displayName",x).set("orphansOnly",r.toString()).set("sortOrder",l).set("orderBy",n);return v&&(S=S.set("officeId",v)),this.http.get("/clients",{params:S})}getClientCollateral(n,l){return this.http.get(`/clients/${n}/collaterals/${l}`)}updateClientCollateral(n,l,r){return this.http.put(`/clients/${n}/collaterals/${l}`,r)}deleteCollateral(n,l){return this.http.delete(`/clients/${n}/collaterals/${l}`)}static{this.\u0275fac=function(l){return new(l||e)(w(Y))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ht=()=>["edit"];function qt(e,s){e&1&&(i(0,"button",16),t(1,` +import{$b as V,$c as mt,$e as St,Ac as N,Cb as X,F as E,Fb as Y,Fd as ft,G as y,Gc as tt,Hd as xt,I as w,Ja as t,Ka as c,Kc as et,Kd as ht,La as h,Lc as it,Ma as b,Mc as at,N as Q,Nc as nt,O as z,Od as bt,Of as Rt,Rf as Pt,Sc as lt,Ta as B,Vc as ot,Wa as m,Xa as p,Xb as F,Xe as vt,Yc as rt,Ye as gt,Ze as _t,_b as O,_f as Tt,af as Dt,bc as U,ca as o,cf as It,dd as pt,df as Mt,ec as L,fd as A,ff as Et,ga as f,gb as W,gd as j,gf as yt,ha as R,ia as P,if as wt,jd as H,la as d,ld as st,na as C,pd as ct,qd as dt,ra as i,rc as Z,sa as a,ta as u,tg as Bt,ua as D,ub as g,ud as ut,va as I,wd as Ct,xa as J,ya as T,za as K}from"./chunk-DMOOHS3H.js";import"./chunk-O7S4L63H.js";var _=(()=>{class e{constructor(n){this.http=n}getFilteredClients(n,l,r,x,v){let S=new X().set("displayName",x).set("orphansOnly",r.toString()).set("sortOrder",l).set("orderBy",n);return v&&(S=S.set("officeId",v)),this.http.get("/clients",{params:S})}getClientCollateral(n,l){return this.http.get(`/clients/${n}/collaterals/${l}`)}updateClientCollateral(n,l,r){return this.http.put(`/clients/${n}/collaterals/${l}`,r)}deleteCollateral(n,l){return this.http.delete(`/clients/${n}/collaterals/${l}`)}static{this.\u0275fac=function(l){return new(l||e)(w(Y))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ht=()=>["edit"];function qt(e,s){e&1&&(i(0,"button",16),t(1,` `),u(2,"fa-icon",17),t(3),m(4,"translate"),a()),e&2&&(C("routerLink",B(4,Ht)),o(3),h(` `,p(4,2,"labels.buttons.Edit"),` `))}function kt(e,s){if(e&1){let n=J();i(0,"button",18),T("click",function(){Q(n);let r=K();return z(r.deleteCollateral())}),t(1,` diff --git a/browser/fixed-deposits.module-7KCGLT35.js b/browser/fixed-deposits.module-Z7GOXQ3P.js similarity index 99% rename from browser/fixed-deposits.module-7KCGLT35.js rename to browser/fixed-deposits.module-Z7GOXQ3P.js index be5f1d2bd..9a19cfaa5 100644 --- a/browser/fixed-deposits.module-7KCGLT35.js +++ b/browser/fixed-deposits.module-Z7GOXQ3P.js @@ -1,4 +1,4 @@ -import{a as di}from"./chunk-EQJKMM2V.js";import{a as Fn,b as wn}from"./chunk-NPY5HGMH.js";import{a as mi}from"./chunk-E52UQNEX.js";import{$a as jn,$b as Y,$c as dt,$e as kt,$f as nn,Ac as E,Bd as St,Ca as ft,Cb as de,Cd as Pt,Dd as Mt,Ed as We,Ee as Qn,F as Gt,Fa as _t,Fb as Hn,Fc as J,Fd as yt,G as $e,Ga as Ct,Gc as H,Gd as It,Ha as ht,Hd as ue,I as Lt,Ia as R,If as ei,Ja as t,Ka as u,Kc as it,Kd as st,La as f,Lc as V,M as te,Ma as S,Mc as X,N as P,Na as se,Nb as Ee,Nc as at,Nd as De,Ne as Yn,Nf as ni,O as M,Ob as Fe,Od as ke,Oe as Jn,Of as fe,Pf as ii,Qb as ce,Qc as Q,Qf as ai,Rb as le,Re as Xe,Rf as oi,Sb as we,Sc as ot,Sd as Ne,Se as Ze,Ta as k,Tc as Kt,Te as tn,U as Le,Ua as Ge,Uc as Ln,Ue as en,Vc as rt,Vd as Ke,Ve as re,Vf as $t,Wa as r,Wd as Qe,We as Qt,Xa as c,Xb as N,Xd as Ye,Xe as wt,Ya as F,Yb as zn,Yc as pt,Yd as xe,Ye as Bt,Ze as Rt,_ as qn,_a as et,_b as $,_f as ri,ac as $n,af as Nt,ag as Ve,bc as En,be as Je,ca as o,cf as Vt,dc as Be,dd as ct,df as qt,dg as pi,eb as Oe,ec as B,fb as vt,fd as y,ff as jt,ga as _,gb as w,gd as G,gf as Ht,ha as A,hb as ye,hd as Un,ia as Ue,id as Gn,if as zt,ig as ci,jd as ut,kg as li,la as m,ld as Dt,lf as be,ma as Ae,md as Wn,na as d,ob as Ie,od as Kn,pc as ee,pd as Z,qc as Re,qd as xt,qf as Xn,ra as n,rc as Wt,rf as Zn,sa as i,sc as ne,sf as ti,sg as an,ta as g,tb as me,tc as ie,td as bt,tg as si,ua as v,ub as O,uc as ae,ud as tt,va as D,vc as oe,vd as Ft,wd as lt,xa as I,xd as At,ya as b,za as C,zd as Ot}from"./chunk-DUPCOD76.js";import{a as j,b as K}from"./chunk-O7S4L63H.js";var xi=()=>({confirm:!0}),on=(()=>{class e{constructor(a){this.dialogRef=a}static{this.\u0275fac=function(l){return new(l||e)(_(ee))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),t(1),r(2,"translate"),i(),t(3,` +import{a as di}from"./chunk-MZXIWGVF.js";import{a as Fn,b as wn}from"./chunk-MP5A5PC4.js";import{a as mi}from"./chunk-35O6DUHT.js";import{$a as jn,$b as Y,$c as dt,$e as kt,$f as nn,Ac as E,Bd as St,Ca as ft,Cb as de,Cd as Pt,Dd as Mt,Ed as We,Ee as Qn,F as Gt,Fa as _t,Fb as Hn,Fc as J,Fd as yt,G as $e,Ga as Ct,Gc as H,Gd as It,Ha as ht,Hd as ue,I as Lt,Ia as R,If as ei,Ja as t,Ka as u,Kc as it,Kd as st,La as f,Lc as V,M as te,Ma as S,Mc as X,N as P,Na as se,Nb as Ee,Nc as at,Nd as De,Ne as Yn,Nf as ni,O as M,Ob as Fe,Od as ke,Oe as Jn,Of as fe,Pf as ii,Qb as ce,Qc as Q,Qf as ai,Rb as le,Re as Xe,Rf as oi,Sb as we,Sc as ot,Sd as Ne,Se as Ze,Ta as k,Tc as Kt,Te as tn,U as Le,Ua as Ge,Uc as Ln,Ue as en,Vc as rt,Vd as Ke,Ve as re,Vf as $t,Wa as r,Wd as Qe,We as Qt,Xa as c,Xb as N,Xd as Ye,Xe as wt,Ya as F,Yb as zn,Yc as pt,Yd as xe,Ye as Bt,Ze as Rt,_ as qn,_a as et,_b as $,_f as ri,ac as $n,af as Nt,ag as Ve,bc as En,be as Je,ca as o,cf as Vt,dc as Be,dd as ct,df as qt,dg as pi,eb as Oe,ec as B,fb as vt,fd as y,ff as jt,ga as _,gb as w,gd as G,gf as Ht,ha as A,hb as ye,hd as Un,ia as Ue,id as Gn,if as zt,ig as ci,jd as ut,kg as li,la as m,ld as Dt,lf as be,ma as Ae,md as Wn,na as d,ob as Ie,od as Kn,pc as ee,pd as Z,qc as Re,qd as xt,qf as Xn,ra as n,rc as Wt,rf as Zn,sa as i,sc as ne,sf as ti,sg as an,ta as g,tb as me,tc as ie,td as bt,tg as si,ua as v,ub as O,uc as ae,ud as tt,va as D,vc as oe,vd as Ft,wd as lt,xa as I,xd as At,ya as b,za as C,zd as Ot}from"./chunk-DMOOHS3H.js";import{a as j,b as K}from"./chunk-O7S4L63H.js";var xi=()=>({confirm:!0}),on=(()=>{class e{constructor(a){this.dialogRef=a}static{this.\u0275fac=function(l){return new(l||e)(_(ee))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),t(1),r(2,"translate"),i(),t(3,` `),n(4,"div",1),t(5,` `),n(6,"p"),t(7),r(8,"translate"),i(),t(9,` `),i(),t(10,` @@ -2267,4 +2267,4 @@ import{a as di}from"./chunk-EQJKMM2V.js";import{a as Fn,b as wn}from"./chunk-NPY `,p.fixedDepositsAccountData.maturityDate?c(61,47,p.fixedDepositsAccountData.maturityDate):"N/A",` `),o(7),u(c(68,49,"labels.inputs.Deposit Period")),o(4),S(` `,p.fixedDepositsAccountData.depositPeriod,"\xA0",F(72,51,p.fixedDepositsAccountData.depositPeriodFrequency.value,"catalogs"),` - `),o(4),d("ngIf",p.fixedDepositsAccountData.withHoldTax),o(2),d("ngIf",p.fixedDepositsAccountData.onAccountClosure),o(8),u(c(86,54,"labels.heading.Interest Details")),o(10),u(c(96,56,"labels.inputs.Interest Rate")),o(4),f("",p.fixedDepositsAccountData.nominalAnnualInterestRate," %"),o(6),u(c(106,58,"labels.inputs.Interest Compounding Period")),o(4),u(F(110,60,p.fixedDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),o(7),u(c(117,63,"labels.inputs.Interest Posting Period")),o(4),u(F(121,65,p.fixedDepositsAccountData.interestPostingPeriodType.value,"catalogs")),o(7),u(c(128,68,"labels.inputs.Interest Calculated Using")),o(4),u(F(132,70,p.fixedDepositsAccountData.interestCalculationType.value,"catalogs")),o(7),u(c(139,73,"labels.inputs.No. of Days in Year")),o(4),u(F(143,75,p.fixedDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),o(4),d("ngIf",p.fixedDepositsAccountData.preClosurePenalApplicable),o(8),d("ngIf",!p.fixedDepositsAccountData.status.rejected&&!p.fixedDepositsAccountData.status.submittedAndPendingApproval)("ngIfElse",x)}},dependencies:[O,w,me,y,yt,E,It,ei],styles:[".fixed-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return e})();var ll=[{path:"",data:{title:"All Fixed Deposits",breadcrumb:"Fixed Deposits",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Fixed Deposit Account",breadcrumb:"Create Fixed Deposit Account"},component:An,resolve:{fixedDepositsAccountTemplate:Nn}},{path:":fixedDepositAccountId",data:{title:"Fixed Deposit Account View",routeParamBreadcrumb:"fixedDepositAccountId"},resolve:{fixedDepositsAccountData:yn},children:[{path:"",component:cn,resolve:{fixedDepositsAccountData:yn,savingsDatatables:wn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:In,data:{title:"Fixed Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:ln,data:{title:"Fixed Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:sn,data:{title:"Fixed Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:un,data:{title:"Fixed Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:xn,data:{title:"Fixed Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:fn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Fn}}]}]},{path:"edit",data:{title:"Edit Fixed Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:On,resolve:{fixedDepositsAccountAndTemplate:Vn}},{path:"transactions",data:{title:"Fixed Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:"account-transfers",loadChildren:()=>import("./account-transfers.module-5U5L3F6Y.js").then(e=>e.AccountTransfersModule)},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Tn,resolve:{fixedDepositsAccountTransaction:Rn}}]}]},{path:"actions/:name",data:{title:"Fixed Deposits Account Actions",routeParamBreadcrumb:"name"},component:Mn,resolve:{fixedDepositsAccountActionData:kn}}]}]}],ui=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=Ue({type:e})}static{this.\u0275inj=$e({providers:[yn,Fn,wn,Rn,kn,Nn,Vn],imports:[En.forChild(ll),En]})}}return e})();var Mg=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=Ue({type:e})}static{this.\u0275inj=$e({imports:[si,oi,ri,ui,cn,sn,un,xn,ln,fn,Mn,gn,_n,rn,on,ze,Cn,hn,vn,Tn,mn,dn,Dn,bn,Sn,An,_e,Ce,ve,he,je,He,On,In,Pn]})}}return e})();export{Mg as FixedDepositsModule}; + `),o(4),d("ngIf",p.fixedDepositsAccountData.withHoldTax),o(2),d("ngIf",p.fixedDepositsAccountData.onAccountClosure),o(8),u(c(86,54,"labels.heading.Interest Details")),o(10),u(c(96,56,"labels.inputs.Interest Rate")),o(4),f("",p.fixedDepositsAccountData.nominalAnnualInterestRate," %"),o(6),u(c(106,58,"labels.inputs.Interest Compounding Period")),o(4),u(F(110,60,p.fixedDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),o(7),u(c(117,63,"labels.inputs.Interest Posting Period")),o(4),u(F(121,65,p.fixedDepositsAccountData.interestPostingPeriodType.value,"catalogs")),o(7),u(c(128,68,"labels.inputs.Interest Calculated Using")),o(4),u(F(132,70,p.fixedDepositsAccountData.interestCalculationType.value,"catalogs")),o(7),u(c(139,73,"labels.inputs.No. of Days in Year")),o(4),u(F(143,75,p.fixedDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),o(4),d("ngIf",p.fixedDepositsAccountData.preClosurePenalApplicable),o(8),d("ngIf",!p.fixedDepositsAccountData.status.rejected&&!p.fixedDepositsAccountData.status.submittedAndPendingApproval)("ngIfElse",x)}},dependencies:[O,w,me,y,yt,E,It,ei],styles:[".fixed-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return e})();var ll=[{path:"",data:{title:"All Fixed Deposits",breadcrumb:"Fixed Deposits",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Fixed Deposit Account",breadcrumb:"Create Fixed Deposit Account"},component:An,resolve:{fixedDepositsAccountTemplate:Nn}},{path:":fixedDepositAccountId",data:{title:"Fixed Deposit Account View",routeParamBreadcrumb:"fixedDepositAccountId"},resolve:{fixedDepositsAccountData:yn},children:[{path:"",component:cn,resolve:{fixedDepositsAccountData:yn,savingsDatatables:wn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:In,data:{title:"Fixed Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:ln,data:{title:"Fixed Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:sn,data:{title:"Fixed Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:un,data:{title:"Fixed Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:xn,data:{title:"Fixed Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:fn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Fn}}]}]},{path:"edit",data:{title:"Edit Fixed Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:On,resolve:{fixedDepositsAccountAndTemplate:Vn}},{path:"transactions",data:{title:"Fixed Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:"account-transfers",loadChildren:()=>import("./account-transfers.module-M43K676L.js").then(e=>e.AccountTransfersModule)},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Tn,resolve:{fixedDepositsAccountTransaction:Rn}}]}]},{path:"actions/:name",data:{title:"Fixed Deposits Account Actions",routeParamBreadcrumb:"name"},component:Mn,resolve:{fixedDepositsAccountActionData:kn}}]}]}],ui=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=Ue({type:e})}static{this.\u0275inj=$e({providers:[yn,Fn,wn,Rn,kn,Nn,Vn],imports:[En.forChild(ll),En]})}}return e})();var Mg=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=Ue({type:e})}static{this.\u0275inj=$e({imports:[si,oi,ri,ui,cn,sn,un,xn,ln,fn,Mn,gn,_n,rn,on,ze,Cn,hn,vn,Tn,mn,dn,Dn,bn,Sn,An,_e,Ce,ve,he,je,He,On,In,Pn]})}}return e})();export{Mg as FixedDepositsModule}; diff --git a/browser/index.html b/browser/index.html index b77b76644..967071999 100644 --- a/browser/index.html +++ b/browser/index.html @@ -57,5 +57,5 @@
- + diff --git a/browser/loans.module-DH6CK4QK.js b/browser/loans.module-V5ABT6I7.js similarity index 99% rename from browser/loans.module-DH6CK4QK.js rename to browser/loans.module-V5ABT6I7.js index b3a807d8b..153c73799 100644 --- a/browser/loans.module-DH6CK4QK.js +++ b/browser/loans.module-V5ABT6I7.js @@ -1,4 +1,4 @@ -import{a as v1}from"./chunk-EGST4LTW.js";import{a as Jf,b as jr,c as qr,d as Nc,e as kc}from"./chunk-BVE6E676.js";import{a as Fc,b as dd,c as b1,d as C1}from"./chunk-REXE4A5X.js";import{a as hi}from"./chunk-FK6H3RFT.js";import{a as _1}from"./chunk-E52UQNEX.js";import{$ as vc,$b as te,$c as ke,$e as xn,$f as sa,Ac as Pt,B as hc,Bc as zf,Bd as Ze,Ca as le,Cc as Vf,Cd as Ke,Da as Ff,Dd as Je,Ec as Jl,Ed as wa,Ee as So,F as an,Fa as si,Fc as ce,Fd as On,G as gc,Ga as ci,Gc as ae,Gd as qa,Gf as o1,Ha as pi,Hd as ye,Hf as r1,I as sn,Ia as Et,Ic as Uf,If as Va,J as xc,Ja as e,Jf as l1,Ka as C,Kb as Zl,Kc as ve,Kd as cn,L as Ef,La as y,Lc as Gt,M as Lr,Ma as Wt,Mc as me,Md as Xf,Mf as s1,N as ct,Na as Qs,Nc as Ie,Nd as fi,Ne as mo,Nf as Mc,O as pt,Oa as t0,Od as la,Oe as Do,Of as pn,Pa as e0,Pd as Qf,Pe as Pc,Pf as Ec,Qa as n0,Qc as se,Qf as ns,Ra as i0,Rc as Hf,Rd as Cc,Re as Xl,Rf as c1,Sc as Le,Sd as qo,Se as Ql,Sf as is,T as _c,Ta as Ut,Tc as Ti,Te as ts,U as Yl,Ua as La,Uc as jo,Ue as es,Uf as Tt,Vc as Ae,Vd as yc,Ve as uo,Wa as p,Wd as Sc,We as za,Wf as p1,Xa as u,Xb as Ot,Xd as Dc,Xe as fn,Y as Lf,Ya as ze,Yb as jf,Yc as Oe,Yd as Ii,Ye as hn,Yf as m1,Za as kf,Zc as Gf,Ze as gn,_ as pd,_a as Ue,_b as oe,_c as Wf,_e as Tc,_f as d1,ac as qf,af as _n,ag as Pi,b as fc,bc as md,be as wc,bf as Ic,bg as a0,c as Mf,ca as s,cf as vn,dc as ja,dd as be,df as bn,dg as u1,e as cd,eb as pa,ec as $t,ed as $f,ef as Ac,eg as f1,fa as Nf,fb as on,fd as Dt,fe as da,ff as Cn,ga as O,gb as Vt,gd as fe,gf as yn,ha as yt,hd as Yf,hf as Oc,ia as bc,id as Zf,if as Sn,ig as h1,jd as we,kg as g1,la as g,ld as Re,lf as Mi,ma as ra,mb as Rf,md as Kf,na as h,pc as Nr,pd as de,qc as Fr,qd as Be,qf as n1,ra as r,rc as Wn,re as t1,rf as i1,rg as Lc,sa as l,sb as Bf,sc as Kl,se as e1,sf as a1,sg as Qi,ta as P,tb as Da,tc as kr,td as $e,tg as x1,ua as V,ub as St,uc as Rr,ud as ue,va as U,vc as Br,vd as Vn,wd as Ce,xa as vt,xd as In,ya as nt,za as I,zc as ma,zd as An}from"./chunk-DUPCOD76.js";import{a as ie,b as De,d as Of}from"./chunk-O7S4L63H.js";var Rc=class{constructor(i,n){this.setOptions(i,n),this.setButtons(i)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}get optionsPayment(){return this.optionPaymentArray}setButtons(i){switch(i){case"Active":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Foreclosure",icon:"heart-broken",taskPermissionName:"FORECLOSURE_LOAN"},{name:"Make Repayment",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"},{name:"Undo Disbursal",icon:"undo",taskPermissionName:"DISBURSALUNDO_LOAN"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_LOAN"},{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_LOAN"},{name:"Reject",icon:"times",taskPermissionName:"REJECT_LOAN"}];break;case"Approved":this.buttonsArray=[{name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"},{name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"},{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_LOAN"}];break;case"Overpaid":this.buttonsArray=[{name:"Transfer Funds",icon:"exchange",taskPermissionName:"CREATE_ACCOUNTTRANSFER"},{name:"Credit Balance Refund",icon:"coins",taskPermissionName:"CREATE_CREDIT_BALANCE_REFUND"}];break;case"Closed (written off)":this.buttonsArray=[{name:"Recovery Payment",icon:"briefcase",taskPermissionName:"RECOVERYPAYMENT_LOAN"},{name:"Undo Write-off",icon:"undo",taskPermissionName:"UNDOWRITEOFF_LOAN"}];break;case"Closed (obligations met)":this.buttonsArray=[{name:"Goodwill Credit",icon:"coins",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",icon:"coins",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",icon:"coins",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",icon:"coins",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;default:this.buttonsArray=[]}}setOptions(i,n){switch(i){case"Active":this.optionArray=[{name:"Waive Interest",taskPermissionName:"WAIVEINTERESTPORTION_LOAN"},{name:"Reschedule",taskPermissionName:"CREATE_RESCHEDULELOAN"},{name:"Write Off",taskPermissionName:"WRITEOFF_LOAN"},{name:"Close (as Rescheduled)",taskPermissionName:"CLOSEASRESCHEDULED_LOAN"},{name:"Close",taskPermissionName:"CLOSE_LOAN"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Recover From Guarantor",taskPermissionName:"RECOVERGUARANTEES_LOAN"},{name:"Sell Loan",taskPermissionName:"SALE_LOAN"}],this.isContractTermination(n)||this.optionArray.push({name:"Contract Termination",taskPermissionName:"CONTRACT_TERMINATION_LOAN"}),this.optionPaymentArray=[{name:"Goodwill Credit",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_LOAN"},{name:"Delete",taskPermissionName:"DELETE_LOAN"},{name:"Add Collateral",taskPermissionName:"CREATE_COLLATERAL"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Reports",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;case"Approved":this.optionArray=[{name:"Add Loan Charge",taskPermissionName:"CREATE_LOANCHARGE"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;default:this.optionArray=[],this.optionPaymentArray=[]}}addOption(i){this.optionArray.push(i)}addButton(i){this.buttonsArray.push(i)}isContractTermination(i){return i==null?!1:i.code==="loanSubStatus.loanSubStatusType.contractTermination"}};var gx=()=>["./general"],xx=()=>["./accountdetail"],_x=()=>["./repayment-schedule"],vx=()=>["./loan-documents"],bx=()=>["./original-schedule"],Cx=()=>["./transactions"],yx=()=>["./deferred-income"],Sx=()=>["./buy-down-fees"],Dx=()=>["./delinquencytags"],wx=()=>["./loan-collateral"],Px=()=>["./loan-tranche-details"],Tx=()=>["./term-variations"],Ix=()=>["./overdue-charges"],Ax=()=>["./floating-interest-rates"],Ox=()=>["./charges"],Mx=()=>["./loan-reschedules"],Ex=()=>["./notes"],Lx=()=>["./standing-instruction"],Nx=()=>["./external-asset-owner"],Fx=t=>["./datatables",t];function kx(t,i){if(t&1&&(r(0,"tr"),e(1,` +import{a as v1}from"./chunk-HBORYL33.js";import{a as Jf,b as jr,c as qr,d as Nc,e as kc}from"./chunk-DV7IA4RU.js";import{a as Fc,b as dd,c as b1,d as C1}from"./chunk-5TDJB75T.js";import{a as hi}from"./chunk-FK6H3RFT.js";import{a as _1}from"./chunk-35O6DUHT.js";import{$ as vc,$b as te,$c as ke,$e as xn,$f as sa,Ac as Pt,B as hc,Bc as zf,Bd as Ze,Ca as le,Cc as Vf,Cd as Ke,Da as Ff,Dd as Je,Ec as Jl,Ed as wa,Ee as So,F as an,Fa as si,Fc as ce,Fd as On,G as gc,Ga as ci,Gc as ae,Gd as qa,Gf as o1,Ha as pi,Hd as ye,Hf as r1,I as sn,Ia as Et,Ic as Uf,If as Va,J as xc,Ja as e,Jf as l1,Ka as C,Kb as Zl,Kc as ve,Kd as cn,L as Ef,La as y,Lc as Gt,M as Lr,Ma as Wt,Mc as me,Md as Xf,Mf as s1,N as ct,Na as Qs,Nc as Ie,Nd as fi,Ne as mo,Nf as Mc,O as pt,Oa as t0,Od as la,Oe as Do,Of as pn,Pa as e0,Pd as Qf,Pe as Pc,Pf as Ec,Qa as n0,Qc as se,Qf as ns,Ra as i0,Rc as Hf,Rd as Cc,Re as Xl,Rf as c1,Sc as Le,Sd as qo,Se as Ql,Sf as is,T as _c,Ta as Ut,Tc as Ti,Te as ts,U as Yl,Ua as La,Uc as jo,Ue as es,Uf as Tt,Vc as Ae,Vd as yc,Ve as uo,Wa as p,Wd as Sc,We as za,Wf as p1,Xa as u,Xb as Ot,Xd as Dc,Xe as fn,Y as Lf,Ya as ze,Yb as jf,Yc as Oe,Yd as Ii,Ye as hn,Yf as m1,Za as kf,Zc as Gf,Ze as gn,_ as pd,_a as Ue,_b as oe,_c as Wf,_e as Tc,_f as d1,ac as qf,af as _n,ag as Pi,b as fc,bc as md,be as wc,bf as Ic,bg as a0,c as Mf,ca as s,cf as vn,dc as ja,dd as be,df as bn,dg as u1,e as cd,eb as pa,ec as $t,ed as $f,ef as Ac,eg as f1,fa as Nf,fb as on,fd as Dt,fe as da,ff as Cn,ga as O,gb as Vt,gd as fe,gf as yn,ha as yt,hd as Yf,hf as Oc,ia as bc,id as Zf,if as Sn,ig as h1,jd as we,kg as g1,la as g,ld as Re,lf as Mi,ma as ra,mb as Rf,md as Kf,na as h,pc as Nr,pd as de,qc as Fr,qd as Be,qf as n1,ra as r,rc as Wn,re as t1,rf as i1,rg as Lc,sa as l,sb as Bf,sc as Kl,se as e1,sf as a1,sg as Qi,ta as P,tb as Da,tc as kr,td as $e,tg as x1,ua as V,ub as St,uc as Rr,ud as ue,va as U,vc as Br,vd as Vn,wd as Ce,xa as vt,xd as In,ya as nt,za as I,zc as ma,zd as An}from"./chunk-DMOOHS3H.js";import{a as ie,b as De,d as Of}from"./chunk-O7S4L63H.js";var Rc=class{constructor(i,n){this.setOptions(i,n),this.setButtons(i)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}get optionsPayment(){return this.optionPaymentArray}setButtons(i){switch(i){case"Active":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Foreclosure",icon:"heart-broken",taskPermissionName:"FORECLOSURE_LOAN"},{name:"Make Repayment",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"},{name:"Undo Disbursal",icon:"undo",taskPermissionName:"DISBURSALUNDO_LOAN"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_LOAN"},{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_LOAN"},{name:"Reject",icon:"times",taskPermissionName:"REJECT_LOAN"}];break;case"Approved":this.buttonsArray=[{name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"},{name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"},{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_LOAN"}];break;case"Overpaid":this.buttonsArray=[{name:"Transfer Funds",icon:"exchange",taskPermissionName:"CREATE_ACCOUNTTRANSFER"},{name:"Credit Balance Refund",icon:"coins",taskPermissionName:"CREATE_CREDIT_BALANCE_REFUND"}];break;case"Closed (written off)":this.buttonsArray=[{name:"Recovery Payment",icon:"briefcase",taskPermissionName:"RECOVERYPAYMENT_LOAN"},{name:"Undo Write-off",icon:"undo",taskPermissionName:"UNDOWRITEOFF_LOAN"}];break;case"Closed (obligations met)":this.buttonsArray=[{name:"Goodwill Credit",icon:"coins",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",icon:"coins",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",icon:"coins",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",icon:"coins",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;default:this.buttonsArray=[]}}setOptions(i,n){switch(i){case"Active":this.optionArray=[{name:"Waive Interest",taskPermissionName:"WAIVEINTERESTPORTION_LOAN"},{name:"Reschedule",taskPermissionName:"CREATE_RESCHEDULELOAN"},{name:"Write Off",taskPermissionName:"WRITEOFF_LOAN"},{name:"Close (as Rescheduled)",taskPermissionName:"CLOSEASRESCHEDULED_LOAN"},{name:"Close",taskPermissionName:"CLOSE_LOAN"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Recover From Guarantor",taskPermissionName:"RECOVERGUARANTEES_LOAN"},{name:"Sell Loan",taskPermissionName:"SALE_LOAN"}],this.isContractTermination(n)||this.optionArray.push({name:"Contract Termination",taskPermissionName:"CONTRACT_TERMINATION_LOAN"}),this.optionPaymentArray=[{name:"Goodwill Credit",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_LOAN"},{name:"Delete",taskPermissionName:"DELETE_LOAN"},{name:"Add Collateral",taskPermissionName:"CREATE_COLLATERAL"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Reports",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;case"Approved":this.optionArray=[{name:"Add Loan Charge",taskPermissionName:"CREATE_LOANCHARGE"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;default:this.optionArray=[],this.optionPaymentArray=[]}}addOption(i){this.optionArray.push(i)}addButton(i){this.buttonsArray.push(i)}isContractTermination(i){return i==null?!1:i.code==="loanSubStatus.loanSubStatusType.contractTermination"}};var gx=()=>["./general"],xx=()=>["./accountdetail"],_x=()=>["./repayment-schedule"],vx=()=>["./loan-documents"],bx=()=>["./original-schedule"],Cx=()=>["./transactions"],yx=()=>["./deferred-income"],Sx=()=>["./buy-down-fees"],Dx=()=>["./delinquencytags"],wx=()=>["./loan-collateral"],Px=()=>["./loan-tranche-details"],Tx=()=>["./term-variations"],Ix=()=>["./overdue-charges"],Ax=()=>["./floating-interest-rates"],Ox=()=>["./charges"],Mx=()=>["./loan-reschedules"],Ex=()=>["./notes"],Lx=()=>["./standing-instruction"],Nx=()=>["./external-asset-owner"],Fx=t=>["./datatables",t];function kx(t,i){if(t&1&&(r(0,"tr"),e(1,` `),r(2,"td"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"td"),e(7,` `),r(8,"span",49),P(9,"i",50),l(),e(10),l(),e(11,` @@ -6186,7 +6186,7 @@ end`};i.events.push(["putFont",function(c){(function(d){var m=d.font,x=d.out,v=d `),g(7,eF,34,3,"table",1),e(8,` `),l(),e(9,` -`)),a&2&&(s(3),Wt("",u(4,3,"labels.inputs.Deferred income")," - ",u(5,5,"labels.menus.Capitalized Income"),""),s(4),h("ngIf",o.capitalizedIncomeData.length>0))},dependencies:[St,Vt,Dt,Pt,fn,xn,gn,_n,hn,vn,bn,yn,Cn,Sn,pn],encapsulation:2})}}return t})();var Uu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return this.loansService.getDeferredIncomeData(a)}static{this.\u0275fac=function(a){return new(a||t)(sn(Tt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var Hu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return a?this.loansService.getBuyDownFeeData(a):(console.error("LoanBuyDownFeesDataResolver: Could not find loanId in route parameters"),new fc(o=>{o.next([]),o.complete()}))}static{this.\u0275fac=function(a){return new(a||t)(sn(Tt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var nF=[{path:"",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Loans Account",breadcrumb:"Create Loans Account"},component:dm,resolve:{loansAccountTemplate:Eu}},{path:":loanId",data:{title:"Loan View",routeParamBreadcrumb:"loanId"},component:Bc,resolve:{loanDetailsData:Jr,loanDatatables:ym,loanArrearsDelinquencyConfig:Pg},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:jc,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Jr,loanDatatables:ym}},{path:"accountdetail",component:qc,data:{title:"Account Detail",breadcrumb:"Account Detail",routeParamBreadcrumb:!1}},{path:"original-schedule",component:Tp,data:{title:"Original Schedule",breadcrumb:"Original Schedule",routeParamBreadcrumb:!1}},{path:"repayment-schedule",component:Yo,data:{title:"Repayment Schedule",breadcrumb:"Repayment Schedule",routeParamBreadcrumb:!1}},{path:"transactions",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Pp},{path:"export",component:vm}]},{path:"deferred-income",data:{title:"Loans Deferred Income",breadcrumb:"Deferred income",routeParamBreadcrumb:!1},resolve:{loanDeferredIncomeData:Uu},children:[{path:"",component:Og}]},{path:"delinquencytags",data:{title:"Loans Delinquency Tags",breadcrumb:"Delinquency Tags",routeParamBreadcrumb:!1},resolve:{loanDelinquencyTagsData:ju,loanDelinquencyData:zu,loanDelinquencyActions:Ag},children:[{path:"",component:Pm}]},{path:"loan-reschedules",data:{},resolve:{loanRescheduleData:wg},children:[{path:"",component:Tm}]},{path:"loan-collateral",component:pm,data:{title:"Loan Collateral Details",breadcrumb:"Loan Collateral Details",routeParamBreadcrumb:!1},resolve:{loanCollaterals:Ig}},{path:"term-variations",component:Om,data:{title:"Loan Term Variations",breadcrumb:"Loan Term Variations",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Jr,interestPausesData:Vu}},{path:"loan-tranche-details",component:cm,data:{title:"Loan Tranche Details",breadcrumb:"Loan Tranche Details",routeParamBreadcrumb:!1}},{path:"overdue-charges",component:Ip,data:{title:"Overdue Charges",breadcrumb:"Overdue Charges",routeParamBreadcrumb:!1}},{path:"floating-interest-rates",component:sm,data:{title:"Floating Interest Rates",breadcrumb:"Floating Interest Rates",routeParamBreadcrumb:!1}},{path:"charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},component:Ap},{path:"loan-documents",component:um,data:{title:"Loan Documents",breadcrumb:"Loan Documents",routeParamBreadcrumb:!1},resolve:{loanDocuments:Lu}},{path:"notes",component:zc,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{loanNotes:Au}},{path:"standing-instruction",component:fm,data:{title:"Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"external-asset-owner",component:Am,data:{title:"External Asset Owner",breadcrumb:"External Asset Owner",routeParamBreadcrumb:!1},resolve:{activeTransferData:Tg,loanTransfersData:qu}},{path:"datatables",children:[{path:":datatableName",component:Op,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanDatatable:Ou}}]},{path:"buy-down-fees",component:Dg,data:{title:"Buy Down Fees",breadcrumb:"Buy Down Fees",routeParamBreadcrumb:!1},resolve:{loanBuyDownFeesData:Hu}}]},{path:":loanId/transactions/:id",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},resolve:{loanDetailsAssociationData:Jr},children:[{path:"",data:{routeParamBreadcrumb:"id"},component:gm,resolve:{loansAccountTransaction:Nu}},{path:"edit",component:xm,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loansAccountTransactionTemplate:ku}},{path:"reciept",component:_m,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{loansTransactionReciept:Fu}}]},{path:":loanId/edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:Sm}},{path:":loanId/charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:hm,resolve:{loansAccountCharge:Dm,loanDetailsData:Jr}},{path:":id/adjustment",data:{routeParamBreadcrumb:"id",breadcrumb:"Adjustment"},component:Im,resolve:{loansAccountCharge:Dm,loanDetailsData:Jr}}]},{path:":loanId/actions/:action",component:lm,data:{title:"Loan Account Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},resolve:{actionButtonData:Mu}},{path:":loanId/transfer-funds",loadChildren:()=>import("./account-transfers.module-5U5L3F6Y.js").then(t=>t.AccountTransfersModule)},{path:"edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:Sm}}]},{path:"glim-account",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create GLIM Application",breadcrumb:"Create GLIM Application",routeParamBreadcrumb:!1},component:Cm,resolve:{loansAccountTemplate:Bu,groupsData:C1}},{path:":glimId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},component:bm,resolve:{glimData:Ru,groupsData:dd}}]}],Mg=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=bc({type:t})}static{this.\u0275inj=gc({providers:[Jr,Au,ym,Ou,ju,Mu,Eu,Lu,Sm,Dm,Nu,ku,Fu,v1,dd,Ru,b1,Bu,qu,zu,Vu,Uu,Hu],imports:[md.forChild(nF),md]})}}return t})();var Eg=(()=>{class t{constructor(n){this.externalAssetOwner=n}itemStatus(n){return this.externalAssetOwner.itemStatus(n)}static{this.\u0275fac=function(a){return new(a||t)(O(kc))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-external-asset-transfer"]],inputs:{transferData:"transferData"},decls:167,vars:60,consts:[[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"]],template:function(a,o){a&1&&(r(0,"table"),e(1,` +`)),a&2&&(s(3),Wt("",u(4,3,"labels.inputs.Deferred income")," - ",u(5,5,"labels.menus.Capitalized Income"),""),s(4),h("ngIf",o.capitalizedIncomeData.length>0))},dependencies:[St,Vt,Dt,Pt,fn,xn,gn,_n,hn,vn,bn,yn,Cn,Sn,pn],encapsulation:2})}}return t})();var Uu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return this.loansService.getDeferredIncomeData(a)}static{this.\u0275fac=function(a){return new(a||t)(sn(Tt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var Hu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return a?this.loansService.getBuyDownFeeData(a):(console.error("LoanBuyDownFeesDataResolver: Could not find loanId in route parameters"),new fc(o=>{o.next([]),o.complete()}))}static{this.\u0275fac=function(a){return new(a||t)(sn(Tt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var nF=[{path:"",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Loans Account",breadcrumb:"Create Loans Account"},component:dm,resolve:{loansAccountTemplate:Eu}},{path:":loanId",data:{title:"Loan View",routeParamBreadcrumb:"loanId"},component:Bc,resolve:{loanDetailsData:Jr,loanDatatables:ym,loanArrearsDelinquencyConfig:Pg},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:jc,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Jr,loanDatatables:ym}},{path:"accountdetail",component:qc,data:{title:"Account Detail",breadcrumb:"Account Detail",routeParamBreadcrumb:!1}},{path:"original-schedule",component:Tp,data:{title:"Original Schedule",breadcrumb:"Original Schedule",routeParamBreadcrumb:!1}},{path:"repayment-schedule",component:Yo,data:{title:"Repayment Schedule",breadcrumb:"Repayment Schedule",routeParamBreadcrumb:!1}},{path:"transactions",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Pp},{path:"export",component:vm}]},{path:"deferred-income",data:{title:"Loans Deferred Income",breadcrumb:"Deferred income",routeParamBreadcrumb:!1},resolve:{loanDeferredIncomeData:Uu},children:[{path:"",component:Og}]},{path:"delinquencytags",data:{title:"Loans Delinquency Tags",breadcrumb:"Delinquency Tags",routeParamBreadcrumb:!1},resolve:{loanDelinquencyTagsData:ju,loanDelinquencyData:zu,loanDelinquencyActions:Ag},children:[{path:"",component:Pm}]},{path:"loan-reschedules",data:{},resolve:{loanRescheduleData:wg},children:[{path:"",component:Tm}]},{path:"loan-collateral",component:pm,data:{title:"Loan Collateral Details",breadcrumb:"Loan Collateral Details",routeParamBreadcrumb:!1},resolve:{loanCollaterals:Ig}},{path:"term-variations",component:Om,data:{title:"Loan Term Variations",breadcrumb:"Loan Term Variations",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Jr,interestPausesData:Vu}},{path:"loan-tranche-details",component:cm,data:{title:"Loan Tranche Details",breadcrumb:"Loan Tranche Details",routeParamBreadcrumb:!1}},{path:"overdue-charges",component:Ip,data:{title:"Overdue Charges",breadcrumb:"Overdue Charges",routeParamBreadcrumb:!1}},{path:"floating-interest-rates",component:sm,data:{title:"Floating Interest Rates",breadcrumb:"Floating Interest Rates",routeParamBreadcrumb:!1}},{path:"charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},component:Ap},{path:"loan-documents",component:um,data:{title:"Loan Documents",breadcrumb:"Loan Documents",routeParamBreadcrumb:!1},resolve:{loanDocuments:Lu}},{path:"notes",component:zc,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{loanNotes:Au}},{path:"standing-instruction",component:fm,data:{title:"Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"external-asset-owner",component:Am,data:{title:"External Asset Owner",breadcrumb:"External Asset Owner",routeParamBreadcrumb:!1},resolve:{activeTransferData:Tg,loanTransfersData:qu}},{path:"datatables",children:[{path:":datatableName",component:Op,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanDatatable:Ou}}]},{path:"buy-down-fees",component:Dg,data:{title:"Buy Down Fees",breadcrumb:"Buy Down Fees",routeParamBreadcrumb:!1},resolve:{loanBuyDownFeesData:Hu}}]},{path:":loanId/transactions/:id",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},resolve:{loanDetailsAssociationData:Jr},children:[{path:"",data:{routeParamBreadcrumb:"id"},component:gm,resolve:{loansAccountTransaction:Nu}},{path:"edit",component:xm,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loansAccountTransactionTemplate:ku}},{path:"reciept",component:_m,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{loansTransactionReciept:Fu}}]},{path:":loanId/edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:Sm}},{path:":loanId/charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:hm,resolve:{loansAccountCharge:Dm,loanDetailsData:Jr}},{path:":id/adjustment",data:{routeParamBreadcrumb:"id",breadcrumb:"Adjustment"},component:Im,resolve:{loansAccountCharge:Dm,loanDetailsData:Jr}}]},{path:":loanId/actions/:action",component:lm,data:{title:"Loan Account Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},resolve:{actionButtonData:Mu}},{path:":loanId/transfer-funds",loadChildren:()=>import("./account-transfers.module-M43K676L.js").then(t=>t.AccountTransfersModule)},{path:"edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:Sm}}]},{path:"glim-account",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create GLIM Application",breadcrumb:"Create GLIM Application",routeParamBreadcrumb:!1},component:Cm,resolve:{loansAccountTemplate:Bu,groupsData:C1}},{path:":glimId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},component:bm,resolve:{glimData:Ru,groupsData:dd}}]}],Mg=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=bc({type:t})}static{this.\u0275inj=gc({providers:[Jr,Au,ym,Ou,ju,Mu,Eu,Lu,Sm,Dm,Nu,ku,Fu,v1,dd,Ru,b1,Bu,qu,zu,Vu,Uu,Hu],imports:[md.forChild(nF),md]})}}return t})();var Eg=(()=>{class t{constructor(n){this.externalAssetOwner=n}itemStatus(n){return this.externalAssetOwner.itemStatus(n)}static{this.\u0275fac=function(a){return new(a||t)(O(kc))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-external-asset-transfer"]],inputs:{transferData:"transferData"},decls:167,vars:60,consts:[[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"]],template:function(a,o){a&1&&(r(0,"table"),e(1,` `),r(2,"tbody"),e(3,` `),r(4,"tr"),e(5,` `),r(6,"td",0),e(7,` diff --git a/browser/main.js b/browser/main.js index a774b3a0c..91eeee5d8 100644 --- a/browser/main.js +++ b/browser/main.js @@ -1,4 +1,4 @@ -import{a as R$,b as Sa,c as Ow,d as Ei,e as _W}from"./chunk-BVE6E676.js";import{a as Ts,b as XO,c as t9,d as db}from"./chunk-REXE4A5X.js";import{$ as tw,$a as vi,$b as qt,$c as Ie,$d as z$,$e as Ne,$f as Is,A as QO,Aa as a$,Ab as _$,Ac as Et,Ad as ia,Ae as Fl,Af as ww,B as Um,Ba as s$,Bc as nu,Bd as Ti,Be as Io,Bf as $g,C as wo,Ca as Zt,Cb as Hn,Cc as Wn,Cd as Mi,Ce as mu,Cf as Wg,D as Bo,Da as tu,Db as KO,Dc as M$,Dd as Di,De as xa,Df as lW,E as KU,Ea as Rg,Eb as v$,Ec as Dl,Ed as Ai,Ee as Je,Ef as cW,F as Wt,Fa as Nt,Fb as Ro,Fc as _i,Fd as Gi,Fe as K$,Ff as Ew,G as un,Ga as Bt,Gb as iu,Gc as We,Gd as on,Ge as Hg,Gf as pW,H as JS,Ha as Rt,Hb as b$,Hc as mb,Hd as de,He as Tp,Hf as mW,I as Qt,Ia as Mt,Ib as C$,Ic as Wo,Id as B$,Ie as Ss,If as La,Ja as t,Jb as y$,Jc as D$,Jd as N$,Je as ws,Jf as Mp,K as JU,Ka as b,Kb as Wm,Kc as Se,Kd as Gt,Ke as J$,Kf as Xm,La as P,Lb as vo,Lc as bt,Ld as xw,Le as Z$,Lf as Pw,M as Vo,Ma as _t,Mb as cm,Mc as re,Me as X$,Mf as Rl,N as W,Na as ea,Nb as Zs,Nc as ue,Nd as Fn,Ne as du,Nf as Fr,O as Q,Oa as l$,Ob as zs,Oc as pm,Od as Li,Oe as $e,Of as _r,P as ca,Pa as H0,Pb as S$,Pd as jg,Pe as wi,Pf as mo,Q as ZU,Qa as G0,Qb as zo,Qc as _e,Qd as au,Qe as tW,Qf as no,R as ZS,Ra as U0,Rb as ps,Rc as ru,Rd as Ci,Re as _a,Rf as ya,S as q0,Sa as c$,Sb as js,Sc as ge,Sd as sn,Se as va,Sf as Ji,Ta as ht,Tb as Nh,Tc as Gn,Td as _w,Te as ba,Tf as vr,U as $n,Ua as Xe,Ub as sw,Uc as er,Ud as vw,Ue as Ca,Uf as dW,V as Rh,Va as vs,Vb as pb,Vc as fe,Vd as Ym,Ve as En,W as lb,Wa as m,Wb as lw,Wc as ha,Wd as Km,We as dn,Wf as kw,X as YO,Xa as d,Xb as Lt,Xc as is,Xd as Jm,Xe as Fe,Xf as Iw,Y as XU,Ya as Ye,Yb as fa,Yc as he,Yd as Pi,Ye as Be,Yf as uW,Z as t$,Za as Js,Zb as cw,Zc as A$,Zd as L$,Ze as Re,Zf as Tw,_ as XS,_a as pi,_b as te,_c as ou,_d as V$,_f as rl,a as ob,aa as e$,ab as $m,ac as es,ad as gw,ae as qg,af as Le,ag as Xn,b as ab,ba as Bg,bb as p$,bc as tr,bd as ns,be as Yo,bg as hn,c as ec,ca as l,cb as m$,cc as pw,cd as O$,ce as bw,cf as Ve,cg as fW,d as _s,da as i$,db as Ng,dc as Hi,dd as xe,de as j$,df as ze,dg as ol,e as zU,ea as n$,eb as io,ec as Dt,ed as Qm,ee as q$,f as jU,fa as ew,fb as se,fc as mw,fd as wt,fe as Xs,ff as je,fg as hW,g as qU,ga as V,gb as zt,gc as JO,gd as oe,ge as Cw,gf as qe,gg as xn,h as sb,ha as yt,hb as Ra,hc as w$,hd as Qo,he as H$,hg as Mw,i as Fh,ia as fn,ib as Na,ic as E$,id as Al,ie as G$,if as He,ig as t0,j as HU,ja as cb,jb as d$,jc as ZO,jd as me,je as U$,jf as eW,jg as gW,k as xr,ka as r$,kb as Ip,kc as dw,kd as Ol,ke as $$,kf as iW,l as GU,la as x,lb as u$,lc as uw,ld as Ue,le as W$,lf as ci,lg as Dw,m as UU,ma as Ir,mb as bs,mc as P$,md as ga,me as Q$,mf as nW,mg as na,n as Fg,na as g,nb as iw,nc as k$,nd as F$,ne as mm,nf as rW,ng as Dp,o as YS,oa as Xd,ob as Lg,oc as fw,od as Vg,oe as su,of as Bl,og as Co,p as $U,pa as kp,pb as nw,pc as qr,pd as $t,pe as lu,pf as xl,pg as Ap,q as Ec,qa as o$,qb as f$,qc as bo,qd as Te,qe as Y$,qf as Es,qg as Aw,r as Bh,ra as a,rb as rw,rc as ni,rd as rs,re as Cs,rf as Ps,rg as xW,s as KS,sa as s,sb as eu,sc as Ar,sd as zg,se as ys,sf as ks,t as Oo,ta as k,tb as h$,tc as Or,td as Si,te as cu,tf as oW,tg as Yr,u as WU,ua as ot,ub as St,uc as po,ud as Ht,ue as pu,uf as aW,v as Fo,va as at,vb as Yc,vc as Tr,vd as Mr,ve as tl,vf as yw,w as Gm,wa as kc,wb as g$,wc as hw,wd as Xt,we as el,wf as Gg,x as QU,xa as st,xb as x$,xc as I$,xd as De,xe as Zm,xf as Ug,y as YU,ya as q,yb as ow,yc as T$,yd as qs,ye as il,yf as Sw,z as Pc,za as A,zb as aw,zc as zi,zd as Oe,ze as nl,zf as sW}from"./chunk-DUPCOD76.js";import{a as ye,b as oi,c as lm,d as LU,e as Pe,f as $O,g as Pp,h as Cr,i as WO,j as VU,k as cs,l as QS}from"./chunk-O7S4L63H.js";var Gh=Pe((Xg,Cb)=>{(function(){var e,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",n="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",h=500,_="__lodash_placeholder__",y=1,C=2,E=4,T=1,D=2,M=1,F=2,B=4,z=8,$=16,tt=32,lt=64,gt=128,X=256,mt=512,vt=30,Tt="...",Ct=800,Z=16,nt=1,xt=2,R=3,j=1/0,G=9007199254740991,H=17976931348623157e292,K=NaN,et=4294967295,ft=et-1,At=et>>>1,Ot=[["ary",gt],["bind",M],["bindKey",F],["curry",z],["curryRight",$],["flip",mt],["partial",tt],["partialRight",lt],["rearg",X]],Yt="[object Arguments]",dt="[object Array]",jt="[object AsyncFunction]",ct="[object Boolean]",rt="[object Date]",It="[object DOMException]",Kt="[object Error]",ke="[object Function]",ce="[object GeneratorFunction]",pe="[object Map]",si="[object Number]",ii="[object Null]",le="[object Object]",ti="[object Promise]",Ke="[object Proxy]",li="[object RegExp]",fi="[object Set]",di="[object String]",gi="[object Symbol]",Yi="[object Undefined]",Zi="[object WeakMap]",Xi="[object WeakSet]",On="[object ArrayBuffer]",pn="[object DataView]",kn="[object Float32Array]",Rr="[object Float64Array]",Un="[object Int8Array]",In="[object Int16Array]",Qn="[object Int32Array]",mn="[object Uint8Array]",ln="[object Uint8ClampedArray]",lr="[object Uint16Array]",vn="[object Uint32Array]",zn=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Yn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ar=/&(?:amp|lt|gt|quot|#39);/g,oa=/[&<>"']/g,Sr=RegExp(ar.source),wr=RegExp(oa.source),$s=/<%-([\s\S]+?)%>/g,pr=/<%([\s\S]+?)%>/g,sr=/<%=([\s\S]+?)%>/g,To=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/[\\^$.*+?()[\]{}|]/g,Er=RegExp(ds.source),Ze=/^\s+/,Ii=/\s/,Ri=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nn=/\{\n\/\* \[wrapped with (.+)\] \*/,Ur=/,? & /,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vn=/[()=,{}\[\]\/\s]/,Mo=/\\(\\)?/g,nr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bn=/\w*$/,to=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^\[object .+?Constructor\]$/,No=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,Xo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ss=/($^)/,za=/['\n\r\u2028\u2029\\]/g,Wa="\\ud800-\\udfff",Ae="\\u0300-\\u036f",yi="\\ufe20-\\ufe2f",$i="\\u20d0-\\u20ff",Vi=Ae+yi+$i,cn="\\u2700-\\u27bf",Rn="a-z\\xdf-\\xf6\\xf8-\\xff",jn="\\xac\\xb1\\xd7\\xf7",Lr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pr="\\u2000-\\u206f",mr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kr="A-Z\\xc0-\\xd6\\xd8-\\xde",aa="\\ufe0e\\ufe0f",ma=jn+Lr+Pr+mr,ho="['\u2019]",Lo="["+Wa+"]",da="["+ma+"]",us="["+Vi+"]",pl="\\d+",lc="["+cn+"]",Hl="["+Rn+"]",d0="[^"+Wa+ma+pl+cn+Rn+kr+"]",op="\\ud83c[\\udffb-\\udfff]",xo="(?:"+us+"|"+op+")",Eo="[^"+Wa+"]",cc="(?:\\ud83c[\\udde6-\\uddff]){2}",El="[\\ud800-\\udbff][\\udc00-\\udfff]",Rc="["+kr+"]",ja="\\u200d",Ws="(?:"+Hl+"|"+d0+")",ap="(?:"+Rc+"|"+d0+")",Nc="(?:"+ho+"(?:d|ll|m|re|s|t|ve))?",Qp="(?:"+ho+"(?:D|LL|M|RE|S|T|VE))?",Yp=xo+"?",Gl="["+aa+"]?",Kp="(?:"+ja+"(?:"+[Eo,cc,El].join("|")+")"+Gl+Yp+")*",bd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sm=Gl+Yp+Kp,yd="(?:"+[lc,cc,El].join("|")+")"+Sm,E1="(?:"+[Eo+us+"?",us,cc,El,Lo].join("|")+")",wm=RegExp(ho,"g"),Sd=RegExp(us,"g"),P1=RegExp(op+"(?="+op+")|"+E1+Sm,"g"),DC=RegExp([Rc+"?"+Hl+"+"+Nc+"(?="+[da,Rc,"$"].join("|")+")",ap+"+"+Qp+"(?="+[da,Rc+Ws,"$"].join("|")+")",Rc+"?"+Ws+"+"+Nc,Rc+"+"+Qp,Cd,bd,pl,yd].join("|"),"g"),AC=RegExp("["+ja+Wa+Vi+aa+"]"),Df=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gA=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],C_=-1,ta={};ta[kn]=ta[Rr]=ta[Un]=ta[In]=ta[Qn]=ta[mn]=ta[ln]=ta[lr]=ta[vn]=!0,ta[Yt]=ta[dt]=ta[On]=ta[ct]=ta[pn]=ta[rt]=ta[Kt]=ta[ke]=ta[pe]=ta[si]=ta[le]=ta[li]=ta[fi]=ta[di]=ta[Zi]=!1;var fr={};fr[Yt]=fr[dt]=fr[On]=fr[pn]=fr[ct]=fr[rt]=fr[kn]=fr[Rr]=fr[Un]=fr[In]=fr[Qn]=fr[pe]=fr[si]=fr[le]=fr[li]=fr[fi]=fr[di]=fr[gi]=fr[mn]=fr[ln]=fr[lr]=fr[vn]=!0,fr[Kt]=fr[ke]=fr[Zi]=!1;var xA={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},y_={"&":"&","<":"<",">":">",'"':""","'":"'"},OC={"&":"&","<":"<",">":">",""":'"',"'":"'"},Af={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},S_=parseFloat,wd=parseInt,w_=typeof global=="object"&&global&&global.Object===Object&&global,E_=typeof self=="object"&&self&&self.Object===Object&&self,fs=w_||E_||Function("return this")(),k1=typeof Xg=="object"&&Xg&&!Xg.nodeType&&Xg,u0=k1&&typeof Cb=="object"&&Cb&&!Cb.nodeType&&Cb,I1=u0&&u0.exports===k1,P_=I1&&w_.process,pc=function(){try{var ui=u0&&u0.require&&u0.require("util").types;return ui||P_&&P_.binding&&P_.binding("util")}catch{}}(),FC=pc&&pc.isArrayBuffer,Of=pc&&pc.isDate,T1=pc&&pc.isMap,BC=pc&&pc.isRegExp,RC=pc&&pc.isSet,NC=pc&&pc.isTypedArray;function Ul(ui,ji,bi){switch(bi.length){case 0:return ui.call(ji);case 1:return ui.call(ji,bi[0]);case 2:return ui.call(ji,bi[0],bi[1]);case 3:return ui.call(ji,bi[0],bi[1],bi[2])}return ui.apply(ji,bi)}function Ed(ui,ji,bi,qn){for(var Dr=-1,ro=ui==null?0:ui.length;++Dr-1}function M1(ui,ji,bi){for(var qn=-1,Dr=ui==null?0:ui.length;++qn-1;);return bi}function GC(ui,ji){for(var bi=ui.length;bi--&&f0(ji,ui[bi],0)>-1;);return bi}function h0(ui,ji){for(var bi=ui.length,qn=0;bi--;)ui[bi]===ji&&++qn;return qn}var Lf=Rf(xA),bA=Rf(y_);function CA(ui){return"\\"+Af[ui]}function L1(ui,ji){return ui==null?e:ui[ji]}function Pm(ui){return AC.test(ui)}function yA(ui){return Df.test(ui)}function SA(ui){for(var ji,bi=[];!(ji=ui.next()).done;)bi.push(ji.value);return bi}function O_(ui){var ji=-1,bi=Array(ui.size);return ui.forEach(function(qn,Dr){bi[++ji]=[Dr,qn]}),bi}function F_(ui,ji){return function(bi){return ui(ji(bi))}}function Zp(ui,ji){for(var bi=-1,qn=ui.length,Dr=0,ro=[];++bi-1}function LA(L,Y){var ut=this.__data__,Ft=Qf(ut,L);return Ft<0?(++this.size,ut.push([L,Y])):ut[Ft][1]=Y,this}pp.prototype.clear=z1,pp.prototype.delete=oy,pp.prototype.get=RA,pp.prototype.has=NA,pp.prototype.set=LA;function mp(L){var Y=-1,ut=L==null?0:L.length;for(this.clear();++Y=Y?L:Y)),L}function Pl(L,Y,ut,Ft,ee,we){var Qe,ri=Y&y,hi=Y&C,Ui=Y&E;if(ut&&(Qe=ee?ut(L,Ft,ee,we):ut(L)),Qe!==e)return Qe;if(!Pa(L))return L;var Wi=Vr(L);if(Wi){if(Qe=qy(L),!ri)return Yl(L,Qe)}else{var rn=Fs(L),Mn=rn==ke||rn==ce;if(Vm(L))return My(L,ri);if(rn==le||rn==Yt||Mn&&!ee){if(Qe=hi||Mn?{}:ag(L),!ri)return hi?r7(L,hy(Qe,L)):n7(L,Yf(Qe,L))}else{if(!fr[rn])return ee?L:{};Qe=mh(L,rn,ri)}}we||(we=new Wl);var Zn=we.get(L);if(Zn)return Zn;we.set(L,Qe),Ud(L)?L.forEach(function(gr){Qe.add(Pl(gr,Y,ut,gr,L,we))}):Dv(L)&&L.forEach(function(gr,so){Qe.set(so,Pl(gr,Y,ut,so,L,we))});var ur=Ui?hi?ch:lh:hi?hl:ls,Qr=Wi?e:ur(L);return mc(Qr||L,function(gr,so){Qr&&(so=gr,gr=L[so]),Po(Qe,so,Pl(gr,Y,ut,so,L,we))}),Qe}function gy(L){var Y=ls(L);return function(ut){return xy(ut,L,Y)}}function xy(L,Y,ut){var Ft=ut.length;if(L==null)return!Ft;for(L=Go(L);Ft--;){var ee=ut[Ft],we=Y[ee],Qe=L[ee];if(Qe===e&&!(ee in L)||!we(Qe))return!1}return!0}function Kf(L,Y,ut){if(typeof L!="function")throw new ml(n);return Bm(function(){L.apply(e,ut)},Y)}function Jf(L,Y,ut,Ft){var ee=-1,we=Ff,Qe=!0,ri=L.length,hi=[],Ui=Y.length;if(!ri)return hi;ut&&(Y=sa(Y,$l(ut))),Ft?(we=M1,Qe=!1):Y.length>=i&&(we=Nf,Qe=!1,Y=new gc(Y));t:for(;++eeee?0:ee+ut),Ft=Ft===e||Ft>ee?ee:Jn(Ft),Ft<0&&(Ft+=ee),Ft=ut>Ft?0:Ha(Ft);ut0&&ut(ri)?Y>1?As(ri,Y-1,ut,Ft,ee):Em(ee,ri):Ft||(ee[ee.length]=ri)}return ee}var G1=By(),Cy=By(!0);function xc(L,Y){return L&&G1(L,Y,ls)}function Zf(L,Y){return L&&Cy(L,Y,ls)}function Bd(L,Y){return Jp(Y,function(ut){return rm(L[ut])})}function v0(L,Y){Y=hp(Y,L);for(var ut=0,Ft=Y.length;L!=null&&utY}function GA(L,Y){return L!=null&&bn.call(L,Y)}function UA(L,Y){return L!=null&&Y in Go(L)}function yy(L,Y,ut){return L>=hs(Y,ut)&&L=120&&Wi.length>=120)?new gc(Qe&&Wi):e}Wi=L[0];var rn=-1,Mn=ri[0];t:for(;++rn-1;)ri!==L&&Lc.call(ri,hi,1),Lc.call(L,hi,1);return L}function J_(L,Y){for(var ut=L?Y.length:0,Ft=ut-1;ut--;){var ee=Y[ut];if(ut==Ft||ee!==we){var we=ee;_p(ee)?Lc.call(L,ee,1):ev(L,ee)}}return L}function th(L,Y){return L+Uf(ny()*(Y-L+1))}function J1(L,Y,ut,Ft){for(var ee=-1,we=Ka(Gf((Y-L)/(ut||1)),0),Qe=bi(we);we--;)Qe[Ft?we:++ee]=L,L+=ut;return Qe}function Z_(L,Y){var ut="";if(!L||Y<1||Y>G)return ut;do Y%2&&(ut+=L),Y=Uf(Y/2),Y&&(L+=L);while(Y);return ut}function Xr(L,Y){return sg(Qy(L,Y,jr),L+"")}function YA(L){return Dm(R0(L))}function X_(L,Y){var ut=R0(L);return gh(ut,_0(Y,0,ut.length))}function eh(L,Y,ut,Ft){if(!Pa(L))return L;Y=hp(Y,L);for(var ee=-1,we=Y.length,Qe=we-1,ri=L;ri!=null&&++eeee?0:ee+Y),ut=ut>ee?ee:ut,ut<0&&(ut+=ee),ee=Y>ut?0:ut-Y>>>0,Y>>>=0;for(var we=bi(ee);++Ft>>1,Qe=L[we];Qe!==null&&!Rs(Qe)&&(ut?Qe<=Y:Qe=i){var Ui=Y?null:zd(L);if(Ui)return V1(Ui);Qe=!1,ee=Nf,hi=new gc}else hi=Y?[]:ri;t:for(;++Ft=Ft?L:_c(L,Y,ut)}var eg=ZC||function(L){return fs.clearTimeout(L)};function My(L,Y){if(Y)return L.slice();var ut=L.length,Ft=R_?R_(ut):new L.constructor(ut);return L.copy(Ft),Ft}function ov(L){var Y=new L.constructor(L.byteLength);return new Td(Y).set(new Td(L)),Y}function t7(L,Y){var ut=Y?ov(L.buffer):L.buffer;return new L.constructor(ut,L.byteOffset,L.byteLength)}function C0(L){var Y=new L.constructor(L.source,Bn.exec(L));return Y.lastIndex=L.lastIndex,Y}function e7(L){return Qs?Go(Qs.call(L)):{}}function av(L,Y){var ut=Y?ov(L.buffer):L.buffer;return new L.constructor(ut,L.byteOffset,L.length)}function Dy(L,Y){if(L!==Y){var ut=L!==e,Ft=L===null,ee=L===L,we=Rs(L),Qe=Y!==e,ri=Y===null,hi=Y===Y,Ui=Rs(Y);if(!ri&&!Ui&&!we&&L>Y||we&&Qe&&hi&&!ri&&!Ui||Ft&&Qe&&hi||!ut&&hi||!ee)return 1;if(!Ft&&!we&&!Ui&&L=ri)return hi;var Ui=ut[Ft];return hi*(Ui=="desc"?-1:1)}}return L.index-Y.index}function Ay(L,Y,ut,Ft){for(var ee=-1,we=L.length,Qe=ut.length,ri=-1,hi=Y.length,Ui=Ka(we-Qe,0),Wi=bi(hi+Ui),rn=!Ft;++ri1?ut[ee-1]:e,Qe=ee>2?ut[2]:e;for(we=L.length>3&&typeof we=="function"?(ee--,we):e,Qe&&Ys(ut[0],ut[1],Qe)&&(we=ee<3?e:we,ee=1),Y=Go(Y);++Ft-1?ee[we?Y[Qe]:Qe]:e}}function Vd(L){return nm(function(Y){var ut=Y.length,Ft=ut,ee=hc.prototype.thru;for(L&&Y.reverse();Ft--;){var we=Y[Ft];if(typeof we!="function")throw new ml(n);if(ee&&!Qe&&k0(we)=="wrapper")var Qe=new hc([],!0)}for(Ft=Qe?Ft:ut;++Ft1&&go.reverse(),Wi&&hiri))return!1;var Ui=we.get(L),Wi=we.get(Y);if(Ui&&Wi)return Ui==Y&&Wi==L;var rn=-1,Mn=!0,Zn=ut&D?new gc:e;for(we.set(L,Y),we.set(Y,L);++rn1?"& ":"")+Y[Ft],Y=Y.join(ut>2?", ":" "),L.replace(Ri,`{ +import{a as R$,b as Sa,c as Ow,d as Ei,e as _W}from"./chunk-DV7IA4RU.js";import{a as Ts,b as XO,c as t9,d as db}from"./chunk-5TDJB75T.js";import{$ as tw,$a as vi,$b as qt,$c as Ie,$d as z$,$e as Ne,$f as Is,A as QO,Aa as a$,Ab as _$,Ac as Et,Ad as ia,Ae as Fl,Af as ww,B as Um,Ba as s$,Bc as nu,Bd as Ti,Be as Io,Bf as $g,C as wo,Ca as Zt,Cb as Hn,Cc as Wn,Cd as Mi,Ce as mu,Cf as Wg,D as Bo,Da as tu,Db as KO,Dc as M$,Dd as Di,De as xa,Df as lW,E as KU,Ea as Rg,Eb as v$,Ec as Dl,Ed as Ai,Ee as Je,Ef as cW,F as Wt,Fa as Nt,Fb as Ro,Fc as _i,Fd as Gi,Fe as K$,Ff as Ew,G as un,Ga as Bt,Gb as iu,Gc as We,Gd as on,Ge as Hg,Gf as pW,H as JS,Ha as Rt,Hb as b$,Hc as mb,Hd as de,He as Tp,Hf as mW,I as Qt,Ia as Mt,Ib as C$,Ic as Wo,Id as B$,Ie as Ss,If as La,Ja as t,Jb as y$,Jc as D$,Jd as N$,Je as ws,Jf as Mp,K as JU,Ka as b,Kb as Wm,Kc as Se,Kd as Gt,Ke as J$,Kf as Xm,La as P,Lb as vo,Lc as bt,Ld as xw,Le as Z$,Lf as Pw,M as Vo,Ma as _t,Mb as cm,Mc as re,Me as X$,Mf as Rl,N as W,Na as ea,Nb as Zs,Nc as ue,Nd as Fn,Ne as du,Nf as Fr,O as Q,Oa as l$,Ob as zs,Oc as pm,Od as Li,Oe as $e,Of as _r,P as ca,Pa as H0,Pb as S$,Pd as jg,Pe as wi,Pf as mo,Q as ZU,Qa as G0,Qb as zo,Qc as _e,Qd as au,Qe as tW,Qf as no,R as ZS,Ra as U0,Rb as ps,Rc as ru,Rd as Ci,Re as _a,Rf as ya,S as q0,Sa as c$,Sb as js,Sc as ge,Sd as sn,Se as va,Sf as Ji,Ta as ht,Tb as Nh,Tc as Gn,Td as _w,Te as ba,Tf as vr,U as $n,Ua as Xe,Ub as sw,Uc as er,Ud as vw,Ue as Ca,Uf as dW,V as Rh,Va as vs,Vb as pb,Vc as fe,Vd as Ym,Ve as En,W as lb,Wa as m,Wb as lw,Wc as ha,Wd as Km,We as dn,Wf as kw,X as YO,Xa as d,Xb as Lt,Xc as is,Xd as Jm,Xe as Fe,Xf as Iw,Y as XU,Ya as Ye,Yb as fa,Yc as he,Yd as Pi,Ye as Be,Yf as uW,Z as t$,Za as Js,Zb as cw,Zc as A$,Zd as L$,Ze as Re,Zf as Tw,_ as XS,_a as pi,_b as te,_c as ou,_d as V$,_f as rl,a as ob,aa as e$,ab as $m,ac as es,ad as gw,ae as qg,af as Le,ag as Xn,b as ab,ba as Bg,bb as p$,bc as tr,bd as ns,be as Yo,bg as hn,c as ec,ca as l,cb as m$,cc as pw,cd as O$,ce as bw,cf as Ve,cg as fW,d as _s,da as i$,db as Ng,dc as Hi,dd as xe,de as j$,df as ze,dg as ol,e as zU,ea as n$,eb as io,ec as Dt,ed as Qm,ee as q$,f as jU,fa as ew,fb as se,fc as mw,fd as wt,fe as Xs,ff as je,fg as hW,g as qU,ga as V,gb as zt,gc as JO,gd as oe,ge as Cw,gf as qe,gg as xn,h as sb,ha as yt,hb as Ra,hc as w$,hd as Qo,he as H$,hg as Mw,i as Fh,ia as fn,ib as Na,ic as E$,id as Al,ie as G$,if as He,ig as t0,j as HU,ja as cb,jb as d$,jc as ZO,jd as me,je as U$,jf as eW,jg as gW,k as xr,ka as r$,kb as Ip,kc as dw,kd as Ol,ke as $$,kf as iW,l as GU,la as x,lb as u$,lc as uw,ld as Ue,le as W$,lf as ci,lg as Dw,m as UU,ma as Ir,mb as bs,mc as P$,md as ga,me as Q$,mf as nW,mg as na,n as Fg,na as g,nb as iw,nc as k$,nd as F$,ne as mm,nf as rW,ng as Dp,o as YS,oa as Xd,ob as Lg,oc as fw,od as Vg,oe as su,of as Bl,og as Co,p as $U,pa as kp,pb as nw,pc as qr,pd as $t,pe as lu,pf as xl,pg as Ap,q as Ec,qa as o$,qb as f$,qc as bo,qd as Te,qe as Y$,qf as Es,qg as Aw,r as Bh,ra as a,rb as rw,rc as ni,rd as rs,re as Cs,rf as Ps,rg as xW,s as KS,sa as s,sb as eu,sc as Ar,sd as zg,se as ys,sf as ks,t as Oo,ta as k,tb as h$,tc as Or,td as Si,te as cu,tf as oW,tg as Yr,u as WU,ua as ot,ub as St,uc as po,ud as Ht,ue as pu,uf as aW,v as Fo,va as at,vb as Yc,vc as Tr,vd as Mr,ve as tl,vf as yw,w as Gm,wa as kc,wb as g$,wc as hw,wd as Xt,we as el,wf as Gg,x as QU,xa as st,xb as x$,xc as I$,xd as De,xe as Zm,xf as Ug,y as YU,ya as q,yb as ow,yc as T$,yd as qs,ye as il,yf as Sw,z as Pc,za as A,zb as aw,zc as zi,zd as Oe,ze as nl,zf as sW}from"./chunk-DMOOHS3H.js";import{a as ye,b as oi,c as lm,d as LU,e as Pe,f as $O,g as Pp,h as Cr,i as WO,j as VU,k as cs,l as QS}from"./chunk-O7S4L63H.js";var Gh=Pe((Xg,Cb)=>{(function(){var e,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",n="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",h=500,_="__lodash_placeholder__",y=1,C=2,E=4,T=1,D=2,M=1,F=2,B=4,z=8,$=16,tt=32,lt=64,gt=128,X=256,mt=512,vt=30,Tt="...",Ct=800,Z=16,nt=1,xt=2,R=3,j=1/0,G=9007199254740991,H=17976931348623157e292,K=NaN,et=4294967295,ft=et-1,At=et>>>1,Ot=[["ary",gt],["bind",M],["bindKey",F],["curry",z],["curryRight",$],["flip",mt],["partial",tt],["partialRight",lt],["rearg",X]],Yt="[object Arguments]",dt="[object Array]",jt="[object AsyncFunction]",ct="[object Boolean]",rt="[object Date]",It="[object DOMException]",Kt="[object Error]",ke="[object Function]",ce="[object GeneratorFunction]",pe="[object Map]",si="[object Number]",ii="[object Null]",le="[object Object]",ti="[object Promise]",Ke="[object Proxy]",li="[object RegExp]",fi="[object Set]",di="[object String]",gi="[object Symbol]",Yi="[object Undefined]",Zi="[object WeakMap]",Xi="[object WeakSet]",On="[object ArrayBuffer]",pn="[object DataView]",kn="[object Float32Array]",Rr="[object Float64Array]",Un="[object Int8Array]",In="[object Int16Array]",Qn="[object Int32Array]",mn="[object Uint8Array]",ln="[object Uint8ClampedArray]",lr="[object Uint16Array]",vn="[object Uint32Array]",zn=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Yn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ar=/&(?:amp|lt|gt|quot|#39);/g,oa=/[&<>"']/g,Sr=RegExp(ar.source),wr=RegExp(oa.source),$s=/<%-([\s\S]+?)%>/g,pr=/<%([\s\S]+?)%>/g,sr=/<%=([\s\S]+?)%>/g,To=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/[\\^$.*+?()[\]{}|]/g,Er=RegExp(ds.source),Ze=/^\s+/,Ii=/\s/,Ri=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nn=/\{\n\/\* \[wrapped with (.+)\] \*/,Ur=/,? & /,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vn=/[()=,{}\[\]\/\s]/,Mo=/\\(\\)?/g,nr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bn=/\w*$/,to=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^\[object .+?Constructor\]$/,No=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,Xo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ss=/($^)/,za=/['\n\r\u2028\u2029\\]/g,Wa="\\ud800-\\udfff",Ae="\\u0300-\\u036f",yi="\\ufe20-\\ufe2f",$i="\\u20d0-\\u20ff",Vi=Ae+yi+$i,cn="\\u2700-\\u27bf",Rn="a-z\\xdf-\\xf6\\xf8-\\xff",jn="\\xac\\xb1\\xd7\\xf7",Lr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pr="\\u2000-\\u206f",mr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kr="A-Z\\xc0-\\xd6\\xd8-\\xde",aa="\\ufe0e\\ufe0f",ma=jn+Lr+Pr+mr,ho="['\u2019]",Lo="["+Wa+"]",da="["+ma+"]",us="["+Vi+"]",pl="\\d+",lc="["+cn+"]",Hl="["+Rn+"]",d0="[^"+Wa+ma+pl+cn+Rn+kr+"]",op="\\ud83c[\\udffb-\\udfff]",xo="(?:"+us+"|"+op+")",Eo="[^"+Wa+"]",cc="(?:\\ud83c[\\udde6-\\uddff]){2}",El="[\\ud800-\\udbff][\\udc00-\\udfff]",Rc="["+kr+"]",ja="\\u200d",Ws="(?:"+Hl+"|"+d0+")",ap="(?:"+Rc+"|"+d0+")",Nc="(?:"+ho+"(?:d|ll|m|re|s|t|ve))?",Qp="(?:"+ho+"(?:D|LL|M|RE|S|T|VE))?",Yp=xo+"?",Gl="["+aa+"]?",Kp="(?:"+ja+"(?:"+[Eo,cc,El].join("|")+")"+Gl+Yp+")*",bd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sm=Gl+Yp+Kp,yd="(?:"+[lc,cc,El].join("|")+")"+Sm,E1="(?:"+[Eo+us+"?",us,cc,El,Lo].join("|")+")",wm=RegExp(ho,"g"),Sd=RegExp(us,"g"),P1=RegExp(op+"(?="+op+")|"+E1+Sm,"g"),DC=RegExp([Rc+"?"+Hl+"+"+Nc+"(?="+[da,Rc,"$"].join("|")+")",ap+"+"+Qp+"(?="+[da,Rc+Ws,"$"].join("|")+")",Rc+"?"+Ws+"+"+Nc,Rc+"+"+Qp,Cd,bd,pl,yd].join("|"),"g"),AC=RegExp("["+ja+Wa+Vi+aa+"]"),Df=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gA=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],C_=-1,ta={};ta[kn]=ta[Rr]=ta[Un]=ta[In]=ta[Qn]=ta[mn]=ta[ln]=ta[lr]=ta[vn]=!0,ta[Yt]=ta[dt]=ta[On]=ta[ct]=ta[pn]=ta[rt]=ta[Kt]=ta[ke]=ta[pe]=ta[si]=ta[le]=ta[li]=ta[fi]=ta[di]=ta[Zi]=!1;var fr={};fr[Yt]=fr[dt]=fr[On]=fr[pn]=fr[ct]=fr[rt]=fr[kn]=fr[Rr]=fr[Un]=fr[In]=fr[Qn]=fr[pe]=fr[si]=fr[le]=fr[li]=fr[fi]=fr[di]=fr[gi]=fr[mn]=fr[ln]=fr[lr]=fr[vn]=!0,fr[Kt]=fr[ke]=fr[Zi]=!1;var xA={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},y_={"&":"&","<":"<",">":">",'"':""","'":"'"},OC={"&":"&","<":"<",">":">",""":'"',"'":"'"},Af={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},S_=parseFloat,wd=parseInt,w_=typeof global=="object"&&global&&global.Object===Object&&global,E_=typeof self=="object"&&self&&self.Object===Object&&self,fs=w_||E_||Function("return this")(),k1=typeof Xg=="object"&&Xg&&!Xg.nodeType&&Xg,u0=k1&&typeof Cb=="object"&&Cb&&!Cb.nodeType&&Cb,I1=u0&&u0.exports===k1,P_=I1&&w_.process,pc=function(){try{var ui=u0&&u0.require&&u0.require("util").types;return ui||P_&&P_.binding&&P_.binding("util")}catch{}}(),FC=pc&&pc.isArrayBuffer,Of=pc&&pc.isDate,T1=pc&&pc.isMap,BC=pc&&pc.isRegExp,RC=pc&&pc.isSet,NC=pc&&pc.isTypedArray;function Ul(ui,ji,bi){switch(bi.length){case 0:return ui.call(ji);case 1:return ui.call(ji,bi[0]);case 2:return ui.call(ji,bi[0],bi[1]);case 3:return ui.call(ji,bi[0],bi[1],bi[2])}return ui.apply(ji,bi)}function Ed(ui,ji,bi,qn){for(var Dr=-1,ro=ui==null?0:ui.length;++Dr-1}function M1(ui,ji,bi){for(var qn=-1,Dr=ui==null?0:ui.length;++qn-1;);return bi}function GC(ui,ji){for(var bi=ui.length;bi--&&f0(ji,ui[bi],0)>-1;);return bi}function h0(ui,ji){for(var bi=ui.length,qn=0;bi--;)ui[bi]===ji&&++qn;return qn}var Lf=Rf(xA),bA=Rf(y_);function CA(ui){return"\\"+Af[ui]}function L1(ui,ji){return ui==null?e:ui[ji]}function Pm(ui){return AC.test(ui)}function yA(ui){return Df.test(ui)}function SA(ui){for(var ji,bi=[];!(ji=ui.next()).done;)bi.push(ji.value);return bi}function O_(ui){var ji=-1,bi=Array(ui.size);return ui.forEach(function(qn,Dr){bi[++ji]=[Dr,qn]}),bi}function F_(ui,ji){return function(bi){return ui(ji(bi))}}function Zp(ui,ji){for(var bi=-1,qn=ui.length,Dr=0,ro=[];++bi-1}function LA(L,Y){var ut=this.__data__,Ft=Qf(ut,L);return Ft<0?(++this.size,ut.push([L,Y])):ut[Ft][1]=Y,this}pp.prototype.clear=z1,pp.prototype.delete=oy,pp.prototype.get=RA,pp.prototype.has=NA,pp.prototype.set=LA;function mp(L){var Y=-1,ut=L==null?0:L.length;for(this.clear();++Y=Y?L:Y)),L}function Pl(L,Y,ut,Ft,ee,we){var Qe,ri=Y&y,hi=Y&C,Ui=Y&E;if(ut&&(Qe=ee?ut(L,Ft,ee,we):ut(L)),Qe!==e)return Qe;if(!Pa(L))return L;var Wi=Vr(L);if(Wi){if(Qe=qy(L),!ri)return Yl(L,Qe)}else{var rn=Fs(L),Mn=rn==ke||rn==ce;if(Vm(L))return My(L,ri);if(rn==le||rn==Yt||Mn&&!ee){if(Qe=hi||Mn?{}:ag(L),!ri)return hi?r7(L,hy(Qe,L)):n7(L,Yf(Qe,L))}else{if(!fr[rn])return ee?L:{};Qe=mh(L,rn,ri)}}we||(we=new Wl);var Zn=we.get(L);if(Zn)return Zn;we.set(L,Qe),Ud(L)?L.forEach(function(gr){Qe.add(Pl(gr,Y,ut,gr,L,we))}):Dv(L)&&L.forEach(function(gr,so){Qe.set(so,Pl(gr,Y,ut,so,L,we))});var ur=Ui?hi?ch:lh:hi?hl:ls,Qr=Wi?e:ur(L);return mc(Qr||L,function(gr,so){Qr&&(so=gr,gr=L[so]),Po(Qe,so,Pl(gr,Y,ut,so,L,we))}),Qe}function gy(L){var Y=ls(L);return function(ut){return xy(ut,L,Y)}}function xy(L,Y,ut){var Ft=ut.length;if(L==null)return!Ft;for(L=Go(L);Ft--;){var ee=ut[Ft],we=Y[ee],Qe=L[ee];if(Qe===e&&!(ee in L)||!we(Qe))return!1}return!0}function Kf(L,Y,ut){if(typeof L!="function")throw new ml(n);return Bm(function(){L.apply(e,ut)},Y)}function Jf(L,Y,ut,Ft){var ee=-1,we=Ff,Qe=!0,ri=L.length,hi=[],Ui=Y.length;if(!ri)return hi;ut&&(Y=sa(Y,$l(ut))),Ft?(we=M1,Qe=!1):Y.length>=i&&(we=Nf,Qe=!1,Y=new gc(Y));t:for(;++eeee?0:ee+ut),Ft=Ft===e||Ft>ee?ee:Jn(Ft),Ft<0&&(Ft+=ee),Ft=ut>Ft?0:Ha(Ft);ut0&&ut(ri)?Y>1?As(ri,Y-1,ut,Ft,ee):Em(ee,ri):Ft||(ee[ee.length]=ri)}return ee}var G1=By(),Cy=By(!0);function xc(L,Y){return L&&G1(L,Y,ls)}function Zf(L,Y){return L&&Cy(L,Y,ls)}function Bd(L,Y){return Jp(Y,function(ut){return rm(L[ut])})}function v0(L,Y){Y=hp(Y,L);for(var ut=0,Ft=Y.length;L!=null&&utY}function GA(L,Y){return L!=null&&bn.call(L,Y)}function UA(L,Y){return L!=null&&Y in Go(L)}function yy(L,Y,ut){return L>=hs(Y,ut)&&L=120&&Wi.length>=120)?new gc(Qe&&Wi):e}Wi=L[0];var rn=-1,Mn=ri[0];t:for(;++rn-1;)ri!==L&&Lc.call(ri,hi,1),Lc.call(L,hi,1);return L}function J_(L,Y){for(var ut=L?Y.length:0,Ft=ut-1;ut--;){var ee=Y[ut];if(ut==Ft||ee!==we){var we=ee;_p(ee)?Lc.call(L,ee,1):ev(L,ee)}}return L}function th(L,Y){return L+Uf(ny()*(Y-L+1))}function J1(L,Y,ut,Ft){for(var ee=-1,we=Ka(Gf((Y-L)/(ut||1)),0),Qe=bi(we);we--;)Qe[Ft?we:++ee]=L,L+=ut;return Qe}function Z_(L,Y){var ut="";if(!L||Y<1||Y>G)return ut;do Y%2&&(ut+=L),Y=Uf(Y/2),Y&&(L+=L);while(Y);return ut}function Xr(L,Y){return sg(Qy(L,Y,jr),L+"")}function YA(L){return Dm(R0(L))}function X_(L,Y){var ut=R0(L);return gh(ut,_0(Y,0,ut.length))}function eh(L,Y,ut,Ft){if(!Pa(L))return L;Y=hp(Y,L);for(var ee=-1,we=Y.length,Qe=we-1,ri=L;ri!=null&&++eeee?0:ee+Y),ut=ut>ee?ee:ut,ut<0&&(ut+=ee),ee=Y>ut?0:ut-Y>>>0,Y>>>=0;for(var we=bi(ee);++Ft>>1,Qe=L[we];Qe!==null&&!Rs(Qe)&&(ut?Qe<=Y:Qe=i){var Ui=Y?null:zd(L);if(Ui)return V1(Ui);Qe=!1,ee=Nf,hi=new gc}else hi=Y?[]:ri;t:for(;++Ft=Ft?L:_c(L,Y,ut)}var eg=ZC||function(L){return fs.clearTimeout(L)};function My(L,Y){if(Y)return L.slice();var ut=L.length,Ft=R_?R_(ut):new L.constructor(ut);return L.copy(Ft),Ft}function ov(L){var Y=new L.constructor(L.byteLength);return new Td(Y).set(new Td(L)),Y}function t7(L,Y){var ut=Y?ov(L.buffer):L.buffer;return new L.constructor(ut,L.byteOffset,L.byteLength)}function C0(L){var Y=new L.constructor(L.source,Bn.exec(L));return Y.lastIndex=L.lastIndex,Y}function e7(L){return Qs?Go(Qs.call(L)):{}}function av(L,Y){var ut=Y?ov(L.buffer):L.buffer;return new L.constructor(ut,L.byteOffset,L.length)}function Dy(L,Y){if(L!==Y){var ut=L!==e,Ft=L===null,ee=L===L,we=Rs(L),Qe=Y!==e,ri=Y===null,hi=Y===Y,Ui=Rs(Y);if(!ri&&!Ui&&!we&&L>Y||we&&Qe&&hi&&!ri&&!Ui||Ft&&Qe&&hi||!ut&&hi||!ee)return 1;if(!Ft&&!we&&!Ui&&L=ri)return hi;var Ui=ut[Ft];return hi*(Ui=="desc"?-1:1)}}return L.index-Y.index}function Ay(L,Y,ut,Ft){for(var ee=-1,we=L.length,Qe=ut.length,ri=-1,hi=Y.length,Ui=Ka(we-Qe,0),Wi=bi(hi+Ui),rn=!Ft;++ri1?ut[ee-1]:e,Qe=ee>2?ut[2]:e;for(we=L.length>3&&typeof we=="function"?(ee--,we):e,Qe&&Ys(ut[0],ut[1],Qe)&&(we=ee<3?e:we,ee=1),Y=Go(Y);++Ft-1?ee[we?Y[Qe]:Qe]:e}}function Vd(L){return nm(function(Y){var ut=Y.length,Ft=ut,ee=hc.prototype.thru;for(L&&Y.reverse();Ft--;){var we=Y[Ft];if(typeof we!="function")throw new ml(n);if(ee&&!Qe&&k0(we)=="wrapper")var Qe=new hc([],!0)}for(Ft=Qe?Ft:ut;++Ft1&&go.reverse(),Wi&&hiri))return!1;var Ui=we.get(L),Wi=we.get(Y);if(Ui&&Wi)return Ui==Y&&Wi==L;var rn=-1,Mn=!0,Zn=ut&D?new gc:e;for(we.set(L,Y),we.set(Y,L);++rn1?"& ":"")+Y[Ft],Y=Y.join(ut>2?", ":" "),L.replace(Ri,`{ /* [wrapped with `+Y+`] */ `)}function Gy(L){return Vr(L)||F0(L)||!!(Hf&&L&&L[Hf])}function _p(L,Y){var ut=typeof L;return Y=Y??G,!!Y&&(ut=="number"||ut!="symbol"&&pa.test(L))&&L>-1&&L%1==0&&L0){if(++Y>=Ct)return arguments[0]}else Y=0;return L.apply(e,arguments)}}function gh(L,Y){var ut=-1,Ft=L.length,ee=Ft-1;for(Y=Y===e?Ft:Y;++ut1?L[Y-1]:e;return ut=typeof ut=="function"?(L.pop(),ut):e,Cc(L,ut)});function vv(L){var Y=be(L);return Y.__chain__=!0,Y}function R7(L,Y){return Y(L),L}function D0(L,Y){return Y(L)}var N7=nm(function(L){var Y=L.length,ut=Y?L[0]:0,Ft=this.__wrapped__,ee=function(we){return q1(we,L)};return Y>1||this.__actions__.length||!(Ft instanceof oo)||!_p(ut)?this.thru(ee):(Ft=Ft.slice(ut,+ut+(Y?1:0)),Ft.__actions__.push({func:D0,args:[ee],thisArg:e}),new hc(Ft,this.__chain__).thru(function(we){return Y&&!we.length&&we.push(e),we}))});function L7(){return vv(this)}function V7(){return new hc(this.value(),this.__chain__)}function f3(){this.__values__===e&&(this.__values__=fl(this.value()));var L=this.__index__>=this.__values__.length,Y=L?e:this.__values__[this.__index__++];return{done:L,value:Y}}function z7(){return this}function j7(L){for(var Y,ut=this;ut instanceof Fd;){var Ft=I0(ut);Ft.__index__=0,Ft.__values__=e,Y?ee.__wrapped__=Ft:Y=Ft;var ee=Ft;ut=ut.__wrapped__}return ee.__wrapped__=L,Y}function h3(){var L=this.__wrapped__;if(L instanceof oo){var Y=L;return this.__actions__.length&&(Y=new oo(this)),Y=Y.reverse(),Y.__actions__.push({func:D0,args:[pg],thisArg:e}),new hc(Y,this.__chain__)}return this.thru(pg)}function bv(){return iv(this.__wrapped__,this.__actions__)}var g3=nh(function(L,Y,ut){bn.call(L,ut)?++L[ut]:em(L,ut,1)});function x3(L,Y,ut){var Ft=Vr(L)?k_:HA;return ut&&Ys(L,Y,ut)&&(Y=e),Ft(L,dr(Y,3))}function q7(L,Y){var ut=Vr(L)?Jp:by;return ut(L,dr(Y,3))}var _3=sv(gv),Xl=sv(Zy);function v3(L,Y){return As(A0(L,Y),1)}function H7(L,Y){return As(A0(L,Y),j)}function b3(L,Y,ut){return ut=ut===e?1:Jn(ut),As(A0(L,Y),ut)}function dg(L,Y){var ut=Vr(L)?mc:im;return ut(L,dr(Y,3))}function C3(L,Y){var ut=Vr(L)?LC:_y;return ut(L,dr(Y,3))}var G7=nh(function(L,Y,ut){bn.call(L,ut)?L[ut].push(Y):em(L,ut,[Y])});function tc(L,Y,ut,Ft){L=kl(L)?L:R0(L),ut=ut&&!Ft?Jn(ut):0;var ee=L.length;return ut<0&&(ut=Ka(ee+ut,0)),Ph(L)?ut<=ee&&L.indexOf(Y,ut)>-1:!!ee&&f0(L,Y,ut)>-1}var U7=Xr(function(L,Y,ut){var Ft=-1,ee=typeof Y=="function",we=kl(L)?bi(L.length):[];return im(L,function(Qe){we[++Ft]=ee?Ul(Y,Qe,ut):Rd(Qe,Y,ut)}),we}),$7=nh(function(L,Y,ut){em(L,ut,Y)});function A0(L,Y){var ut=Vr(L)?sa:Y_;return ut(L,dr(Y,3))}function Uc(L,Y,ut,Ft){return L==null?[]:(Vr(Y)||(Y=Y==null?[]:[Y]),ut=Ft?e:ut,Vr(ut)||(ut=ut==null?[]:[ut]),K_(L,Y,ut))}var W7=nh(function(L,Y,ut){L[ut?0:1].push(Y)},function(){return[[],[]]});function bh(L,Y,ut){var Ft=Vr(L)?D1:B1,ee=arguments.length<3;return Ft(L,dr(Y,4),ut,ee,im)}function y3(L,Y,ut){var Ft=Vr(L)?_A:B1,ee=arguments.length<3;return Ft(L,dr(Y,4),ut,ee,_y)}function Q7(L,Y){var ut=Vr(L)?Jp:by;return ut(L,ug(dr(Y,3)))}function S3(L){var Y=Vr(L)?Dm:YA;return Y(L)}function w3(L,Y,ut){(ut?Ys(L,Y,ut):Y===e)?Y=1:Y=Jn(Y);var Ft=Vr(L)?jA:X_;return Ft(L,Y)}function E3(L){var Y=Vr(L)?fy:JA;return Y(L)}function Ch(L){if(L==null)return 0;if(kl(L))return Ph(L)?Pd(L):L.length;var Y=Fs(L);return Y==pe||Y==fi?L.size:Q_(L).length}function P3(L,Y,ut){var Ft=Vr(L)?A1:ZA;return ut&&Ys(L,Y,ut)&&(Y=e),Ft(L,dr(Y,3))}var k3=Xr(function(L,Y){if(L==null)return[];var ut=Y.length;return ut>1&&Ys(L,Y[0],Y[1])?Y=[]:ut>2&&Ys(Y[0],Y[1],Y[2])&&(Y=[Y[0]]),K_(L,As(Y,1),[])}),Gd=L_||function(){return fs.Date.now()};function I3(L,Y){if(typeof Y!="function")throw new ml(n);return L=Jn(L),function(){if(--L<1)return Y.apply(this,arguments)}}function Cv(L,Y,ut){return Y=ut?e:Y,Y=L&&Y==null?L.length:Y,qc(L,gt,e,e,e,e,Y)}function yv(L,Y){var ut;if(typeof Y!="function")throw new ml(n);return L=Jn(L),function(){return--L>0&&(ut=Y.apply(this,arguments)),L<=1&&(Y=e),ut}}var Sv=Xr(function(L,Y,ut){var Ft=M;if(ut.length){var ee=Zp(ut,qd(Sv));Ft|=tt}return qc(L,Ft,Y,ut,ee)}),T3=Xr(function(L,Y,ut){var Ft=M|F;if(ut.length){var ee=Zp(ut,qd(T3));Ft|=tt}return qc(Y,Ft,L,ut,ee)});function wv(L,Y,ut){Y=ut?e:Y;var Ft=qc(L,z,e,e,e,e,e,Y);return Ft.placeholder=wv.placeholder,Ft}function Ev(L,Y,ut){Y=ut?e:Y;var Ft=qc(L,$,e,e,e,e,e,Y);return Ft.placeholder=Ev.placeholder,Ft}function Pv(L,Y,ut){var Ft,ee,we,Qe,ri,hi,Ui=0,Wi=!1,rn=!1,Mn=!0;if(typeof L!="function")throw new ml(n);Y=la(Y)||0,Pa(ut)&&(Wi=!!ut.leading,rn="maxWait"in ut,we=rn?Ka(la(ut.maxWait)||0,Y):we,Mn="trailing"in ut?!!ut.trailing:Mn);function Zn(Ga){var Wc=Ft,Qc=ee;return Ft=ee=e,Ui=Ga,Qe=L.apply(Qc,Wc),Qe}function ur(Ga){return Ui=Ga,ri=Bm(so,Y),Wi?Zn(Ga):Qe}function Qr(Ga){var Wc=Ga-hi,Qc=Ga-Ui,Kv=Y-Wc;return rn?hs(Kv,we-Qc):Kv}function gr(Ga){var Wc=Ga-hi,Qc=Ga-Ui;return hi===e||Wc>=Y||Wc<0||rn&&Qc>=we}function so(){var Ga=Gd();if(gr(Ga))return go(Ga);ri=Bm(so,Qr(Ga))}function go(Ga){return ri=e,Mn&&Ft?Zn(Ga):(Ft=ee=e,Qe)}function Il(){ri!==e&&eg(ri),Ui=0,Ft=hi=ee=ri=e}function gl(){return ri===e?Qe:go(Gd())}function Tl(){var Ga=Gd(),Wc=gr(Ga);if(Ft=arguments,ee=this,hi=Ga,Wc){if(ri===e)return ur(hi);if(rn)return eg(ri),ri=Bm(so,Y),Zn(hi)}return ri===e&&(ri=Bm(so,Y)),Qe}return Tl.cancel=Il,Tl.flush=gl,Tl}var Y7=Xr(function(L,Y){return Kf(L,1,Y)}),K7=Xr(function(L,Y,ut){return Kf(L,la(Y)||0,ut)});function J7(L){return qc(L,mt)}function yh(L,Y){if(typeof L!="function"||Y!=null&&typeof Y!="function")throw new ml(n);var ut=function(){var Ft=arguments,ee=Y?Y.apply(this,Ft):Ft[0],we=ut.cache;if(we.has(ee))return we.get(ee);var Qe=L.apply(this,Ft);return ut.cache=we.set(ee,Qe)||we,Qe};return ut.cache=new(yh.Cache||mp),ut}yh.Cache=mp;function ug(L){if(typeof L!="function")throw new ml(n);return function(){var Y=arguments;switch(Y.length){case 0:return!L.call(this);case 1:return!L.call(this,Y[0]);case 2:return!L.call(this,Y[0],Y[1]);case 3:return!L.call(this,Y[0],Y[1],Y[2])}return!L.apply(this,Y)}}function Z7(L){return yv(2,L)}var M3=XA(function(L,Y){Y=Y.length==1&&Vr(Y[0])?sa(Y[0],$l(dr())):sa(As(Y,1),$l(dr()));var ut=Y.length;return Xr(function(Ft){for(var ee=-1,we=hs(Ft.length,ut);++ee=Y}),F0=U_(function(){return arguments}())?U_:function(L){return Fa(L)&&bn.call(L,"callee")&&!N_.call(L,"callee")},Vr=bi.isArray,i8=FC?$l(FC):Sy;function kl(L){return L!=null&&wh(L.length)&&!rm(L)}function qa(L){return Fa(L)&&kl(L)}function n8(L){return L===!0||L===!1||Fa(L)&&Os(L)==ct}var Vm=IA||yg,r8=Of?$l(Of):an;function o8(L){return Fa(L)&&L.nodeType===1&&!Bs(L)}function B0(L){if(L==null)return!0;if(kl(L)&&(Vr(L)||typeof L=="string"||typeof L.splice=="function"||Vm(L)||vp(L)||F0(L)))return!L.length;var Y=Fs(L);if(Y==pe||Y==fi)return!L.size;if(fh(L))return!Q_(L).length;for(var ut in L)if(bn.call(L,ut))return!1;return!0}function a8(L,Y){return Nd(L,Y)}function s8(L,Y,ut){ut=typeof ut=="function"?ut:e;var Ft=ut?ut(L,Y):e;return Ft===e?Nd(L,Y,e,ut):!!Ft}function hg(L){if(!Fa(L))return!1;var Y=Os(L);return Y==Kt||Y==It||typeof L.message=="string"&&typeof L.name=="string"&&!Bs(L)}function l8(L){return typeof L=="number"&&z_(L)}function rm(L){if(!Pa(L))return!1;var Y=Os(L);return Y==ke||Y==ce||Y==jt||Y==Ke}function N3(L){return typeof L=="number"&&L==Jn(L)}function wh(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=G}function Pa(L){var Y=typeof L;return L!=null&&(Y=="object"||Y=="function")}function Fa(L){return L!=null&&typeof L=="object"}var Dv=T1?$l(T1):wy;function c8(L,Y){return L===Y||$1(L,Y,cv(Y))}function p8(L,Y,ut){return ut=typeof ut=="function"?ut:e,$1(L,Y,cv(Y),ut)}function m8(L){return Ov(L)&&L!=+L}function d8(L){if(Uy(L))throw new Dr(o);return $_(L)}function u8(L){return L===null}function Av(L){return L==null}function Ov(L){return typeof L=="number"||Fa(L)&&Os(L)==si}function Bs(L){if(!Fa(L)||Os(L)!=le)return!1;var Y=ua(L);if(Y===null)return!0;var ut=bn.call(Y,"constructor")&&Y.constructor;return typeof ut=="function"&&ut instanceof ut&&Id.call(ut)==KC}var Eh=BC?$l(BC):Ey;function L3(L){return N3(L)&&L>=-G&&L<=G}var Ud=RC?$l(RC):W1;function Ph(L){return typeof L=="string"||!Vr(L)&&Fa(L)&&Os(L)==di}function Rs(L){return typeof L=="symbol"||Fa(L)&&Os(L)==gi}var vp=NC?$l(NC):WA;function V3(L){return L===e}function ko(L){return Fa(L)&&Fs(L)==Zi}function xs(L){return Fa(L)&&Os(L)==Xi}var $o=w0(Y1),Ba=w0(function(L,Y){return L<=Y});function fl(L){if(!L)return[];if(kl(L))return Ph(L)?dc(L):Yl(L);if(Dd&&L[Dd])return SA(L[Dd]());var Y=Fs(L),ut=Y==pe?O_:Y==fi?V1:R0;return ut(L)}function bp(L){if(!L)return L===0?L:0;if(L=la(L),L===j||L===-j){var Y=L<0?-1:1;return Y*H}return L===L?L:0}function Jn(L){var Y=bp(L),ut=Y%1;return Y===Y?ut?Y-ut:Y:0}function Ha(L){return L?_0(Jn(L),0,et):0}function la(L){if(typeof L=="number")return L;if(Rs(L))return K;if(Pa(L)){var Y=typeof L.valueOf=="function"?L.valueOf():L;L=Pa(Y)?Y+"":Y}if(typeof L!="string")return L===0?L:+L;L=D_(L);var ut=zr.test(L);return ut||No.test(L)?wd(L.slice(2),ut?2:8):to.test(L)?K:+L}function Cp(L){return gp(L,hl(L))}function yp(L){return L?_0(Jn(L),-G,G):L===0?L:0}function Wr(L){return L==null?"":dl(L)}var f8=y0(function(L,Y){if(fh(Y)||kl(Y)){gp(Y,ls(Y),L);return}for(var ut in Y)bn.call(Y,ut)&&Po(L,ut,Y[ut])}),gg=y0(function(L,Y){gp(Y,hl(Y),L)}),ao=y0(function(L,Y,ut,Ft){gp(Y,hl(Y),L,Ft)}),h8=y0(function(L,Y,ut,Ft){gp(Y,ls(Y),L,Ft)}),z3=nm(q1);function g8(L,Y){var ut=Tm(L);return Y==null?ut:Yf(ut,Y)}var x8=Xr(function(L,Y){L=Go(L);var ut=-1,Ft=Y.length,ee=Ft>2?Y[2]:e;for(ee&&Ys(Y[0],Y[1],ee)&&(Ft=1);++ut1),we}),gp(L,ch(L),ut),Ft&&(ut=Pl(ut,y|C|E,Ny));for(var ee=Y.length;ee--;)ev(ut,Y[ee]);return ut});function xg(L,Y){return Q3(L,ug(dr(Y)))}var P8=nm(function(L,Y){return L==null?{}:b0(L,Y)});function Q3(L,Y){if(L==null)return{};var ut=sa(ch(L),function(Ft){return[Ft]});return Y=dr(Y),qo(L,ut,function(Ft,ee){return Y(Ft,ee[0])})}function k8(L,Y,ut){Y=hp(Y,L);var Ft=-1,ee=Y.length;for(ee||(ee=1,L=e);++FtY){var Ft=L;L=Y,Y=Ft}if(ut||L%1||Y%1){var ee=ny();return hs(L+ee*(Y-L+S_("1e-"+((ee+"").length-1))),Y)}return th(L,Y)}var O8=Fm(function(L,Y,ut){return Y=Y.toLowerCase(),L+(ut?eS(Y):Y)});function eS(L){return Vv(Wr(L).toLowerCase())}function Nv(L){return L=Wr(L),L&&L.replace(Xo,Lf).replace(Sd,"")}function F8(L,Y,ut){L=Wr(L),Y=dl(Y);var Ft=L.length;ut=ut===e?Ft:_0(Jn(ut),0,Ft);var ee=ut;return ut-=Y.length,ut>=0&&L.slice(ut,ee)==Y}function Qd(L){return L=Wr(L),L&&wr.test(L)?L.replace(oa,bA):L}function B8(L){return L=Wr(L),L&&Er.test(L)?L.replace(ds,"\\$&"):L}var om=Fm(function(L,Y,ut){return L+(ut?"-":"")+Y.toLowerCase()}),R8=Fm(function(L,Y,ut){return L+(ut?" ":"")+Y.toLowerCase()}),iS=Ry("toLowerCase");function nS(L,Y,ut){L=Wr(L),Y=Jn(Y);var Ft=Y?Pd(L):0;if(!Y||Ft>=Y)return L;var ee=(Y-Ft)/2;return xp(Uf(ee),ut)+L+xp(Gf(ee),ut)}function kh(L,Y,ut){L=Wr(L),Y=Jn(Y);var Ft=Y?Pd(L):0;return Y&&Ft>>0,ut?(L=Wr(L),L&&(typeof Y=="string"||Y!=null&&!Eh(Y))&&(Y=dl(Y),!Y&&Pm(L))?Om(dc(L),0,ut):L.split(Y,ut)):[]}var sS=Fm(function(L,Y,ut){return L+(ut?" ":"")+Vv(Y)});function lS(L,Y,ut){return L=Wr(L),ut=ut==null?0:_0(Jn(ut),0,L.length),Y=dl(Y),L.slice(ut,ut+Y.length)==Y}function cS(L,Y,ut){var Ft=be.templateSettings;ut&&Ys(L,Y,ut)&&(Y=e),L=Wr(L),Y=ao({},Y,Ft,jd);var ee=ao({},Y.imports,Ft.imports,jd),we=ls(ee),Qe=A_(ee,we),ri,hi,Ui=0,Wi=Y.interpolate||ss,rn="__p += '",Mn=B_((Y.escape||ss).source+"|"+Wi.source+"|"+(Wi===sr?nr:ss).source+"|"+(Y.evaluate||ss).source+"|$","g"),Zn="//# sourceURL="+(bn.call(Y,"sourceURL")?(Y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++C_+"]")+` `;L.replace(Mn,function(gr,so,go,Il,gl,Tl){return go||(go=Il),rn+=L.slice(Ui,Tl).replace(za,CA),so&&(ri=!0,rn+=`' + @@ -12540,7 +12540,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(57,"mat-paginator",13),t(58,` `),s(),t(59,` `),s(),t(60,` -`)),o&2&&(l(5),b(d(6,5,"labels.heading.Charges Overview")),l(3),g("dataSource",n.dataSource),l(44),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(7,GOt)))},dependencies:[St,io,wt,oe,Gi,Et,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,Je,mo],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.charges-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%}"]})}}return e})();var HF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.params.clientId;return this.clientsService.getAllClientCharges(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var GF=(()=>{class e{constructor(i,o){this.clientsService=i,this.productsService=o}resolve(i){let o=i.paramMap.get("name"),n=i.paramMap.get("clientId")||i.parent.parent.paramMap.get("clientId");switch(o){case"Survey":return this.clientsService.getSurveys(n);case"Take Survey":return this.clientsService.getAllSurveysType();case"Close":return this.clientsService.getClientCommandTemplate("close");case"Reject":return this.clientsService.getClientCommandTemplate("reject");case"Withdraw":return this.clientsService.getClientCommandTemplate("withdraw");case"Transfer Client":return this.clientsService.getOffices();case"Add Charge":return this.clientsService.getClientChargeTemplate(n);case"Create Collateral":return this.productsService.getCollaterals();case"Client Screen Reports":return this.clientsService.getClientReportTemplates();case"Assign Staff":case"Update Default Savings":return this.clientsService.getClientDataAndTemplate(n);case"Undo Transfer":case"Accept Transfer":case"Reject Transfer":return this.clientsService.getClientTransferProposalDate(n);default:return}}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji),Qt(ki))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var UF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.parent.parent.paramMap.get("clientId"),n=i.paramMap.get("chargeId");return this.clientsService.getSelectedChargeData(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var $F=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.parent.parent.paramMap.get("clientId"),n=i.paramMap.get("chargeId");return this.clientsService.getClientTransactionPay(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var WF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.paramMap.get("clientId");return this.clientsService.getClientDataAndTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var QF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.paramMap.get("clientId");return this.clientsService.getCollateralTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var o9t=[uo.withShell([{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:"",component:r5},{path:"create",data:{title:"Create Client",breadcrumb:"Create Client",routeParamBreadcrumb:!1},component:Y5,resolve:{clientAddressFieldConfig:J5,clientTemplate:xx}},{path:":clientId",component:f5,data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:K5,clientTemplateData:xx,clientDatatables:VF},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:h5,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{clientAccountsData:DF,clientChargesData:OF,clientCollateralData:QF}},{path:"address",component:S5,data:{title:"Address",breadcrumb:"Address",routeParamBreadcrumb:!1},resolve:{clientAddressFieldConfig:J5,clientAddressTemplateData:qF,clientAddressData:AF}},{path:"family-members",data:{title:"Family Members",breadcrumb:"Family Members",routeParamBreadcrumb:!1},children:[{path:"",component:g5,resolve:{clientFamilyMembers:FF}},{path:"add",component:x5,data:{title:"Add",breadcrumb:"Add",routeParamBreadcrumb:!1},resolve:{clientTemplate:xx}},{path:":familyMemberId",children:[{path:"edit",component:_5,data:{title:"Family Member View",routeParamBreadcrumb:"familyMemberId"},resolve:{clientTemplate:xx,editFamilyMember:BF}}]}]},{path:"identities",component:v5,data:{title:"Identities",breadcrumb:"Identities",routeParamBreadcrumb:!1},resolve:{clientIdentities:RF,clientIdentifierTemplate:jF}},{path:"documents",component:C5,data:{title:"Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{clientDocuments:LF}},{path:"notes",component:b5,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{clientNotes:NF}},{path:"datatables",children:[{path:":datatableName",component:y5,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{clientDatatable:zF}}]}]}]},{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:":clientId",data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:K5},children:[{path:"edit",data:{title:"Edit Client",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:G5,resolve:{clientDataAndTemplate:WF}},{path:"actions/:name",data:{title:"Client Actions",routeParamBreadcrumb:"name"},component:j5,resolve:{clientActionData:GF}},{path:"charges",children:[{path:"overview",data:{title:"Charges Overview",breadcrumb:"Charges Overview"},component:Z5,resolve:{clientChargesData:HF}},{path:":chargeId",data:{title:"Charges",routeParamBreadcrumb:"chargeId"},children:[{path:"",component:q5,resolve:{clientChargeData:UF}},{path:"pay",data:{title:"Pay Charge",routeParamBreadcrumb:!1},component:H5,resolve:{transactionData:$F}}]}]},{path:"loans-accounts",loadChildren:()=>import("./loans.module-DH6CK4QK.js").then(e=>e.LoansModule)},{path:"client-collateral",loadChildren:()=>import("./collaterals.module-IEV4WYRD.js").then(e=>e.CollateralsModule)},{path:"fixed-deposits-accounts",loadChildren:()=>import("./fixed-deposits.module-7KCGLT35.js").then(e=>e.FixedDepositsModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-P7MHCOQW.js").then(e=>e.SavingsModule)},{path:"recurring-deposits-accounts",loadChildren:()=>import("./recurring-deposits.module-OBZI5O5Q.js").then(e=>e.RecurringDepositsModule)},{path:"shares-accounts",loadChildren:()=>import("./shares.module-OP7N65KT.js").then(e=>e.SharesModule)},{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-5U5L3F6Y.js").then(e=>e.AccountTransfersModule)}]}]}])],vJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[K5,DF,AF,OF,_J,FF,BF,xx,RF,NF,LF,VF,zF,jF,J5,qF,HF,GF,UF,$F,WF,QF],imports:[tr.forChild(o9t),tr]})}}return e})();var a9t=e=>({editForm:e}),bJ=(()=>{class e{constructor(i,o,n){this.dialogRef=i,this.formBuilder=o,this.data=n}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:[this.data.noteContent,bt.required]})}static{this.\u0275fac=function(o){return new(o||e)(V(qr),V(xe),V(bo))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-notes-dialog"]],decls:27,vars:14,consts:[["formRef","ngForm"],["mat-dialog-title",""],[3,"formGroup"],["formControlName","note","matInput","","placeholder","Write a note ...."],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(o,n){o&1&&(a(0,"h1",1),t(1),m(2,"translate"),s(),t(3,` +`)),o&2&&(l(5),b(d(6,5,"labels.heading.Charges Overview")),l(3),g("dataSource",n.dataSource),l(44),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(7,GOt)))},dependencies:[St,io,wt,oe,Gi,Et,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,Je,mo],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.charges-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%}"]})}}return e})();var HF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.params.clientId;return this.clientsService.getAllClientCharges(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var GF=(()=>{class e{constructor(i,o){this.clientsService=i,this.productsService=o}resolve(i){let o=i.paramMap.get("name"),n=i.paramMap.get("clientId")||i.parent.parent.paramMap.get("clientId");switch(o){case"Survey":return this.clientsService.getSurveys(n);case"Take Survey":return this.clientsService.getAllSurveysType();case"Close":return this.clientsService.getClientCommandTemplate("close");case"Reject":return this.clientsService.getClientCommandTemplate("reject");case"Withdraw":return this.clientsService.getClientCommandTemplate("withdraw");case"Transfer Client":return this.clientsService.getOffices();case"Add Charge":return this.clientsService.getClientChargeTemplate(n);case"Create Collateral":return this.productsService.getCollaterals();case"Client Screen Reports":return this.clientsService.getClientReportTemplates();case"Assign Staff":case"Update Default Savings":return this.clientsService.getClientDataAndTemplate(n);case"Undo Transfer":case"Accept Transfer":case"Reject Transfer":return this.clientsService.getClientTransferProposalDate(n);default:return}}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji),Qt(ki))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var UF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.parent.parent.paramMap.get("clientId"),n=i.paramMap.get("chargeId");return this.clientsService.getSelectedChargeData(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var $F=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.parent.parent.paramMap.get("clientId"),n=i.paramMap.get("chargeId");return this.clientsService.getClientTransactionPay(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var WF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.paramMap.get("clientId");return this.clientsService.getClientDataAndTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var QF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.paramMap.get("clientId");return this.clientsService.getCollateralTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var o9t=[uo.withShell([{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:"",component:r5},{path:"create",data:{title:"Create Client",breadcrumb:"Create Client",routeParamBreadcrumb:!1},component:Y5,resolve:{clientAddressFieldConfig:J5,clientTemplate:xx}},{path:":clientId",component:f5,data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:K5,clientTemplateData:xx,clientDatatables:VF},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:h5,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{clientAccountsData:DF,clientChargesData:OF,clientCollateralData:QF}},{path:"address",component:S5,data:{title:"Address",breadcrumb:"Address",routeParamBreadcrumb:!1},resolve:{clientAddressFieldConfig:J5,clientAddressTemplateData:qF,clientAddressData:AF}},{path:"family-members",data:{title:"Family Members",breadcrumb:"Family Members",routeParamBreadcrumb:!1},children:[{path:"",component:g5,resolve:{clientFamilyMembers:FF}},{path:"add",component:x5,data:{title:"Add",breadcrumb:"Add",routeParamBreadcrumb:!1},resolve:{clientTemplate:xx}},{path:":familyMemberId",children:[{path:"edit",component:_5,data:{title:"Family Member View",routeParamBreadcrumb:"familyMemberId"},resolve:{clientTemplate:xx,editFamilyMember:BF}}]}]},{path:"identities",component:v5,data:{title:"Identities",breadcrumb:"Identities",routeParamBreadcrumb:!1},resolve:{clientIdentities:RF,clientIdentifierTemplate:jF}},{path:"documents",component:C5,data:{title:"Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{clientDocuments:LF}},{path:"notes",component:b5,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{clientNotes:NF}},{path:"datatables",children:[{path:":datatableName",component:y5,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{clientDatatable:zF}}]}]}]},{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:":clientId",data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:K5},children:[{path:"edit",data:{title:"Edit Client",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:G5,resolve:{clientDataAndTemplate:WF}},{path:"actions/:name",data:{title:"Client Actions",routeParamBreadcrumb:"name"},component:j5,resolve:{clientActionData:GF}},{path:"charges",children:[{path:"overview",data:{title:"Charges Overview",breadcrumb:"Charges Overview"},component:Z5,resolve:{clientChargesData:HF}},{path:":chargeId",data:{title:"Charges",routeParamBreadcrumb:"chargeId"},children:[{path:"",component:q5,resolve:{clientChargeData:UF}},{path:"pay",data:{title:"Pay Charge",routeParamBreadcrumb:!1},component:H5,resolve:{transactionData:$F}}]}]},{path:"loans-accounts",loadChildren:()=>import("./loans.module-V5ABT6I7.js").then(e=>e.LoansModule)},{path:"client-collateral",loadChildren:()=>import("./collaterals.module-HHNV7PVW.js").then(e=>e.CollateralsModule)},{path:"fixed-deposits-accounts",loadChildren:()=>import("./fixed-deposits.module-Z7GOXQ3P.js").then(e=>e.FixedDepositsModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-E43YOCRL.js").then(e=>e.SavingsModule)},{path:"recurring-deposits-accounts",loadChildren:()=>import("./recurring-deposits.module-ZJCHCTIT.js").then(e=>e.RecurringDepositsModule)},{path:"shares-accounts",loadChildren:()=>import("./shares.module-GOTOSBW7.js").then(e=>e.SharesModule)},{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-M43K676L.js").then(e=>e.AccountTransfersModule)}]}]}])],vJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[K5,DF,AF,OF,_J,FF,BF,xx,RF,NF,LF,VF,zF,jF,J5,qF,HF,GF,UF,$F,WF,QF],imports:[tr.forChild(o9t),tr]})}}return e})();var a9t=e=>({editForm:e}),bJ=(()=>{class e{constructor(i,o,n){this.dialogRef=i,this.formBuilder=o,this.data=n}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:[this.data.noteContent,bt.required]})}static{this.\u0275fac=function(o){return new(o||e)(V(qr),V(xe),V(bo))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-notes-dialog"]],decls:27,vars:14,consts:[["formRef","ngForm"],["mat-dialog-title",""],[3,"formGroup"],["formControlName","note","matInput","","placeholder","Write a note ...."],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(o,n){o&1&&(a(0,"h1",1),t(1),m(2,"translate"),s(),t(3,` `),a(4,"div"),t(5,` `),a(6,"form",2,0),t(8,` `),a(9,"mat-form-field"),t(10,` @@ -13907,7 +13907,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(68,26,"labels.buttons.Cancel"),` `),l(3),g("disabled",!n.editGroupForm.valid),l(),P(` `,d(72,28,"labels.buttons.Submit"),` - `)}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Xt,Oe,De,Mi,Di,Ti,Dt,Et],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}"]})}}return e})();var YF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGroupSummary(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var KF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGroupNotes(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var JF=(()=>{class e{constructor(i){this.groupsService=i}resolve(){return this.groupsService.getGroupDatatables()}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var ZF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.parent.paramMap.get("groupId"),n=i.paramMap.get("datatableName");return this.groupsService.getGroupDatatable(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var CE=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.paramMap.get("groupId");return this.groupsService.getGroupData(o,"true")}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var XF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.paramMap.get("action"),n=i.paramMap.get("groupId")||i.parent.parent.paramMap.get("groupId");switch(o){case"Attendance":case"Manage Members":case"Transfer Clients":return this.groupsService.getGroupData(n);case"Assign Staff":return this.groupsService.getGroupData(n,"true");case"Close":return this.groupsService.getGroupCommandTemplate("close");case"Attach Meeting":return this.groupsService.getGroupCalendarTemplate(n);case"Edit Meeting":case"Edit Meeting Schedule":let c=i.queryParamMap.get("calendarId");return this.groupsService.getGroupCalendarAndTemplate(n,c);default:return}}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var tB=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGLIMAccountsData(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var SLt=[uo.withShell([{path:"groups",data:{title:"Groups",breadcrumb:"Groups",routeParamBreadcrumb:!1},children:[{path:"",component:tE},{path:"create",component:sE,data:{title:"Create Group",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{offices:bl}},{path:":groupId",data:{title:"View Group",routeParamBreadcrumb:"groupId"},resolve:{groupViewData:db},children:[{path:"",component:iE,resolve:{groupViewData:db,groupDatatables:JF},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:nE,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{groupAccountsData:XO,groupSummary:YF,gsimData:t9,glimData:tB}},{path:"notes",component:rE,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{groupNotes:KF}},{path:"committee",component:aE,data:{title:"Committee",breadcrumb:"Committee",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:lE,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{groupDatatable:ZF}}]}]},{path:"edit",component:bE,data:{title:"Edit Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{groupAndTemplateData:CE,groupViewData:db}},{path:"committee",children:[{path:"",redirectTo:"../committee",pathMatch:"prefix"},{path:"add-role",data:{title:"Add Role",breadcrumb:"Add Role",routeParamBreadcrumb:!1},component:cE,resolve:{groupAndTemplateData:CE}}]},{path:"actions/:action",data:{title:"Group Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:vE,resolve:{groupActionData:XF}},{path:"loans-accounts",loadChildren:()=>import("./loans.module-DH6CK4QK.js").then(e=>e.LoansModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-P7MHCOQW.js").then(e=>e.SavingsModule)}]}]}])],wJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[db,XO,YF,KF,JF,ZF,CE,XF,t9,tB],imports:[tr.forChild(SLt),tr]})}}return e})();var EJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,rl,wJ,tE,iE,nE,rE,aE,sE,lE,cE,oE,vE,pE,eE,mE,dE,bE,uE,fE,hE,gE,xE,_E]})}}return e})();var Nr=(()=>{class e{constructor(i){this.http=i}getCenters(i,o,n,c,u){let h=new Hn().set("offset",c.toString()).set("limit",u.toString()).set("sortOrder",n).set("orderBy",o).set("paged","true");return i.forEach(function(_){_.value&&(h=h.set(_.type,_.value))}),this.http.get("/centers",{params:h})}createCenter(i){return this.http.post("/centers",i)}getStaff(i){let o=new Hn().set("officeId",i.toString()).set("staffInSelectedOfficeOnly","true");return this.http.get("/centers/template",{params:o})}getCenterData(i){let o=new Hn().set("associations","groupMembers,collectionMeetingCalendar");return this.http.get(`/centers/${i}`,{params:o})}getCenterSummary(i){let o=new Hn().set("R_groupId",i).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:o})}getSavingsAccountDetails(i){return this.http.get(`/centers/${i}/accounts`)}getCenterNotes(i){return this.http.get(`/groups/${i}/notes`)}createCenterNote(i,o){return this.http.post(`/groups/${i}/notes`,o)}editCenterNote(i,o,n){return this.http.put(`/groups/${i}/notes/${o}`,n)}deleteCenterNote(i,o){return this.http.delete(`/groups/${i}/notes/${o}`)}getcenterDatatables(){let i=new Hn().set("apptable","m_center");return this.http.get("/datatables",{params:i})}getCenterDatatable(i,o){let n=new Hn().set("genericResultSet","true");return this.http.get(`/datatables/${o}/${i}`,{params:n})}addCenterDatatableEntry(i,o,n){let c=new Hn().set("genericResultSet","true");return this.http.post(`/datatables/${o}/${i}`,n,{params:c})}editCenterDatatableEntry(i,o,n){let c=new Hn().set("genericResultSet","true");return this.http.put(`/datatables/${o}/${i}`,n,{params:c})}deleteDatatableContent(i,o){let n=new Hn().set("genericResultSet","true");return this.http.delete(`/datatables/${o}/${i}`,{params:n})}executeCenterActionCommand(i,o,n){let c=new Hn().set("command",o);return this.http.post(`/centers/${i}`,n,{params:c})}executeGroupActionCommand(i,o,n){let c=new Hn().set("command",o);return this.http.post(`/groups/${i}`,n,{params:c})}getGroupStaffData(i){let o=new Hn().set("groupOrCenter","centers").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/groups/${i}`,{params:o})}deleteCenter(i){return this.http.delete(`/centers/${i}`)}getCentersData(i,o,n){let c=new Hn().set("associations",o);return c=n?c.set("template",n):c,this.http.get(`/centers/${i}`,{params:c})}getMeetingsTemplate(i,o){let n=new Hn().set("calenderId",o);return this.http.get(`/centers/${i}/meetings/template`)}assignCenterAttendance(i,o,n){let c=new Hn().set("calenderId",o);return this.http.post(`/centers/${i}/meetings`,n,{params:c})}getCalendarTemplate(i){return this.http.get(`/centers/${i}/calendars/template`)}createCenterMeeting(i,o){return this.http.post(`/centers/${i}/calendars`,o)}getCalendarAndTemplate(i,o){let n=new Hn().set("template","true");return this.http.get(`/centers/${i}/calendars/${o}`,{params:n})}updateCenterMeeting(i,o,n){return this.http.put(`/centers/${i}/calendars/${n}`,o)}getStaffAssignmentHistoryData(i,o,n,c){let u=new Hn().set("tenantIdentifier",n).set("locale",c).set("R_centerId",o);return this.http.get(`/runreports/${i}`,{responseType:"arraybuffer",observe:"response",params:u})}getCenterAndTemplateData(i){let o=new Hn().set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/centers/${i}`,{params:o})}executeEditCenter(i,o){return this.http.put(`/groups/${i}`,o)}getAllMeetingFallCenters(i,o,n,c,u){return this.http.get(`/centers?dateFormat=${c}&locale=${u}&meetingDate=${n}&officeId=${i}&staffId=${o}`)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yE=class{constructor(r){this.centersService=r,this.centersSubject=new _s([]),this.recordsSubject=new _s(0),this.records$=this.recordsSubject.asObservable()}getCenters(r,i="",o="",n=0,c=10,u=!0){this.centersSubject.next([]),this.centersService.getCenters(r,i,o,n*c,c).subscribe(h=>{h.pageItems=u?h.pageItems.filter(_=>_.active):h.pageItems,this.recordsSubject.next(h.totalFilteredRecords),this.centersSubject.next(h.pageItems)})}connect(r){return this.centersSubject.asObservable()}disconnect(r){this.centersSubject.complete(),this.recordsSubject.complete()}};var wLt=["showClosedCenters"],ELt=()=>[10,25,50,100],PLt=()=>["../","organization","bulk-import","Centers"],kLt=()=>["create"],ILt=e=>[e,"general"];function TLt(e,r){e&1&&(a(0,"button",22),t(1,` + `)}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Xt,Oe,De,Mi,Di,Ti,Dt,Et],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}"]})}}return e})();var YF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGroupSummary(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var KF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGroupNotes(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var JF=(()=>{class e{constructor(i){this.groupsService=i}resolve(){return this.groupsService.getGroupDatatables()}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var ZF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.parent.paramMap.get("groupId"),n=i.paramMap.get("datatableName");return this.groupsService.getGroupDatatable(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var CE=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.paramMap.get("groupId");return this.groupsService.getGroupData(o,"true")}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var XF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.paramMap.get("action"),n=i.paramMap.get("groupId")||i.parent.parent.paramMap.get("groupId");switch(o){case"Attendance":case"Manage Members":case"Transfer Clients":return this.groupsService.getGroupData(n);case"Assign Staff":return this.groupsService.getGroupData(n,"true");case"Close":return this.groupsService.getGroupCommandTemplate("close");case"Attach Meeting":return this.groupsService.getGroupCalendarTemplate(n);case"Edit Meeting":case"Edit Meeting Schedule":let c=i.queryParamMap.get("calendarId");return this.groupsService.getGroupCalendarAndTemplate(n,c);default:return}}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var tB=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGLIMAccountsData(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var SLt=[uo.withShell([{path:"groups",data:{title:"Groups",breadcrumb:"Groups",routeParamBreadcrumb:!1},children:[{path:"",component:tE},{path:"create",component:sE,data:{title:"Create Group",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{offices:bl}},{path:":groupId",data:{title:"View Group",routeParamBreadcrumb:"groupId"},resolve:{groupViewData:db},children:[{path:"",component:iE,resolve:{groupViewData:db,groupDatatables:JF},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:nE,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{groupAccountsData:XO,groupSummary:YF,gsimData:t9,glimData:tB}},{path:"notes",component:rE,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{groupNotes:KF}},{path:"committee",component:aE,data:{title:"Committee",breadcrumb:"Committee",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:lE,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{groupDatatable:ZF}}]}]},{path:"edit",component:bE,data:{title:"Edit Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{groupAndTemplateData:CE,groupViewData:db}},{path:"committee",children:[{path:"",redirectTo:"../committee",pathMatch:"prefix"},{path:"add-role",data:{title:"Add Role",breadcrumb:"Add Role",routeParamBreadcrumb:!1},component:cE,resolve:{groupAndTemplateData:CE}}]},{path:"actions/:action",data:{title:"Group Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:vE,resolve:{groupActionData:XF}},{path:"loans-accounts",loadChildren:()=>import("./loans.module-V5ABT6I7.js").then(e=>e.LoansModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-E43YOCRL.js").then(e=>e.SavingsModule)}]}]}])],wJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[db,XO,YF,KF,JF,ZF,CE,XF,t9,tB],imports:[tr.forChild(SLt),tr]})}}return e})();var EJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,rl,wJ,tE,iE,nE,rE,aE,sE,lE,cE,oE,vE,pE,eE,mE,dE,bE,uE,fE,hE,gE,xE,_E]})}}return e})();var Nr=(()=>{class e{constructor(i){this.http=i}getCenters(i,o,n,c,u){let h=new Hn().set("offset",c.toString()).set("limit",u.toString()).set("sortOrder",n).set("orderBy",o).set("paged","true");return i.forEach(function(_){_.value&&(h=h.set(_.type,_.value))}),this.http.get("/centers",{params:h})}createCenter(i){return this.http.post("/centers",i)}getStaff(i){let o=new Hn().set("officeId",i.toString()).set("staffInSelectedOfficeOnly","true");return this.http.get("/centers/template",{params:o})}getCenterData(i){let o=new Hn().set("associations","groupMembers,collectionMeetingCalendar");return this.http.get(`/centers/${i}`,{params:o})}getCenterSummary(i){let o=new Hn().set("R_groupId",i).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:o})}getSavingsAccountDetails(i){return this.http.get(`/centers/${i}/accounts`)}getCenterNotes(i){return this.http.get(`/groups/${i}/notes`)}createCenterNote(i,o){return this.http.post(`/groups/${i}/notes`,o)}editCenterNote(i,o,n){return this.http.put(`/groups/${i}/notes/${o}`,n)}deleteCenterNote(i,o){return this.http.delete(`/groups/${i}/notes/${o}`)}getcenterDatatables(){let i=new Hn().set("apptable","m_center");return this.http.get("/datatables",{params:i})}getCenterDatatable(i,o){let n=new Hn().set("genericResultSet","true");return this.http.get(`/datatables/${o}/${i}`,{params:n})}addCenterDatatableEntry(i,o,n){let c=new Hn().set("genericResultSet","true");return this.http.post(`/datatables/${o}/${i}`,n,{params:c})}editCenterDatatableEntry(i,o,n){let c=new Hn().set("genericResultSet","true");return this.http.put(`/datatables/${o}/${i}`,n,{params:c})}deleteDatatableContent(i,o){let n=new Hn().set("genericResultSet","true");return this.http.delete(`/datatables/${o}/${i}`,{params:n})}executeCenterActionCommand(i,o,n){let c=new Hn().set("command",o);return this.http.post(`/centers/${i}`,n,{params:c})}executeGroupActionCommand(i,o,n){let c=new Hn().set("command",o);return this.http.post(`/groups/${i}`,n,{params:c})}getGroupStaffData(i){let o=new Hn().set("groupOrCenter","centers").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/groups/${i}`,{params:o})}deleteCenter(i){return this.http.delete(`/centers/${i}`)}getCentersData(i,o,n){let c=new Hn().set("associations",o);return c=n?c.set("template",n):c,this.http.get(`/centers/${i}`,{params:c})}getMeetingsTemplate(i,o){let n=new Hn().set("calenderId",o);return this.http.get(`/centers/${i}/meetings/template`)}assignCenterAttendance(i,o,n){let c=new Hn().set("calenderId",o);return this.http.post(`/centers/${i}/meetings`,n,{params:c})}getCalendarTemplate(i){return this.http.get(`/centers/${i}/calendars/template`)}createCenterMeeting(i,o){return this.http.post(`/centers/${i}/calendars`,o)}getCalendarAndTemplate(i,o){let n=new Hn().set("template","true");return this.http.get(`/centers/${i}/calendars/${o}`,{params:n})}updateCenterMeeting(i,o,n){return this.http.put(`/centers/${i}/calendars/${n}`,o)}getStaffAssignmentHistoryData(i,o,n,c){let u=new Hn().set("tenantIdentifier",n).set("locale",c).set("R_centerId",o);return this.http.get(`/runreports/${i}`,{responseType:"arraybuffer",observe:"response",params:u})}getCenterAndTemplateData(i){let o=new Hn().set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/centers/${i}`,{params:o})}executeEditCenter(i,o){return this.http.put(`/groups/${i}`,o)}getAllMeetingFallCenters(i,o,n,c,u){return this.http.get(`/centers?dateFormat=${c}&locale=${u}&meetingDate=${n}&officeId=${i}&staffId=${o}`)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yE=class{constructor(r){this.centersService=r,this.centersSubject=new _s([]),this.recordsSubject=new _s(0),this.records$=this.recordsSubject.asObservable()}getCenters(r,i="",o="",n=0,c=10,u=!0){this.centersSubject.next([]),this.centersService.getCenters(r,i,o,n*c,c).subscribe(h=>{h.pageItems=u?h.pageItems.filter(_=>_.active):h.pageItems,this.recordsSubject.next(h.totalFilteredRecords),this.centersSubject.next(h.pageItems)})}connect(r){return this.centersSubject.asObservable()}disconnect(r){this.centersSubject.complete(),this.recordsSubject.complete()}};var wLt=["showClosedCenters"],ELt=()=>[10,25,50,100],PLt=()=>["../","organization","bulk-import","Centers"],kLt=()=>["create"],ILt=e=>[e,"general"];function TLt(e,r){e&1&&(a(0,"button",22),t(1,` `),k(2,"fa-icon",23),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,PLt)),l(3),P("",d(4,2,"labels.buttons.Import Center"),` `))}function MLt(e,r){e&1&&(a(0,"button",22),t(1,` `),k(2,"fa-icon",24),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,kLt)),l(3),P("",d(4,2,"labels.buttons.Create Center"),` @@ -38006,7 +38006,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),x(13,phi,8,9,"mat-error",7),t(14,` `),s()}if(e&2){let i=Mt(11),o=A();l(3),b(d(4,6,"labels.inputs.Repayment scheduled to")),l(3),g("min",o.minDate)("max",o.maxDate)("matDatepicker",i),l(2),g("for",i),l(5),g("ngIf",o.holidayForm.controls.repaymentsRescheduledTo.hasError("required"))}}function dhi(e,r){if(e&1&&(a(0,"button",21),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.holidayForm.valid),l(),P(` `,d(2,2,"labels.buttons.Submit"),` - `)}}var OD=(()=>{class e{constructor(i,o,n,c,u,h){this.formBuilder=i,this.route=o,this.dateUtils=n,this.organizatioService=c,this.settingsService=u,this.router=h,this.isActiveHoliday=!0,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(_=>{this.holidayData=_.holiday,this.holidayData.repaymentSchedulingTypes=_.holidayTemplate,this.reSchedulingType=this.holidayData.reschedulingType,this.holidayData.status.value==="Active"?this.isActiveHoliday=!0:this.isActiveHoliday=!1})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setEditForm(),this.isActiveHoliday||this.getReschedulingType()}setEditForm(){this.holidayForm=this.formBuilder.group({name:[this.holidayData.name,bt.required],description:[this.holidayData.description]}),this.isActiveHoliday||(this.holidayForm.addControl("fromDate",new _e(this.holidayData.fromDate&&new Date(this.holidayData.fromDate),bt.required)),this.holidayForm.addControl("toDate",new _e(this.holidayData.toDate&&new Date(this.holidayData.toDate),bt.required)),this.holidayForm.addControl("reschedulingType",new _e(this.holidayData.reschedulingType,bt.required)),this.reSchedulingType===2&&this.holidayForm.addControl("repaymentsRescheduledTo",new _e(this.holidayData.repaymentsRescheduledTo&&new Date(this.holidayData.repaymentsRescheduledTo),bt.required)))}getReschedulingType(){this.holidayForm.get("reschedulingType").valueChanges.subscribe(i=>{this.reSchedulingType=i,i===2?this.holidayForm.addControl("repaymentsRescheduledTo",new _e(new Date,bt.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let i=this.holidayForm.value,o=this.settingsService.language.code,n=this.settingsService.dateFormat;this.isActiveHoliday||(i.fromDate instanceof Date&&(i.fromDate=this.dateUtils.formatDate(i.fromDate,n)),i.toDate instanceof Date&&(i.toDate=this.dateUtils.formatDate(i.toDate,n)),this.reSchedulingType===2&&i.repaymentsRescheduledTo instanceof Date&&(i.repaymentsRescheduledTo=this.dateUtils.formatDate(i.repaymentsRescheduledTo,n)));let c=oi(ye({},i),{dateFormat:n,locale:o});this.organizatioService.updateHoliday(this.holidayData.id,c).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(_i),V(Ei),V(We),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-holiday"]],decls:52,vars:18,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[4,"ngIf"],[3,"click",4,"ngIf"],["matInput","","formControlName","description"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(o,n){o&1&&(a(0,"div",3),t(1,` + `)}}var OD=(()=>{class e{constructor(i,o,n,c,u,h){this.formBuilder=i,this.route=o,this.dateUtils=n,this.organizatioService=c,this.settingsService=u,this.router=h,this.isActiveHoliday=!0,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(_=>{this.holidayData=_.holiday,this.holidayData.repaymentSchedulingTypes=_.holidayTemplate,this.reSchedulingType=this.holidayData.reschedulingType,this.holidayData.status.value==="Active"?this.isActiveHoliday=!0:this.isActiveHoliday=!1})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setEditForm(),this.isActiveHoliday||this.getReschedulingType()}setEditForm(){this.holidayForm=this.formBuilder.group({name:[this.holidayData.name,bt.required],description:[this.holidayData.description]}),this.isActiveHoliday||(this.holidayForm.addControl("fromDate",new _e(this.holidayData.fromDate&&new Date(this.holidayData.fromDate),bt.required)),this.holidayForm.addControl("toDate",new _e(this.holidayData.toDate&&new Date(this.holidayData.toDate),bt.required)),this.holidayForm.addControl("reschedulingType",new _e(this.holidayData.reschedulingType,bt.required)),this.reSchedulingType===2&&this.holidayForm.addControl("repaymentsRescheduledTo",new _e(this.holidayData.repaymentsRescheduledTo&&new Date(this.holidayData.repaymentsRescheduledTo),bt.required)))}getReschedulingType(){this.holidayForm.get("reschedulingType").valueChanges.subscribe(i=>{this.reSchedulingType=i,i===2?this.holidayForm.addControl("repaymentsRescheduledTo",new _e(new Date,bt.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let i=this.holidayForm.value,o=this.settingsService.language.code,n=this.settingsService.dateFormat;if(!this.isActiveHoliday){let u=this.holidayForm.value.fromDate,h=this.holidayForm.value.toDate;if(u instanceof Date&&(i.fromDate=this.dateUtils.formatDateAsString(u,n)),h instanceof Date&&(i.toDate=this.dateUtils.formatDateAsString(h,n)),this.reSchedulingType===2){let _=this.holidayForm.value.repaymentsRescheduledTo;_ instanceof Date&&(i.repaymentsRescheduledTo=this.dateUtils.formatDateAsString(_,n))}}let c=oi(ye({},i),{dateFormat:n,locale:o});this.organizatioService.updateHoliday(this.holidayData.id,c).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(_i),V(Ei),V(We),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-holiday"]],decls:52,vars:18,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[4,"ngIf"],[3,"click",4,"ngIf"],["matInput","","formControlName","description"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(o,n){o&1&&(a(0,"div",3),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"form",4),q("ngSubmit",function(){return n.submit()}),t(5,` `),a(6,"mat-card-content"),t(7,` @@ -39823,7 +39823,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,o.treeControl.isExpanded(i)?"expand_more":"chevron_right",` `),l(3),g("checked",o.descendantsAllSelected(i)),l(),b(o.officesDict[i.item].name)}}function Cbi(e,r){if(e&1&&(a(0,"button",31),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.holidayForm.valid),l(),P(` `,d(2,2,"labels.buttons.Submit"),` - `)}}var t6=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.formBuilder=i,this.route=o,this.dateUtils=n,this.organizationService=c,this.settings=u,this.router=h,this._database=_,this.createHoliday=y,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.officesDict={},this.flatNodeMap=new Map,this.nestedNodeMap=new Map,this.selectedParent=null,this.newItemName="",this.checklistSelection=new qs(!0),this.getLevel=C=>C.level,this.isExpandable=C=>C.expandable,this.getChildren=C=>C.children,this.hasChild=(C,E)=>E.expandable,this.hasNoContent=(C,E)=>E.item==="",this.transformer=(C,E)=>{let T=this.nestedNodeMap.get(C),D=T&&T.item===C.item?T:new KD;return D.item=C.item,D.level=E,D.expandable=!!C.children?.length,this.flatNodeMap.set(D,C),this.nestedNodeMap.set(C,D),D},this.route.data.subscribe(C=>{this.officesData=C.offices,this.repaymentSchedulingTypes=C.holidayTemplate,this.constructOfficeHierarchy(),_.initialize(this.officesTrie)}),this.treeFlattener=new lW(this.transformer,this.getLevel,this.isExpandable,this.getChildren),this.treeControl=new aW(this.getLevel,this.isExpandable),this.dataSource=new cW(this.treeControl,this.treeFlattener),this._database.dataChange.subscribe(C=>{this.dataSource.data=C})}constructOfficeHierarchy(){let i={};this.officesData.forEach(o=>{this.officesDict[o.id]=o;let n=o.hierarchy.split(".");n=n.filter(u=>u.length>0);let c=i;n.length===0?c[o.id]={}:(c=i[Object.keys(i)[0]],n.forEach(u=>{u in c||(c[u]={}),c=c[u]}))}),this.createHoliday.setEmptyObjectsToNull(i),this.officesTrie=i}descendantsAllSelected(i){return this.checklistSelection.isSelected(i)}descendantsPartiallySelected(i){return this.treeControl.getDescendants(i).some(c=>this.checklistSelection.isSelected(c))&&!this.descendantsAllSelected(i)}setSelectedOffices(){this.holidayForm.patchValue({offices:this.checklistSelection.selected.map(i=>i.item)})}officeItemSelectionToggle(i){this.checklistSelection.toggle(i);let o=this.treeControl.getDescendants(i);this.checklistSelection.isSelected(i)?this.checklistSelection.select(...o):this.checklistSelection.deselect(...o),o.forEach(n=>this.checklistSelection.isSelected(n)),this.setSelectedOffices()}officeLeafItemSelectionToggle(i){this.checklistSelection.toggle(i),this.setSelectedOffices()}checkAllParentsSelection(i){let o=this.getParentNode(i);for(;o;)this.checkRootNodeSelection(o),o=this.getParentNode(o)}checkRootNodeSelection(i){let o=this.checklistSelection.isSelected(i),n=this.treeControl.getDescendants(i),c=n.length>0&&n.every(u=>this.checklistSelection.isSelected(u));o&&!c?this.checklistSelection.deselect(i):!o&&c&&this.checklistSelection.select(i)}getParentNode(i){let o=this.getLevel(i);if(o<1)return null;let n=this.treeControl.dataNodes.indexOf(i)-1;for(let c=n;c>=0;c--){let u=this.treeControl.dataNodes[c];if(this.getLevel(u){i===2?this.holidayForm.addControl("repaymentsRescheduledTo",new _e("",bt.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let i=this.holidayForm.value,o=this.settings.dateFormat,n=this.settings.language.code,c=this.holidayForm.value.fromDate,u=this.holidayForm.value.toDate;if(i.fromDate=this.dateUtils.formatDate(c,o),i.toDate=this.dateUtils.formatDate(u,o),this.holidayForm.contains("repaymentsRescheduledTo")){let y=this.holidayForm.value.repaymentsRescheduledTo;i.repaymentsRescheduledTo=this.dateUtils.formatDate(y,o)}let h=this.holidayForm.value.offices.map(y=>({officeId:Number.parseInt(y,10)})),_=oi(ye({},i),{dateFormat:o,locale:n,offices:h});this.organizationService.createHoliday(_).subscribe(y=>{this.router.navigate(["../",y.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(_i),V(Ei),V(We),V(te),V(ZD),V(XD))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-holiday"]],decls:103,vars:42,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value",4,"ngFor","ngForOf"],[3,"click",4,"ngIf"],["matInput","","formControlName","description"],[3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"value"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["matTreeNodeToggle","","matTreeNodePadding",""],["mat-icon-button","","disabled",""],[1,"checklist-leaf-node",3,"change","checked"],["matTreeNodePadding",""],["type","button","mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],[3,"change","checked"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(o,n){if(o&1){let c=st();a(0,"div",3),t(1,` + `)}}var t6=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.formBuilder=i,this.route=o,this.dateUtils=n,this.organizationService=c,this.settings=u,this.router=h,this._database=_,this.createHoliday=y,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.officesDict={},this.flatNodeMap=new Map,this.nestedNodeMap=new Map,this.selectedParent=null,this.newItemName="",this.checklistSelection=new qs(!0),this.getLevel=C=>C.level,this.isExpandable=C=>C.expandable,this.getChildren=C=>C.children,this.hasChild=(C,E)=>E.expandable,this.hasNoContent=(C,E)=>E.item==="",this.transformer=(C,E)=>{let T=this.nestedNodeMap.get(C),D=T&&T.item===C.item?T:new KD;return D.item=C.item,D.level=E,D.expandable=!!C.children?.length,this.flatNodeMap.set(D,C),this.nestedNodeMap.set(C,D),D},this.route.data.subscribe(C=>{this.officesData=C.offices,this.repaymentSchedulingTypes=C.holidayTemplate,this.constructOfficeHierarchy(),_.initialize(this.officesTrie)}),this.treeFlattener=new lW(this.transformer,this.getLevel,this.isExpandable,this.getChildren),this.treeControl=new aW(this.getLevel,this.isExpandable),this.dataSource=new cW(this.treeControl,this.treeFlattener),this._database.dataChange.subscribe(C=>{this.dataSource.data=C})}constructOfficeHierarchy(){let i={};this.officesData.forEach(o=>{this.officesDict[o.id]=o;let n=o.hierarchy.split(".");n=n.filter(u=>u.length>0);let c=i;n.length===0?c[o.id]={}:(c=i[Object.keys(i)[0]],n.forEach(u=>{u in c||(c[u]={}),c=c[u]}))}),this.createHoliday.setEmptyObjectsToNull(i),this.officesTrie=i}descendantsAllSelected(i){return this.checklistSelection.isSelected(i)}descendantsPartiallySelected(i){return this.treeControl.getDescendants(i).some(c=>this.checklistSelection.isSelected(c))&&!this.descendantsAllSelected(i)}setSelectedOffices(){this.holidayForm.patchValue({offices:this.checklistSelection.selected.map(i=>i.item)})}officeItemSelectionToggle(i){this.checklistSelection.toggle(i);let o=this.treeControl.getDescendants(i);this.checklistSelection.isSelected(i)?this.checklistSelection.select(...o):this.checklistSelection.deselect(...o),o.forEach(n=>this.checklistSelection.isSelected(n)),this.setSelectedOffices()}officeLeafItemSelectionToggle(i){this.checklistSelection.toggle(i),this.setSelectedOffices()}checkAllParentsSelection(i){let o=this.getParentNode(i);for(;o;)this.checkRootNodeSelection(o),o=this.getParentNode(o)}checkRootNodeSelection(i){let o=this.checklistSelection.isSelected(i),n=this.treeControl.getDescendants(i),c=n.length>0&&n.every(u=>this.checklistSelection.isSelected(u));o&&!c?this.checklistSelection.deselect(i):!o&&c&&this.checklistSelection.select(i)}getParentNode(i){let o=this.getLevel(i);if(o<1)return null;let n=this.treeControl.dataNodes.indexOf(i)-1;for(let c=n;c>=0;c--){let u=this.treeControl.dataNodes[c];if(this.getLevel(u){i===2?this.holidayForm.addControl("repaymentsRescheduledTo",new _e("",bt.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let i=this.holidayForm.value,o=this.settings.dateFormat,n=this.settings.language.code,c=this.holidayForm.value.fromDate,u=this.holidayForm.value.toDate;if(i.fromDate=this.dateUtils.formatDateAsString(c,o),i.toDate=this.dateUtils.formatDateAsString(u,o),this.holidayForm.contains("repaymentsRescheduledTo")){let y=this.holidayForm.value.repaymentsRescheduledTo;i.repaymentsRescheduledTo=this.dateUtils.formatDateAsString(y,o)}let h=this.holidayForm.value.offices.map(y=>({officeId:Number.parseInt(y,10)})),_=oi(ye({},i),{dateFormat:o,locale:n,offices:h});this.organizationService.createHoliday(_).subscribe(y=>{this.router.navigate(["../",y.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(_i),V(Ei),V(We),V(te),V(ZD),V(XD))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-holiday"]],decls:103,vars:42,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value",4,"ngFor","ngForOf"],[3,"click",4,"ngIf"],["matInput","","formControlName","description"],[3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"value"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["matTreeNodeToggle","","matTreeNodePadding",""],["mat-icon-button","","disabled",""],[1,"checklist-leaf-node",3,"change","checked"],["matTreeNodePadding",""],["type","button","mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],[3,"change","checked"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(o,n){if(o&1){let c=st();a(0,"div",3),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"form",4),q("ngSubmit",function(){return W(c),Q(n.submit())}),t(5,` `),a(6,"mat-card-content"),t(7,` diff --git a/browser/recurring-deposits.module-OBZI5O5Q.js b/browser/recurring-deposits.module-ZJCHCTIT.js similarity index 99% rename from browser/recurring-deposits.module-OBZI5O5Q.js rename to browser/recurring-deposits.module-ZJCHCTIT.js index aad8ce46c..4c8b94a17 100644 --- a/browser/recurring-deposits.module-OBZI5O5Q.js +++ b/browser/recurring-deposits.module-ZJCHCTIT.js @@ -1,4 +1,4 @@ -import{a as Tn,b as Mn}from"./chunk-NPY5HGMH.js";import{a as mi}from"./chunk-E52UQNEX.js";import{$b as z,$c as st,$e as Vt,$f as tn,Ac as E,Bd as ft,Ca as bt,Cb as te,Cd as _t,Dd as Ct,Ed as Ue,Ee as Jn,F as It,Fa as St,Fb as kn,Fc as Q,Fd as Rt,G as Ve,Ga as Pt,Gc as U,Gd as Ft,Ha as Tt,Hd as pe,I as yt,Ia as R,If as ni,Ja as t,Ka as u,Kc as ct,Kd as ut,La as x,Lc as q,M as Zt,Ma as M,Mc as Y,N as S,Na as oe,Nb as Me,Nc as nt,Nd as fe,Ne as Ke,Nf as ii,O as P,Ob as ye,Od as ce,Oe as Xn,Of as Yt,Pf as ri,Qb as re,Qc as J,Qf as Ze,Rb as ae,Re as Qe,Rf as ai,Sb as Ae,Sc as it,Sd as He,Se as Ye,Ta as L,Tc as Ee,Te as Je,U as qe,Ua as xe,Uc as zn,Ue as Xe,Vc as rt,Vd as $e,Ve as ne,Vf as le,Wa as o,Wd as Le,We as Qt,Xa as c,Xb as k,Xd as ze,Xe as Bt,Ya as w,Yb as Vn,Yc as at,Yd as se,Ye as Nt,Ze as kt,_ as Bn,_a as G,_b as H,_f as oi,ac as qn,af as qt,ag as Re,bc as Pn,be as We,ca as a,cf as jt,db as Nn,dc as Ie,dd as ot,df as Gt,dg as pi,eb as be,ec as V,fb as Mt,fd as O,ff as Ut,ga as C,gb as F,gd as W,gf as Ht,ha as A,hb as Se,hd as Wn,ia as je,id as Kn,if as $t,ig as ci,jd as lt,kg as si,la as m,ld as gt,lf as _e,ma as ve,md as Qn,na as d,ob as Pe,od as Yn,pc as jn,pd as X,qc as Gn,qd as mt,qf as Zn,ra as n,rc as ee,rf as ti,sa as i,sb as Ge,sc as Un,sf as ei,sg as we,ta as f,tb as Te,tc as Hn,td as xt,tg as li,ua as D,ub as I,uc as $n,ud as Z,va as v,vc as Ln,vd as Kt,wd as dt,xa as y,xd as Ot,ya as b,za as _,zc as Oe,zd as Et}from"./chunk-DUPCOD76.js";import{a as B,b as K}from"./chunk-O7S4L63H.js";var N=(()=>{class e{constructor(r){this.http=r}getRecurringDepositsAccountData(r){let l=new te().set("associations","all");return this.http.get(`/recurringdepositaccounts/${r}`,{params:l})}getStandingInstructions(r,l,p,g,h){let T=new te().set("clientId",r).set("clientName",l).set("fromAccountId",p).set("fromAccountType","2").set("locale",g).set("dateFormat",h);return this.http.get("/standinginstructions",{params:T})}getRecurringDepositsAccountTemplate(r,l){let p=new te().set("clientId",r);return p=l?p.set("productId",l):p,this.http.get("/recurringdepositaccounts/template",{params:p})}createRecurringDepositAccount(r){return this.http.post("/recurringdepositaccounts",r)}executeRecurringDepositsAccountCommand(r,l,p){let g=new te().set("command",l);return l==="deposit"||l==="withdrawal"?this.http.post(`/recurringdepositaccounts/${r}/transactions`,p,{params:g}):this.http.post(`/recurringdepositaccounts/${r}`,p,{params:g})}deleteRecurringDepositsAccount(r){return this.http.delete(`/recurringdepositaccounts/${r}`)}getRecurringDepositsAccountAndTemplate(r){let l=new te().set("associations","charges").set("template","true");return this.http.get(`/recurringdepositaccounts/${r}`,{params:l})}updateRecurringDepositAccount(r,l){return this.http.put(`/recurringdepositaccounts/${r}`,l)}getRecurringDepositAccountActionResource(r,l){let p=new te().set("command",l);return this.http.get(`/recurringdepositaccounts/${r}/template`,{params:p})}getRecurringDepositAccountTransactionTemplateResource(r,l){let p=new te().set("command",l);return this.http.get(`/recurringdepositaccounts/${r}/transactions/template`,{params:p})}getRecurringDepositsAccountTransaction(r,l){return this.http.get(`/recurringdepositaccounts/${r}/transactions/${l}`)}getRecurringDepositsAccountTransactionTemplate(r,l){let p=new te().set("template","true");return this.http.get(`/recurringdepositaccounts/${r}/transactions/${l}`,{params:p})}executeRecurringDepositsAccountTransactionsCommand(r,l,p,g){let h=new te().set("command",l);return this.http.post(`/recurringdepositaccounts/${r}/transactions/${g}`,p,{params:h})}static{this.\u0275fac=function(l){return new(l||e)(yt(kn))}}static{this.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var en=class{constructor(s){this.setOptions(s),this.setButtons(s)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(s){switch(s){case"Active":this.buttonsArray=[{name:"Deposit",icon:"fa fa-arrow-up",taskPermissionName:"DEPOSIT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawal",icon:"fa fa-arrow-down",taskPermissionName:"WITHDRAWAL_RECURRINGDEPOSITACCOUNT"},{name:"Premature Close",icon:"fa fa-arrow-left",taskPermissionName:"PREMATURECLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Undo Activation",icon:"fa fa-undo",taskPermissionName:"UNDO_ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-edit",taskPermissionName:"UPDATE_RECURRINGDEPOSITACCOUNT"},{name:"Approve",icon:"fa fa-check",taskPermissionName:"APPROVE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo",taskPermissionName:"APPROVALUNDO_RECURRINGDEPOSITACCOUNT"},{name:"Activate",icon:"fa fa-check",taskPermissionName:"ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Post Interest",icon:"fa fa-money",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(s){switch(s){case"Active":this.optionArray=[{name:"Post Interest",icon:"table",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",icon:"ban",taskPermissionName:"REJECT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawn by Client",icon:"arrow-down",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"},{name:"Delete",icon:"trash",taskPermissionName:"DELETE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.optionArray=[{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(s){this.optionArray.push(s)}addButton(s){this.buttonsArray.push(s)}};var xi=()=>({confirm:!0}),Jt=(()=>{class e{constructor(r,l){this.dialogRef=r,this.data=l}static{this.\u0275fac=function(l){return new(l||e)(C(jn),C(Gn))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-recurring-deposit-confirmation-action"]],decls:20,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),t(1),i(),t(2,` +import{a as Tn,b as Mn}from"./chunk-MP5A5PC4.js";import{a as mi}from"./chunk-35O6DUHT.js";import{$b as z,$c as st,$e as Vt,$f as tn,Ac as E,Bd as ft,Ca as bt,Cb as te,Cd as _t,Dd as Ct,Ed as Ue,Ee as Jn,F as It,Fa as St,Fb as kn,Fc as Q,Fd as Rt,G as Ve,Ga as Pt,Gc as U,Gd as Ft,Ha as Tt,Hd as pe,I as yt,Ia as R,If as ni,Ja as t,Ka as u,Kc as ct,Kd as ut,La as x,Lc as q,M as Zt,Ma as M,Mc as Y,N as S,Na as oe,Nb as Me,Nc as nt,Nd as fe,Ne as Ke,Nf as ii,O as P,Ob as ye,Od as ce,Oe as Xn,Of as Yt,Pf as ri,Qb as re,Qc as J,Qf as Ze,Rb as ae,Re as Qe,Rf as ai,Sb as Ae,Sc as it,Sd as He,Se as Ye,Ta as L,Tc as Ee,Te as Je,U as qe,Ua as xe,Uc as zn,Ue as Xe,Vc as rt,Vd as $e,Ve as ne,Vf as le,Wa as o,Wd as Le,We as Qt,Xa as c,Xb as k,Xd as ze,Xe as Bt,Ya as w,Yb as Vn,Yc as at,Yd as se,Ye as Nt,Ze as kt,_ as Bn,_a as G,_b as H,_f as oi,ac as qn,af as qt,ag as Re,bc as Pn,be as We,ca as a,cf as jt,db as Nn,dc as Ie,dd as ot,df as Gt,dg as pi,eb as be,ec as V,fb as Mt,fd as O,ff as Ut,ga as C,gb as F,gd as W,gf as Ht,ha as A,hb as Se,hd as Wn,ia as je,id as Kn,if as $t,ig as ci,jd as lt,kg as si,la as m,ld as gt,lf as _e,ma as ve,md as Qn,na as d,ob as Pe,od as Yn,pc as jn,pd as X,qc as Gn,qd as mt,qf as Zn,ra as n,rc as ee,rf as ti,sa as i,sb as Ge,sc as Un,sf as ei,sg as we,ta as f,tb as Te,tc as Hn,td as xt,tg as li,ua as D,ub as I,uc as $n,ud as Z,va as v,vc as Ln,vd as Kt,wd as dt,xa as y,xd as Ot,ya as b,za as _,zc as Oe,zd as Et}from"./chunk-DMOOHS3H.js";import{a as B,b as K}from"./chunk-O7S4L63H.js";var N=(()=>{class e{constructor(r){this.http=r}getRecurringDepositsAccountData(r){let l=new te().set("associations","all");return this.http.get(`/recurringdepositaccounts/${r}`,{params:l})}getStandingInstructions(r,l,p,g,h){let T=new te().set("clientId",r).set("clientName",l).set("fromAccountId",p).set("fromAccountType","2").set("locale",g).set("dateFormat",h);return this.http.get("/standinginstructions",{params:T})}getRecurringDepositsAccountTemplate(r,l){let p=new te().set("clientId",r);return p=l?p.set("productId",l):p,this.http.get("/recurringdepositaccounts/template",{params:p})}createRecurringDepositAccount(r){return this.http.post("/recurringdepositaccounts",r)}executeRecurringDepositsAccountCommand(r,l,p){let g=new te().set("command",l);return l==="deposit"||l==="withdrawal"?this.http.post(`/recurringdepositaccounts/${r}/transactions`,p,{params:g}):this.http.post(`/recurringdepositaccounts/${r}`,p,{params:g})}deleteRecurringDepositsAccount(r){return this.http.delete(`/recurringdepositaccounts/${r}`)}getRecurringDepositsAccountAndTemplate(r){let l=new te().set("associations","charges").set("template","true");return this.http.get(`/recurringdepositaccounts/${r}`,{params:l})}updateRecurringDepositAccount(r,l){return this.http.put(`/recurringdepositaccounts/${r}`,l)}getRecurringDepositAccountActionResource(r,l){let p=new te().set("command",l);return this.http.get(`/recurringdepositaccounts/${r}/template`,{params:p})}getRecurringDepositAccountTransactionTemplateResource(r,l){let p=new te().set("command",l);return this.http.get(`/recurringdepositaccounts/${r}/transactions/template`,{params:p})}getRecurringDepositsAccountTransaction(r,l){return this.http.get(`/recurringdepositaccounts/${r}/transactions/${l}`)}getRecurringDepositsAccountTransactionTemplate(r,l){let p=new te().set("template","true");return this.http.get(`/recurringdepositaccounts/${r}/transactions/${l}`,{params:p})}executeRecurringDepositsAccountTransactionsCommand(r,l,p,g){let h=new te().set("command",l);return this.http.post(`/recurringdepositaccounts/${r}/transactions/${g}`,p,{params:h})}static{this.\u0275fac=function(l){return new(l||e)(yt(kn))}}static{this.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var en=class{constructor(s){this.setOptions(s),this.setButtons(s)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(s){switch(s){case"Active":this.buttonsArray=[{name:"Deposit",icon:"fa fa-arrow-up",taskPermissionName:"DEPOSIT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawal",icon:"fa fa-arrow-down",taskPermissionName:"WITHDRAWAL_RECURRINGDEPOSITACCOUNT"},{name:"Premature Close",icon:"fa fa-arrow-left",taskPermissionName:"PREMATURECLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Undo Activation",icon:"fa fa-undo",taskPermissionName:"UNDO_ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-edit",taskPermissionName:"UPDATE_RECURRINGDEPOSITACCOUNT"},{name:"Approve",icon:"fa fa-check",taskPermissionName:"APPROVE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo",taskPermissionName:"APPROVALUNDO_RECURRINGDEPOSITACCOUNT"},{name:"Activate",icon:"fa fa-check",taskPermissionName:"ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Post Interest",icon:"fa fa-money",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(s){switch(s){case"Active":this.optionArray=[{name:"Post Interest",icon:"table",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",icon:"ban",taskPermissionName:"REJECT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawn by Client",icon:"arrow-down",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"},{name:"Delete",icon:"trash",taskPermissionName:"DELETE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.optionArray=[{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(s){this.optionArray.push(s)}addButton(s){this.buttonsArray.push(s)}};var xi=()=>({confirm:!0}),Jt=(()=>{class e{constructor(r,l){this.dialogRef=r,this.data=l}static{this.\u0275fac=function(l){return new(l||e)(C(jn),C(Gn))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-recurring-deposit-confirmation-action"]],decls:20,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),t(1),i(),t(2,` `),n(3,"div",1),t(4,` `),n(5,"p"),t(6),i(),t(7,` `),i(),t(8,` @@ -2477,4 +2477,4 @@ import{a as Tn,b as Mn}from"./chunk-NPY5HGMH.js";import{a as mi}from"./chunk-E52 `),m(15,Es,68,30,"div",1),t(16,` `),i(),t(17,` -`)),l&2&&(a(2),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(5),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval))},dependencies:[I,F,Ge,Te,O,Rt,E,Ft,ni,Yt],styles:[".recurring-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return e})();var Rs=[{path:"",data:{title:"Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:"create-recurring-deposits-account",data:{title:"Create Recurring Deposits Account",breadcrumb:"Create Recurring Deposits Account"},component:sn,resolve:{recurringDepositsAccountTemplate:On}},{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"",component:nn,resolve:{recurringDepositsAccountData:In,savingsDatatables:Mn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Sn,data:{title:"Recurring Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:rn,data:{title:"Recurring Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:an,data:{title:"Recurring Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:pn,data:{title:"Recurring Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions-tab",component:on,data:{title:"Recurring Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:cn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Tn}}]}]},{path:"edit-recurring-deposit-account",data:{title:"Edit Recurring Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:bn,resolve:{recurringDepositsAccountAndTemplate:Rn}},{path:"transactions",data:{title:"Recurring Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Dn,resolve:{recurringDepositsAccountTransaction:wn}},{path:"edit",component:vn,resolve:{recurringDepositsAccountTransactionTemplate:Fn}}]}]},{path:"actions/:name",data:{title:"Recurring Deposits Account Actions",routeParamBreadcrumb:"name"},component:hn,resolve:{recurringDepositsAccountActionData:En}}]},{path:":recurringDepositAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-5U5L3F6Y.js").then(e=>e.AccountTransfersModule)}]},{path:"",data:{title:"All Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-5U5L3F6Y.js").then(e=>e.AccountTransfersModule)}]}]}],ui=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=je({type:e})}static{this.\u0275inj=Ve({providers:[di,In,Tn,Mn,On,En,Rn,wn,Fn],imports:[Pn.forChild(Rs),Pn]})}}return e})();var Lf=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=je({type:e})}static{this.\u0275inj=Ve({imports:[li,ai,oi,ui,nn,rn,an,on,pn,cn,sn,me,de,ue,Be,ge,Ne,hn,ln,mn,dn,un,gn,xn,Jt,bn,fn,_n,Cn,Dn,vn,Sn]})}}return e})();export{Lf as RecurringDepositsModule}; +`)),l&2&&(a(2),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(5),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval))},dependencies:[I,F,Ge,Te,O,Rt,E,Ft,ni,Yt],styles:[".recurring-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return e})();var Rs=[{path:"",data:{title:"Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:"create-recurring-deposits-account",data:{title:"Create Recurring Deposits Account",breadcrumb:"Create Recurring Deposits Account"},component:sn,resolve:{recurringDepositsAccountTemplate:On}},{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"",component:nn,resolve:{recurringDepositsAccountData:In,savingsDatatables:Mn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Sn,data:{title:"Recurring Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:rn,data:{title:"Recurring Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:an,data:{title:"Recurring Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:pn,data:{title:"Recurring Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions-tab",component:on,data:{title:"Recurring Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:cn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Tn}}]}]},{path:"edit-recurring-deposit-account",data:{title:"Edit Recurring Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:bn,resolve:{recurringDepositsAccountAndTemplate:Rn}},{path:"transactions",data:{title:"Recurring Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Dn,resolve:{recurringDepositsAccountTransaction:wn}},{path:"edit",component:vn,resolve:{recurringDepositsAccountTransactionTemplate:Fn}}]}]},{path:"actions/:name",data:{title:"Recurring Deposits Account Actions",routeParamBreadcrumb:"name"},component:hn,resolve:{recurringDepositsAccountActionData:En}}]},{path:":recurringDepositAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-M43K676L.js").then(e=>e.AccountTransfersModule)}]},{path:"",data:{title:"All Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-M43K676L.js").then(e=>e.AccountTransfersModule)}]}]}],ui=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=je({type:e})}static{this.\u0275inj=Ve({providers:[di,In,Tn,Mn,On,En,Rn,wn,Fn],imports:[Pn.forChild(Rs),Pn]})}}return e})();var Lf=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=je({type:e})}static{this.\u0275inj=Ve({imports:[li,ai,oi,ui,nn,rn,an,on,pn,cn,sn,me,de,ue,Be,ge,Ne,hn,ln,mn,dn,un,gn,xn,Jt,bn,fn,_n,Cn,Dn,vn,Sn]})}}return e})();export{Lf as RecurringDepositsModule}; diff --git a/browser/savings.module-P7MHCOQW.js b/browser/savings.module-E43YOCRL.js similarity index 99% rename from browser/savings.module-P7MHCOQW.js rename to browser/savings.module-E43YOCRL.js index 60c445fc2..c48571c24 100644 --- a/browser/savings.module-P7MHCOQW.js +++ b/browser/savings.module-E43YOCRL.js @@ -1,4 +1,4 @@ -import{a as He}from"./chunk-EGST4LTW.js";import{a as gn,b as oi,c as Ui,d as qi}from"./chunk-REXE4A5X.js";import{a as Ge}from"./chunk-EQJKMM2V.js";import{a as ri,b as si}from"./chunk-NPY5HGMH.js";import{a as Gi}from"./chunk-E52UQNEX.js";import{$ as Ke,$a as ni,$b as G,$c as pt,$e as zt,$f as Le,Ac as O,Bd as xt,Ca as gt,Cc as tn,Cd as _t,Dd as Ct,Ed as xe,Ee as we,F as Tt,Fa as Pt,Fc as z,Fd as Rt,G as We,Ga as yt,Gc as j,Gd as Vt,Ha as Ot,Hd as Lt,I as Mt,Ia as D,Ic as bi,If as Ve,Ja as t,Ka as u,Kb as Je,Kc as nt,Kd as bt,Kf as Ei,La as v,Lc as U,M as Oe,Ma as R,Mc as K,N as S,Na as Ie,Nc as it,Nd as le,Ne as Fe,Nf as wi,O as M,Od as _e,Oe as ai,Of as de,Pa as Zn,Pe as Di,Pf as pn,Qa as ti,Qc as ft,Qf as dn,Ra as ei,Rc as Si,Rd as Oi,Re as ke,Rf as Fi,Sc as at,Sd as nn,Se as Be,Ta as B,Tc as oe,Te as Ne,U as Qe,Ua as Nt,Uc as Mi,Ue as Re,Vc as ot,Vd as an,Ve as he,Vf as I,Wa as c,Wd as on,We as pe,Wf as ki,Xa as m,Xb as F,Xd as rn,Xe as Ut,Ya as St,Yb as Xe,Yc as rt,Yd as Ce,Ye as qt,Yf as Bi,Za as hi,Ze as Ht,_ as Ci,_a as et,_b as q,_f as Ni,ac as Ze,af as $t,ag as ue,bc as ii,be as sn,ca as o,cf as Wt,dc as De,dd as st,df as Qt,dg as un,eb as ge,ec as k,ed as Ai,fb as It,fd as P,fe as Ii,ff as Kt,ga as x,gb as N,gd as J,gf as Yt,ha as A,hd as en,ia as Ye,id as Ti,if as Jt,ig as Ri,jd as ct,kg as Vi,la as d,ld as ht,lf as Zt,md as Pi,n as _i,na as l,od as yi,pc as te,pd as X,qc as Ee,qd as dt,qf as cn,ra as i,rc as Et,rf as mn,rg as Li,sa as a,sc as ee,sf as ln,sg as je,ta as f,tb as fe,tc as ne,td as vt,tg as ji,ua as E,ub as T,uc as ie,ud as Z,va as w,vc as ae,vd as re,wd as mt,xa as y,xd as wt,ya as h,za as C,zc as ve,zd as Ft}from"./chunk-DUPCOD76.js";import{a as L,b as Q}from"./chunk-O7S4L63H.js";var Ki=()=>({confirm:!0}),fn=(()=>{class e{constructor(n){this.dialogRef=n}static{this.\u0275fac=function(s){return new(s||e)(x(te))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,r){s&1&&(i(0,"h1",0),t(1),c(2,"translate"),a(),t(3,` +import{a as He}from"./chunk-HBORYL33.js";import{a as gn,b as oi,c as Ui,d as qi}from"./chunk-5TDJB75T.js";import{a as Ge}from"./chunk-MZXIWGVF.js";import{a as ri,b as si}from"./chunk-MP5A5PC4.js";import{a as Gi}from"./chunk-35O6DUHT.js";import{$ as Ke,$a as ni,$b as G,$c as pt,$e as zt,$f as Le,Ac as O,Bd as xt,Ca as gt,Cc as tn,Cd as _t,Dd as Ct,Ed as xe,Ee as we,F as Tt,Fa as Pt,Fc as z,Fd as Rt,G as We,Ga as yt,Gc as j,Gd as Vt,Ha as Ot,Hd as Lt,I as Mt,Ia as D,Ic as bi,If as Ve,Ja as t,Ka as u,Kb as Je,Kc as nt,Kd as bt,Kf as Ei,La as v,Lc as U,M as Oe,Ma as R,Mc as K,N as S,Na as Ie,Nc as it,Nd as le,Ne as Fe,Nf as wi,O as M,Od as _e,Oe as ai,Of as de,Pa as Zn,Pe as Di,Pf as pn,Qa as ti,Qc as ft,Qf as dn,Ra as ei,Rc as Si,Rd as Oi,Re as ke,Rf as Fi,Sc as at,Sd as nn,Se as Be,Ta as B,Tc as oe,Te as Ne,U as Qe,Ua as Nt,Uc as Mi,Ue as Re,Vc as ot,Vd as an,Ve as he,Vf as I,Wa as c,Wd as on,We as pe,Wf as ki,Xa as m,Xb as F,Xd as rn,Xe as Ut,Ya as St,Yb as Xe,Yc as rt,Yd as Ce,Ye as qt,Yf as Bi,Za as hi,Ze as Ht,_ as Ci,_a as et,_b as q,_f as Ni,ac as Ze,af as $t,ag as ue,bc as ii,be as sn,ca as o,cf as Wt,dc as De,dd as st,df as Qt,dg as un,eb as ge,ec as k,ed as Ai,fb as It,fd as P,fe as Ii,ff as Kt,ga as x,gb as N,gd as J,gf as Yt,ha as A,hd as en,ia as Ye,id as Ti,if as Jt,ig as Ri,jd as ct,kg as Vi,la as d,ld as ht,lf as Zt,md as Pi,n as _i,na as l,od as yi,pc as te,pd as X,qc as Ee,qd as dt,qf as cn,ra as i,rc as Et,rf as mn,rg as Li,sa as a,sc as ee,sf as ln,sg as je,ta as f,tb as fe,tc as ne,td as vt,tg as ji,ua as E,ub as T,uc as ie,ud as Z,va as w,vc as ae,vd as re,wd as mt,xa as y,xd as wt,ya as h,za as C,zc as ve,zd as Ft}from"./chunk-DMOOHS3H.js";import{a as L,b as Q}from"./chunk-O7S4L63H.js";var Ki=()=>({confirm:!0}),fn=(()=>{class e{constructor(n){this.dialogRef=n}static{this.\u0275fac=function(s){return new(s||e)(x(te))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,r){s&1&&(i(0,"h1",0),t(1),c(2,"translate"),a(),t(3,` `),i(4,"div",1),t(5,` `),i(6,"p"),t(7),c(8,"translate"),a(),t(9,` `),a(),t(10,` @@ -2459,5 +2459,5 @@ import{a as He}from"./chunk-EGST4LTW.js";import{a as gn,b as oi,c as Ui,d as qi} `),a()),e&2){let n=D(7),s=D(15),r=C();o(4),l("ngIf",!r.savingsAccountData.status.rejected&&!r.savingsAccountData.status.submittedAndPendingApproval)("ngIfElse",n),o(5),l("ngIf",!r.savingsAccountData.status.rejected&&!r.savingsAccountData.status.submittedAndPendingApproval),o(3),l("ngIf",r.isActive)("ngIfElse",s)}}var Xn=(()=>{class e{constructor(n,s){this.route=n,this.router=s,this.isLoading=!0,this.isActive=!1,this.route.parent.parent.data.subscribe(r=>{this.savingsAccountData=r.savingsAccountData,this.currency=this.savingsAccountData.currency,this.isLoading=!1;let g=this.savingsAccountData.status.value;this.isActive=g==="Active"}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}static{this.\u0275fac=function(s){return new(s||e)(x(F),x(q))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-general-tab"]],decls:4,vars:2,consts:[["alternateDetails",""],["alternateSummary",""],["class","loader",4,"ngIf"],["class","savings-account-tables layout-row gap-2percent",4,"ngIf"],[1,"loader"],[1,"loading"],[1,"savings-account-tables","layout-row","gap-2percent"],[1,"flex-49","layout-column","gap-4percent"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","flex-49",4,"ngIf","ngIfElse"],[1,"table-headers"],[1,"r-amount"],[3,"externalId"],[1,"flex-49"],[4,"mifosxHasPermission"]],template:function(s,r){s&1&&(d(0,Il,4,0,"div",2),t(1,` `),d(2,g0,17,5,"div",3),t(3,` -`)),s&2&&(l("ngIf",r.isLoading),o(2),l("ngIf",!r.isLoading))},dependencies:[T,N,fe,P,Rt,Lt,O,Vt,Ve,de,dn],styles:[".loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:640px}50%{left:1120px}66.7%{left:640px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:160px}16.7%{width:640px}33.3%{width:640px}50%{width:160px}66.7%{width:640px}83.3%{width:640px}to{width:160px}}.general-tab-container[_ngcontent-%COMP%]{padding:16px 20px;width:100%;box-sizing:border-box;position:relative;background-color:var(--background-color, #f8f9fa);color:var(--text-color, #333);transition:background-color .3s ease,color .3s ease}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:24px;padding:16px 0;position:relative;border-bottom:1px solid var(--border-color, #e9ecef)}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:600;margin:0 0 8px;line-height:1.2;color:var(--primary-color, #007bff);position:relative}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.95rem;margin:0;line-height:1.4;color:var(--text-secondary, #6c757d);position:relative}.general-tab-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%]{background:var(--card-background, #fff);border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;position:relative;width:100%;max-width:600px;transition:box-shadow .3s ease,background-color .3s ease}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:16px 20px;background:var(--card-header-bg, #f8f9fa);border-bottom:1px solid var(--border-color, #e9ecef);position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;line-height:1.3;color:var(--text-color, #333)}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:20px;position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--border-light, #f1f3f4);position:relative;min-height:24px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:var(--text-secondary, #6c757d);flex:0 0 auto;margin-right:16px;white-space:nowrap;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;color:var(--text-color, #333);text-align:right;flex:1 1 auto;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value.currency[_ngcontent-%COMP%]{color:var(--success-color, #28a745);font-size:1.05rem}[data-theme=dark][_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%], .dark-theme[_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%]{--background-color: #1a1a1a;--text-color: #e9ecef;--text-secondary: #adb5bd;--primary-color: #4dabf7;--card-background: #2d3748;--card-header-bg: #374151;--border-color: #4a5568;--border-light: #2d3748;--success-color: #68d391}@media (width <= 768px){.general-tab-container[_ngcontent-%COMP%]{padding:12px 16px}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:20px;padding:12px 0}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.5rem}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:14px 16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{padding:8px 0}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-right:12px}}"]})}}return e})();var f0=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1,addBreadcrumbLink:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:Vn,resolve:{savingsAccountTemplate:Wn}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:_n,resolve:{savingsAccountData:He,savingsDatatables:si},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"Savings Account Details",breadcrumb:"General",routeParamBreadcrumb:!1},children:[{path:"",component:Xn}]},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Cn},{path:"export",component:qn}]},{path:"charges",component:Bn,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:Nn,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:Kn,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:Hi}},{path:"documents",component:Qn,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:zi}},{path:"datatables",children:[{path:":datatableName",component:Rn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ri}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ln,resolve:{savingsAccountAndTemplate:pi}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:jn,resolve:{transactionDatatables:li},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Jn,resolve:{savingsAccountTransaction:di}},{path:"datatables",children:[{path:":datatableName",component:hn,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:mi}}]}]},{path:"edit",component:Hn,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:vi}},{path:"reciept",component:Un,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:fi}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:Gn,resolve:{savingsAccountData:He,savingsAccountCharge:ui}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:kn,resolve:{savingsAccountActionData:gi}},{path:":savingAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-5U5L3F6Y.js").then(e=>e.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:zn,resolve:{groupsData:qi,savingsAccountTemplate:Wn}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:$n,resolve:{gsimData:xi,savingAccountData:He,groupsData:oi}}]}]}]}],$i=(()=>{class e{static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=We({providers:[He,si,ri,mi,li,Wn,pi,di,ui,gi,fi,vi,Ui,oi,xi],imports:[ii.forChild(f0),ii]})}}return e})();var Wi=(()=>{class e{constructor(){}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-savings-transaction-datatable-tab"]],decls:4,vars:3,template:function(s,r){s&1&&(i(0,"p"),t(1),c(2,"translate"),a(),t(3,` +`)),s&2&&(l("ngIf",r.isLoading),o(2),l("ngIf",!r.isLoading))},dependencies:[T,N,fe,P,Rt,Lt,O,Vt,Ve,de,dn],styles:[".loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:640px}50%{left:1120px}66.7%{left:640px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:160px}16.7%{width:640px}33.3%{width:640px}50%{width:160px}66.7%{width:640px}83.3%{width:640px}to{width:160px}}.general-tab-container[_ngcontent-%COMP%]{padding:16px 20px;width:100%;box-sizing:border-box;position:relative;background-color:var(--background-color, #f8f9fa);color:var(--text-color, #333);transition:background-color .3s ease,color .3s ease}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:24px;padding:16px 0;position:relative;border-bottom:1px solid var(--border-color, #e9ecef)}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:600;margin:0 0 8px;line-height:1.2;color:var(--primary-color, #007bff);position:relative}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.95rem;margin:0;line-height:1.4;color:var(--text-secondary, #6c757d);position:relative}.general-tab-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%]{background:var(--card-background, #fff);border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;position:relative;width:100%;max-width:600px;transition:box-shadow .3s ease,background-color .3s ease}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:16px 20px;background:var(--card-header-bg, #f8f9fa);border-bottom:1px solid var(--border-color, #e9ecef);position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;line-height:1.3;color:var(--text-color, #333)}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:20px;position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--border-light, #f1f3f4);position:relative;min-height:24px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:var(--text-secondary, #6c757d);flex:0 0 auto;margin-right:16px;white-space:nowrap;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;color:var(--text-color, #333);text-align:right;flex:1 1 auto;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value.currency[_ngcontent-%COMP%]{color:var(--success-color, #28a745);font-size:1.05rem}[data-theme=dark][_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%], .dark-theme[_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%]{--background-color: #1a1a1a;--text-color: #e9ecef;--text-secondary: #adb5bd;--primary-color: #4dabf7;--card-background: #2d3748;--card-header-bg: #374151;--border-color: #4a5568;--border-light: #2d3748;--success-color: #68d391}@media (width <= 768px){.general-tab-container[_ngcontent-%COMP%]{padding:12px 16px}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:20px;padding:12px 0}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.5rem}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:14px 16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{padding:8px 0}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-right:12px}}"]})}}return e})();var f0=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1,addBreadcrumbLink:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:Vn,resolve:{savingsAccountTemplate:Wn}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:_n,resolve:{savingsAccountData:He,savingsDatatables:si},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"Savings Account Details",breadcrumb:"General",routeParamBreadcrumb:!1},children:[{path:"",component:Xn}]},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Cn},{path:"export",component:qn}]},{path:"charges",component:Bn,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:Nn,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:Kn,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:Hi}},{path:"documents",component:Qn,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:zi}},{path:"datatables",children:[{path:":datatableName",component:Rn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ri}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ln,resolve:{savingsAccountAndTemplate:pi}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:jn,resolve:{transactionDatatables:li},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Jn,resolve:{savingsAccountTransaction:di}},{path:"datatables",children:[{path:":datatableName",component:hn,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:mi}}]}]},{path:"edit",component:Hn,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:vi}},{path:"reciept",component:Un,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:fi}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:Gn,resolve:{savingsAccountData:He,savingsAccountCharge:ui}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:kn,resolve:{savingsAccountActionData:gi}},{path:":savingAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-M43K676L.js").then(e=>e.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:zn,resolve:{groupsData:qi,savingsAccountTemplate:Wn}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:$n,resolve:{gsimData:xi,savingAccountData:He,groupsData:oi}}]}]}]}],$i=(()=>{class e{static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=We({providers:[He,si,ri,mi,li,Wn,pi,di,ui,gi,fi,vi,Ui,oi,xi],imports:[ii.forChild(f0),ii]})}}return e})();var Wi=(()=>{class e{constructor(){}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-savings-transaction-datatable-tab"]],decls:4,vars:3,template:function(s,r){s&1&&(i(0,"p"),t(1),c(2,"translate"),a(),t(3,` `)),s&2&&(o(),v("",m(2,1,"labels.heading.savings-transaction-datatable-tab works"),"!"))},dependencies:[T,P,O],encapsulation:2})}}return e})();var hh=(()=>{class e{static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=We({imports:[ji,Fi,Ni,$i,kn,Dn,Cn,_n,Bn,Nn,Rn,Vn,se,me,ce,Me,Ln,bn,Sn,Mn,An,Tn,Pn,yn,fn,vn,jn,Ge,Gn,Ue,qe,On,In,En,ze,Un,qn,Hn,wn,$n,zn,Fn,Yn,Qn,Kn,hn,Jn,Wi,Xn,$e]})}}return e})();export{hh as SavingsModule}; diff --git a/browser/shares.module-OP7N65KT.js b/browser/shares.module-GOTOSBW7.js similarity index 99% rename from browser/shares.module-OP7N65KT.js rename to browser/shares.module-GOTOSBW7.js index b12b289f9..cf1baca58 100644 --- a/browser/shares.module-OP7N65KT.js +++ b/browser/shares.module-GOTOSBW7.js @@ -1,4 +1,4 @@ -import{$b as K,$c as pe,$e as Ie,Ac as E,Bd as Se,Ca as H,Cb as xt,Cd as ve,Dd as _e,Ed as Ci,Ee as at,F as Ne,Fa as te,Fb as ci,Fc as re,Fd as Be,G as dt,Ga as ie,Gc as q,Gd as je,Ha as ne,Hd as Dt,I as Oe,Ia as R,If as wt,Ja as e,Ka as u,Kc as oe,Kd as be,Kf as Pi,La as S,Lc as $,M as ut,Ma as P,Mc as se,N as y,Nc as W,Nd as Ai,Nf as wi,O as I,Od as Tt,Oe as rt,Of as st,Pc as ui,Pe as yt,Pf as mt,Qf as Ri,Re as It,Rf as Fi,Sc as Y,Sd as gi,Se as Et,Ta as N,Tc as hi,Te as Mt,U as ht,Ua as si,Ue as Pt,Vc as me,Vd as bi,Ve as ot,Wa as m,Wd as Di,We as Ue,Xa as c,Xb as F,Xd as Ti,Xe as De,Ya as ae,Yb as pi,Yc as ce,Yd as Le,Ye as Te,Za as mi,Ze as ye,_a as Ce,_b as z,_f as Bi,ac as li,af as Ee,ag as ki,bc as ni,be as yi,ca as a,cf as Me,dc as St,dd as le,df as Pe,eb as Ze,ec as k,ed as fi,fb as qe,fd as T,ff as we,ga as x,gb as j,gd as de,gf as Re,ha as b,hd as xi,ia as ft,id as Si,if as Fe,ig as Rt,jd as ue,la as l,ld as ge,lf as Ve,md as vi,na as d,od as _i,pc as vt,pd as J,qc as _t,qd as he,qf as Ii,ra as i,rc as He,rf as Ei,rg as Ni,sa as n,sc as Ct,sf as Mi,ta as f,tb as et,tc as At,td as fe,tg as Oi,ua as C,ub as D,uc as gt,ud as X,va as A,vc as bt,vd as tt,wd as xe,xa as w,xd as it,ya as g,za as _,zc as di,zd as nt}from"./chunk-DUPCOD76.js";import{a as V,b as Q}from"./chunk-O7S4L63H.js";var B=(()=>{class t{constructor(r){this.http=r}getSharesAccountData(r,s){let o=new xt().set("template",s.toString());return this.http.get(`/accounts/share/${r}`,{params:o})}getSharesAccountTemplate(r,s){let o=new xt().set("clientId",r);return o=s?o.set("productId",s):o,this.http.get("/accounts/share/template",{params:o})}createSharesAccount(r){return this.http.post("/accounts/share",r)}updateSharesAccount(r,s){return this.http.put(`/accounts/share/${r}`,s)}deleteSharesAccount(r){return this.http.delete(`/accounts/share/${r}`)}executeSharesAccountCommand(r,s,o){let h=new xt().set("command",s);return this.http.post(`/accounts/share/${r}`,o,{params:h})}static{this.\u0275fac=function(s){return new(s||t)(Oe(ci))}}static{this.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ft=class{constructor(p){this.setOptions(p),this.setButtons(p)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(p){switch(p){case"Active":this.buttonsArray=[{name:"Apply Additional Shares",icon:"arrow-right",taskPermissionName:"APPLYADDITIONAL_SHAREACCOUNT"},{name:"Approve Additional Shares",icon:"arrow-right",taskPermissionName:"APPROVEADDITIONAL_SHAREACCOUNT"},{name:"Reject Additional Shares",icon:"arrow-left",taskPermissionName:"REJECTADDITIONAL_SHAREACCOUNT"},{name:"Redeem Shares",icon:"arrow-left",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pencil",taskPermissionName:"UPDATE_SHAREACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SHAREACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SHAREACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SHAREACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(p){switch(p){case"Active":this.optionArray=[{name:"Close",taskPermissionName:"CLOSE_SHAREACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SHAREACCOUNT"},{name:"Delete",taskPermissionName:"DELETE_SHAREACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(p){this.optionArray.push(p)}removeButton(p){let s=this.buttonsArray.map(o=>o.name).indexOf(p);this.buttonsArray.splice(s,1)}};var Li=()=>["./general"],Ui=()=>["./transactions"],$i=()=>["./charges"],Gi=()=>["./dividends"];function zi(t,p){if(t&1&&(i(0,"span",31),e(1,` +import{$b as K,$c as pe,$e as Ie,Ac as E,Bd as Se,Ca as H,Cb as xt,Cd as ve,Dd as _e,Ed as Ci,Ee as at,F as Ne,Fa as te,Fb as ci,Fc as re,Fd as Be,G as dt,Ga as ie,Gc as q,Gd as je,Ha as ne,Hd as Dt,I as Oe,Ia as R,If as wt,Ja as e,Ka as u,Kc as oe,Kd as be,Kf as Pi,La as S,Lc as $,M as ut,Ma as P,Mc as se,N as y,Nc as W,Nd as Ai,Nf as wi,O as I,Od as Tt,Oe as rt,Of as st,Pc as ui,Pe as yt,Pf as mt,Qf as Ri,Re as It,Rf as Fi,Sc as Y,Sd as gi,Se as Et,Ta as N,Tc as hi,Te as Mt,U as ht,Ua as si,Ue as Pt,Vc as me,Vd as bi,Ve as ot,Wa as m,Wd as Di,We as Ue,Xa as c,Xb as F,Xd as Ti,Xe as De,Ya as ae,Yb as pi,Yc as ce,Yd as Le,Ye as Te,Za as mi,Ze as ye,_a as Ce,_b as z,_f as Bi,ac as li,af as Ee,ag as ki,bc as ni,be as yi,ca as a,cf as Me,dc as St,dd as le,df as Pe,eb as Ze,ec as k,ed as fi,fb as qe,fd as T,ff as we,ga as x,gb as j,gd as de,gf as Re,ha as b,hd as xi,ia as ft,id as Si,if as Fe,ig as Rt,jd as ue,la as l,ld as ge,lf as Ve,md as vi,na as d,od as _i,pc as vt,pd as J,qc as _t,qd as he,qf as Ii,ra as i,rc as He,rf as Ei,rg as Ni,sa as n,sc as Ct,sf as Mi,ta as f,tb as et,tc as At,td as fe,tg as Oi,ua as C,ub as D,uc as gt,ud as X,va as A,vc as bt,vd as tt,wd as xe,xa as w,xd as it,ya as g,za as _,zc as di,zd as nt}from"./chunk-DMOOHS3H.js";import{a as V,b as Q}from"./chunk-O7S4L63H.js";var B=(()=>{class t{constructor(r){this.http=r}getSharesAccountData(r,s){let o=new xt().set("template",s.toString());return this.http.get(`/accounts/share/${r}`,{params:o})}getSharesAccountTemplate(r,s){let o=new xt().set("clientId",r);return o=s?o.set("productId",s):o,this.http.get("/accounts/share/template",{params:o})}createSharesAccount(r){return this.http.post("/accounts/share",r)}updateSharesAccount(r,s){return this.http.put(`/accounts/share/${r}`,s)}deleteSharesAccount(r){return this.http.delete(`/accounts/share/${r}`)}executeSharesAccountCommand(r,s,o){let h=new xt().set("command",s);return this.http.post(`/accounts/share/${r}`,o,{params:h})}static{this.\u0275fac=function(s){return new(s||t)(Oe(ci))}}static{this.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ft=class{constructor(p){this.setOptions(p),this.setButtons(p)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(p){switch(p){case"Active":this.buttonsArray=[{name:"Apply Additional Shares",icon:"arrow-right",taskPermissionName:"APPLYADDITIONAL_SHAREACCOUNT"},{name:"Approve Additional Shares",icon:"arrow-right",taskPermissionName:"APPROVEADDITIONAL_SHAREACCOUNT"},{name:"Reject Additional Shares",icon:"arrow-left",taskPermissionName:"REJECTADDITIONAL_SHAREACCOUNT"},{name:"Redeem Shares",icon:"arrow-left",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pencil",taskPermissionName:"UPDATE_SHAREACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SHAREACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SHAREACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SHAREACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(p){switch(p){case"Active":this.optionArray=[{name:"Close",taskPermissionName:"CLOSE_SHAREACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SHAREACCOUNT"},{name:"Delete",taskPermissionName:"DELETE_SHAREACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(p){this.optionArray.push(p)}removeButton(p){let s=this.buttonsArray.map(o=>o.name).indexOf(p);this.buttonsArray.splice(s,1)}};var Li=()=>["./general"],Ui=()=>["./transactions"],$i=()=>["./charges"],Gi=()=>["./dividends"];function zi(t,p){if(t&1&&(i(0,"span",31),e(1,` `),f(2,"mifosx-account-number",32),e(3,` `),n()),t&2){let r=_();a(2),H("accountNo",r.sharesAccountData.clientAccountNo)}}function Qi(t,p){if(t&1&&(i(0,"tr"),e(1,` `),i(2,"td"),e(3),m(4,"translate"),n(),e(5,`