From 151498639233902656e87d3ab596b5db95b137fa Mon Sep 17 00:00:00 2001 From: alberto-art3ch Date: Thu, 4 Dec 2025 17:59:51 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20openMF/w?= =?UTF-8?q?eb-app@923f7927060dabe2ab2974daa39e8d2ff1c338ed=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...s => account-transfers.module-7RLATWW2.js} | 2 +- browser/assets/translations/en-US.json | 2 + .../{chunk-74MN6JT4.js => chunk-3WBZP2ER.js} | 2 +- .../{chunk-CPNLZPUS.js => chunk-72JMMEIC.js} | 2 +- .../{chunk-H7VUTV6Q.js => chunk-D3O5676W.js} | 2 +- .../{chunk-PPCDQWQL.js => chunk-GWLT6I7C.js} | 2 +- .../{chunk-HBP5OFHI.js => chunk-MZ5X4XIG.js} | 2 +- .../{chunk-S3Z3ZVFE.js => chunk-OCC5TCCV.js} | 2 +- .../{chunk-E5OIKCZE.js => chunk-UVJEJBJZ.js} | 2 +- ...7LQ2.js => collaterals.module-QLGAWWRW.js} | 2 +- ...M.js => fixed-deposits.module-ETG456KY.js} | 4 +- browser/index.html | 2 +- ...e-DDVH7NXY.js => loans.module-4IOD2I2C.js} | 3938 +++---- browser/main.js | 9480 +++++++++-------- ... => recurring-deposits.module-OYEWVGZI.js} | 4 +- ...MXMZV5BM.js => savings.module-2IP475D4.js} | 4 +- ...-6QG3LJFL.js => shares.module-DKACCFDS.js} | 2 +- 17 files changed, 6734 insertions(+), 6720 deletions(-) rename browser/{account-transfers.module-EWXN7ZYL.js => account-transfers.module-7RLATWW2.js} (99%) rename browser/{chunk-74MN6JT4.js => chunk-3WBZP2ER.js} (97%) rename browser/{chunk-CPNLZPUS.js => chunk-72JMMEIC.js} (97%) rename browser/{chunk-H7VUTV6Q.js => chunk-D3O5676W.js} (82%) rename browser/{chunk-PPCDQWQL.js => chunk-GWLT6I7C.js} (99%) rename browser/{chunk-HBP5OFHI.js => chunk-MZ5X4XIG.js} (99%) rename browser/{chunk-S3Z3ZVFE.js => chunk-OCC5TCCV.js} (91%) rename browser/{chunk-E5OIKCZE.js => chunk-UVJEJBJZ.js} (89%) rename browser/{collaterals.module-4X5E7LQ2.js => collaterals.module-QLGAWWRW.js} (99%) rename browser/{fixed-deposits.module-OIECFRQM.js => fixed-deposits.module-ETG456KY.js} (99%) rename browser/{loans.module-DDVH7NXY.js => loans.module-4IOD2I2C.js} (78%) rename browser/{recurring-deposits.module-57D2TSHS.js => recurring-deposits.module-OYEWVGZI.js} (99%) rename browser/{savings.module-MXMZV5BM.js => savings.module-2IP475D4.js} (99%) rename browser/{shares.module-6QG3LJFL.js => shares.module-DKACCFDS.js} (99%) diff --git a/browser/account-transfers.module-EWXN7ZYL.js b/browser/account-transfers.module-7RLATWW2.js similarity index 99% rename from browser/account-transfers.module-EWXN7ZYL.js rename to browser/account-transfers.module-7RLATWW2.js index 2035d99cf..fa515b335 100644 --- a/browser/account-transfers.module-EWXN7ZYL.js +++ b/browser/account-transfers.module-7RLATWW2.js @@ -1,4 +1,4 @@ -import{a as D}from"./chunk-CPNLZPUS.js";import{$c as at,$d as Ne,$e as $t,Aa as T,Ad as mt,Ba as S,Bg as Ue,Cd as ct,Dc as w,Ea as Lt,Ed as pt,Fc as Ae,Fd as dt,G as H,Gd as ut,H as Vt,Ha as At,He as yt,Ia as Mt,Ic as ht,Id as ft,J as R,Ja as kt,Jc as z,Ka as E,Kd as U,La as t,Ma as c,Na as _,Nc as Q,Nd as xt,O as h,Oa as v,Oc as g,P as C,Pa as Se,Pc as W,Qc as et,Ra as Te,Rd as Pe,Rf as Re,Sa as he,Ta as Ce,Tc as Ft,Tf as Le,Uc as Me,Uf as He,Va as L,Vc as nt,Vd as _t,Vf as je,Wa as Z,Wc as Ct,Xc as ke,Ya as o,Yc as it,Za as l,_a as Bt,_b as q,_e as jt,aa as me,af as Ut,bc as Tt,bd as Be,cc as G,cd as rt,cf as Gt,df as zt,ea as a,ec as ce,ed as Fe,fb as be,ff as Qt,gb as ye,gd as bt,gf as Wt,gg as $e,hb as tt,hc as j,hd as we,ia as I,ib as N,id as O,if as Yt,ja as M,jd as V,jf as Jt,ka as Rt,lf as Kt,md as $,na as u,od as ot,of as wt,pa as m,qb as Ee,sd as Y,ta as n,td as lt,ua as e,uc as De,ud as Oe,ue as qe,va as f,ve as Ve,wa as k,wb as F,wd as st,xa as B,xd as J,yd as Ht,za as A,zd as K}from"./chunk-PPCDQWQL.js";import{a as Nt,b as qt}from"./chunk-PHUH23IY.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-72JMMEIC.js";import{$c as at,$d as Ne,$e as $t,Aa as T,Ad as mt,Ba as S,Bg as Ue,Cd as ct,Dc as w,Ea as Lt,Ed as pt,Fc as Ae,Fd as dt,G as H,Gd as ut,H as Vt,Ha as At,He as yt,Ia as Mt,Ic as ht,Id as ft,J as R,Ja as kt,Jc as z,Ka as E,Kd as U,La as t,Ma as c,Na as _,Nc as Q,Nd as xt,O as h,Oa as v,Oc as g,P as C,Pa as Se,Pc as W,Qc as et,Ra as Te,Rd as Pe,Rf as Re,Sa as he,Ta as Ce,Tc as Ft,Tf as Le,Uc as Me,Uf as He,Va as L,Vc as nt,Vd as _t,Vf as je,Wa as Z,Wc as Ct,Xc as ke,Ya as o,Yc as it,Za as l,_a as Bt,_b as q,_e as jt,aa as me,af as Ut,bc as Tt,bd as Be,cc as G,cd as rt,cf as Gt,df as zt,ea as a,ec as ce,ed as Fe,fb as be,ff as Qt,gb as ye,gd as bt,gf as Wt,gg as $e,hb as tt,hc as j,hd as we,ia as I,ib as N,id as O,if as Yt,ja as M,jd as V,jf as Jt,ka as Rt,lf as Kt,md as $,na as u,od as ot,of as wt,pa as m,qb as Ee,sd as Y,ta as n,td as lt,ua as e,uc as De,ud as Oe,ue as qe,va as f,ve as Ve,wa as k,wb as F,wd as st,xa as B,xd as J,yd as Ht,za as A,zd as K}from"./chunk-GWLT6I7C.js";import{a as Nt,b as qt}from"./chunk-PHUH23IY.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/assets/translations/en-US.json b/browser/assets/translations/en-US.json index 65dc2d853..33ee0a706 100644 --- a/browser/assets/translations/en-US.json +++ b/browser/assets/translations/en-US.json @@ -1599,6 +1599,7 @@ "Enable Dormancy Tracking": "Enable Dormancy Tracking", "Enable Down Payment": "Enable Down Payment", "Enable Multiple Disbursals": "Enable Multiple Disbursals", + "Allow full term for each tranche": "Allow full term for each tranche", "Enabled": "Enabled", "End Date": "End Date", "End Point": "End Point", @@ -3566,6 +3567,7 @@ "Keyboard Shortcuts": "Keyboard Shortcuts", "Leave this checkbox checked if the loan has Down Payment": "Leave this checkbox checked if the loan has Down Payment, A Down Payment is a sum a buyer pays upfront when purchasing a good. It represents a percentage of the total purchase price, and the balance is usually financed", "Leave this checkbox unchecked": "Leave this checkbox unchecked if the loan is a single disburse loan. Check this checkbox if the loan is a multi disburse loan. See additional fields for additional information required for this type of loan.", + "Allow full term length for each tranche disbursement": "When enabled, each tranche disbursement will follow the full loan term schedule instead of fitting within the remaining term. Only available for PROGRESSIVE loan schedule type.", "Loan Account": "Loan Account", "Loan Product can be used to apply for Topup Loans": "If selected, the Loan Product can be used to apply for Top Up Loans.", "Loan products may be assigned": "Loan products may be assigned to a fund set up by your financial institution. If available, the fund field can be used for tracking and reporting on groups of loans.", diff --git a/browser/chunk-74MN6JT4.js b/browser/chunk-3WBZP2ER.js similarity index 97% rename from browser/chunk-74MN6JT4.js rename to browser/chunk-3WBZP2ER.js index 1136ede87..b7eb24884 100644 --- a/browser/chunk-74MN6JT4.js +++ b/browser/chunk-3WBZP2ER.js @@ -1 +1 @@ -import{Fb as c,G as i,Ib as d,J as p,Wf as n,k as u}from"./chunk-PPCDQWQL.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{Fb as c,G as i,Ib as d,J as p,Wf as n,k as u}from"./chunk-GWLT6I7C.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-CPNLZPUS.js b/browser/chunk-72JMMEIC.js similarity index 97% rename from browser/chunk-CPNLZPUS.js rename to browser/chunk-72JMMEIC.js index 87c5bcaf0..5d065c097 100644 --- a/browser/chunk-CPNLZPUS.js +++ b/browser/chunk-72JMMEIC.js @@ -1 +1 @@ -import{B as g,Eb as m,Fb as a,Fc as i,G as f,Ib as N,J as l}from"./chunk-PPCDQWQL.js";import{a as d,b as h}from"./chunk-PHUH23IY.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{B as g,Eb as m,Fb as a,Fc as i,G as f,Ib as N,J as l}from"./chunk-GWLT6I7C.js";import{a as d,b as h}from"./chunk-PHUH23IY.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-H7VUTV6Q.js b/browser/chunk-D3O5676W.js similarity index 82% rename from browser/chunk-H7VUTV6Q.js rename to browser/chunk-D3O5676W.js index c9d6aa8c8..2b423afc2 100644 --- a/browser/chunk-H7VUTV6Q.js +++ b/browser/chunk-D3O5676W.js @@ -1 +1 @@ -import{G as r,J as c,Yf as a}from"./chunk-PPCDQWQL.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{G as r,J as c,Yf as a}from"./chunk-GWLT6I7C.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-PPCDQWQL.js b/browser/chunk-GWLT6I7C.js similarity index 99% rename from browser/chunk-PPCDQWQL.js rename to browser/chunk-GWLT6I7C.js index e2db779cd..b056f485b 100644 --- a/browser/chunk-PPCDQWQL.js +++ b/browser/chunk-GWLT6I7C.js @@ -13,7 +13,7 @@ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(` `+t.message,r,e,n),t[bN]=r,t[i0]=null,t}function DN(t,i,e,n=null){t=t&&t.charAt(0)===` `&&t.charAt(1)==CN?t.slice(2):t;let r=er(i);if(Array.isArray(i))r=i.map(er).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):er(s)))}r=`{${a.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(yN,` `)}`}var vr=ay(Kb("Optional"),8);var ta=ay(Kb("SkipSelf"),4);function Ks(t,i){let e=t.hasOwnProperty(t0);return e?t[t0]:null}function SN(t,i,e){if(t.length!==i.length)return!1;for(let n=0;nArray.isArray(e)?gg(e,i):i(e))}function oy(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function r0(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function IN(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 A0(t,i,e){let n=V1(t,i);return n>=0?t[n|1]=e:(n=~n,EN(t,n,i,e)),n}function Gh(t,i){let e=V1(t,i);if(e>=0)return t[e|1]}function V1(t,i){return ON(t,i,1)}function ON(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 gg(i,o=>{let s=o;l6(s,a,[],n)&&(r||=[],r.push(s))}),r!==void 0&&my(r,a),e}function my(t,i){for(let e=0;e{i(a,n)})}}function l6(t,i,e,n){if(t=gi(t),!t)return!1;let r=null,a=eb(t),o=!a&&qo(t);if(!a&&!o){let d=t.ngModule;if(a=eb(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 f of d)l6(f,i,e,n)}}else if(a){if(a.imports!=null&&!s){n.add(r);let f;try{gg(a.imports,v=>{l6(v,i,e,n)&&(f||=[],f.push(v))})}finally{}f!==void 0&&my(f,i)}if(!s){let f=Ks(r)||(()=>new r);i({provide:r,useFactory:f,deps:Ni},r),i({provide:cy,useValue:r,multi:!0},r),i({provide:Cl,useValue:()=>oe(r),multi:!0},r)}let d=a.providers;if(d!=null&&!s){let f=t;_g(d,v=>{i(v,f)})}}else return!1;return r!==t&&t.providers!==void 0}function _g(t,i){for(let e of t)ty(e)&&(e=e.\u0275providers),Array.isArray(e)?_g(e,i):i(e)}var AN=Yt({provide:String,useValue:Yt});function py(t){return t!==null&&typeof t=="object"&&AN in t}function VN(t){return!!(t&&t.useExisting)}function zN(t){return!!(t&&t.useFactory)}function xl(t){return typeof t=="function"}function LN(t){return!!t.useClass}var V0=new V(""),K3={},rb={},Wh;function z0(){return Wh===void 0&&(Wh=new a0),Wh}var yn=class{},D1=class extends yn{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,u6(i,o=>this.processProvider(o)),this.records.set(sy,hl(void 0,this)),r.has("environment")&&this.records.set(yn,hl(void 0,this));let a=this.records.get(V0);a!=null&&typeof a.value=="string"&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(cy,Ni,gt.Self))}retrieve(i,e){let n=e;return this.get(i,n.optional?h3:Ys,n)}destroy(){y1(this),this._destroyed=!0;let i=_t(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(),_t(i)}}onDestroy(i){return y1(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){y1(this);let e=ao(this),n=Zi(void 0),r;try{return i()}finally{ao(e),Zi(n)}}get(i,e=Ys,n=gt.Default){if(y1(this),i.hasOwnProperty(nb))return i[nb](this);n=T0(n);let r,a=ao(this),o=Zi(void 0);try{if(!(n>.SkipSelf)){let d=this.records.get(i);if(d===void 0){let f=BN(i)&&P0(i);f&&this.injectableDefInScope(f)?d=hl(d6(i),K3):d=null,this.records.set(i,d)}if(d!=null)return this.hydrate(i,d,n)}let s=n>.Self?z0():this.parent;return e=n>.Optional&&e===Ys?null:e,s.get(i,e)}catch(s){if(s.name==="NullInjectorError"){if((s[i0]=s[i0]||[]).unshift(er(i)),a)throw s;return wN(s,i,"R3InjectorError",this.source)}else throw s}finally{Zi(o),ao(a)}}resolveInjectorInitializers(){let i=_t(null),e=ao(this),n=Zi(void 0),r;try{let a=this.get(Cl,Ni,gt.Self);for(let o of a)o()}finally{ao(e),Zi(n),_t(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(er(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=gi(i);let e=xl(i)?i:gi(i&&i.provide),n=HN(i);if(!xl(i)&&i.multi===!0){let r=this.records.get(e);r||(r=hl(void 0,K3,!0),r.factory=()=>c6(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let r=_t(null);try{return e.value===rb?ny(er(i)):e.value===K3&&(e.value=rb,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&FN(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{_t(r)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=gi(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 d6(t){let i=P0(t),e=i!==null?i.factory:Ks(t);if(e!==null)return e;if(t instanceof V)throw new Ce(204,!1);if(t instanceof Function)return RN(t);throw new Ce(204,!1)}function RN(t){if(t.length>0)throw new Ce(204,!1);let e=uN(t);return e!==null?()=>e.factory(t):()=>new t}function HN(t){if(py(t))return hl(void 0,t.useValue);{let i=fy(t);return hl(i,K3)}}function fy(t,i,e){let n;if(xl(t)){let r=gi(t);return Ks(r)||d6(r)}else if(py(t))n=()=>gi(t.useValue);else if(zN(t))n=()=>t.useFactory(...c6(t.deps||[]));else if(VN(t))n=(r,a)=>oe(gi(t.useExisting),a!==void 0&&a>.Optional?gt.Optional:void 0);else{let r=gi(t&&(t.useClass||t.provide));if(NN(t))n=()=>new r(...c6(t.deps));else return Ks(r)||d6(r)}return n}function y1(t){if(t.destroyed)throw new Ce(205,!1)}function hl(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function NN(t){return!!t.deps}function FN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function BN(t){return typeof t=="function"||typeof t=="object"&&t instanceof V}function u6(t,i){for(let e of t)Array.isArray(e)?u6(e,i):e&&ty(e)?u6(e.\u0275providers,i):i(e)}function tr(t,i){let e;t instanceof D1?(y1(t),e=t):e=new n0(t);let n,r=ao(e),a=Zi(void 0);try{return i()}finally{ao(r),Zi(a)}}function vg(){return iy()!==void 0||p1()!=null}function bg(t){if(!vg())throw new Ce(-203,!1)}function jN(t){let i=si.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function UN(t){return typeof t=="function"}var fo=0,ut=1,nt=2,Di=3,ea=4,nr=5,Ml=6,o0=7,Xn=8,wl=9,lo=10,sn=11,S1=12,ab=13,Pl=14,gr=15,Xs=16,gl=17,uo=18,L0=19,hy=20,Go=21,qh=22,Zs=23,Vr=24,bl=25,On=26,gy=1;var Js=7,s0=8,Dl=9,wi=10;function Wo(t){return Array.isArray(t)&&typeof t[gy]=="object"}function ho(t){return Array.isArray(t)&&t[gy]===!0}function yg(t){return(t.flags&4)!==0}function Tl(t){return t.componentOffset>-1}function R0(t){return(t.flags&1)===1}function ka(t){return!!t.template}function c0(t){return(t[nt]&512)!==0}function Al(t){return(t[nt]&256)===256}var m6=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function _y(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var Pe=(()=>{let t=()=>vy;return t.ngInherit=!0,t})();function vy(t){return t.type.prototype.ngOnChanges&&(t.setInput=GN),$N}function $N(){let t=yy(this),i=t?.current;if(i){let e=t.previous;if(e===Sa)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function GN(t,i,e,n,r){let a=this.declaredInputs[n],o=yy(t)||WN(t,{previous:Sa,current:null}),s=o.current||(o.current={}),d=o.previous,f=d[a];s[a]=new m6(f&&f.currentValue,e,d===Sa),_y(t,i,r,e)}var by="__ngSimpleChanges__";function yy(t){return t[by]||null}function WN(t,i){return t[by]=i}var ob=null;var Xt=function(t,i=null,e){ob?.(t,i,e)},Cy="svg",qN="math";function Ia(t){for(;Array.isArray(t);)t=t[fo];return t}function xy(t,i){return Ia(i[t])}function Ta(t,i){return Ia(i[t.index])}function Cg(t,i){return t.data[i]}function z1(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 Ea(t,i){let e=i[t];return Wo(e)?e:e[fo]}function YN(t){return(t[nt]&4)===4}function xg(t){return(t[nt]&128)===128}function QN(t){return ho(t[Di])}function Yo(t,i){return i==null?null:t[i]}function wy(t){t[gl]=0}function Dy(t){t[nt]&1024||(t[nt]|=1024,xg(t)&&Vl(t))}function KN(t,i){for(;t>0;)i=i[Pl],t--;return i}function H0(t){return!!(t[nt]&9216||t[Vr]?.dirty)}function p6(t){t[lo].changeDetectionScheduler?.notify(8),t[nt]&64&&(t[nt]|=1024),H0(t)&&Vl(t)}function Vl(t){t[lo].changeDetectionScheduler?.notify(0);let i=ec(t);for(;i!==null&&!(i[nt]&8192||(i[nt]|=8192,!xg(i)));)i=ec(i)}function Sy(t,i){if(Al(t))throw new Ce(911,!1);t[Go]===null&&(t[Go]=[]),t[Go].push(i)}function XN(t,i){if(t[Go]===null)return;let e=t[Go].indexOf(i);e!==-1&&t[Go].splice(e,1)}function ec(t){let i=t[Di];return ho(i)?i[Di]:i}function Mg(t){return t[o0]??=[]}function wg(t){return t.cleanup??=[]}function ZN(t,i,e,n){let r=Mg(i);r.push(e),t.firstCreatePass&&wg(t).push(n,r.length-1)}var pt={lFrame:Ty(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var f6=!1;function JN(){return pt.lFrame.elementDepthCount}function eF(){pt.lFrame.elementDepthCount++}function tF(){pt.lFrame.elementDepthCount--}function Dg(){return pt.bindingsEnabled}function ky(){return pt.skipHydrationRootTNode!==null}function nF(t){return pt.skipHydrationRootTNode===t}function iF(){pt.skipHydrationRootTNode=null}function Ue(){return pt.lFrame.lView}function Zt(){return pt.lFrame.tView}function U(t){return pt.lFrame.contextLView=t,t[Xn]}function $(t){return pt.lFrame.contextLView=null,t}function ki(){let t=Iy();for(;t!==null&&t.type===64;)t=t.parent;return t}function Iy(){return pt.lFrame.currentTNode}function rF(){let t=pt.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function Qo(t,i){let e=pt.lFrame;e.currentTNode=t,e.isParent=i}function Sg(){return pt.lFrame.isParent}function kg(){pt.lFrame.isParent=!1}function aF(){return pt.lFrame.contextLView}function Ey(){return f6}function l0(t){let i=f6;return f6=t,i}function sc(){let t=pt.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Ig(){return pt.lFrame.bindingIndex}function oF(t){return pt.lFrame.bindingIndex=t}function cc(){return pt.lFrame.bindingIndex++}function L1(t){let i=pt.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function sF(){return pt.lFrame.inI18n}function cF(t,i){let e=pt.lFrame;e.bindingIndex=e.bindingRootIndex=t,h6(i)}function lF(){return pt.lFrame.currentDirectiveIndex}function h6(t){pt.lFrame.currentDirectiveIndex=t}function dF(t){let i=pt.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Eg(){return pt.lFrame.currentQueryIndex}function N0(t){pt.lFrame.currentQueryIndex=t}function uF(t){let i=t[ut];return i.type===2?i.declTNode:i.type===1?t[nr]:null}function Oy(t,i,e){if(e>.SkipSelf){let r=i,a=t;for(;r=r.parent,r===null&&!(e>.Host);)if(r=uF(a),r===null||(a=a[Pl],r.type&10))break;if(r===null)return!1;i=r,t=a}let n=pt.lFrame=Py();return n.currentTNode=i,n.lView=t,!0}function Og(t){let i=Py(),e=t[ut];pt.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function Py(){let t=pt.lFrame,i=t===null?null:t.child;return i===null?Ty(t):i}function Ty(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 Ay(){let t=pt.lFrame;return pt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Vy=Ay;function Pg(){let t=Ay();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 mF(t){return(pt.lFrame.contextLView=KN(t,pt.lFrame.contextLView))[Xn]}function na(){return pt.lFrame.selectedIndex}function tc(t){pt.lFrame.selectedIndex=t}function zl(){let t=pt.lFrame;return Cg(t.tView,t.selectedIndex)}function $t(){pt.lFrame.currentNamespace=Cy}function Aa(){pF()}function pF(){pt.lFrame.currentNamespace=null}function fF(){return pt.lFrame.currentNamespace}var zy=!0;function F0(){return zy}function B0(t){zy=t}function hF(t,i,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=i.type.prototype;if(n){let o=vy(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 Tg(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[d]<0&&(t[gl]+=65536),(s>14>16&&(t[nt]&3)===i&&(t[nt]+=16384,sb(s,a)):sb(s,a)}var yl=-1,nc=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n){this.factory=i,this.canSeeViewProviders=e,this.injectImpl=n}};function _F(t){return(t.flags&8)!==0}function vF(t){return(t.flags&16)!==0}function bF(t,i,e){let n=0;for(;ni){o=a-1;break}}}for(;a>16}function u0(t,i){let e=CF(t),n=i;for(;e>0;)n=n[Pl],e--;return n}var g6=!0;function m0(t){let i=g6;return g6=t,i}var xF=256,Ny=xF-1,Fy=5,MF=0,Da={};function wF(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(x1)&&(n=e[x1]),n==null&&(n=e[x1]=MF++);let r=n&Ny,a=1<>Fy)]|=a}function p0(t,i){let e=By(t,i);if(e!==-1)return e;let n=i[ut];n.firstCreatePass&&(t.injectorIndex=i.length,Qh(n.data,t),Qh(i,null),Qh(n.blueprint,null));let r=Ag(t,i),a=t.injectorIndex;if(Hy(r)){let o=d0(r),s=u0(r,i),d=s[ut].data;for(let f=0;f<8;f++)i[a+f]=s[o+f]|d[o+f]}return i[a+8]=r,a}function Qh(t,i){t.push(0,0,0,0,0,0,0,0,i)}function By(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ag(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=Wy(r),n===null)return yl;if(e++,r=r[Pl],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return yl}function _6(t,i,e){wF(t,i,e)}function DF(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,y=n?s:s+v,M=r?s+v:f;for(let S=y;S=d&&O.type===e)return S}if(r){let S=o[d];if(S&&ka(S)&&S.type===e)return d}return null}function k1(t,i,e,n,r){let a=t[e],o=i.data;if(a instanceof nc){let s=a;s.resolving&&ny(_N(o[e]));let d=m0(s.canSeeViewProviders);s.resolving=!0;let f,v=s.injectImpl?Zi(s.injectImpl):null,y=Oy(t,n,gt.Default);try{a=t[e]=s.factory(void 0,r,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&hF(e,o[e],i)}finally{v!==null&&Zi(v),m0(d),s.resolving=!1,Vy()}}return a}function kF(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(x1)?t[x1]:void 0;return typeof i=="number"?i>=0?i&Ny:IF:i}function lb(t,i,e){let n=1<>Fy)]&n)}function db(t,i){return!(t>.Self)&&!(t>.Host&&i)}var Qs=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return $y(this._tNode,this._lView,i,T0(n),e)}};function IF(){return new Qs(ki(),Ue())}function we(t){return A1(()=>{let i=t.prototype.constructor,e=i[t0]||v6(i),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let a=r[t0]||v6(r);if(a&&a!==e)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function v6(t){return Xb(t)?()=>{let i=v6(gi(t));return i&&i()}:Ks(t)}function EF(t,i,e,n,r){let a=t,o=i;for(;a!==null&&o!==null&&o[nt]&2048&&!c0(o);){let s=Gy(a,o,e,n|gt.Self,Da);if(s!==Da)return s;let d=a.parent;if(!d){let f=o[hy];if(f){let v=f.get(e,Da,n);if(v!==Da)return v}d=Wy(o),o=o[Pl]}a=d}return r}function Wy(t){let i=t[ut],e=i.type;return e===2?i.declTNode:e===1?t[nr]:null}function j0(t){return DF(ki(),t)}function ub(t,i=null,e=null,n){let r=qy(t,i,e,n);return r.resolveInjectorInitializers(),r}function qy(t,i=null,e=null,n,r=new Set){let a=[e||Ni,TN(t)];return n=n||(typeof t=="object"?void 0:er(t)),new D1(a,i||z0(),n||null,r)}var Te=class t{static THROW_IF_NOT_FOUND=Ys;static NULL=new a0;static create(i,e){if(Array.isArray(i))return ub({name:""},e,i,"");{let n=i.name??"";return ub({name:n},i.parent,i.providers,n)}}static \u0275prov=L({token:t,providedIn:"any",factory:()=>oe(sy)});static __NG_ELEMENT_ID__=-1};var Cn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>j0(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},OF=new V("");OF.__NG_ELEMENT_ID__=t=>{let i=ki();if(i===null)throw new Ce(204,!1);if(i.type&2)return i.value;if(t>.Optional)return null;throw new Ce(204,!1)};var Yy=!1,Ko=(()=>{class t{static __NG_ELEMENT_ID__=PF;static __NG_ENV_ID__=e=>e}return t})(),f0=class extends Ko{_lView;constructor(i){super(),this._lView=i}onDestroy(i){let e=this._lView;return Al(e)?(i(),()=>{}):(Sy(e,i),()=>XN(e,i))}};function PF(){return new f0(Ue())}var ic=class{},Vg=new V("",{providedIn:"root",factory:()=>!1});var Qy=new V(""),Ky=new V(""),go=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new tt(!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=L({token:t,providedIn:"root",factory:()=>new t})}return t})();var b6=class extends N{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,vg()&&(this.destroyRef=u(Ko,{optional:!0})??void 0,this.pendingTasks=u(go,{optional:!0})??void 0)}emit(i){let e=_t(null);try{super.next(i)}finally{_t(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=b6;function I1(...t){}function Xy(t){let i,e;function n(){t=I1;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 mb(t){return queueMicrotask(()=>t()),()=>{t=I1}}var zg="isAngularZone",h0=zg+"_ID",TF=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=Yy}=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,zF(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(zg)===!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,AF,I1,I1);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)}},AF={};function Lg(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 VF(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Xy(()=>{t.callbackScheduled=!1,y6(t),t.isCheckStableRunning=!0,Lg(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),y6(t)}function zF(t){let i=()=>{VF(t)},e=TF++;t._inner=t._inner.fork({name:"angular",properties:{[zg]:!0,[h0]:e,[h0+e]:!0},onInvokeTask:(n,r,a,o,s,d)=>{if(LF(d))return n.invokeTask(a,o,s,d);try{return pb(t),n.invokeTask(a,o,s,d)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),fb(t)}},onInvoke:(n,r,a,o,s,d,f)=>{try{return pb(t),n.invoke(a,o,s,d,f)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!RF(d)&&i(),fb(t)}},onHasTask:(n,r,a,o)=>{n.hasTask(a,o),r===a&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,y6(t),Lg(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 y6(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function pb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function fb(t){t._nesting--,Lg(t)}var g0=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 LF(t){return Zy(t,"__ignore_ng_zone__")}function RF(t){return Zy(t,"__scheduler_tick__")}function Zy(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function HF(t="zone.js",i){return t==="noop"?new g0:t==="zone.js"?new se(i):t}var Fi=class{_console=console;handleError(i){this._console.error("ERROR",i)}},NF=new V("",{providedIn:"root",factory:()=>{let t=u(se),i=u(Fi);return e=>t.runOutsideAngular(()=>i.handleError(e))}});function hb(t,i){return Qb(t,i)}function FF(t){return Qb(Yb,t)}var Jy=(hb.required=FF,hb);function BF(){return Ll(ki(),Ue())}function Ll(t,i){return new Y(Ta(t,i))}var Y=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=BF}return t})();function eC(t){return t instanceof Y?t.nativeElement:t}function Xo(t){return typeof t=="function"&&t[Ki]!==void 0}function Bn(t,i){let e=wh(t,i?.equal),n=e[Ki];return e.set=r=>m1(n,r),e.update=r=>Dh(n,r),e.asReadonly=jF.bind(e),e}function jF(){let t=this[Ki];if(t.readonlyFn===void 0){let i=()=>this();i[Ki]=t,t.readonlyFn=i}return t.readonlyFn}function tC(t){return Xo(t)&&typeof t.set=="function"}function UF(){return this._results[Symbol.iterator]()}var Pn=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=kN(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]=UF};function nC(t){return(t.flags&128)===128}var iC=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(iC||{}),rC=new Map,$F=0;function GF(){return $F++}function WF(t){rC.set(t[L0],t)}function C6(t){rC.delete(t[L0])}var gb="__ngContext__";function Rl(t,i){Wo(i)?(t[gb]=i[L0],WF(i)):t[gb]=i}function aC(t){return sC(t[S1])}function oC(t){return sC(t[ea])}function sC(t){for(;t!==null&&!ho(t);)t=t[ea];return t}var x6;function cC(t){x6=t}function lC(){if(x6!==void 0)return x6;if(typeof document<"u")return document;throw new Ce(210,!1)}var lc=new V("",{providedIn:"root",factory:()=>qF}),qF="ng",Rg=new V(""),Zo=new V("",{providedIn:"platform",factory:()=>"unknown"});var He=new V(""),R1=new V("",{providedIn:"root",factory:()=>lC().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var YF="h",QF="b";var dC=!1,KF=new V("",{providedIn:"root",factory:()=>dC});var Hg=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(Hg||{}),Hl=new V(""),_b=new Set;function Jo(t){_b.has(t)||(_b.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Ng=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=XF}return t})();function XF(){return new Ng(Ue(),ki())}var _l=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(_l||{}),uC=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=L({token:t,providedIn:"root",factory:()=>new t})}return t})(),ZF=[_l.EarlyRead,_l.Write,_l.MixedReadWrite,_l.Read],JF=(()=>{class t{ngZone=u(se);scheduler=u(ic);errorHandler=u(Fi,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Hl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Xt(16),this.executing=!0;for(let n of ZF)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&&Xt(17)}register(e){let{view:n}=e;n!==void 0?((n[bl]??=[]).push(e),Vl(n),n[nt]|=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(Hg.AFTER_NEXT_RENDER,e):e()}static \u0275prov=L({token:t,providedIn:"root",factory:()=>new t})}return t})(),M6=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?.[bl];i&&(this.view[bl]=i.filter(e=>e!==this))}};function dc(t,i){!i?.injector&&bg(dc);let e=i?.injector??u(Te);return Jo("NgAfterRender"),mC(t,e,i,!1)}function It(t,i){!i?.injector&&bg(It);let e=i?.injector??u(Te);return Jo("NgAfterNextRender"),mC(t,e,i,!0)}function eB(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 mC(t,i,e,n){let r=i.get(uC);r.impl??=i.get(JF);let a=i.get(Hl,null,{optional:!0}),o=e?.phase??_l.MixedReadWrite,s=e?.manualCleanup!==!0?i.get(Ko):null,d=i.get(Ng,null,{optional:!0}),f=new M6(r.impl,eB(t,o),d?.view,n,s,a?.snapshot(null));return r.impl.register(f),f}var tB=(t,i,e,n)=>{};function nB(t,i,e,n){tB(t,i,e,n)}var iB=()=>null;function pC(t,i,e=!1){return iB(t,i,e)}function fC(t,i){let e=t.contentQueries;if(e!==null){let n=_t(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return G3}function U0(t){return rB()?.createHTML(t)||t}var W3;function hC(){if(W3===void 0&&(W3=null,si.trustedTypes))try{W3=si.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return W3}function vb(t){return hC()?.createHTML(t)||t}function bb(t){return hC()?.createScriptURL(t)||t}var mo=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qb})`}},D6=class extends mo{getTypeName(){return"HTML"}},S6=class extends mo{getTypeName(){return"Style"}},k6=class extends mo{getTypeName(){return"Script"}},I6=class extends mo{getTypeName(){return"URL"}},E6=class extends mo{getTypeName(){return"ResourceURL"}};function zr(t){return t instanceof mo?t.changingThisBreaksApplicationSecurity:t}function _o(t,i){let e=aB(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${qb})`)}return e===i}function aB(t){return t instanceof mo&&t.getTypeName()||null}function gC(t){return new D6(t)}function _C(t){return new S6(t)}function vC(t){return new k6(t)}function bC(t){return new I6(t)}function yC(t){return new E6(t)}function oB(t){let i=new P6(t);return sB()?new O6(i):i}var O6=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(U0(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},P6=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=U0(i),e}};function sB(){try{return!!new window.DOMParser().parseFromString(U0(""),"text/html")}catch{return!1}}var cB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $0(t){return t=String(t),t.match(cB)?t:"unsafe:"+t}function vo(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function H1(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var CC=vo("area,br,col,hr,img,wbr"),xC=vo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),MC=vo("rp,rt"),lB=H1(MC,xC),dB=H1(xC,vo("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")),uB=H1(MC,vo("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")),yb=H1(CC,dB,uB,lB),wC=vo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mB=vo("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"),pB=vo("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"),fB=H1(wC,mB,pB),hB=vo("script,style,template"),T6=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=vB(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let a=_B(e);if(a){e=a;break}e=r.pop()}}return this.buf.join("")}startElement(i){let e=Cb(i).toLowerCase();if(!yb.hasOwnProperty(e))return this.sanitizedSomething=!0,!hB.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let r=0;r"),!0}endElement(i){let e=Cb(i).toLowerCase();yb.hasOwnProperty(e)&&!CC.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(xb(i))}};function gB(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function _B(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw DC(i);return i}function vB(t){let i=t.firstChild;if(i&&gB(t,i))throw DC(i);return i}function Cb(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function DC(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var bB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yB=/([^\#-~ |!])/g;function xb(t){return t.replace(/&/g,"&").replace(bB,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(yB,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var q3;function Bg(t,i){let e=null;try{q3=q3||oB(t);let n=i?String(i):"";e=q3.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=q3.getInertBodyElement(n)}while(n!==a);let s=new T6().sanitizeChildren(Mb(e)||e);return U0(s)}finally{if(e){let n=Mb(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function Mb(t){return"content"in t&&CB(t)?t.content:null}function CB(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Hn=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}(Hn||{});function Nl(t){let i=jg();return i?vb(i.sanitize(Hn.HTML,t)||""):_o(t,"HTML")?vb(zr(t)):Bg(lC(),Ji(t))}function N1(t){let i=jg();return i?i.sanitize(Hn.URL,t)||"":_o(t,"URL")?zr(t):$0(Ji(t))}function xB(t){let i=jg();if(i)return bb(i.sanitize(Hn.RESOURCE_URL,t)||"");if(_o(t,"ResourceURL"))return bb(zr(t));throw new Ce(904,!1)}function MB(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?xB:N1}function SC(t,i,e){return MB(i,e)(t)}function jg(){let t=Ue();return t&&t[lo].sanitizer}var wB=/^>|^->||--!>|)/g,SB="\u200B$1\u200B";function kB(t){return t.replace(wB,i=>i.replace(DB,SB))}function Qme(t){return t.ownerDocument.defaultView}function Kme(t){return t.ownerDocument}function kC(t){return t instanceof Function?t():t}function IB(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 IC="ng-template";function EB(t,i,e,n){let r=0;if(n){for(;r-1){let a;for(;++ra?y="":y=r[v+1].toLowerCase(),n&2&&f!==y){if(Zr(n))return!1;o=!0}}}}return Zr(n)||o}function Zr(t){return(t&1)===0}function TB(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!==""&&!Zr(o)&&(i+=wb(a,r),r=""),n=o,a=a||!Zr(n);e++}return r!==""&&(i+=wb(a,r)),i}function HB(t){return t.map(RB).join(",")}function NB(t){let i=[],e=[],n=1,r=2;for(;nOn&&zC(t,i,On,!1),Xt(o?2:0,r),e(n,r)}finally{tc(a),Xt(o?3:1,r)}}function W0(t,i,e){ej(t,i,e),(e.flags&64)===64&&tj(t,i,e)}function qg(t,i,e=Ta){let n=i.localNames;if(n!==null){let r=i.index+1;for(let a=0;anull;function ZB(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function F1(t,i,e,n,r,a,o,s){if(!s&&Qg(i,t,e,n,r)){Tl(i)&&JB(e,i.index);return}if(i.type&3){let d=Ta(i,e);n=ZB(n),r=o!=null?o(r,i.value||"",n):r,a.setProperty(d,n,r)}else i.type&12}function JB(t,i){let e=Ea(i,t);e[nt]&16||(e[nt]|=64)}function ej(t,i,e){let n=e.directiveStart,r=e.directiveEnd;Tl(e)&&YB(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||p0(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[o0]=null);let r=i[Go];if(r!==null){i[Go]=null;for(let o=0;o{Vl(t.lView)},consumerOnSignalRead(){this.lView[Vr]=this}});function kj(t){let i=t[Vr]??Object.create(Ij);return i.lView=t,i}var Ij=je(q({},Jc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=ec(t.lView);for(;i&&!$C(i[ut]);)i=ec(i);i&&Dy(i)},consumerOnSignalRead(){this.lView[Vr]=this}});function $C(t){return t.type!==2}function GC(t){if(t[Zs]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Zs])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[nt]&8192)}}var Ej=100;function WC(t,i=!0,e=0){let r=t[lo].rendererFactory,a=!1;a||r.begin?.();try{Oj(t,e)}catch(o){throw i&&oj(t,o),o}finally{a||r.end?.()}}function Oj(t,i){let e=Ey();try{l0(!0),z6(t,i);let n=0;for(;H0(t);){if(n===Ej)throw new Ce(103,!1);n++,z6(t,1)}}finally{l0(e)}}function Pj(t,i,e,n){if(Al(i))return;let r=i[nt],a=!1,o=!1;Og(i);let s=!0,d=null,f=null;a||($C(t)?(f=Mj(i),d=d1(f)):bh()===null?(s=!1,f=kj(i),d=d1(f)):i[Vr]&&(u1(i[Vr]),i[Vr]=null));try{wy(i),oF(t.bindingStartIndex),e!==null&&LC(t,i,e,2,n);let v=(r&3)===3;if(!a)if(v){let S=t.preOrderCheckHooks;S!==null&&X3(i,S,null)}else{let S=t.preOrderHooks;S!==null&&Z3(i,S,0,null),Yh(i,0)}if(o||Tj(i),GC(i),qC(i,0),t.contentQueries!==null&&fC(t,i),!a)if(v){let S=t.contentCheckHooks;S!==null&&X3(i,S)}else{let S=t.contentHooks;S!==null&&Z3(i,S,1),Yh(i,1)}Vj(t,i);let y=t.components;y!==null&&QC(i,y,0);let M=t.viewQuery;if(M!==null&&w6(2,M,n),!a)if(v){let S=t.viewCheckHooks;S!==null&&X3(i,S)}else{let S=t.viewHooks;S!==null&&Z3(i,S,2),Yh(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[qh]){for(let S of i[qh])S();i[qh]=null}a||(jC(i),i[nt]&=-73)}catch(v){throw a||Vl(i),v}finally{f!==null&&(l3(f,d),s&&Dj(f)),Pg()}}function qC(t,i){for(let e=aC(t);e!==null;e=oC(e))for(let n=wi;n0&&(t[e-1][ea]=n[ea]);let a=r0(t,wi+i);uj(n[ut],n);let o=a[uo];o!==null&&o.detachView(a[ut]),n[Di]=null,n[ea]=null,n[nt]&=-129}return n}function zj(t,i,e,n){let r=wi+n,a=e.length;n>0&&(e[r-1][ea]=i),n-1&&(E1(i,n),r0(e,n))}this._attachedToViewContainer=!1}q0(this._lView[ut],this._lView)}onDestroy(i){Sy(this._lView,i)}markForCheck(){t8(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[nt]&=-129}reattach(){p6(this._lView),this._lView[nt]|=128}detectChanges(){this._lView[nt]|=1024,WC(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=c0(this._lView),e=this._lView[Xs];e!==null&&!i&&Jg(e,this._lView),RC(this._lView[ut],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ce(902,!1);this._appRef=i;let e=c0(this._lView),n=this._lView[Xs];n!==null&&!e&&JC(n,this._lView),p6(this._lView)}};var Ke=(()=>{class t{static __NG_ELEMENT_ID__=Hj}return t})(),Lj=Ke,Rj=class extends Lj{_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=B1(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:e,dehydratedView:n});return new O1(r)}};function Hj(){return K0(ki(),Ue())}function K0(t,i){return t.type&4?new Rj(i,t,Ll(t,i)):null}function Fl(t,i,e,n,r){let a=t.data[i];if(a===null)a=Nj(t,i,e,n,r),sF()&&(a.flags|=32);else if(a.type&64){a.type=e,a.value=n,a.attrs=r;let o=rF();a.injectorIndex=o===null?-1:o.injectorIndex}return Qo(a,!0),a}function Nj(t,i,e,n,r){let a=Iy(),o=Sg(),s=o?a:a&&a.parent,d=t.data[i]=Bj(t,s,e,i,n,r);return Fj(t,d,a,o),d}function Fj(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 Bj(t,i,e,n,r,a){let o=i?i.injectorIndex:-1,s=0;return ky()&&(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 Jme=new RegExp(`^(\\d+)*(${QF}|${YF})*(.*)`);var jj=()=>null;function Il(t,i){return jj(t,i)}var Uj=class{},ex=class{},L6=class{resolveComponentFactory(i){throw Error(`No component factory found for ${er(i)}.`)}},X0=class{static NULL=new L6},Tn=class{},Ze=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>$j()}return t})();function $j(){let t=Ue(),i=ki(),e=Ea(i.index,t);return(Wo(e)?e:t)[sn]}var Gj=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>null})}return t})();var Xh={},R6=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=T0(n);let r=this.injector.get(i,Xh,n);return r!==Xh||e===Xh?r:this.parentInjector.get(i,e,n)}};function H6(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 M=0;M0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function tU(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&G0.SignalBased)!==0};return r&&(a.transform=r),a})}function rU(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function aU(t,i,e){let n=i instanceof yn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new R6(e,n):e}function oU(t){let i=t.get(Tn,null);if(i===null)throw new Ce(407,!1);let e=t.get(Gj,null),n=t.get(ic,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n}}function sU(t,i){let e=(t.selectors[0][0]||"div").toLowerCase();return OC(i,e,e==="svg"?Cy:e==="math"?qN:null)}var rc=class extends ex{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=iU(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=rU(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=HB(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,r){Xt(22);let a=_t(null);try{let o=this.componentDef,s=n?["ng-version","19.2.14"]:NB(this.componentDef.selectors[0]),d=$g(0,null,null,1,0,null,null,null,null,[s],null),f=aU(o,r||this.ngModule,i),v=oU(f),y=v.rendererFactory.createRenderer(null,o),M=n?QB(y,n,o.encapsulation,f):sU(o,y),S=Gg(null,d,null,512|AC(o),null,null,v,y,f,null,pC(M,f,!0));S[On]=M,Og(S);let O=null;try{let Q=nx(On,d,S,"#host",()=>[this.componentDef],!0,0);M&&(TC(y,M,Q),Rl(M,S)),W0(d,S,Q),Fg(d,Q,S),ix(d,Q),e!==void 0&&cU(Q,this.ngContentSelectors,e),O=Ea(Q.index,S),S[Xn]=O[Xn],Kg(d,S,null)}catch(Q){throw O!==null&&C6(O),C6(S),Q}finally{Xt(23),Pg()}return new N6(this.componentType,S)}finally{_t(a)}}},N6=class extends Uj{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e){super(),this._rootLView=e,this._tNode=Cg(e[ut],On),this.location=Ll(this._tNode,e),this.instance=Ea(this._tNode.index,e)[Xn],this.hostView=this.changeDetectorRef=new O1(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=Qg(n,r[ut],r,i,e);this.previousInputValues.set(i,e);let o=Ea(n.index,r);t8(o,1)}get injector(){return new Qs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function cU(t,i,e){let n=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=lU}return t})();function lU(){let t=ki();return ax(t,Ue())}var dU=ot,rx=class extends dU{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Ll(this._hostTNode,this._hostLView)}get injector(){return new Qs(this._hostTNode,this._hostLView)}get parentInjector(){let i=Ag(this._hostTNode,this._hostLView);if(Hy(i)){let e=u0(i,this._hostLView),n=d0(i),r=e[ut].data[n+8];return new Qs(r,e)}else return new Qs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Ob(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-wi}createEmbeddedView(i,e,n){let r,a;typeof n=="number"?r=n:n!=null&&(r=n.index,a=n.injector);let o=Il(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},a,o);return this.insertImpl(s,r,kl(this._hostTNode,o)),s}createComponent(i,e,n,r,a){let o=i&&!UN(i),s;if(o)s=e;else{let O=e||{};s=O.index,n=O.injector,r=O.projectableNodes,a=O.environmentInjector||O.ngModuleRef}let d=o?i:new rc(qo(i)),f=n||this.parentInjector;if(!a&&d.ngModule==null){let Q=(o?f:this.parentInjector).get(yn,null);Q&&(a=Q)}let v=qo(d.componentType??{}),y=Il(this._lContainer,v?.id??null),M=y?.firstChild??null,S=d.create(f,r,M,a);return this.insertImpl(S.hostView,s,kl(this._hostTNode,y)),S}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let r=i._lView;if(QN(r)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let d=r[Di],f=new rx(d,d[nr],d[Di]);f.detach(f.indexOf(i))}}let a=this._adjustIndex(e),o=this._lContainer;return j1(o,r,a,n),i.attachToViewContainerRef(),oy(Zh(o),a,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Ob(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=E1(this._lContainer,e);n&&(r0(Zh(this._lContainer),e),q0(n[ut],n))}detach(i){let e=this._adjustIndex(i,-1),n=E1(this._lContainer,e);return n&&r0(Zh(this._lContainer),e)!=null?new O1(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Ob(t){return t[s0]}function Zh(t){return t[s0]||(t[s0]=[])}function ax(t,i){let e,n=i[t.index];return ho(n)?e=n:(e=KC(n,i,null,t),i[t.index]=e,Wg(i,e)),mU(e,i,t,n),new rx(e,t,i)}function uU(t,i){let e=t[sn],n=e.createComment(""),r=Ta(i,t),a=e.parentNode(r);return _0(e,a,n,e.nextSibling(r),!1),n}var mU=hU,pU=()=>!1;function fU(t,i,e){return pU(t,i,e)}function hU(t,i,e,n){if(t[Js])return;let r;e.type&8?r=Ia(n):r=uU(i,e),t[Js]=r}var F6=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},B6=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 f=a[s+1],v=i[-d];for(let y=wi;yi.trim())}function lx(t,i,e){t.queries===null&&(t.queries=new j6),t.queries.track(new U6(i,e))}function xU(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 r8(t,i){return t.queries.getByIndex(i)}function dx(t,i){let e=t[ut],n=r8(e,i);return n.crossesNgTemplate?$6(e,t,i,[]):ox(e,t,n,i)}function ux(t,i,e){let n,r=p3(()=>{n._dirtyCounter();let a=SU(n,t);if(i&&a===void 0)throw new Ce(-951,!1);return a});return n=r[Ki],n._dirtyCounter=Bn(0),n._flatValue=void 0,r}function MU(t){return ux(!0,!1,t)}function wU(t){return ux(!0,!0,t)}function DU(t,i){let e=t[Ki];e._lView=Ue(),e._queryIndex=i,e._queryList=i8(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[nt]&4)return i?void 0:Ni;let r=i8(e,n),a=dx(e,n);return r.reset(a,eC),i?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function Pb(t,i){return MU(i)}function kU(t,i){return wU(i)}var mx=(Pb.required=kU,Pb);function IU(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(TU))}return a}return C0.forEach((r,a)=>{let o=[];r.templateUrl&&o.push(n(r.templateUrl).then(f=>{r.template=f}));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 f=r.styles.length,v=r.styleUrls;r.styleUrls.forEach((y,M)=>{s.push(""),o.push(n(y).then(S=>{s[f+M]=S,v.splice(v.indexOf(y),1),v.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&o.push(n(r.styleUrl).then(f=>{s.push(f),r.styleUrl=void 0}));let d=Promise.all(o).then(()=>AU(a));i.push(d)}),OU(),Promise.all(i).then(()=>{})}var C0=new Map,EU=new Set;function OU(){let t=C0;return C0=new Map,t}function PU(){return C0.size===0}function TU(t){return typeof t=="string"?t:t.text()}function AU(t){EU.delete(t)}var po=class{},a8=class{};var x0=class extends po{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new b0(this);constructor(i,e,n,r=!0){super(),this.ngModuleType=i,this._parent=e;let a=ly(i);this._bootstrapComponents=kC(a.bootstrap),this._r3Injector=qy(i,e,[{provide:po,useValue:this},{provide:X0,useValue:this.componentFactoryResolver},...n],er(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)}},M0=class extends a8{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new x0(this.moduleType,i,[])}};function VU(t,i,e){return new x0(t,i,e,!1)}var G6=class extends po{injector;componentFactoryResolver=new b0(this);instance=null;constructor(i){super();let e=new D1([...i.providers,{provide:po,useValue:this},{provide:X0,useValue:this.componentFactoryResolver}],i.parent||z0(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function U1(t,i,e=null){return new G6({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var zU=(()=>{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=uy(!1,e.type),r=n.length>0?U1([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=L({token:t,providedIn:"environment",factory:()=>new t(oe(yn))})}return t})();function T(t){return A1(()=>{let i=px(t),e=je(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===iC.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?r=>r.get(zU).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Oa.Emulated,styles:t.styles||Ni,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Jo("NgStandalone"),fx(e);let n=t.dependencies;return e.directiveDefs=Tb(n,!1),e.pipeDefs=Tb(n,!0),e.id=FU(e),e})}function LU(t){return qo(t)||dy(t)}function RU(t){return t!==null}function Z(t){return A1(()=>({type:t.type,bootstrap:t.bootstrap||Ni,declarations:t.declarations||Ni,imports:t.imports||Ni,exports:t.exports||Ni,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function HU(t,i){if(t==null)return Sa;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=G0.None,d=null),e[a]=[n,s,d],i[a]=o}return e}function NU(t){if(t==null)return Sa;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function z(t){return A1(()=>{let i=px(t);return fx(i),i})}function vt(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 px(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||Sa,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ni,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:HU(t.inputs,i),outputs:NU(t.outputs),debugInfo:null}}function fx(t){t.features?.forEach(i=>i(t))}function Tb(t,i){if(!t)return null;let e=i?PN:LU;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(RU)}function FU(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 BU(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let i=BU(t.type),e=!0,n=[t];for(;i;){let r;if(ka(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=Jh(t.inputs),o.declaredInputs=Jh(t.declaredInputs),o.outputs=Jh(t.outputs);let s=r.hostBindings;s&&WU(t,s);let d=r.viewQuery,f=r.contentQueries;if(d&&$U(t,d),f&&GU(t,f),jU(t,r),lN(t.outputs,r.outputs),ka(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=Sl(r.hostAttrs,e=Sl(e,r.hostAttrs))}}function Jh(t){return t===Sa?{}:t===Ni?[]:t}function $U(t,i){let e=t.viewQuery;e?t.viewQuery=(n,r)=>{i(n,r),e(n,r)}:t.viewQuery=i}function GU(t,i){let e=t.contentQueries;e?t.contentQueries=(n,r,a)=>{i(n,r,a),e(n,r,a)}:t.contentQueries=i}function WU(t,i){let e=t.hostBindings;e?t.hostBindings=(n,r)=>{i(n,r),e(n,r)}:t.hostBindings=i}function hx(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=gx,e.hostDirectives=n?t.map(W6):[t]):n?e.hostDirectives.unshift(...t.map(W6)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function gx(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)Ab(W6(a),i,e)}else Ab(n,i,e)}function Ab(t,i,e){let n=dy(t.directive);qU(n.declaredInputs,t.inputs),gx(n,i,e),e.set(n,t),i.push(n)}function W6(t){return typeof t=="function"?{directive:gi(t),inputs:Sa,outputs:Sa}:{directive:gi(t.directive),inputs:Vb(t.inputs),outputs:Vb(t.outputs)}}function Vb(t){if(t===void 0||t.length===0)return Sa;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=L({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var c8=new V(""),G1=new V(""),J0=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,r){this._ngZone=e,this.registry=n,vg()&&(this._destroyRef=u(Ko,{optional:!0})??void 0),l8||(JU(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)(oe(se),oe(eu),oe(G1))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),eu=(()=>{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 l8?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function JU(t){l8=t}var l8,yx=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>new q6})}return t})(),q6=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 es(t){return!!t&&typeof t.then=="function"}function d8(t){return!!t&&typeof t.subscribe=="function"}var Cx=new V("");function u8(t){return Ol([{provide:Cx,multi:!0,useValue:t}])}var xx=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=u(Cx,{optional:!0})??[];injector=u(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let a=tr(this.injector,r);if(es(a))e.push(a);else if(d8(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),m8=new V("");function e$(){Mh(()=>{throw new Ce(600,!1)})}function t$(t){return t.isBoundToModule}var n$=10;function Mx(t,i){return Array.isArray(i)?i.reduce(Mx,t):q(q({},t),i)}var Si=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(NF);afterRenderManager=u(uC);zonelessEnabled=u(Vg);rootEffectScheduler=u(yx);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(go).hasPendingTasks.pipe(pe(e=>!e));constructor(){u(Hl,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:r=>{r&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=u(yn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,r=Te.NULL){Xt(10);let a=e instanceof ex;if(!this._injector.get(xx).done){let S="";throw new Ce(405,S)}let s;a?s=e:s=this._injector.get(X0).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let d=t$(s)?void 0:this._injector.get(po),f=n||s.selector,v=s.create(r,[],f,d),y=v.location.nativeElement,M=v.injector.get(c8,null);return M?.registerApplication(y),v.onDestroy(()=>{this.detachView(v.hostView),e0(this.components,v),M?.unregisterApplication(y)}),this._loadComponent(v),Xt(11,v),v}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Xt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Hg.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Ce(101,!1);let e=_t(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,_t(e),this.afterTick.next(),Xt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Tn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++H0(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;e0(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(m8,[]).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),()=>e0(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function e0(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function i$(t,i,e,n){if(!e&&!H0(t))return;WC(t,i,e&&!n?0:1)}function J(t,i,e,n){let r=Ue(),a=cc();if(_r(r,a,i)){let o=Zt(),s=zl();ij(s,r,t,i,e,n)}return J}function p8(t,i,e,n){return _r(t,cc(),e)?i+Ji(e)+n:Zn}function wx(t,i,e,n,r,a){let o=Ig(),s=P1(t,o,e,r);return L1(2),s?i+Ji(e)+n+Ji(r)+a:Zn}function r$(t,i,e,n,r,a,o,s){let d=Ig(),f=vx(t,d,e,r,o);return L1(3),f?i+Ji(e)+n+Ji(r)+a+Ji(o)+s:Zn}function a$(t,i,e,n,r,a,o,s,d,f){let v=Ig(),y=bx(t,v,e,r,o,d);return L1(4),y?i+Ji(e)+n+Ji(r)+a+Ji(o)+s+Ji(d)+f:Zn}function Y3(t,i){return t<<17|i<<2}function ac(t){return t>>17&32767}function o$(t){return(t&2)==2}function s$(t,i){return t&131071|i<<17}function Y6(t){return t|2}function El(t){return(t&131068)>>2}function e6(t,i){return t&-131069|i<<2}function c$(t){return(t&1)===1}function Q6(t){return t|1}function l$(t,i,e,n,r,a){let o=a?i.classBindings:i.styleBindings,s=ac(o),d=El(o);t[n]=e;let f=!1,v;if(Array.isArray(e)){let y=e;v=y[1],(v===null||V1(y,v)>0)&&(f=!0)}else v=e;if(r)if(d!==0){let M=ac(t[s+1]);t[n+1]=Y3(M,s),M!==0&&(t[M+1]=e6(t[M+1],n)),t[s+1]=s$(t[s+1],n)}else t[n+1]=Y3(s,0),s!==0&&(t[s+1]=e6(t[s+1],n)),s=n;else t[n+1]=Y3(d,0),s===0?s=n:t[d+1]=e6(t[d+1],n),d=n;f&&(t[n+1]=Y6(t[n+1])),zb(t,v,n,!0),zb(t,v,n,!1),d$(i,v,t,n,a),o=Y3(s,d),a?i.classBindings=o:i.styleBindings=o}function d$(t,i,e,n,r){let a=r?t.residualClasses:t.residualStyles;a!=null&&typeof i=="string"&&V1(a,i)>=0&&(e[n+1]=Q6(e[n+1]))}function zb(t,i,e,n){let r=t[e+1],a=i===null,o=n?ac(r):El(r),s=!1;for(;o!==0&&(s===!1||a);){let d=t[o],f=t[o+1];u$(d,i)&&(s=!0,t[o+1]=n?Q6(f):Y6(f)),o=n?ac(f):El(f)}s&&(t[e+1]=n?Y6(r):Q6(r))}function u$(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?V1(t,i)>=0:!1}var Jr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function m$(t){return t.substring(Jr.key,Jr.keyEnd)}function p$(t){return f$(t),Dx(t,Sx(t,0,Jr.textEnd))}function Dx(t,i){let e=Jr.textEnd;return e===i?-1:(i=Jr.keyEnd=h$(t,Jr.key=i,e),Sx(t,i,e))}function f$(t){Jr.key=0,Jr.keyEnd=0,Jr.value=0,Jr.valueEnd=0,Jr.textEnd=t.length}function Sx(t,i,e){for(;i32;)i++;return i}function C(t,i,e){let n=Ue(),r=cc();if(_r(n,r,i)){let a=Zt(),o=zl();F1(a,o,n,t,i,n[sn],e,!1)}return C}function K6(t,i,e,n,r){Qg(i,t,e,r?"class":"style",n)}function Et(t,i,e){return Ix(t,i,e,!1),Et}function ne(t,i){return Ix(t,i,null,!0),ne}function Tt(t){Ex(C$,kx,t,!0)}function kx(t,i){for(let e=p$(i);e>=0;e=Dx(i,e))A0(t,m$(i),!0)}function Ix(t,i,e,n){let r=Ue(),a=Zt(),o=L1(2);if(a.firstUpdatePass&&Px(a,t,o,n),i!==Zn&&_r(r,o,i)){let s=a.data[na()];Tx(a,s,r,r[sn],t,r[o+1]=M$(i,e),n,o)}}function Ex(t,i,e,n){let r=Zt(),a=L1(2);r.firstUpdatePass&&Px(r,null,a,n);let o=Ue();if(e!==Zn&&_r(o,a,e)){let s=r.data[na()];if(Ax(s,n)&&!Ox(r,a)){let d=n?s.classesWithoutHost:s.stylesWithoutHost;d!==null&&(e=a6(d,e||"")),K6(r,s,o,e,n)}else x$(r,s,o,o[sn],o[a+1],o[a+1]=y$(t,i,e),n,a)}}function Ox(t,i){return i>=t.expandoStartIndex}function Px(t,i,e,n){let r=t.data;if(r[e+1]===null){let a=r[na()],o=Ox(t,e);Ax(a,n)&&i===null&&!o&&(i=!1),i=g$(r,a,i,n),l$(r,a,i,e,o,n)}}function g$(t,i,e,n){let r=dF(t),a=n?i.residualClasses:i.residualStyles;if(r===null)(n?i.classBindings:i.styleBindings)===0&&(e=t6(null,t,i,e,n),e=T1(e,i.attrs,n),a=null);else{let o=i.directiveStylingLast;if(o===-1||t[o]!==r)if(e=t6(r,t,i,e,n),a===null){let d=_$(t,i,n);d!==void 0&&Array.isArray(d)&&(d=t6(null,t,i,d[1],n),d=T1(d,i.attrs,n),v$(t,i,n,d))}else a=b$(t,i,n)}return a!==void 0&&(n?i.residualClasses=a:i.residualStyles=a),e}function _$(t,i,e){let n=e?i.classBindings:i.styleBindings;if(El(n)!==0)return t[ac(n)]}function v$(t,i,e,n){let r=e?i.classBindings:i.styleBindings;t[ac(r)]=n}function b$(t,i,e){let n,r=i.directiveEnd;for(let a=1+i.directiveStylingLast;a0;){let d=t[r],f=Array.isArray(d),v=f?d[1]:d,y=v===null,M=e[r+1];M===Zn&&(M=y?Ni:void 0);let S=y?Gh(M,n):v===n?M:void 0;if(f&&!D0(S)&&(S=Gh(d,n)),D0(S)&&(s=S,o))return s;let O=t[r+1];r=o?ac(O):El(O)}if(i!==null){let d=a?i.residualClasses:i.residualStyles;d!=null&&(s=Gh(d,n))}return s}function D0(t){return t!==void 0}function M$(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=er(zr(t)))),t}function Ax(t,i){return(t.flags&(i?8:16))!==0}function tu(t,i,e){let n=Ue(),r=p8(n,t,i,e);Ex(A0,kx,r,!0)}var X6=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 n6(t,i,e,n,r){return t===e&&Object.is(i,n)?1:Object.is(r(t,i),r(e,n))?-1:0}function w$(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 f=t.at(a),v=i[a],y=n6(a,f,a,v,e);if(y!==0){y<0&&t.updateValue(a,v),a++;continue}let M=t.at(o),S=i[d],O=n6(o,M,d,S,e);if(O!==0){O<0&&t.updateValue(o,S),o--,d--;continue}let Q=e(a,f),ie=e(o,M),de=e(a,v);if(Object.is(de,ie)){let ze=e(d,S);Object.is(ze,Q)?(t.swap(a,o),t.updateValue(o,S),d--,o--):t.move(o,a),t.updateValue(a,v),a++;continue}if(n??=new S0,r??=Hb(t,a,o,e),Z6(t,n,a,de))t.updateValue(a,v),a++,o++;else if(r.has(de))n.set(Q,t.detach(a)),o--;else{let ze=t.create(a,i[a]);t.attach(a,ze),a++,o++}}for(;a<=d;)Rb(t,n,e,a,i[a]),a++}else if(i!=null){let d=i[Symbol.iterator](),f=d.next();for(;!f.done&&a<=o;){let v=t.at(a),y=f.value,M=n6(a,v,a,y,e);if(M!==0)M<0&&t.updateValue(a,y),a++,f=d.next();else{n??=new S0,r??=Hb(t,a,o,e);let S=e(a,y);if(Z6(t,n,a,S))t.updateValue(a,y),a++,o++,f=d.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,o++,f=d.next();else{let O=e(a,v);n.set(O,t.detach(a)),o--}}}for(;!f.done;)Rb(t,n,e,t.length,f.value),f=d.next()}for(;a<=o;)t.destroy(t.detach(o--));n?.forEach(d=>{t.destroy(d)})}function Z6(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Rb(t,i,e,n,r){if(Z6(t,i,n,e(n,r)))t.updateValue(n,r);else{let a=t.create(n,r);t.attach(n,a)}}function Hb(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 S0=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){Jo("NgControlFlow");let e=Ue(),n=cc(),r=e[n]!==Zn?e[n]:-1,a=r!==-1?k0(e,On+r):void 0,o=0;if(_r(e,n,t)){let s=_t(null);try{if(a!==void 0&&ZC(a,o),t!==-1){let d=On+t,f=k0(e,d),v=ng(e[ut],d),y=Il(f,v.tView.ssrId),M=B1(e,v,i,{dehydratedView:y});j1(f,M,o,kl(v,y))}}finally{_t(s)}}else if(a!==void 0){let s=XC(a,o);s!==void 0&&(s[Xn]=i)}}var J6=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-wi}};function bo(t,i){return i}var eg=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function ir(t,i,e,n,r,a,o,s,d,f,v,y,M){Jo("NgControlFlow");let S=Ue(),O=Zt(),Q=d!==void 0,ie=Ue(),de=s?o.bind(ie[gr][Xn]):o,ze=new eg(Q,de);ie[On+t]=ze,w0(S,O,t+1,i,e,n,r,Yo(O.consts,a)),Q&&w0(S,O,t+2,d,f,v,y,Yo(O.consts,M))}var tg=class extends X6{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-wi}at(i){return this.getLView(i)[Xn].$implicit}attach(i,e){let n=e[Ml];this.needsIndexUpdate||=i!==this.length,j1(this.lContainer,e,i,kl(this.templateTNode,n))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,D$(this.lContainer,i)}create(i,e){let n=Il(this.lContainer,this.templateTNode.tView.ssrId),r=B1(this.hostLView,this.templateTNode,new J6(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(i){q0(i[ut],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[Xn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i(B0(!0),OC(n,r,fF()));function I$(t,i,e,n,r){let a=i.consts,o=Yo(a,n),s=Fl(i,t,8,"ng-container",o);o!==null&&H6(s,o,!0);let d=Yo(a,r);return Dg()&&n8(i,e,s,d,Yg),s.mergedAttrs=Sl(s.mergedAttrs,s.attrs),i.queries!==null&&i.queries.elementStart(i,s),s}function ln(t,i,e){let n=Ue(),r=Zt(),a=t+On,o=r.firstCreatePass?I$(a,r,n,i,e):r.data[a];Qo(o,!0);let s=E$(r,n,o,t);return n[a]=s,F0()&&Y0(r,n,s,o),Rl(s,n),R0(o)&&(W0(r,n,o),Fg(r,o,n)),e!=null&&qg(n,o),ln}function dn(){let t=ki(),i=Zt();return Sg()?kg():(t=t.parent,Qo(t,!1)),i.firstCreatePass&&(Tg(i,t),yg(t)&&i.queries.elementEnd(t)),dn}function Vt(t,i,e){return ln(t,i,e),dn(),Vt}var E$=(t,i,e,n)=>(B0(!0),jB(i[sn],""));function ce(){return Ue()}function Nt(t,i,e){let n=Ue(),r=cc();if(_r(n,r,i)){let a=Zt(),o=zl();F1(a,o,n,t,i,n[sn],e,!0)}return Nt}var qs=void 0;function O$(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var P$=["en",[["a","p"],["AM","PM"],qs],[["AM","PM"],qs,qs],[["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"]],qs,[["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"]],qs,[["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}",qs,"{1} 'at' {0}",qs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",O$],M1={};function Vx(t,i,e){typeof i!="string"&&(e=i,i=t[cn.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),M1[i]=t,e&&(M1[i][cn.ExtraData]=e)}function ar(t){let i=T$(t),e=Nb(i);if(e)return e;let n=i.split("-")[0];if(e=Nb(n),e)return e;if(n==="en")return P$;throw new Ce(701,!1)}function Nb(t){return t in M1||(M1[t]=si.ng&&si.ng.common&&si.ng.common.locales&&si.ng.common.locales[t]),M1[t]}var cn=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}(cn||{});function T$(t){return t.toLowerCase().replace(/_/g,"-")}var I0="en-US",A$="USD";var V$=I0;function z$(t){typeof t=="string"&&(V$=t.toLowerCase().replace(/_/g,"-"))}function Fb(t,i,e){return function n(r){if(r===Function)return e;let a=Tl(t)?Ea(t.index,i):i;t8(a,5);let o=i[Xn],s=Bb(i,o,e,r),d=n.__ngNextListenerFn__;for(;d;)s=Bb(i,o,d,r)&&s,d=d.__ngNextListenerFn__;return s}}function Bb(t,i,e,n){let r=_t(null);try{return Xt(6,i,e),e(n)!==!1}catch(a){return L$(t,a),!1}finally{Xt(7,i,e),_t(r)}}function L$(t,i){let e=t[wl],n=e?e.get(Fi,null):null;n&&n.handleError(i)}function jb(t,i,e,n,r,a){let o=i[e],s=i[ut],f=s.data[e].outputs[n],v=o[f],y=s.firstCreatePass?wg(s):null,M=Mg(i),S=v.subscribe(a),O=M.length;M.push(a,S),y&&y.push(r,t.index,O,-(O+1))}function R(t,i,e,n){let r=Ue(),a=Zt(),o=ki();return zx(a,r,r[sn],o,t,i,n),R}function R$(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 zx(t,i,e,n,r,a,o){let s=R0(n),f=t.firstCreatePass?wg(t):null,v=Mg(i),y=!0;if(n.type&3||o){let M=Ta(n,i),S=o?o(M):M,O=v.length,Q=o?de=>o(Ia(de[n.index])):n.index,ie=null;if(!o&&s&&(ie=R$(t,i,r,n.index)),ie!==null){let de=ie.__ngLastListenerFn__||ie;de.__ngNextListenerFn__=a,ie.__ngLastListenerFn__=a,y=!1}else{a=Fb(n,i,a),nB(i,S,r,a);let de=e.listen(S,r,a);v.push(a,de),f&&f.push(r,Q,O,O+1)}}else a=Fb(n,i,a);if(y){let M=n.outputs?.[r],S=n.hostDirectiveOutputs?.[r];if(S&&S.length)for(let O=0;O(B0(!0),FB(i[sn],n));function P(t){return K("",t,""),P}function K(t,i,e){let n=Ue(),r=p8(n,t,i,e);return r!==Zn&&ru(n,na(),r),K}function bt(t,i,e,n,r){let a=Ue(),o=wx(a,t,i,e,n,r);return o!==Zn&&ru(a,na(),o),bt}function ts(t,i,e,n,r,a,o){let s=Ue(),d=r$(s,t,i,e,n,r,a,o);return d!==Zn&&ru(s,na(),d),ts}function B$(t,i,e,n,r,a,o,s,d){let f=Ue(),v=a$(f,t,i,e,n,r,a,o,s,d);return v!==Zn&&ru(f,na(),v),B$}function ru(t,i,e){let n=xy(i,t);BB(t[sn],n,e)}function W1(t,i,e){tC(i)&&(i=i());let n=Ue(),r=cc();if(_r(n,r,i)){let a=Zt(),o=zl();F1(a,o,n,t,i,n[sn],e,!1)}return W1}function au(t,i){let e=tC(t);return e&&t.set(i),e}function q1(t,i){let e=Ue(),n=Zt(),r=ki();return zx(n,e,e[sn],r,t,i),q1}var j$={};function f8(t){let i=Zt(),e=Ue(),n=t+On,r=Fl(i,n,128,null,null);return Qo(r,!1),My(i,e,n,j$),f8}function U$(t,i,e){let n=Zt();if(n.firstCreatePass){let r=ka(t);ig(e,n.data,n.blueprint,r,!0),ig(i,n.data,n.blueprint,r,!1)}}function ig(t,i,e,n,r){if(t=gi(t),Array.isArray(t))for(let a=0;a>20;if(xl(t)||!t.multi){let S=new nc(f,r,E),O=r6(d,i,r?v:v+M,y);O===-1?(_6(p0(s,o),a,d),i6(a,t,i.length),i.push(d),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(S),o.push(S)):(e[O]=S,o[O]=S)}else{let S=r6(d,i,v+M,y),O=r6(d,i,v,v+M),Q=S>=0&&e[S],ie=O>=0&&e[O];if(r&&!ie||!r&&!Q){_6(p0(s,o),a,d);let de=W$(r?G$:$$,e.length,r,n,f);!r&&ie&&(e[O].providerFactory=de),i6(a,t,i.length,0),i.push(d),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(de),o.push(de)}else{let de=Hx(e[r?O:S],f,!r&&n);i6(a,t,S>-1?S:O,de)}!r&&n&&ie&&e[O].componentProviders++}}}function i6(t,i,e,n){let r=xl(i),a=LN(i);if(r||a){let d=(a?gi(i.useClass):i).prototype.ngOnDestroy;if(d){let f=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){let v=f.indexOf(e);v===-1?f.push(e,[n,d]):f[v+1].push(n,d)}else f.push(e,d)}}}function Hx(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function r6(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>U$(n,r?r(t):t,i)}}function Lr(t,i,e){let n=sc()+t,r=Ue();return r[n]===Zn?$1(r,n,e?i.call(e):i()):QU(r,n)}function yo(t,i,e,n){return Nx(Ue(),sc(),t,i,e,n)}function Va(t,i,e,n,r){return Fx(Ue(),sc(),t,i,e,n,r)}function ou(t,i){let e=t[i];return e===Zn?void 0:e}function Nx(t,i,e,n,r,a){let o=i+e;return _r(t,o,r)?$1(t,o+1,a?n.call(a,r):n(r)):ou(t,o+1)}function Fx(t,i,e,n,r,a,o){let s=i+e;return P1(t,s,r,a)?$1(t,s+2,o?n.call(o,r,a):n(r,a)):ou(t,s+2)}function q$(t,i,e,n,r,a,o,s){let d=i+e;return vx(t,d,r,a,o)?$1(t,d+3,s?n.call(s,r,a,o):n(r,a,o)):ou(t,d+3)}function Y$(t,i,e,n,r,a,o,s,d){let f=i+e;return bx(t,f,r,a,o,s)?$1(t,f+4,d?n.call(d,r,a,o,s):n(r,a,o,s)):ou(t,f+4)}function k(t,i){let e=Zt(),n,r=t+On;e.firstCreatePass?(n=Q$(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=Ks(n.type,!0)),o,s=Zi(E);try{let d=m0(!1),f=a();return m0(d),My(e,Ue(),r,f),f}finally{Zi(s)}}function Q$(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function I(t,i,e){let n=t+On,r=Ue(),a=z1(r,n);return su(r,n)?Nx(r,sc(),i,a.transform,e,a):a.transform(e)}function ia(t,i,e,n){let r=t+On,a=Ue(),o=z1(a,r);return su(a,r)?Fx(a,sc(),i,o.transform,e,n,o):o.transform(e,n)}function ope(t,i,e,n,r){let a=t+On,o=Ue(),s=z1(o,a);return su(o,a)?q$(o,sc(),i,s.transform,e,n,r,s):s.transform(e,n,r)}function h8(t,i,e,n,r,a){let o=t+On,s=Ue(),d=z1(s,o);return su(s,o)?Y$(s,sc(),i,d.transform,e,n,r,a,d):d.transform(e,n,r,a)}function su(t,i){return t[ut].data[i].pure}function jn(t,i){return K0(t,i)}var Q3=null;function K$(t){Q3!==null&&(t.defaultEncapsulation!==Q3.defaultEncapsulation||t.preserveWhitespaces!==Q3.preserveWhitespaces)||(Q3=t)}var oc=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(".")}},g8=new oc("19.2.14"),ag=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},Bx=(()=>{class t{compileModuleSync(e){return new M0(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),r=ly(e),a=kC(r.declarations).reduce((o,s)=>{let d=qo(s);return d&&o.push(new rc(d)),o},[]);return new ag(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),X$=new V("");function Z$(t,i,e){let n=new M0(e);return Promise.resolve(n)}function Ub(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var J$=(()=>{class t{zone=u(se);changeDetectionScheduler=u(ic);applicationRef=u(Si);_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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eG({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new se(je(q({},jx()),{scheduleInRootZone:e})),[{provide:se,useFactory:t},{provide:Cl,multi:!0,useFactory:()=>{let n=u(J$,{optional:!0});return()=>n.initialize()}},{provide:Cl,multi:!0,useFactory:()=>{let n=u(tG);return()=>{n.initialize()}}},i===!0?{provide:Qy,useValue:!0}:[],{provide:Ky,useValue:e??Yy}]}function jx(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var tG=(()=>{class t{subscription=new Me;initialized=!1;zone=u(se);pendingTasks=u(go);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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var nG=(()=>{class t{appRef=u(Si);taskService=u(go);ngZone=u(se);zonelessEnabled=u(Vg);tracing=u(Hl,{optional:!0});disableScheduling=u(Qy,{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(h0):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(Ky,{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 g0||!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?mb:Xy;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(h0+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,mb(()=>{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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function iG(){return typeof $localize<"u"&&$localize.locale||I0}var za=new V("",{providedIn:"root",factory:()=>u(za,gt.Optional|gt.SkipSelf)||iG()}),Ux=new V("",{providedIn:"root",factory:()=>A$});var E0=new V(""),rG=new V("");function b1(t){return!t.moduleRef}function aG(t){let i=b1(t)?t.r3Injector:t.moduleRef.injector,e=i.get(se);return e.run(()=>{b1(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Fi,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:a=>{n.handleError(a)}})}),b1(t)){let a=()=>i.destroy(),o=t.platformInjector.get(E0);o.add(a),i.onDestroy(()=>{r.unsubscribe(),o.delete(a)})}else{let a=()=>t.moduleRef.destroy(),o=t.platformInjector.get(E0);o.add(a),t.moduleRef.onDestroy(()=>{e0(t.allPlatformModules,t.moduleRef),r.unsubscribe(),o.delete(a)})}return sG(n,e,()=>{let a=i.get(xx);return a.runInitializers(),a.donePromise.then(()=>{let o=i.get(za,I0);if(z$(o||I0),!i.get(rG,!0))return b1(t)?i.get(Si):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(b1(t)){let d=i.get(Si);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return oG(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function oG(t,i){let e=t.injector.get(Si);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 sG(t,i,e){try{let n=e();return es(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}var $x=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let r=n?.scheduleInRootZone,a=()=>HF(n?.ngZone,je(q({},jx({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:r})),o=n?.ignoreChangesOutsideZone,s=[eG({ngZoneFactory:a,ignoreChangesOutsideZone:o}),{provide:ic,useExisting:nG}],d=VU(e.moduleType,this.injector,s);return aG({moduleRef:d,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let r=Mx({},n);return Z$(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(E0,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(oe(Te))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),w1=null,Gx=new V("");function cG(t){if(w1&&!w1.get(Gx,!1))throw new Ce(400,!1);e$(),w1=t;let i=t.get($x);return uG(t),i}function _8(t,i,e=[]){let n=`Platform: ${i}`,r=new V(n);return(a=[])=>{let o=Wx();if(!o||o.injector.get(Gx,!1)){let s=[...e,...a,{provide:r,useValue:!0}];t?t(s):cG(lG(s,n))}return dG(r)}}function lG(t=[],i){return Te.create({name:i,providers:[{provide:V0,useValue:"platform"},{provide:E0,useValue:new Set([()=>w1=null])},...t]})}function dG(t){let i=Wx();if(!i)throw new Ce(401,!1);return i}function Wx(){return w1?.get($x)??null}function uG(t){let i=t.get(Rg,null);tr(t,()=>{i?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=mG}return t})();function mG(t){return pG(ki(),Ue(),(t&16)===16)}function pG(t,i,e){if(Tl(t)&&!e){let n=Ea(t.index,i);return new O1(n,n)}else if(t.type&175){let n=i[gr];return new O1(n,i)}return null}var og=class{constructor(){}supports(i){return _x(i)}create(i){return new sg(i)}},fG=(t,i)=>i,sg=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||fG}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<$b(n,r,a)?e:n,s=$b(o,r,a),d=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,o.previousIndex==null)r++;else{a||(a=[]);let f=s-r,v=d-r;if(f!=v){for(let M=0;M{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 cg(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 O0),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 O0),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}},cg=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}},lg=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}},O0=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new lg,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 $b(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 mg(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))}},mg=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function Gb(){return new br([new og])}var br=(()=>{class t{factories;static \u0275prov=L({token:t,providedIn:"root",factory:Gb});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||Gb()),deps:[[t,new ta,new vr]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n!=null)return n;throw new Ce(901,!1)}}return t})();function Wb(){return new cu([new dg])}var cu=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:Wb});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||Wb()),deps:[[t,new ta,new vr]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n)return n;throw new Ce(901,!1)}}return t})();var qx=_8(null,"core",[]),Yx=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(oe(Si))};static \u0275mod=Z({type:t});static \u0275inj=X({})}return t})();function B(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ct(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}function or(t){return Sh(t)}function ra(t,i){return p3(t,i?.equal)}var pg=class{[Ki];constructor(i){this[Ki]=i}destroy(){this[Ki].destroy()}};function Y1(t,i){!i?.injector&&bg(Y1);let e=i?.injector??u(Te),n=i?.manualCleanup!==!0?e.get(Ko):null,r,a=e.get(Ng,null,{optional:!0}),o=e.get(ic);return a!==null&&!i?.forceRoot?(r=_G(a.view,o,t),n instanceof f0&&n._lView===a.view&&(n=null)):r=vG(t,e.get(yx),o),r.injector=e,n!==null&&(r.onDestroyFn=n.onDestroy(()=>r.destroy())),new pg(r)}var Qx=je(q({},Jc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:I1,run(){if(this.dirty=!1,this.hasRun&&!d3(this))return;this.hasRun=!0;let t=n=>(this.cleanupFns??=[]).push(n),i=d1(this),e=l0(!1);try{this.maybeCleanup(),this.fn(t)}finally{l0(e),l3(this,i)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),hG=je(q({},Qx),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){u1(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),gG=je(q({},Qx),{consumerMarkedDirty(){this.view[nt]|=8192,Vl(this.view),this.notifier.notify(13)},destroy(){u1(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Zs]?.delete(this)}});function _G(t,i,e){let n=Object.create(gG);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=e,t[Zs]??=new Set,t[Zs].add(n),n.consumerMarkedDirty(n),n}function vG(t,i,e){let n=Object.create(hG);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 lu(t,i){let e=qo(t),n=i.elementInjector||z0();return new rc(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector)}function Kx(t){let i=qo(t);if(!i)return null;let e=new rc(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 V("");var Jx=null;function yr(){return Jx}function v8(t){Jx??=t}var Q1=class{},K1=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>u(eM),providedIn:"platform"})}return t})(),b8=new V(""),eM=(()=>{class t extends K1{_location;_history;_doc=u(De);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return yr().getBaseHref(this._doc)}onPopState(e){let n=yr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=yr().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=L({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function du(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function Xx(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function aa(t){return t&&t[0]!=="?"?`?${t}`:t}var oa=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>u(mu),providedIn:"root"})}return t})(),uu=new V(""),mu=(()=>{class t extends oa{_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 du(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+aa(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,a){let o=this.prepareExternalUrl(r+aa(a));this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,a){let o=this.prepareExternalUrl(r+aa(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)(oe(K1),oe(uu,8))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rr=(()=>{class t{_subject=new N;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=CG(Xx(Zx(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+aa(n))}normalize(e){return t.stripTrailingSlash(yG(this._basePath,Zx(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+aa(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+aa(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=aa;static joinWithSlash=du;static stripTrailingSlash=Xx;static \u0275fac=function(n){return new(n||t)(oe(oa))};static \u0275prov=L({token:t,factory:()=>bG(),providedIn:"root"})}return t})();function bG(){return new Rr(oe(oa))}function yG(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function Zx(t){return t.replace(/\/index.html$/,"")}function CG(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var I8=(()=>{class t extends oa{_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=du(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,a){let o=this.prepareExternalUrl(r+aa(a))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,a){let o=this.prepareExternalUrl(r+aa(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)(oe(K1),oe(uu,8))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),cM={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]},Mu=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Mu||{});var Ii=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ii||{}),Wt=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Wt||{}),sr=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(sr||{}),_i={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 lM(t){return ar(t)[cn.LocaleId]}function dM(t,i,e){let n=ar(t),r=[n[cn.DayPeriodsFormat],n[cn.DayPeriodsStandalone]],a=Hr(r,i);return Hr(a,e)}function uM(t,i,e){let n=ar(t),r=[n[cn.DaysFormat],n[cn.DaysStandalone]],a=Hr(r,i);return Hr(a,e)}function mM(t,i,e){let n=ar(t),r=[n[cn.MonthsFormat],n[cn.MonthsStandalone]],a=Hr(r,i);return Hr(a,e)}function pM(t,i){let n=ar(t)[cn.Eras];return Hr(n,i)}function X1(t,i){let e=ar(t);return Hr(e[cn.DateFormat],i)}function Z1(t,i){let e=ar(t);return Hr(e[cn.TimeFormat],i)}function J1(t,i){let n=ar(t)[cn.DateTimeFormat];return Hr(n,i)}function ca(t,i){let e=ar(t),n=e[cn.NumberSymbols][i];if(typeof n>"u"){if(i===_i.CurrencyDecimal)return e[cn.NumberSymbols][_i.Decimal];if(i===_i.CurrencyGroup)return e[cn.NumberSymbols][_i.Group]}return n}function E8(t,i){return ar(t)[cn.NumberFormats][i]}function xG(t){return ar(t)[cn.Currencies]}function fM(t){if(!t[cn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[cn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function hM(t){let i=ar(t);return fM(i),(i[cn.ExtraData][2]||[]).map(n=>typeof n=="string"?y8(n):[y8(n[0]),y8(n[1])])}function gM(t,i,e){let n=ar(t);fM(n);let r=[n[cn.ExtraData][0],n[cn.ExtraData][1]],a=Hr(r,i)||[];return Hr(a,e)||[]}function Hr(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 y8(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}function _M(t,i,e="en"){let n=xG(e)[t]||cM[t]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||t}var MG=2;function vM(t){let i,e=cM[t];return e&&(i=e[2]),typeof i=="number"?i:MG}var wG=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pu={},DG=/((?:[^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 bM(t,i,e,n){let r=VG(t);i=Co(e,i)||i;let o=[],s;for(;i;)if(s=DG.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=CM(n,d),r=AG(r,n));let f="";return o.forEach(v=>{let y=PG(v);f+=y?y(r,e,d):v==="''"?"'":v.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),f}function vu(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Co(t,i){let e=lM(t);if(pu[e]??={},pu[e][i])return pu[e][i];let n="";switch(i){case"shortDate":n=X1(t,sr.Short);break;case"mediumDate":n=X1(t,sr.Medium);break;case"longDate":n=X1(t,sr.Long);break;case"fullDate":n=X1(t,sr.Full);break;case"shortTime":n=Z1(t,sr.Short);break;case"mediumTime":n=Z1(t,sr.Medium);break;case"longTime":n=Z1(t,sr.Long);break;case"fullTime":n=Z1(t,sr.Full);break;case"short":let r=Co(t,"shortTime"),a=Co(t,"shortDate");n=fu(J1(t,sr.Short),[r,a]);break;case"medium":let o=Co(t,"mediumTime"),s=Co(t,"mediumDate");n=fu(J1(t,sr.Medium),[o,s]);break;case"long":let d=Co(t,"longTime"),f=Co(t,"longDate");n=fu(J1(t,sr.Long),[d,f]);break;case"full":let v=Co(t,"fullTime"),y=Co(t,"fullDate");n=fu(J1(t,sr.Full),[v,y]);break}return n&&(pu[e][i]=n),n}function fu(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e})),t}function sa(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=ca(o,_i.MinusSign);return sa(s,i,d,n,r)}}function kG(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 Jt(t,i,e=Ii.Format,n=!1){return function(r,a){return IG(r,a,t,i,e,n)}}function IG(t,i,e,n,r,a){switch(e){case 2:return mM(i,r,n)[t.getMonth()];case 1:return uM(i,r,n)[t.getDay()];case 0:let o=t.getHours(),s=t.getMinutes();if(a){let f=hM(i),v=gM(i,r,n),y=f.findIndex(M=>{if(Array.isArray(M)){let[S,O]=M,Q=o>=S.hours&&s>=S.minutes,ie=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+sa(o,2,a)+sa(Math.abs(r%60),2,a);case 1:return"GMT"+(r>=0?"+":"")+sa(o,1,a);case 2:return"GMT"+(r>=0?"+":"")+sa(o,2,a)+":"+sa(Math.abs(r%60),2,a);case 3:return n===0?"Z":(r>=0?"+":"")+sa(o,2,a)+":"+sa(Math.abs(r%60),2,a);default:throw new Error(`Unknown zone width "${t}"`)}}}var EG=0,_u=4;function OG(t){let i=vu(t,EG,1).getDay();return vu(t,0,1+(i<=_u?_u:_u+7)-i)}function yM(t){let i=t.getDay(),e=i===0?-3:_u-i;return vu(t.getFullYear(),t.getMonth(),t.getDate()+e)}function C8(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=yM(e),o=OG(a.getFullYear()),s=a.getTime()-o.getTime();r=1+Math.round(s/6048e5)}return sa(r,t,ca(n,_i.MinusSign))}}function gu(t,i=!1){return function(e,n){let a=yM(e).getFullYear();return sa(a,t,ca(n,_i.MinusSign),i)}}var x8={};function PG(t){if(x8[t])return x8[t];let i;switch(t){case"G":case"GG":case"GGG":i=Jt(3,Wt.Abbreviated);break;case"GGGG":i=Jt(3,Wt.Wide);break;case"GGGGG":i=Jt(3,Wt.Narrow);break;case"y":i=Un(0,1,0,!1,!0);break;case"yy":i=Un(0,2,0,!0,!0);break;case"yyy":i=Un(0,3,0,!1,!0);break;case"yyyy":i=Un(0,4,0,!1,!0);break;case"Y":i=gu(1);break;case"YY":i=gu(2,!0);break;case"YYY":i=gu(3);break;case"YYYY":i=gu(4);break;case"M":case"L":i=Un(1,1,1);break;case"MM":case"LL":i=Un(1,2,1);break;case"MMM":i=Jt(2,Wt.Abbreviated);break;case"MMMM":i=Jt(2,Wt.Wide);break;case"MMMMM":i=Jt(2,Wt.Narrow);break;case"LLL":i=Jt(2,Wt.Abbreviated,Ii.Standalone);break;case"LLLL":i=Jt(2,Wt.Wide,Ii.Standalone);break;case"LLLLL":i=Jt(2,Wt.Narrow,Ii.Standalone);break;case"w":i=C8(1);break;case"ww":i=C8(2);break;case"W":i=C8(1,!0);break;case"d":i=Un(2,1);break;case"dd":i=Un(2,2);break;case"c":case"cc":i=Un(7,1);break;case"ccc":i=Jt(1,Wt.Abbreviated,Ii.Standalone);break;case"cccc":i=Jt(1,Wt.Wide,Ii.Standalone);break;case"ccccc":i=Jt(1,Wt.Narrow,Ii.Standalone);break;case"cccccc":i=Jt(1,Wt.Short,Ii.Standalone);break;case"E":case"EE":case"EEE":i=Jt(1,Wt.Abbreviated);break;case"EEEE":i=Jt(1,Wt.Wide);break;case"EEEEE":i=Jt(1,Wt.Narrow);break;case"EEEEEE":i=Jt(1,Wt.Short);break;case"a":case"aa":case"aaa":i=Jt(0,Wt.Abbreviated);break;case"aaaa":i=Jt(0,Wt.Wide);break;case"aaaaa":i=Jt(0,Wt.Narrow);break;case"b":case"bb":case"bbb":i=Jt(0,Wt.Abbreviated,Ii.Standalone,!0);break;case"bbbb":i=Jt(0,Wt.Wide,Ii.Standalone,!0);break;case"bbbbb":i=Jt(0,Wt.Narrow,Ii.Standalone,!0);break;case"B":case"BB":case"BBB":i=Jt(0,Wt.Abbreviated,Ii.Format,!0);break;case"BBBB":i=Jt(0,Wt.Wide,Ii.Format,!0);break;case"BBBBB":i=Jt(0,Wt.Narrow,Ii.Format,!0);break;case"h":i=Un(3,1,-12);break;case"hh":i=Un(3,2,-12);break;case"H":i=Un(3,1);break;case"HH":i=Un(3,2);break;case"m":i=Un(4,1);break;case"mm":i=Un(4,2);break;case"s":i=Un(5,1);break;case"ss":i=Un(5,2);break;case"S":i=Un(6,1);break;case"SS":i=Un(6,2);break;case"SSS":i=Un(6,3);break;case"Z":case"ZZ":case"ZZZ":i=hu(0);break;case"ZZZZZ":i=hu(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=hu(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=hu(2);break;default:return null}return x8[t]=i,i}function CM(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function TG(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function AG(t,i,e){let r=t.getTimezoneOffset(),a=CM(i,r);return TG(t,-1*(a-r))}function VG(t){if(tM(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 vu(r,a-1,o)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(wG))return zG(n)}let i=new Date(t);if(!tM(i))throw new Error(`Unable to convert "${t}" into a date`);return i}function zG(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),f=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return a.call(i,o,s,d,f),i}function tM(t){return t instanceof Date&&!isNaN(t.valueOf())}var LG=/^(\d+)?\.((\d+)(-(\d+))?)?$/,nM=22,bu=".",ed="0",RG=";",HG=",",M8="#",iM="\xA4";function xM(t,i,e,n,r,a,o=!1){let s="",d=!1;if(!isFinite(t))s=ca(e,_i.Infinity);else{let f=FG(t);o&&(f=NG(f));let v=i.minInt,y=i.minFrac,M=i.maxFrac;if(a){let ze=a.match(LG);if(ze===null)throw new Error(`${a} is not a valid digit info`);let Xe=ze[1],Mn=ze[3],En=ze[5];Xe!=null&&(v=w8(Xe)),Mn!=null&&(y=w8(Mn)),En!=null?M=w8(En):Mn!=null&&y>M&&(M=y)}BG(f,y,M);let S=f.digits,O=f.integerLen,Q=f.exponent,ie=[];for(d=S.every(ze=>!ze);O0?ie=S.splice(O,S.length):(ie=S,S=[0]);let de=[];for(S.length>=i.lgSize&&de.unshift(S.splice(-i.lgSize,S.length).join(""));S.length>i.gSize;)de.unshift(S.splice(-i.gSize,S.length).join(""));S.length&&de.unshift(S.join("")),s=de.join(ca(e,n)),ie.length&&(s+=ca(e,r)+ie.join("")),Q&&(s+=ca(e,_i.Exponential)+"+"+Q)}return t<0&&!d?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function wu(t,i,e,n,r){let a=E8(i,Mu.Currency),o=wM(a,ca(i,_i.MinusSign));return o.minFrac=vM(n),o.maxFrac=o.minFrac,xM(t,o,i,_i.CurrencyGroup,_i.CurrencyDecimal,r).replace(iM,e).replace(iM,"").trim()}function MM(t,i,e){let n=E8(i,Mu.Decimal),r=wM(n,ca(i,_i.MinusSign));return xM(t,r,i,_i.Group,_i.Decimal,e)}function wM(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(RG),r=n[0],a=n[1],o=r.indexOf(bu)!==-1?r.split(bu):[r.substring(0,r.lastIndexOf(ed)+1),r.substring(r.lastIndexOf(ed)+1)],s=o[0],d=o[1]||"";e.posPre=s.substring(0,s.indexOf(M8));for(let v=0;v-1&&(i=i.replace(bu,"")),(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)===ed;a++);if(a===(s=i.length))n=[0],r=1;else{for(s--;i.charAt(s)===ed;)s--;for(r-=a,n=[],o=0;a<=s;a++,o++)n[o]=Number(i.charAt(a))}return r>nM&&(n=n.splice(0,nM-1),e=r-1,r=1),{digits:n,exponent:e,integerLen:r}}function BG(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 y=o;y=5)if(o-1<0){for(let y=0;y>o;y--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r=f?O.pop():d=!1),M>=10?1:0},0);v&&(n.unshift(v),t.integerLen++)}function w8(t){let i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+t);return i}var D8=/\s+/,rM=[],wn=(()=>{class t{_ngEl;_renderer;initialClasses=rM;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(D8):rM}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(D8):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(D8).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)(E(Y),E(Ze))};static \u0275dir=z({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var yu=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}},Pt=(()=>{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 yu(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),aM(s,r)}});for(let r=0,a=n.length;r{let a=n.get(r.currentIndex);aM(a,r)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(E(ot),E(Ke),E(br))};static \u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function aM(t,i){t.context.$implicit=i.item}var Ae=(()=>{class t{_viewContainer;_context=new Cu;_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){oM(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oM(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)(E(ot),E(Ke))};static \u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Cu=class{$implicit=null;ngIf=null};function oM(t,i){if(t&&!t.createEmbeddedView)throw new Ce(2020,!1)}var xu=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()}},td=(()=>{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=z({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return t})(),O8=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new xu(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||t)(E(ot),E(Ke),E(td,9))};static \u0275dir=z({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})(),P8=(()=>{class t{constructor(e,n,r){r._addDefault(new xu(e,n))}static \u0275fac=function(n){return new(n||t)(E(ot),E(Ke),E(td,9))};static \u0275dir=z({type:t,selectors:[["","ngSwitchDefault",""]]})}return t})();var T8=(()=>{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:Pa.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)(E(Y),E(cu),E(Ze))};static \u0275dir=z({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),ns=(()=>{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)(E(ot))};static \u0275dir=z({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Pe]})}return t})();function Bl(t,i){return new Ce(2100,!1)}var S8=class{createSubscription(i,e){return or(()=>i.subscribe({next:e,error:n=>{throw n}}))}dispose(i){or(()=>i.unsubscribe())}},k8=class{createSubscription(i,e){return i.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(i){i.unsubscribe()}},jG=new k8,UG=new S8,nd=(()=>{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(es(e))return jG;if(d8(e))return UG;throw Bl(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)(E(ye,16))};static \u0275pipe=vt({name:"async",type:t,pure:!1})}return t})(),$G=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Bl(t,e);return e.toLowerCase()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=vt({name:"lowercase",type:t,pure:!0})}return t})(),GG=/(?:[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,WG=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Bl(t,e);return e.replace(GG,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=vt({name:"titlecase",type:t,pure:!0})}return t})();var qG="mediumDate",DM=new V(""),SM=new V(""),uc=(()=>{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??qG,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return bM(e,o,a||this.locale,s)}catch(o){throw Bl(t,o.message)}}static \u0275fac=function(n){return new(n||t)(E(za,16),E(DM,24),E(SM,24))};static \u0275pipe=vt({name:"date",type:t,pure:!0})}return t})();var YG=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=vt({name:"json",type:t,pure:!1})}return t})();function QG(t,i){return{key:t,value:i}}var KG=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=sM;transform(e,n=sM){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(QG(o.key,o.currentValue))})),(r||a)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(E(cu,16))};static \u0275pipe=vt({name:"keyvalue",type:t,pure:!1})}return t})();function sM(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(!kM(e))return null;r||=this._locale;try{let a=IM(e);return MM(a,r,n)}catch(a){throw Bl(t,a.message)}}static \u0275fac=function(n){return new(n||t)(E(za,16))};static \u0275pipe=vt({name:"number",type:t,pure:!0})}return t})();var A8=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,r="symbol",a,o){if(!kM(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=_M(s,r==="symbol"?"wide":"narrow",o):s=r);try{let d=IM(e);return wu(d,o,s,n,a)}catch(d){throw Bl(t,d.message)}}static \u0275fac=function(n){return new(n||t)(E(za,16),E(Ux,16))};static \u0275pipe=vt({name:"currency",type:t,pure:!0})}return t})();function kM(t){return!(t==null||t===""||t!==t)}function IM(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 he=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({})}return t})();function rd(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 Du="browser",EM="server";function V8(t){return t===Du}function Su(t){return t===EM}var mc=class{};function ufe(t,i,e){return Vx(t,i,e)}var OM=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>new z8(u(De),window)})}return t})(),z8=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=XG(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 XG(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 Eu=new V(""),N8=(()=>{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)(oe(Eu),oe(se))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),ad=class{_doc;constructor(i){this._doc=i}manager},ku="ng-app-id";function PM(t){for(let i of t)i.remove()}function TM(t,i){let e=i.createElement("style");return e.textContent=t,e}function ZG(t,i,e,n){let r=t.head?.querySelectorAll(`style[${ku}="${i}"],link[${ku}="${i}"]`);if(r)for(let a of r)a.removeAttribute(ku),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 R8(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var F8=(()=>{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=Su(a),ZG(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let r of e)this.addUsage(r,this.inline,TM);n?.forEach(r=>this.addUsage(r,this.external,R8))}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&&(PM(r.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])PM(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:r}]of this.inline)r.push(this.addElement(e,TM(n,this.doc)));for(let[n,{elements:r}]of this.external)r.push(this.addElement(e,R8(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(ku,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(oe(De),oe(lc),oe(R1,8),oe(Zo))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),L8={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"},B8=/%COMP%/g;var VM="%COMP%",JG=`_nghost-${VM}`,eW=`_ngcontent-${VM}`,tW=!0,nW=new V("",{providedIn:"root",factory:()=>tW});function iW(t){return eW.replace(B8,t)}function rW(t){return JG.replace(B8,t)}function zM(t,i){return i.map(e=>e.replace(B8,t))}var j8=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,r,a,o,s,d,f=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=f,this.tracingService=v,this.platformIsServer=Su(s),this.defaultRenderer=new od(e,o,d,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Oa.ShadowDom&&(n=je(q({},n),{encapsulation:Oa.Emulated}));let r=this.getOrCreateRenderer(e,n);return r instanceof Iu?r.applyToHost(e):r instanceof sd&&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,f=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,y=this.platformIsServer,M=this.tracingService;switch(n.encapsulation){case Oa.Emulated:a=new Iu(d,f,n,this.appId,v,o,s,y,M);break;case Oa.ShadowDom:return new H8(d,f,e,n,o,s,this.nonce,y,M);default:a=new sd(d,f,n,v,o,s,y,M);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)(oe(N8),oe(F8),oe(lc),oe(nW),oe(De),oe(Zo),oe(se),oe(R1),oe(Hl,8))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),od=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(L8[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(AM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(AM(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=L8[r];a?i.setAttributeNS(a,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let r=L8[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&(Pa.DashCase|Pa.Important)?i.style.setProperty(e,n,r&Pa.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Pa.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=yr().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 AM(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var H8=class extends od{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,r,a,o,s,d,f){super(i,a,o,d,f),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let v=r.styles;v=zM(r.id,v);for(let M of v){let S=document.createElement("style");s&&S.setAttribute("nonce",s),S.textContent=M,this.shadowRoot.appendChild(S)}let y=r.getExternalStyles?.();if(y)for(let M of y){let S=R8(M,a);s&&S.setAttribute("nonce",s),this.shadowRoot.appendChild(S)}}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)}},sd=class extends od{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,r,a,o,s,d,f){super(i,a,o,s,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let v=n.styles;this.styles=f?zM(f,v):v,this.styleUrls=n.getExternalStyles?.(f)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Iu=class extends sd{contentAttr;hostAttr;constructor(i,e,n,r,a,o,s,d,f){let v=r+"-"+n.id;super(i,e,n,a,o,s,d,f,v),this.contentAttr=iW(v),this.hostAttr=rW(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 Ou=class t extends Q1{supportsDOMEvents=!0;static makeCurrent(){v8(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=aW();return e==null?null:oW(e)}resetBaseElement(){cd=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return rd(document.cookie,i)}},cd=null;function aW(){return cd=cd||document.head.querySelector("base"),cd?cd.getAttribute("href"):null}function oW(t){return new URL(t,document.baseURI).pathname}var Pu=class{addToWindow(i){si.getAngularTestability=(n,r=!0)=>{let a=i.findTestabilityInTree(n,r);if(a==null)throw new Ce(5103,!1);return a},si.getAllAngularTestabilities=()=>i.getAllTestabilities(),si.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let r=si.getAllAngularTestabilities(),a=r.length,o=function(){a--,a==0&&n()};r.forEach(s=>{s.whenStable(o)})};si.frameworkStabilizers||(si.frameworkStabilizers=[]),si.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let r=i.getTestability(e);return r??(n?yr().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},sW=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),RM=(()=>{class t extends ad{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)(oe(De))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),LM=["alt","control","meta","shift"],cW={"\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"},lW={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},HM=(()=>{class t extends ad{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(()=>yr().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."),LM.forEach(f=>{let v=n.indexOf(f);v>-1&&(n.splice(v,1),o+=f+".")}),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=cW[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"),LM.forEach(o=>{if(o!==r){let s=lW[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)(oe(De))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function dW(){Ou.makeCurrent()}function uW(){return new Fi}function mW(){return cC(document),document}var pW=[{provide:Zo,useValue:Du},{provide:Rg,useValue:dW,multi:!0},{provide:De,useFactory:mW}],fW=_8(qx,"browser",pW);var hW=[{provide:G1,useClass:Pu},{provide:c8,useClass:J0,deps:[se,eu,G1]},{provide:J0,useClass:J0,deps:[se,eu,G1]}],gW=[{provide:V0,useValue:"root"},{provide:Fi,useFactory:uW},{provide:Eu,useClass:RM,multi:!0,deps:[De]},{provide:Eu,useClass:HM,multi:!0,deps:[De]},j8,F8,N8,{provide:Tn,useExisting:j8},{provide:mc,useClass:sW},[]],_W=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({providers:[...gW,...hW],imports:[he,Yx]})}return t})();var Ul=class{},ld=class{},Cr=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 Au=class{encodeKey(i){return NM(i)}encodeValue(i){return NM(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function vW(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 bW=/%(\d[a-f0-9])/gi,yW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function NM(t){return encodeURIComponent(t).replace(bW,(i,e)=>yW[e]??i)}function Tu(t){return`${t}`}var ee=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Au,i.fromString){if(i.fromObject)throw new Ce(2805,!1);this.map=vW(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(Tu):[Tu(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(Tu(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(Tu(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 Vu=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 CW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function FM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function BM(t){return typeof Blob<"u"&&t instanceof Blob}function jM(t){return typeof FormData<"u"&&t instanceof FormData}function xW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var UM="Content-Type",$M="Accept",WM="X-Request-URL",qM="text/plain",YM="application/json",MW=`${YM}, ${qM}, */*`,jl=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(CW(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 Cr,this.context??=new Vu,!this.params)this.params=new ee,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),d=s===-1?"?":sM.set(S,i.setHeaders[S]),f)),i.setParams&&(v=Object.keys(i.setParams).reduce((M,S)=>M.set(S,i.setParams[S]),v)),new t(e,n,o,{params:v,headers:f,context:y,reportProgress:d,responseType:r,withCredentials:s,transferCache:a})}},pc=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}(pc||{}),$l=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new Cr,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}},zu=class t extends $l{constructor(i={}){super(i)}type=pc.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})}},dd=class t extends $l{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=pc.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})}},ud=class extends $l{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}},wW=200,DW=204;function U8(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 An=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let a;if(e instanceof jl)a=e;else{let d;r.headers instanceof Cr?d=r.headers:d=new Cr(r.headers);let f;r.params&&(r.params instanceof ee?f=r.params:f=new ee({fromObject:r.params})),a=new jl(e,n,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:f,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let o=re(a).pipe(Hi(d=>this.handler.handle(d)));if(e instanceof jl||r.observe==="events")return o;let s=o.pipe(Ve(d=>d instanceof dd));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 ee().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,U8(r,n))}post(e,n,r={}){return this.request("POST",e,U8(r,n))}put(e,n,r={}){return this.request("PUT",e,U8(r,n))}static \u0275fac=function(n){return new(n||t)(oe(Ul))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var SW=new V("");function QM(t,i){return i(t)}function kW(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function IW(t,i,e){return(n,r)=>tr(e,()=>i(n,a=>t(a,r)))}var KM=new V(""),G8=new V(""),XM=new V(""),W8=new V("",{providedIn:"root",factory:()=>!0});function EW(){let t=null;return(i,e)=>{t===null&&(t=(u(KM,{optional:!0})??[]).reduceRight(kW,QM));let n=u(go);if(u(W8)){let a=n.add();return t(i,e).pipe(Ma(()=>n.remove(a)))}else return t(i,e)}}var Lu=(()=>{class t extends Ul{backend;injector;chain=null;pendingTasks=u(go);contributeToStability=u(W8);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(G8),...this.injector.get(XM,[])]));this.chain=n.reduceRight((r,a)=>IW(r,a,this.injector),QM)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Ma(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(oe(ld),oe(yn))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var OW=/^\)\]\}',?\n/,PW=RegExp(`^${WM}:`,"m");function TW(t){return"responseURL"in t&&t.responseURL?t.responseURL:PW.test(t.getAllResponseHeaders())?t.getResponseHeader(WM):null}var $8=(()=>{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?Ut(n.\u0275loadImpl()):re(null)).pipe(dt(()=>new $e(a=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((Q,ie)=>o.setRequestHeader(Q,ie.join(","))),e.headers.has($M)||o.setRequestHeader($M,MW),!e.headers.has(UM)){let Q=e.detectContentTypeHeader();Q!==null&&o.setRequestHeader(UM,Q)}if(e.responseType){let Q=e.responseType.toLowerCase();o.responseType=Q!=="json"?Q:"text"}let s=e.serializeBody(),d=null,f=()=>{if(d!==null)return d;let Q=o.statusText||"OK",ie=new Cr(o.getAllResponseHeaders()),de=TW(o)||e.url;return d=new zu({headers:ie,status:o.status,statusText:Q,url:de}),d},v=()=>{let{headers:Q,status:ie,statusText:de,url:ze}=f(),Xe=null;ie!==DW&&(Xe=typeof o.response>"u"?o.responseText:o.response),ie===0&&(ie=Xe?wW:0);let Mn=ie>=200&&ie<300;if(e.responseType==="json"&&typeof Xe=="string"){let En=Xe;Xe=Xe.replace(OW,"");try{Xe=Xe!==""?JSON.parse(Xe):null}catch(fi){Xe=En,Mn&&(Mn=!1,Xe={error:fi,text:Xe})}}Mn?(a.next(new dd({body:Xe,headers:Q,status:ie,statusText:de,url:ze||void 0})),a.complete()):a.error(new ud({error:Xe,headers:Q,status:ie,statusText:de,url:ze||void 0}))},y=Q=>{let{url:ie}=f(),de=new ud({error:Q,status:o.status||0,statusText:o.statusText||"Unknown Error",url:ie||void 0});a.error(de)},M=!1,S=Q=>{M||(a.next(f()),M=!0);let ie={type:pc.DownloadProgress,loaded:Q.loaded};Q.lengthComputable&&(ie.total=Q.total),e.responseType==="text"&&o.responseText&&(ie.partialText=o.responseText),a.next(ie)},O=Q=>{let ie={type:pc.UploadProgress,loaded:Q.loaded};Q.lengthComputable&&(ie.total=Q.total),a.next(ie)};return o.addEventListener("load",v),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),e.reportProgress&&(o.addEventListener("progress",S),s!==null&&o.upload&&o.upload.addEventListener("progress",O)),o.send(s),a.next({type:pc.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",v),o.removeEventListener("timeout",y),e.reportProgress&&(o.removeEventListener("progress",S),s!==null&&o.upload&&o.upload.removeEventListener("progress",O)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(oe(mc))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),ZM=new V(""),AW="XSRF-TOKEN",VW=new V("",{providedIn:"root",factory:()=>AW}),zW="X-XSRF-TOKEN",LW=new V("",{providedIn:"root",factory:()=>zW}),md=class{},RW=(()=>{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=rd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(oe(De),oe(VW))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function HW(t,i){let e=t.url.toLowerCase();if(!u(ZM)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=u(md).getToken(),r=u(LW);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var q8=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}(q8||{});function NW(t,i){return{\u0275kind:t,\u0275providers:i}}function FW(...t){let i=[An,$8,Lu,{provide:Ul,useExisting:Lu},{provide:ld,useFactory:()=>u(SW,{optional:!0})??u($8)},{provide:G8,useValue:HW,multi:!0},{provide:ZM,useValue:!0},{provide:md,useClass:RW}];for(let e of t)i.push(...e.\u0275providers);return Ol(i)}var GM=new V("");function BW(){return NW(q8.LegacyInterceptors,[{provide:GM,useFactory:EW},{provide:G8,useExisting:GM,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)(oe(De))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var xo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=oe(jW),r},providedIn:"root"})}return t})(),jW=(()=>{class t extends xo{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Hn.NONE:return n;case Hn.HTML:return _o(n,"HTML")?zr(n):Bg(this._doc,String(n)).toString();case Hn.STYLE:return _o(n,"Style")?zr(n):n;case Hn.SCRIPT:if(_o(n,"Script"))return zr(n);throw new Ce(5200,!1);case Hn.URL:return _o(n,"URL")?zr(n):$0(String(n));case Hn.RESOURCE_URL:if(_o(n,"ResourceURL"))return zr(n);throw new Ce(5201,!1);default:throw new Ce(5202,!1)}}bypassSecurityTrustHtml(e){return gC(e)}bypassSecurityTrustStyle(e){return _C(e)}bypassSecurityTrustScript(e){return vC(e)}bypassSecurityTrustUrl(e){return bC(e)}bypassSecurityTrustResourceUrl(e){return yC(e)}static \u0275fac=function(n){return new(n||t)(oe(De))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gl=class{},ew=(()=>{class t extends Gl{getTranslation(e){return re({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),hd=class{},tw=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function Hu(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{_d(i[n])?n in t?e[n]=Y8(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):Y8({},i)}function Q8(t,i){let e=i.split(".");i="";do i+=e.shift(),is(t)&&is(t[i])&&(_d(t[i])||e5(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function $W(t,i,e){let n=i.split("."),r=t;for(let a=0;a{class t extends Wl{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(t5(e))return this.interpolateString(e,n);if(UW(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=Q8(n,a);return is(o)?o:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),ql=class{},iw=(()=>{class t extends ql{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=L({token:t,factory:t.\u0275fac})}return t})(),gd=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},K8=new V("ISOLATE_TRANSLATE_SERVICE"),X8=new V("USE_DEFAULT_LANG"),Z8=new V("DEFAULT_LANGUAGE"),J8=new V("USE_EXTEND"),fd=t=>Kn(t)?t:re(t),xr=(()=>{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,f=!1,v){this.store=e,this.currentLoader=n,this.compiler=r,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.extend=f,d&&(this.store=new gd),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 re(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return Kn(n)?(n.pipe(Le(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),re(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($o(1),Le(1));return this.loadingTranslations=n.pipe(pe(r=>this.compiler.compileTranslations(r,e)),$o(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]=Y8(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(Q8(e,n),r)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(Q8(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(e5(e))return e.map(r=>this.runInterpolation(r,n));if(_d(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||Kn(a[d]);if(!o)return a;let s=n.map(d=>fd(a[d]));return so(s).pipe(pe(d=>{let f={};return d.forEach((v,y)=>{f[n[y]]=v}),f}))}return this.getParsedResultForKey(e,n,r)}get(e,n){if(!is(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Hi(r=>fd(this.getParsedResult(r,e,n)))):fd(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!is(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Mi(Ri(()=>this.get(e,n)),this.onTranslationChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return fd(a)})))}stream(e,n){if(!is(e)||!e.length)throw new Error('Parameter "key" required');return Mi(Ri(()=>this.get(e,n)),this.onLangChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return fd(a)})))}instant(e,n){if(!is(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 Kn(r)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:r}set(e,n,r=this.currentLang){$W(this.translations[r],e,t5(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)(oe(gd),oe(Gl),oe(ql),oe(Wl),oe(hd),oe(X8),oe(K8),oe(J8),oe(Z8))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ie=(()=>{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);Kn(o)?o.subscribe(a):a(o)}this.translate.get(e,n).subscribe(a)}transform(e,...n){if(!e||!e.length)return e;if(Hu(e,this.lastKey)&&Hu(n,this.lastParams))return this.value;let r;if(is(n[0])&&n.length)if(t5(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 _d(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)(E(xr,16),E(ye,16))};static \u0275pipe=vt({name:"translate",type:t,pure:!1});static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var n5=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Gl,useClass:ew},e.compiler||{provide:ql,useClass:iw},e.parser||{provide:Wl,useClass:nw},e.missingTranslationHandler||{provide:hd,useClass:tw},gd,{provide:K8,useValue:e.isolate},{provide:X8,useValue:e.useDefaultLang},{provide:J8,useValue:e.extend},{provide:Z8,useValue:e.defaultLanguage},xr]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Gl,useClass:ew},e.compiler||{provide:ql,useClass:iw},e.parser||{provide:Wl,useClass:nw},e.missingTranslationHandler||{provide:hd,useClass:tw},{provide:K8,useValue:e.isolate},{provide:X8,useValue:e.useDefaultLang},{provide:J8,useValue:e.extend},{provide:Z8,useValue:e.defaultLanguage},xr]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({})}return t})();var i5={mifos_x:{version:"251204",hash:"a0bf474"},allow_switching_backend_instance:!0};var en=window.env||{},ft={production:!0,version:i5.mifos_x.version,hash:i5.mifos_x.hash,fineractPlatformTenantId:en.fineractPlatformTenantId||"default",fineractPlatformTenantIds:en.fineractPlatformTenantIds||"default",baseApiUrls:en.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:en.fineractApiUrl||(en.fineractApiUrls?.length>0?en.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:en.oauthServerUrl||en.fineractApiUrl+en.apiProvider,allowServerSwitch:en.allowServerSwitch||"true",apiProvider:en.apiProvider||"/fineract-provider/api",apiVersion:en.apiVersion||"/v1",serverUrl:"",oauth:{enabled:en.oauthServerEnabled||!1,serverUrl:en.oauthServerUrl||"",appId:en.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:en.defaultLanguage||"en-US",supportedLanguages:en.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:en.preloadClients||!0,defaultCharDelimiter:en.defaultCharDelimiter||",",displayBackEndInfo:en.displayBackEndInfo||"true",displayTenantSelector:en.displayTenantSelector||"true",waitTimeForNotifications:en.waitTimeForNotifications||60,waitTimeForCOBCatchUp:en.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:en.sessionIdleTimeout||3e5}},httpCacheEnabled:en.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:en.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};ft.serverUrl=`${ft.baseApiUrl}${ft.apiProvider}${ft.apiVersion}`;var rw=(()=>{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=vt({name:"accountsFilter",type:t,pure:!0})}}return t})();var aw=(()=>{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=vt({name:"chargesFilter",type:t,pure:!0})}}return t})();var ow=(()=>{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=vt({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var rs=(()=>{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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ql=o3(Fu());var Bi=(()=>{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 uc(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,Ql.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,Ql.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,Ql.default)(e).toDate()}parseDatetime(e){return(0,Ql.default)(e).toDate()}convertToDate(e,n){return(0,Ql.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)(oe(uc))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ft=(()=>{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=ft.defaultLanguage?ft.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"):ft.baseApiUrl&&ft.baseApiUrl!==""?ft.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+ft.apiProvider}get serverUrl(){return this.server+ft.apiProvider+ft.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)(oe(rs),oe(Bi))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Bu=o3(Fu());var Mr=(()=>{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 Bu.default.locale(this.settingsService.language.code),e instanceof Array?a=(0,Bu.default)(e.join("-"),"YYYY-MM-DD"):a=(0,Bu.default)(e),n==null?a.format(r):a.format(n)}static{this.\u0275fac=function(n){return new(n||t)(E(Ft,16))}}static{this.\u0275pipe=vt({name:"dateFormat",type:t,pure:!0})}}return t})();var bd=o3(Fu());var Ra=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let r;if(Array.isArray(e)){let[o,s,d,f,v,y]=e;f!=null?r=(0,bd.default)({year:o,month:(s??1)-1,date:d,hour:f,minute:v??0,second:y??0}):r=(0,bd.default)({year:o,month:(s??1)-1,date:d})}else typeof e=="number"&&e<1e12?r=bd.default.unix(e):r=(0,bd.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=vt({name:"datetimeFormat",type:t,pure:!0})}}return t})();var ju=(()=>{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=vt({name:"externalIdentifier",type:t,pure:!0})}}return t})();var sw=new WeakMap,cw=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n,r,a){if(!n||!r||e===null||e===void 0)return"";let o=sw.get(n);o||(o=new Map,sw.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),f=d?d[a]??"":"";return typeof f=="string"?this.sanitizer.sanitize(Hn.HTML,f)||"":String(f||"")}static{this.\u0275fac=function(n){return new(n||t)(E(xo,16))}}static{this.\u0275pipe=vt({name:"find",type:t,pure:!0})}}return t})();var as=(()=>{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)(E(id,16),E(Ft,16))}}static{this.\u0275pipe=vt({name:"formatNumber",type:t,pure:!0})}}return t})();var uw=o3(dw());var $u=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return uw.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=vt({name:"prettyPrint",type:t,pure:!0})}}return t})();var mw=(()=>{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=vt({name:"statusLookup",type:t,pure:!0})}}return t})();var fc=(()=>{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)(E(xr,16))}}static{this.\u0275pipe=vt({name:"translateKey",type:t,pure:!0})}}return t})();var Gu=(()=>{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=vt({name:"truncateText",type:t,pure:!0})}}return t})();var fw=(()=>{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=vt({name:"urlToString",type:t,pure:!0})}}return t})();var Wu=(()=>{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)(E(xr,16))}}static{this.\u0275pipe=vt({name:"yesNo",type:t,pure:!0})}}return t})();var hw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=Z({type:t})}static{this.\u0275inj=X({providers:[mw,rw,aw,ow,cw,fw,Mr,Ra,ju,as,Wu,$u,fc,Gu],imports:[he]})}}return t})();var wo={headers:{"Fineract-Platform-TenantId":ft.fineractPlatformTenantId}},qu="Authorization",YW="Fineract-Platform-TenantId",gw="Fineract-Platform-TFA-Token",_w=(()=>{class t{constructor(e){this.settingsService=e}intercept(e,n){return this.settingsService.tenantIdentifier&&(wo.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:wo.headers}),n.handle(e)}setAuthorizationToken(e){ft.oauth.enabled?wo.headers[qu]=`Bearer ${e}`:wo.headers[qu]=`Basic ${e}`}setTwoFactorAccessToken(e){wo.headers[gw]=e}removeAuthorization(){delete wo.headers[qu]}removeAuthorizationTenant(){delete wo.headers[qu],delete wo.headers[YW]}removeTwoFactorAuthorization(){delete wo.headers[gw]}static{this.\u0275fac=function(n){return new(n||t)(oe(Ft))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac})}}return t})();var Yu=(()=>{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 tt(!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));ft.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=ft.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,ft.oauth.enabled){let r=new ee;r=r.set("username",e.username),r=r.set("password",e.password),r=r.set("client_id",`${ft.oauth.appId}`),r=r.set("grant_type","password"),r=r.set("remember_me",this.rememberMe?"true":"false");let a=new Cr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${ft.oauth.serverUrl}/token`,r.toString(),{headers:a}).pipe(pe(o=>(this.getUserDetails(o),re(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(pe(r=>(this.onLoginSuccess(r),re(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new Cr;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${ft.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 ee;r=r.set("username",n.username),r=r.set("client_id",`${ft.oauth.appId}`),r=r.set("refresh_token",e),r=r.set("grant_type","refresh_token");let a=new Cr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${ft.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,ft.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 ee;r=r.set("username",n.username),r=r.set("client_id",`${ft.oauth.appId}`),r=r.set("refresh_token",e);let a=new Cr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${ft.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),re(!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)(oe(An),oe(rs),oe(_w))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac})}}return t})();var os=(()=>{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)(E(Ke),E(ot),E(Yu))}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var Sw=(()=>{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)(E(Ze),E(Y))};static \u0275dir=z({type:t})}return t})(),kw=(()=>{class t extends Sw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({type:t,features:[le]})}return t})(),Jn=new V("");var KW={provide:Jn,useExisting:Dt(()=>li),multi:!0};function XW(){let t=yr()?yr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var ZW=new V(""),li=(()=>{class t extends Sw{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!XW())}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)(E(Ze),E(Y),E(ZW,8))};static \u0275dir=z({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&&R("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([KW]),le]})}return t})();function c5(t){return t==null||l5(t)===0}function l5(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var di=new V(""),gc=new V(""),JW=/^(?=.{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])?)*$/,qt=class{static min(i){return Iw(i)}static max(i){return Ew(i)}static required(i){return Ow(i)}static requiredTrue(i){return eq(i)}static email(i){return tq(i)}static minLength(i){return Pw(i)}static maxLength(i){return Tw(i)}static pattern(i){return nq(i)}static nullValidator(i){return Ku()}static compose(i){return Hw(i)}static composeAsync(i){return Nw(i)}};function Iw(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 Ow(t){return c5(t.value)?{required:!0}:null}function eq(t){return t.value===!0?null:{required:!0}}function tq(t){return c5(t.value)||JW.test(t.value)?null:{email:!0}}function Pw(t){return i=>{let e=i.value?.length??l5(i.value);return e===null||e===0?null:e{let e=i.value?.length??l5(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function nq(t){if(!t)return Ku;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(c5(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ku(t){return null}function Aw(t){return t!=null}function Vw(t){return es(t)?Ut(t):t}function zw(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function Lw(t,i){return i.map(e=>e(t))}function iq(t){return!t.validate}function Rw(t){return t.map(i=>iq(i)?i:e=>i.validate(e))}function Hw(t){if(!t)return null;let i=t.filter(Aw);return i.length==0?null:function(e){return zw(Lw(e,i))}}function d5(t){return t!=null?Hw(Rw(t)):null}function Nw(t){if(!t)return null;let i=t.filter(Aw);return i.length==0?null:function(e){let n=Lw(e,i).map(Vw);return so(n).pipe(pe(zw))}}function u5(t){return t!=null?Nw(Rw(t)):null}function bw(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Fw(t){return t._rawValidators}function Bw(t){return t._rawAsyncValidators}function a5(t){return t?Array.isArray(t)?t:[t]:[]}function Xu(t,i){return Array.isArray(t)?t.includes(i):t===i}function yw(t,i){let e=a5(i);return a5(t).forEach(r=>{Xu(e,r)||e.push(r)}),e}function Cw(t,i){return a5(i).filter(e=>!Xu(t,e))}var Zu=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=d5(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=u5(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}},ci=class extends Zu{name;get formDirective(){return null}get path(){return null}},$n=class extends Zu{_parent=null;name=null;valueAccessor=null},Ju=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}},rq={"[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"},rge=je(q({},rq),{"[class.ng-submitted]":"isSubmitted"}),tn=(()=>{class t extends Ju{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E($n,2))};static \u0275dir=z({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&ne("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:[le]})}return t})(),Fr=(()=>{class t extends Ju{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E(ci,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&ne("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:[le]})}return t})();var yd="VALID",Qu="INVALID",Xl="PENDING",Cd="DISABLED",cs=class{},em=class extends cs{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Md=class extends cs{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},wd=class extends cs{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Zl=class extends cs{status;source;constructor(i,e){super(),this.status=i,this.source=e}},tm=class extends cs{source;constructor(i){super(),this.source=i}},nm=class extends cs{source;constructor(i){super(),this.source=i}};function m5(t){return(om(t)?t.validators:t)||null}function aq(t){return Array.isArray(t)?d5(t):t||null}function p5(t,i){return(om(i)?i.asyncValidators:t)||null}function oq(t){return Array.isArray(t)?u5(t):t||null}function om(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function jw(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 Uw(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Ce(1002,"")})}var Jl=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 or(this.statusReactive)}set status(i){or(()=>this.statusReactive.set(i))}_status=ra(()=>this.statusReactive());statusReactive=Bn(void 0);get valid(){return this.status===yd}get invalid(){return this.status===Qu}get pending(){return this.status==Xl}get disabled(){return this.status===Cd}get enabled(){return this.status!==Cd}errors;get pristine(){return or(this.pristineReactive)}set pristine(i){or(()=>this.pristineReactive.set(i))}_pristine=ra(()=>this.pristineReactive());pristineReactive=Bn(!0);get dirty(){return!this.pristine}get touched(){return or(this.touchedReactive)}set touched(i){or(()=>this.touchedReactive.set(i))}_touched=ra(()=>this.touchedReactive());touchedReactive=Bn(!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(yw(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(yw(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(Cw(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(Cw(i,this._rawAsyncValidators))}hasValidator(i){return Xu(this._rawValidators,i)}hasAsyncValidator(i){return Xu(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(je(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new wd(!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 wd(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(je(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Md(!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 Md(!0,n))}markAsPending(i={}){this.status=Xl;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Zl(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(je(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Cd,this.errors=null,this._forEachChild(r=>{r.disable(je(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new em(this.value,n)),this._events.next(new Zl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(je(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=yd,this._forEachChild(n=>{n.enable(je(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(je(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===yd||this.status===Xl)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new em(this.value,e)),this._events.next(new Zl(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(je(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()?Cd:yd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Xl,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Vw(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 Zl(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?Cd:this.errors?Qu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xl)?Xl:this._anyControlsHaveStatus(Qu)?Qu:yd}_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 Md(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new wd(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){om(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=aq(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=oq(this._rawAsyncValidators)}},hc=class extends Jl{constructor(i,e,n){super(m5(e),p5(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={}){Uw(this,!0,i),Object.keys(i).forEach(n=>{jw(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 $w=hc;var o5=class extends hc{};var e2=new V("",{providedIn:"root",factory:()=>sm}),sm="always";function cm(t,i){return[...i.path,t]}function Dd(t,i,e=sm){f5(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),cq(t,i),dq(t,i),lq(t,i),sq(t,i)}function im(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),am(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function rm(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function sq(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function f5(t,i){let e=Fw(t);i.validator!==null?t.setValidators(bw(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Bw(t);i.asyncValidator!==null?t.setAsyncValidators(bw(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();rm(i._rawValidators,r),rm(i._rawAsyncValidators,r)}function am(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=Fw(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=Bw(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 rm(i._rawValidators,n),rm(i._rawAsyncValidators,n),e}function cq(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Gw(t,i)})}function lq(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Gw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Gw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function dq(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Ww(t,i){t==null,f5(t,i)}function uq(t,i){return am(t,i)}function h5(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function mq(t){return Object.getPrototypeOf(t.constructor)===kw}function qw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function g5(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(a=>{a.constructor===li?e=a:mq(a)?n=a:r=a}),r||n||e||null}function pq(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var fq={provide:ci,useExisting:Dt(()=>t2)},xd=Promise.resolve(),t2=(()=>{class t extends ci{callSetDisabledState;get submitted(){return or(this.submittedReactive)}_submitted=ra(()=>this.submittedReactive());submittedReactive=Bn(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new hc({},d5(e),u5(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Dd(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){xd.then(()=>{let n=this._findContainer(e.path),r=new hc({});Ww(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){xd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),qw(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new tm(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 nm(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)(E(di,10),E(gc,10),E(e2,8))};static \u0275dir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&R("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([fq]),le]})}return t})();function xw(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 ss=class extends Jl{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(m5(e),p5(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),om(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){xw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){xw(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}},Ei=ss,hq=t=>t instanceof ss,gq=(()=>{class t extends ci{_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 cm(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=z({type:t,standalone:!1,features:[le]})}return t})();var _q={provide:$n,useExisting:Dt(()=>vq)},ww=Promise.resolve(),vq=(()=>{class t extends $n{_changeDetectorRef;callSetDisabledState;control=new ss;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=g5(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),h5(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(){Dd(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){ww.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&B(n);ww.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?cm(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(E(ci,9),E(di,10),E(gc,10),E(Jn,10),E(ye,8),E(e2,8))};static \u0275dir=z({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([_q]),le,Pe]})}return t})();var ls=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),bq={provide:Jn,useExisting:Dt(()=>yq),multi:!0},yq=(()=>{class t extends kw{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=z({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&R("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[ue([bq]),le]})}return t})();var _5=new V(""),Cq={provide:$n,useExisting:Dt(()=>vi)},vi=(()=>{class t extends $n{_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=g5(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&im(n,this,!1),Dd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}h5(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&im(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)(E(di,10),E(gc,10),E(Jn,10),E(_5,8),E(e2,8))};static \u0275dir=z({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([Cq]),le,Pe]})}return t})(),xq={provide:ci,useExisting:Dt(()=>ei)},ei=(()=>{class t extends ci{callSetDisabledState;get submitted(){return or(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=ra(()=>this._submittedReactive());_submittedReactive=Bn(!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&&(am(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 Dd(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){im(e.control||null,e,!1),pq(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),qw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new tm(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 nm(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(im(n||null,e),hq(r)&&(Dd(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Ww(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&uq(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){f5(this.form,this),this._oldForm&&am(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(E(di,10),E(gc,10),E(e2,8))};static \u0275dir=z({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&R("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([xq]),le,Pe]})}return t})(),Mq={provide:ci,useExisting:Dt(()=>Yw)},Yw=(()=>{class t extends gq{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Kw(this._parent)}static \u0275fac=function(n){return new(n||t)(E(ci,13),E(di,10),E(gc,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ue([Mq]),le]})}return t})(),wq={provide:ci,useExisting:Dt(()=>Qw)},Qw=(()=>{class t extends ci{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Kw(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 cm(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(E(ci,13),E(di,10),E(gc,10))};static \u0275dir=z({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ue([wq]),le]})}return t})();function Kw(t){return!(t instanceof Yw)&&!(t instanceof ei)&&!(t instanceof Qw)}var Dq={provide:$n,useExisting:Dt(()=>wr)},wr=(()=>{class t extends $n{_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=g5(this,a)}ngOnChanges(e){this._added||this._setUpControl(),h5(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 cm(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)(E(ci,13),E(di,10),E(gc,10),E(Jn,10),E(_5,8))};static \u0275dir=z({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ue([Dq]),le,Pe]})}return t})();function Xw(t){return typeof t=="number"?t:parseInt(t,10)}function Zw(t){return typeof t=="number"?t:parseFloat(t)}var Sd=(()=>{class t{_validator=Ku;_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):Ku,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=z({type:t,features:[Pe]})}return t})(),Sq={provide:di,useExisting:Dt(()=>kq),multi:!0},kq=(()=>{class t extends Sd{max;inputName="max";normalizeInput=e=>Zw(e);createValidator=e=>Ew(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({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&&J("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[ue([Sq]),le]})}return t})(),Iq={provide:di,useExisting:Dt(()=>Eq),multi:!0},Eq=(()=>{class t extends Sd{min;inputName="min";normalizeInput=e=>Zw(e);createValidator=e=>Iw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({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&&J("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[ue([Iq]),le]})}return t})(),Oq={provide:di,useExisting:Dt(()=>la),multi:!0};var la=(()=>{class t extends Sd{required;inputName="required";normalizeInput=B;createValidator=e=>Ow;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({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&&J("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ue([Oq]),le]})}return t})();var Pq={provide:di,useExisting:Dt(()=>Tq),multi:!0},Tq=(()=>{class t extends Sd{minlength;inputName="minlength";normalizeInput=e=>Xw(e);createValidator=e=>Pw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&J("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ue([Pq]),le]})}return t})(),Aq={provide:di,useExisting:Dt(()=>Vq),multi:!0},Vq=(()=>{class t extends Sd{maxlength;inputName="maxlength";normalizeInput=e=>Xw(e);createValidator=e=>Tw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&J("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ue([Aq]),le]})}return t})();var Jw=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({})}return t})(),s5=class extends Jl{constructor(i,e,n){super(m5(e),p5(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={}){Uw(this,!1,i),i.forEach((n,r)=>{jw(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 Dw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var zq=(()=>{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 Dw(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new hc(r,a)}record(e,n=null){let r=this._reduceControls(e);return new o5(r,n)}control(e,n,r){let a={};return this.useNonNullable?(Dw(n)?a=n:(a.validators=n,a.asyncValidators=r),new ss(e,je(q({},a),{nonNullable:!0}))):new ss(e,n,r)}array(e,n,r){let a=e.map(o=>this._createControl(o));return new s5(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 ss)return e;if(e instanceof Jl)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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ds=(()=>{class t extends zq{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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var eD=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:e2,useValue:e.callSetDisabledState??sm}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({imports:[Jw]})}return t})(),ve=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_5,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:e2,useValue:e.callSetDisabledState??sm}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({imports:[Jw]})}return t})();var tD=(()=>{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 e==""?""+this.sufix:wu(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)(E(za),E(Y),E($n))}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,r){n&1&&R("blur",function(o){return r.blur(o.target)})("focus",function(o){return r.focus(o.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var dge=(()=>{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)(E($n),E(Y))}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,r){n&1&&R("focus",function(){return r.onFocus()})}})}}return t})();var nD=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=Z({type:t})}static{this.\u0275inj=X({imports:[he]})}}return t})();var Br=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 Do(t){return t.buttons===0||t.detail===0}function So(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 v5;function iD(){if(v5==null){let t=typeof document<"u"?document.head:null;v5=!!(t&&(t.createShadowRoot||t.attachShadow))}return v5}function _c(t){if(iD()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function ji(){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 Vn(t){return t.composedPath?t.composedPath()[0]:t.target}function St(t,i,e,n,r){let a=parseInt(g8.major),o=parseInt(g8.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 b5;try{b5=typeof Intl<"u"&&Intl.v8BreakIterator}catch{b5=!1}var Ne=(()=>{class t{_platformId=u(Zo);isBrowser=this._platformId?V8(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||b5)&&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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var kd;function rD(){if(kd==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>kd=!0}))}finally{kd=kd||!1}return kd}function us(t){return rD()?t:!!t.capture}function un(t,i=0){return lm(t)?Number(t):arguments.length===2?i:0}function lm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Dn(t){return t instanceof Y?t.nativeElement:t}var aD=new V("cdk-input-modality-detector-options"),oD={ignoreKeys:[18,17,224,91,16]},sD=650,y5={passive:!0,capture:!0},cD=(()=>{class t{_platform=u(Ne);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new tt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(So(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vn(e)};constructor(){let e=u(se),n=u(De),r=u(aD,{optional:!0});if(this._options=q(q({},oD),r),this.modalityDetected=this._modality.pipe(Ws(1)),this.modalityChanged=this.modalityDetected.pipe(pl()),this._platform.isBrowser){let a=u(Tn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[St(a,n,"keydown",this._onKeydown,y5),St(a,n,"mousedown",this._onMousedown,y5),St(a,n,"touchstart",this._onTouchstart,y5)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Id=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Id||{}),lD=new V("cdk-focus-monitor-default-options"),dm=us({passive:!0,capture:!0}),Qt=(()=>{class t{_ngZone=u(se);_platform=u(Ne);_inputModalityDetector=u(cD);_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(lD,{optional:!0});this._detectionMode=e?.detectionMode||Id.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Vn(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=Dn(e);if(!this._platform.isBrowser||r.nodeType!==1)return re();let a=_c(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=Dn(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=Dn(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===Id.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===Id.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?sD:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),a=Vn(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,dm),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,dm)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(be(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,dm),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,dm),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=z({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var um=new WeakMap,Je=(()=>{class t{_appRef;_injector=u(Te);_environmentInjector=u(yn);load(e){let n=this._appRef=this._appRef||this._injector.get(Si),r=um.get(n);r||(r={loaders:new Set,refs:[]},um.set(n,r),n.onDestroy(()=>{um.get(n)?.refs.forEach(a=>a.destroy()),um.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(lu(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({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 Au=class{encodeKey(i){return NM(i)}encodeValue(i){return NM(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function vW(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 bW=/%(\d[a-f0-9])/gi,yW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function NM(t){return encodeURIComponent(t).replace(bW,(i,e)=>yW[e]??i)}function Tu(t){return`${t}`}var ee=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Au,i.fromString){if(i.fromObject)throw new Ce(2805,!1);this.map=vW(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(Tu):[Tu(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(Tu(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(Tu(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 Vu=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 CW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function FM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function BM(t){return typeof Blob<"u"&&t instanceof Blob}function jM(t){return typeof FormData<"u"&&t instanceof FormData}function xW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var UM="Content-Type",$M="Accept",WM="X-Request-URL",qM="text/plain",YM="application/json",MW=`${YM}, ${qM}, */*`,jl=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(CW(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 Cr,this.context??=new Vu,!this.params)this.params=new ee,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),d=s===-1?"?":sM.set(S,i.setHeaders[S]),f)),i.setParams&&(v=Object.keys(i.setParams).reduce((M,S)=>M.set(S,i.setParams[S]),v)),new t(e,n,o,{params:v,headers:f,context:y,reportProgress:d,responseType:r,withCredentials:s,transferCache:a})}},pc=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}(pc||{}),$l=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new Cr,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}},zu=class t extends $l{constructor(i={}){super(i)}type=pc.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})}},dd=class t extends $l{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=pc.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})}},ud=class extends $l{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}},wW=200,DW=204;function U8(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 An=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let a;if(e instanceof jl)a=e;else{let d;r.headers instanceof Cr?d=r.headers:d=new Cr(r.headers);let f;r.params&&(r.params instanceof ee?f=r.params:f=new ee({fromObject:r.params})),a=new jl(e,n,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:f,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let o=re(a).pipe(Hi(d=>this.handler.handle(d)));if(e instanceof jl||r.observe==="events")return o;let s=o.pipe(Ve(d=>d instanceof dd));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 ee().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,U8(r,n))}post(e,n,r={}){return this.request("POST",e,U8(r,n))}put(e,n,r={}){return this.request("PUT",e,U8(r,n))}static \u0275fac=function(n){return new(n||t)(oe(Ul))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var SW=new V("");function QM(t,i){return i(t)}function kW(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function IW(t,i,e){return(n,r)=>tr(e,()=>i(n,a=>t(a,r)))}var KM=new V(""),G8=new V(""),XM=new V(""),W8=new V("",{providedIn:"root",factory:()=>!0});function EW(){let t=null;return(i,e)=>{t===null&&(t=(u(KM,{optional:!0})??[]).reduceRight(kW,QM));let n=u(go);if(u(W8)){let a=n.add();return t(i,e).pipe(Ma(()=>n.remove(a)))}else return t(i,e)}}var Lu=(()=>{class t extends Ul{backend;injector;chain=null;pendingTasks=u(go);contributeToStability=u(W8);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(G8),...this.injector.get(XM,[])]));this.chain=n.reduceRight((r,a)=>IW(r,a,this.injector),QM)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Ma(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(oe(ld),oe(yn))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var OW=/^\)\]\}',?\n/,PW=RegExp(`^${WM}:`,"m");function TW(t){return"responseURL"in t&&t.responseURL?t.responseURL:PW.test(t.getAllResponseHeaders())?t.getResponseHeader(WM):null}var $8=(()=>{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?Ut(n.\u0275loadImpl()):re(null)).pipe(dt(()=>new $e(a=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((Q,ie)=>o.setRequestHeader(Q,ie.join(","))),e.headers.has($M)||o.setRequestHeader($M,MW),!e.headers.has(UM)){let Q=e.detectContentTypeHeader();Q!==null&&o.setRequestHeader(UM,Q)}if(e.responseType){let Q=e.responseType.toLowerCase();o.responseType=Q!=="json"?Q:"text"}let s=e.serializeBody(),d=null,f=()=>{if(d!==null)return d;let Q=o.statusText||"OK",ie=new Cr(o.getAllResponseHeaders()),de=TW(o)||e.url;return d=new zu({headers:ie,status:o.status,statusText:Q,url:de}),d},v=()=>{let{headers:Q,status:ie,statusText:de,url:ze}=f(),Xe=null;ie!==DW&&(Xe=typeof o.response>"u"?o.responseText:o.response),ie===0&&(ie=Xe?wW:0);let Mn=ie>=200&&ie<300;if(e.responseType==="json"&&typeof Xe=="string"){let En=Xe;Xe=Xe.replace(OW,"");try{Xe=Xe!==""?JSON.parse(Xe):null}catch(fi){Xe=En,Mn&&(Mn=!1,Xe={error:fi,text:Xe})}}Mn?(a.next(new dd({body:Xe,headers:Q,status:ie,statusText:de,url:ze||void 0})),a.complete()):a.error(new ud({error:Xe,headers:Q,status:ie,statusText:de,url:ze||void 0}))},y=Q=>{let{url:ie}=f(),de=new ud({error:Q,status:o.status||0,statusText:o.statusText||"Unknown Error",url:ie||void 0});a.error(de)},M=!1,S=Q=>{M||(a.next(f()),M=!0);let ie={type:pc.DownloadProgress,loaded:Q.loaded};Q.lengthComputable&&(ie.total=Q.total),e.responseType==="text"&&o.responseText&&(ie.partialText=o.responseText),a.next(ie)},O=Q=>{let ie={type:pc.UploadProgress,loaded:Q.loaded};Q.lengthComputable&&(ie.total=Q.total),a.next(ie)};return o.addEventListener("load",v),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),e.reportProgress&&(o.addEventListener("progress",S),s!==null&&o.upload&&o.upload.addEventListener("progress",O)),o.send(s),a.next({type:pc.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",v),o.removeEventListener("timeout",y),e.reportProgress&&(o.removeEventListener("progress",S),s!==null&&o.upload&&o.upload.removeEventListener("progress",O)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(oe(mc))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),ZM=new V(""),AW="XSRF-TOKEN",VW=new V("",{providedIn:"root",factory:()=>AW}),zW="X-XSRF-TOKEN",LW=new V("",{providedIn:"root",factory:()=>zW}),md=class{},RW=(()=>{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=rd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(oe(De),oe(VW))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function HW(t,i){let e=t.url.toLowerCase();if(!u(ZM)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=u(md).getToken(),r=u(LW);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var q8=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}(q8||{});function NW(t,i){return{\u0275kind:t,\u0275providers:i}}function FW(...t){let i=[An,$8,Lu,{provide:Ul,useExisting:Lu},{provide:ld,useFactory:()=>u(SW,{optional:!0})??u($8)},{provide:G8,useValue:HW,multi:!0},{provide:ZM,useValue:!0},{provide:md,useClass:RW}];for(let e of t)i.push(...e.\u0275providers);return Ol(i)}var GM=new V("");function BW(){return NW(q8.LegacyInterceptors,[{provide:GM,useFactory:EW},{provide:G8,useExisting:GM,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)(oe(De))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var xo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=oe(jW),r},providedIn:"root"})}return t})(),jW=(()=>{class t extends xo{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Hn.NONE:return n;case Hn.HTML:return _o(n,"HTML")?zr(n):Bg(this._doc,String(n)).toString();case Hn.STYLE:return _o(n,"Style")?zr(n):n;case Hn.SCRIPT:if(_o(n,"Script"))return zr(n);throw new Ce(5200,!1);case Hn.URL:return _o(n,"URL")?zr(n):$0(String(n));case Hn.RESOURCE_URL:if(_o(n,"ResourceURL"))return zr(n);throw new Ce(5201,!1);default:throw new Ce(5202,!1)}}bypassSecurityTrustHtml(e){return gC(e)}bypassSecurityTrustStyle(e){return _C(e)}bypassSecurityTrustScript(e){return vC(e)}bypassSecurityTrustUrl(e){return bC(e)}bypassSecurityTrustResourceUrl(e){return yC(e)}static \u0275fac=function(n){return new(n||t)(oe(De))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gl=class{},ew=(()=>{class t extends Gl{getTranslation(e){return re({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),hd=class{},tw=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function Hu(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{_d(i[n])?n in t?e[n]=Y8(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):Y8({},i)}function Q8(t,i){let e=i.split(".");i="";do i+=e.shift(),is(t)&&is(t[i])&&(_d(t[i])||e5(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function $W(t,i,e){let n=i.split("."),r=t;for(let a=0;a{class t extends Wl{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(t5(e))return this.interpolateString(e,n);if(UW(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=Q8(n,a);return is(o)?o:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),ql=class{},iw=(()=>{class t extends ql{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=L({token:t,factory:t.\u0275fac})}return t})(),gd=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},K8=new V("ISOLATE_TRANSLATE_SERVICE"),X8=new V("USE_DEFAULT_LANG"),Z8=new V("DEFAULT_LANGUAGE"),J8=new V("USE_EXTEND"),fd=t=>Kn(t)?t:re(t),xr=(()=>{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,f=!1,v){this.store=e,this.currentLoader=n,this.compiler=r,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.extend=f,d&&(this.store=new gd),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 re(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return Kn(n)?(n.pipe(Le(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),re(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($o(1),Le(1));return this.loadingTranslations=n.pipe(pe(r=>this.compiler.compileTranslations(r,e)),$o(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]=Y8(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(Q8(e,n),r)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(Q8(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(e5(e))return e.map(r=>this.runInterpolation(r,n));if(_d(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||Kn(a[d]);if(!o)return a;let s=n.map(d=>fd(a[d]));return so(s).pipe(pe(d=>{let f={};return d.forEach((v,y)=>{f[n[y]]=v}),f}))}return this.getParsedResultForKey(e,n,r)}get(e,n){if(!is(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Hi(r=>fd(this.getParsedResult(r,e,n)))):fd(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!is(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Mi(Ri(()=>this.get(e,n)),this.onTranslationChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return fd(a)})))}stream(e,n){if(!is(e)||!e.length)throw new Error('Parameter "key" required');return Mi(Ri(()=>this.get(e,n)),this.onLangChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return fd(a)})))}instant(e,n){if(!is(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 Kn(r)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:r}set(e,n,r=this.currentLang){$W(this.translations[r],e,t5(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)(oe(gd),oe(Gl),oe(ql),oe(Wl),oe(hd),oe(X8),oe(K8),oe(J8),oe(Z8))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ie=(()=>{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);Kn(o)?o.subscribe(a):a(o)}this.translate.get(e,n).subscribe(a)}transform(e,...n){if(!e||!e.length)return e;if(Hu(e,this.lastKey)&&Hu(n,this.lastParams))return this.value;let r;if(is(n[0])&&n.length)if(t5(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 _d(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)(E(xr,16),E(ye,16))};static \u0275pipe=vt({name:"translate",type:t,pure:!1});static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var n5=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Gl,useClass:ew},e.compiler||{provide:ql,useClass:iw},e.parser||{provide:Wl,useClass:nw},e.missingTranslationHandler||{provide:hd,useClass:tw},gd,{provide:K8,useValue:e.isolate},{provide:X8,useValue:e.useDefaultLang},{provide:J8,useValue:e.extend},{provide:Z8,useValue:e.defaultLanguage},xr]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Gl,useClass:ew},e.compiler||{provide:ql,useClass:iw},e.parser||{provide:Wl,useClass:nw},e.missingTranslationHandler||{provide:hd,useClass:tw},{provide:K8,useValue:e.isolate},{provide:X8,useValue:e.useDefaultLang},{provide:J8,useValue:e.extend},{provide:Z8,useValue:e.defaultLanguage},xr]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({})}return t})();var i5={mifos_x:{version:"251204",hash:"923f792"},allow_switching_backend_instance:!0};var en=window.env||{},ft={production:!0,version:i5.mifos_x.version,hash:i5.mifos_x.hash,fineractPlatformTenantId:en.fineractPlatformTenantId||"default",fineractPlatformTenantIds:en.fineractPlatformTenantIds||"default",baseApiUrls:en.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:en.fineractApiUrl||(en.fineractApiUrls?.length>0?en.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:en.oauthServerUrl||en.fineractApiUrl+en.apiProvider,allowServerSwitch:en.allowServerSwitch||"true",apiProvider:en.apiProvider||"/fineract-provider/api",apiVersion:en.apiVersion||"/v1",serverUrl:"",oauth:{enabled:en.oauthServerEnabled||!1,serverUrl:en.oauthServerUrl||"",appId:en.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:en.defaultLanguage||"en-US",supportedLanguages:en.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:en.preloadClients||!0,defaultCharDelimiter:en.defaultCharDelimiter||",",displayBackEndInfo:en.displayBackEndInfo||"true",displayTenantSelector:en.displayTenantSelector||"true",waitTimeForNotifications:en.waitTimeForNotifications||60,waitTimeForCOBCatchUp:en.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:en.sessionIdleTimeout||3e5}},httpCacheEnabled:en.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:en.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};ft.serverUrl=`${ft.baseApiUrl}${ft.apiProvider}${ft.apiVersion}`;var rw=(()=>{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=vt({name:"accountsFilter",type:t,pure:!0})}}return t})();var aw=(()=>{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=vt({name:"chargesFilter",type:t,pure:!0})}}return t})();var ow=(()=>{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=vt({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var rs=(()=>{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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ql=o3(Fu());var Bi=(()=>{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 uc(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,Ql.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,Ql.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,Ql.default)(e).toDate()}parseDatetime(e){return(0,Ql.default)(e).toDate()}convertToDate(e,n){return(0,Ql.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)(oe(uc))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ft=(()=>{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=ft.defaultLanguage?ft.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"):ft.baseApiUrl&&ft.baseApiUrl!==""?ft.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+ft.apiProvider}get serverUrl(){return this.server+ft.apiProvider+ft.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)(oe(rs),oe(Bi))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Bu=o3(Fu());var Mr=(()=>{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 Bu.default.locale(this.settingsService.language.code),e instanceof Array?a=(0,Bu.default)(e.join("-"),"YYYY-MM-DD"):a=(0,Bu.default)(e),n==null?a.format(r):a.format(n)}static{this.\u0275fac=function(n){return new(n||t)(E(Ft,16))}}static{this.\u0275pipe=vt({name:"dateFormat",type:t,pure:!0})}}return t})();var bd=o3(Fu());var Ra=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let r;if(Array.isArray(e)){let[o,s,d,f,v,y]=e;f!=null?r=(0,bd.default)({year:o,month:(s??1)-1,date:d,hour:f,minute:v??0,second:y??0}):r=(0,bd.default)({year:o,month:(s??1)-1,date:d})}else typeof e=="number"&&e<1e12?r=bd.default.unix(e):r=(0,bd.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=vt({name:"datetimeFormat",type:t,pure:!0})}}return t})();var ju=(()=>{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=vt({name:"externalIdentifier",type:t,pure:!0})}}return t})();var sw=new WeakMap,cw=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n,r,a){if(!n||!r||e===null||e===void 0)return"";let o=sw.get(n);o||(o=new Map,sw.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),f=d?d[a]??"":"";return typeof f=="string"?this.sanitizer.sanitize(Hn.HTML,f)||"":String(f||"")}static{this.\u0275fac=function(n){return new(n||t)(E(xo,16))}}static{this.\u0275pipe=vt({name:"find",type:t,pure:!0})}}return t})();var as=(()=>{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)(E(id,16),E(Ft,16))}}static{this.\u0275pipe=vt({name:"formatNumber",type:t,pure:!0})}}return t})();var uw=o3(dw());var $u=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return uw.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=vt({name:"prettyPrint",type:t,pure:!0})}}return t})();var mw=(()=>{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=vt({name:"statusLookup",type:t,pure:!0})}}return t})();var fc=(()=>{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)(E(xr,16))}}static{this.\u0275pipe=vt({name:"translateKey",type:t,pure:!0})}}return t})();var Gu=(()=>{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=vt({name:"truncateText",type:t,pure:!0})}}return t})();var fw=(()=>{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=vt({name:"urlToString",type:t,pure:!0})}}return t})();var Wu=(()=>{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)(E(xr,16))}}static{this.\u0275pipe=vt({name:"yesNo",type:t,pure:!0})}}return t})();var hw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=Z({type:t})}static{this.\u0275inj=X({providers:[mw,rw,aw,ow,cw,fw,Mr,Ra,ju,as,Wu,$u,fc,Gu],imports:[he]})}}return t})();var wo={headers:{"Fineract-Platform-TenantId":ft.fineractPlatformTenantId}},qu="Authorization",YW="Fineract-Platform-TenantId",gw="Fineract-Platform-TFA-Token",_w=(()=>{class t{constructor(e){this.settingsService=e}intercept(e,n){return this.settingsService.tenantIdentifier&&(wo.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:wo.headers}),n.handle(e)}setAuthorizationToken(e){ft.oauth.enabled?wo.headers[qu]=`Bearer ${e}`:wo.headers[qu]=`Basic ${e}`}setTwoFactorAccessToken(e){wo.headers[gw]=e}removeAuthorization(){delete wo.headers[qu]}removeAuthorizationTenant(){delete wo.headers[qu],delete wo.headers[YW]}removeTwoFactorAuthorization(){delete wo.headers[gw]}static{this.\u0275fac=function(n){return new(n||t)(oe(Ft))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac})}}return t})();var Yu=(()=>{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 tt(!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));ft.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=ft.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,ft.oauth.enabled){let r=new ee;r=r.set("username",e.username),r=r.set("password",e.password),r=r.set("client_id",`${ft.oauth.appId}`),r=r.set("grant_type","password"),r=r.set("remember_me",this.rememberMe?"true":"false");let a=new Cr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${ft.oauth.serverUrl}/token`,r.toString(),{headers:a}).pipe(pe(o=>(this.getUserDetails(o),re(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(pe(r=>(this.onLoginSuccess(r),re(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new Cr;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${ft.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 ee;r=r.set("username",n.username),r=r.set("client_id",`${ft.oauth.appId}`),r=r.set("refresh_token",e),r=r.set("grant_type","refresh_token");let a=new Cr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${ft.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,ft.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 ee;r=r.set("username",n.username),r=r.set("client_id",`${ft.oauth.appId}`),r=r.set("refresh_token",e);let a=new Cr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${ft.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),re(!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)(oe(An),oe(rs),oe(_w))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac})}}return t})();var os=(()=>{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)(E(Ke),E(ot),E(Yu))}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var Sw=(()=>{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)(E(Ze),E(Y))};static \u0275dir=z({type:t})}return t})(),kw=(()=>{class t extends Sw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({type:t,features:[le]})}return t})(),Jn=new V("");var KW={provide:Jn,useExisting:Dt(()=>li),multi:!0};function XW(){let t=yr()?yr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var ZW=new V(""),li=(()=>{class t extends Sw{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!XW())}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)(E(Ze),E(Y),E(ZW,8))};static \u0275dir=z({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&&R("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([KW]),le]})}return t})();function c5(t){return t==null||l5(t)===0}function l5(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var di=new V(""),gc=new V(""),JW=/^(?=.{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])?)*$/,qt=class{static min(i){return Iw(i)}static max(i){return Ew(i)}static required(i){return Ow(i)}static requiredTrue(i){return eq(i)}static email(i){return tq(i)}static minLength(i){return Pw(i)}static maxLength(i){return Tw(i)}static pattern(i){return nq(i)}static nullValidator(i){return Ku()}static compose(i){return Hw(i)}static composeAsync(i){return Nw(i)}};function Iw(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 Ow(t){return c5(t.value)?{required:!0}:null}function eq(t){return t.value===!0?null:{required:!0}}function tq(t){return c5(t.value)||JW.test(t.value)?null:{email:!0}}function Pw(t){return i=>{let e=i.value?.length??l5(i.value);return e===null||e===0?null:e{let e=i.value?.length??l5(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function nq(t){if(!t)return Ku;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(c5(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ku(t){return null}function Aw(t){return t!=null}function Vw(t){return es(t)?Ut(t):t}function zw(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function Lw(t,i){return i.map(e=>e(t))}function iq(t){return!t.validate}function Rw(t){return t.map(i=>iq(i)?i:e=>i.validate(e))}function Hw(t){if(!t)return null;let i=t.filter(Aw);return i.length==0?null:function(e){return zw(Lw(e,i))}}function d5(t){return t!=null?Hw(Rw(t)):null}function Nw(t){if(!t)return null;let i=t.filter(Aw);return i.length==0?null:function(e){let n=Lw(e,i).map(Vw);return so(n).pipe(pe(zw))}}function u5(t){return t!=null?Nw(Rw(t)):null}function bw(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Fw(t){return t._rawValidators}function Bw(t){return t._rawAsyncValidators}function a5(t){return t?Array.isArray(t)?t:[t]:[]}function Xu(t,i){return Array.isArray(t)?t.includes(i):t===i}function yw(t,i){let e=a5(i);return a5(t).forEach(r=>{Xu(e,r)||e.push(r)}),e}function Cw(t,i){return a5(i).filter(e=>!Xu(t,e))}var Zu=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=d5(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=u5(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}},ci=class extends Zu{name;get formDirective(){return null}get path(){return null}},$n=class extends Zu{_parent=null;name=null;valueAccessor=null},Ju=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}},rq={"[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"},rge=je(q({},rq),{"[class.ng-submitted]":"isSubmitted"}),tn=(()=>{class t extends Ju{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E($n,2))};static \u0275dir=z({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&ne("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:[le]})}return t})(),Fr=(()=>{class t extends Ju{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E(ci,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&ne("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:[le]})}return t})();var yd="VALID",Qu="INVALID",Xl="PENDING",Cd="DISABLED",cs=class{},em=class extends cs{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Md=class extends cs{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},wd=class extends cs{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Zl=class extends cs{status;source;constructor(i,e){super(),this.status=i,this.source=e}},tm=class extends cs{source;constructor(i){super(),this.source=i}},nm=class extends cs{source;constructor(i){super(),this.source=i}};function m5(t){return(om(t)?t.validators:t)||null}function aq(t){return Array.isArray(t)?d5(t):t||null}function p5(t,i){return(om(i)?i.asyncValidators:t)||null}function oq(t){return Array.isArray(t)?u5(t):t||null}function om(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function jw(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 Uw(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Ce(1002,"")})}var Jl=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 or(this.statusReactive)}set status(i){or(()=>this.statusReactive.set(i))}_status=ra(()=>this.statusReactive());statusReactive=Bn(void 0);get valid(){return this.status===yd}get invalid(){return this.status===Qu}get pending(){return this.status==Xl}get disabled(){return this.status===Cd}get enabled(){return this.status!==Cd}errors;get pristine(){return or(this.pristineReactive)}set pristine(i){or(()=>this.pristineReactive.set(i))}_pristine=ra(()=>this.pristineReactive());pristineReactive=Bn(!0);get dirty(){return!this.pristine}get touched(){return or(this.touchedReactive)}set touched(i){or(()=>this.touchedReactive.set(i))}_touched=ra(()=>this.touchedReactive());touchedReactive=Bn(!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(yw(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(yw(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(Cw(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(Cw(i,this._rawAsyncValidators))}hasValidator(i){return Xu(this._rawValidators,i)}hasAsyncValidator(i){return Xu(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(je(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new wd(!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 wd(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(je(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Md(!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 Md(!0,n))}markAsPending(i={}){this.status=Xl;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Zl(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(je(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Cd,this.errors=null,this._forEachChild(r=>{r.disable(je(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new em(this.value,n)),this._events.next(new Zl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(je(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=yd,this._forEachChild(n=>{n.enable(je(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(je(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===yd||this.status===Xl)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new em(this.value,e)),this._events.next(new Zl(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(je(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()?Cd:yd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Xl,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Vw(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 Zl(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?Cd:this.errors?Qu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xl)?Xl:this._anyControlsHaveStatus(Qu)?Qu:yd}_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 Md(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new wd(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){om(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=aq(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=oq(this._rawAsyncValidators)}},hc=class extends Jl{constructor(i,e,n){super(m5(e),p5(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={}){Uw(this,!0,i),Object.keys(i).forEach(n=>{jw(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 $w=hc;var o5=class extends hc{};var e2=new V("",{providedIn:"root",factory:()=>sm}),sm="always";function cm(t,i){return[...i.path,t]}function Dd(t,i,e=sm){f5(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),cq(t,i),dq(t,i),lq(t,i),sq(t,i)}function im(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),am(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function rm(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function sq(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function f5(t,i){let e=Fw(t);i.validator!==null?t.setValidators(bw(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Bw(t);i.asyncValidator!==null?t.setAsyncValidators(bw(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();rm(i._rawValidators,r),rm(i._rawAsyncValidators,r)}function am(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=Fw(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=Bw(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 rm(i._rawValidators,n),rm(i._rawAsyncValidators,n),e}function cq(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Gw(t,i)})}function lq(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Gw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Gw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function dq(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Ww(t,i){t==null,f5(t,i)}function uq(t,i){return am(t,i)}function h5(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function mq(t){return Object.getPrototypeOf(t.constructor)===kw}function qw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function g5(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(a=>{a.constructor===li?e=a:mq(a)?n=a:r=a}),r||n||e||null}function pq(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var fq={provide:ci,useExisting:Dt(()=>t2)},xd=Promise.resolve(),t2=(()=>{class t extends ci{callSetDisabledState;get submitted(){return or(this.submittedReactive)}_submitted=ra(()=>this.submittedReactive());submittedReactive=Bn(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new hc({},d5(e),u5(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Dd(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){xd.then(()=>{let n=this._findContainer(e.path),r=new hc({});Ww(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){xd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),qw(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new tm(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 nm(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)(E(di,10),E(gc,10),E(e2,8))};static \u0275dir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&R("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([fq]),le]})}return t})();function xw(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 ss=class extends Jl{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(m5(e),p5(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),om(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){xw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){xw(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}},Ei=ss,hq=t=>t instanceof ss,gq=(()=>{class t extends ci{_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 cm(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=z({type:t,standalone:!1,features:[le]})}return t})();var _q={provide:$n,useExisting:Dt(()=>vq)},ww=Promise.resolve(),vq=(()=>{class t extends $n{_changeDetectorRef;callSetDisabledState;control=new ss;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=g5(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),h5(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(){Dd(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){ww.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&B(n);ww.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?cm(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(E(ci,9),E(di,10),E(gc,10),E(Jn,10),E(ye,8),E(e2,8))};static \u0275dir=z({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([_q]),le,Pe]})}return t})();var ls=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),bq={provide:Jn,useExisting:Dt(()=>yq),multi:!0},yq=(()=>{class t extends kw{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=z({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&R("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[ue([bq]),le]})}return t})();var _5=new V(""),Cq={provide:$n,useExisting:Dt(()=>vi)},vi=(()=>{class t extends $n{_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=g5(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&im(n,this,!1),Dd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}h5(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&im(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)(E(di,10),E(gc,10),E(Jn,10),E(_5,8),E(e2,8))};static \u0275dir=z({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([Cq]),le,Pe]})}return t})(),xq={provide:ci,useExisting:Dt(()=>ei)},ei=(()=>{class t extends ci{callSetDisabledState;get submitted(){return or(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=ra(()=>this._submittedReactive());_submittedReactive=Bn(!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&&(am(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 Dd(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){im(e.control||null,e,!1),pq(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),qw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new tm(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 nm(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(im(n||null,e),hq(r)&&(Dd(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Ww(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&uq(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){f5(this.form,this),this._oldForm&&am(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(E(di,10),E(gc,10),E(e2,8))};static \u0275dir=z({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&R("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([xq]),le,Pe]})}return t})(),Mq={provide:ci,useExisting:Dt(()=>Yw)},Yw=(()=>{class t extends gq{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Kw(this._parent)}static \u0275fac=function(n){return new(n||t)(E(ci,13),E(di,10),E(gc,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ue([Mq]),le]})}return t})(),wq={provide:ci,useExisting:Dt(()=>Qw)},Qw=(()=>{class t extends ci{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Kw(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 cm(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(E(ci,13),E(di,10),E(gc,10))};static \u0275dir=z({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ue([wq]),le]})}return t})();function Kw(t){return!(t instanceof Yw)&&!(t instanceof ei)&&!(t instanceof Qw)}var Dq={provide:$n,useExisting:Dt(()=>wr)},wr=(()=>{class t extends $n{_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=g5(this,a)}ngOnChanges(e){this._added||this._setUpControl(),h5(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 cm(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)(E(ci,13),E(di,10),E(gc,10),E(Jn,10),E(_5,8))};static \u0275dir=z({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ue([Dq]),le,Pe]})}return t})();function Xw(t){return typeof t=="number"?t:parseInt(t,10)}function Zw(t){return typeof t=="number"?t:parseFloat(t)}var Sd=(()=>{class t{_validator=Ku;_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):Ku,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=z({type:t,features:[Pe]})}return t})(),Sq={provide:di,useExisting:Dt(()=>kq),multi:!0},kq=(()=>{class t extends Sd{max;inputName="max";normalizeInput=e=>Zw(e);createValidator=e=>Ew(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({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&&J("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[ue([Sq]),le]})}return t})(),Iq={provide:di,useExisting:Dt(()=>Eq),multi:!0},Eq=(()=>{class t extends Sd{min;inputName="min";normalizeInput=e=>Zw(e);createValidator=e=>Iw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({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&&J("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[ue([Iq]),le]})}return t})(),Oq={provide:di,useExisting:Dt(()=>la),multi:!0};var la=(()=>{class t extends Sd{required;inputName="required";normalizeInput=B;createValidator=e=>Ow;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({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&&J("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ue([Oq]),le]})}return t})();var Pq={provide:di,useExisting:Dt(()=>Tq),multi:!0},Tq=(()=>{class t extends Sd{minlength;inputName="minlength";normalizeInput=e=>Xw(e);createValidator=e=>Pw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&J("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ue([Pq]),le]})}return t})(),Aq={provide:di,useExisting:Dt(()=>Vq),multi:!0},Vq=(()=>{class t extends Sd{maxlength;inputName="maxlength";normalizeInput=e=>Xw(e);createValidator=e=>Tw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=z({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&J("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ue([Aq]),le]})}return t})();var Jw=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({})}return t})(),s5=class extends Jl{constructor(i,e,n){super(m5(e),p5(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={}){Uw(this,!1,i),i.forEach((n,r)=>{jw(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 Dw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var zq=(()=>{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 Dw(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new hc(r,a)}record(e,n=null){let r=this._reduceControls(e);return new o5(r,n)}control(e,n,r){let a={};return this.useNonNullable?(Dw(n)?a=n:(a.validators=n,a.asyncValidators=r),new ss(e,je(q({},a),{nonNullable:!0}))):new ss(e,n,r)}array(e,n,r){let a=e.map(o=>this._createControl(o));return new s5(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 ss)return e;if(e instanceof Jl)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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ds=(()=>{class t extends zq{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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var eD=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:e2,useValue:e.callSetDisabledState??sm}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({imports:[Jw]})}return t})(),ve=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_5,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:e2,useValue:e.callSetDisabledState??sm}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({imports:[Jw]})}return t})();var tD=(()=>{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 e==""?""+this.sufix:wu(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)(E(za),E(Y),E($n))}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,r){n&1&&R("blur",function(o){return r.blur(o.target)})("focus",function(o){return r.focus(o.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var dge=(()=>{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)(E($n),E(Y))}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,r){n&1&&R("focus",function(){return r.onFocus()})}})}}return t})();var nD=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=Z({type:t})}static{this.\u0275inj=X({imports:[he]})}}return t})();var Br=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 Do(t){return t.buttons===0||t.detail===0}function So(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 v5;function iD(){if(v5==null){let t=typeof document<"u"?document.head:null;v5=!!(t&&(t.createShadowRoot||t.attachShadow))}return v5}function _c(t){if(iD()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function ji(){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 Vn(t){return t.composedPath?t.composedPath()[0]:t.target}function St(t,i,e,n,r){let a=parseInt(g8.major),o=parseInt(g8.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 b5;try{b5=typeof Intl<"u"&&Intl.v8BreakIterator}catch{b5=!1}var Ne=(()=>{class t{_platformId=u(Zo);isBrowser=this._platformId?V8(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||b5)&&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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var kd;function rD(){if(kd==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>kd=!0}))}finally{kd=kd||!1}return kd}function us(t){return rD()?t:!!t.capture}function un(t,i=0){return lm(t)?Number(t):arguments.length===2?i:0}function lm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Dn(t){return t instanceof Y?t.nativeElement:t}var aD=new V("cdk-input-modality-detector-options"),oD={ignoreKeys:[18,17,224,91,16]},sD=650,y5={passive:!0,capture:!0},cD=(()=>{class t{_platform=u(Ne);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new tt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(So(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vn(e)};constructor(){let e=u(se),n=u(De),r=u(aD,{optional:!0});if(this._options=q(q({},oD),r),this.modalityDetected=this._modality.pipe(Ws(1)),this.modalityChanged=this.modalityDetected.pipe(pl()),this._platform.isBrowser){let a=u(Tn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[St(a,n,"keydown",this._onKeydown,y5),St(a,n,"mousedown",this._onMousedown,y5),St(a,n,"touchstart",this._onTouchstart,y5)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Id=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Id||{}),lD=new V("cdk-focus-monitor-default-options"),dm=us({passive:!0,capture:!0}),Qt=(()=>{class t{_ngZone=u(se);_platform=u(Ne);_inputModalityDetector=u(cD);_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(lD,{optional:!0});this._detectionMode=e?.detectionMode||Id.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Vn(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=Dn(e);if(!this._platform.isBrowser||r.nodeType!==1)return re();let a=_c(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=Dn(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=Dn(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===Id.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===Id.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?sD:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),a=Vn(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,dm),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,dm)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(be(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,dm),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,dm),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=z({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var um=new WeakMap,Je=(()=>{class t{_appRef;_injector=u(Te);_environmentInjector=u(yn);load(e){let n=this._appRef=this._appRef||this._injector.get(Si),r=um.get(n);r||(r={loaders:new Set,refs:[]},um.set(n,r),n.onDestroy(()=>{um.get(n)?.refs.forEach(a=>a.destroy()),um.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(lu(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({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 ms(t){return Array.isArray(t)?t:[t]}var dD=new Set,vc,mD=(()=>{class t{_platform=u(Ne);_nonce=u(R1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Rq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Lq(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Lq(t,i){if(!dD.has(t))try{vc||(vc=document.createElement("style"),i&&vc.setAttribute("nonce",i),vc.setAttribute("type","text/css"),document.head.appendChild(vc)),vc.sheet&&(vc.sheet.insertRule(`@media ${t} {body{ }}`,0),dD.add(t))}catch(e){console.error(e)}}function Rq(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var bc=(()=>{class t{_mediaMatcher=u(mD);_zone=u(se);_queries=new Map;_destroySubject=new N;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return uD(ms(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=uD(ms(e)).map(o=>this._registerQuery(o).observable),a=oi(r);return a=Mi(a.pipe(Le(1)),a.pipe(Ws(1),Xr(0))),a.pipe(pe(o=>{let s={matches:!1,breakpoints:{}};return o.forEach(({matches:d,query:f})=>{s.matches=s.matches||d,s.breakpoints[f]=d}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),a={observable:new $e(o=>{let s=d=>this._zone.run(()=>o.next(d));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(Ge(n),pe(({matches:o})=>({query:e,matches:o})),be(this._destroySubject)),mql:n};return this._queries.set(e,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uD(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function Hq(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fD=(()=>{class t{_mutationObserverFactory=u(pD);_observedElements=new Map;_ngZone=u(se);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Dn(e);return new $e(r=>{let o=this._observeElement(n).pipe(pe(s=>s.filter(d=>!Hq(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Od=(()=>{class t{_contentObserver=u(fD);_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=un(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(Xr(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",B],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),n2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({providers:[pD]})}return t})();var fs=(()=>{class t{_platform=u(Ne);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Fq(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=Nq(Yq(e));if(n&&(hD(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),a=hD(e);return e.hasAttribute("contenteditable")?a!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Wq(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 qq(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nq(t){try{return t.frameElement}catch{return null}}function Fq(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function Bq(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function jq(t){return $q(t)&&t.type=="hidden"}function Uq(t){return Gq(t)&&t.hasAttribute("href")}function $q(t){return t.nodeName.toLowerCase()=="input"}function Gq(t){return t.nodeName.toLowerCase()=="a"}function vD(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function hD(t){if(!vD(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function Wq(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function qq(t){return jq(t)?!1:Bq(t)||Uq(t)||t.hasAttribute("contenteditable")||vD(t)}function Yq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var mm=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?It(i,{injector:this._injector}):setTimeout(i)}},i2=(()=>{class t{_checker=u(fs);_ngZone=u(se);_document=u(De);_injector=u(Te);constructor(){u(Je).load(cr)}create(e,n=!1){return new mm(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x5=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(i2);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(Ne).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=ji(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",B],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",B]},exportAs:["cdkTrapFocus"],features:[Pe]})}return t})(),bD=new V("liveAnnouncerElement",{providedIn:"root",factory:yD});function yD(){return null}var CD=new V("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Qq=0,Pd=(()=>{class t{_ngZone=u(se);_defaultOptions=u(CD,{optional:!0});_liveElement;_document=u(De);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(bD,{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(Ne);_hasCheckedHighContrastMode;_document=u(De);_breakpointSubscription;constructor(){this._breakpointSubscription=u(bc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ps.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 ps.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ps.BLACK_ON_WHITE}return ps.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(C5,gD,_D),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===ps.BLACK_ON_WHITE?e.add(C5,gD):n===ps.WHITE_ON_BLACK&&e.add(C5,_D)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ko=(()=>{class t{constructor(){u(pm)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Z({type:t});static \u0275inj=X({imports:[n2]})}return t})();var M5={},Be=(()=>{class t{_appId=u(lc);getId(e){return this._appId!=="ng"&&(e+=this._appId),M5.hasOwnProperty(e)||(M5[e]=0),`${e}${M5[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Kq=200,r2=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:Kq;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(wt(e=>this._pressedLetters.push(e)),Xr(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 a2=class{_items;_activeItemIndex=-1;_activeItem=Bn(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 Pn?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):Xo(i)&&(this._effectRef=Y1(()=>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 r2(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 yc=class extends a2{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var ma=class extends a2{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function Cc(t){return Kn(t)?t:re(t)}var w5=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()})):Kn(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 r2(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()?Cc(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=Cc(i.getChildren()):e=re(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 Xq(){return(t,i)=>new w5(t,i)}var wD=new V("tree-key-manager",{providedIn:"root",factory:Xq});var SD=" ";function o2(t,i,e){let n=_m(t,i);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(SD)))}function hs(t,i,e){let n=_m(t,i);e=e.trim();let r=n.filter(a=>a!==e);r.length?t.setAttribute(i,r.join(SD)):t.removeAttribute(i)}function _m(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var kD="cdk-describedby-message",gm="cdk-describedby-host",S5=0,s2=(()=>{class t{_platform=u(Ne);_document=u(De);_messageRegistry=new Map;_messagesContainer=null;_id=`${S5++}`;constructor(){u(Je).load(cr),this._id=u(lc)+"-"+S5++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;let a=D5(n,r);typeof n!="string"?(DD(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=D5(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(`[${gm}="${this._id}"]`);for(let n=0;nr.indexOf(kD)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let r=this._messageRegistry.get(n);o2(e,"aria-describedby",r.messageElement.id),e.setAttribute(gm,this._id),r.referenceCount++}_removeMessageReference(e,n){let r=this._messageRegistry.get(n);r.referenceCount--,hs(e,"aria-describedby",r.messageElement.id),e.removeAttribute(gm)}_isElementDescribedByMessage(e,n){let r=_m(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function D5(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function DD(t,i){t.id||(t.id=`${kD}-${i}-${S5++}`)}var Zq=["mat-internal-form-field",""],Jq=["*"],c2=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({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&&ne("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:Zq,ngContentSelectors:Jq,decls:1,vars:0,template:function(n,r){n&1&&(xe(),ae(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 Kt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({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 pa=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(pa||{}),vm,xc;function bm(){if(xc==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return xc=!1,xc;if("scrollBehavior"in document.documentElement.style)xc=!0;else{let t=Element.prototype.scrollTo;t?xc=!/\{\s*\[native code\]\s*\}/.test(t.toString()):xc=!1}}return xc}function l2(){if(typeof document!="object"||!document)return pa.NORMAL;if(vm==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),vm=pa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,vm=t.scrollLeft===0?pa.NEGATED:pa.INVERTED),t.remove()}return vm}function k5(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var d2,ID=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function I5(){if(d2)return d2;if(typeof document!="object"||!document)return d2=new Set(ID),d2;let t=document.createElement("input");return d2=new Set(ID.filter(i=>(t.setAttribute("type",i),t.type===i))),d2}function nn(t){return t!=null&&`${t}`!="false"}function Nn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function ED(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 jr=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}(jr||{}),E5=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=jr.HIDDEN;constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},OD=us({passive:!0,capture:!0}),O5=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,OD)})}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,OD)))}_delegateEventHandler=i=>{let e=Vn(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(a=>a.handleEvent(i))})}},Vd={enterDuration:225,exitDuration:150},eY=800,PD=us({passive:!0,capture:!0}),TD=["mousedown","touchstart"],AD=["mouseup","mouseleave","touchend","touchcancel"],tY=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({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-HBP5OFHI.js b/browser/chunk-MZ5X4XIG.js similarity index 99% rename from browser/chunk-HBP5OFHI.js rename to browser/chunk-MZ5X4XIG.js index f7bb8a6bd..25a9e81c7 100644 --- a/browser/chunk-HBP5OFHI.js +++ b/browser/chunk-MZ5X4XIG.js @@ -1 +1 @@ -import{C as y,Cc as E,Fb as a,G as o,Ib as h,J as u,Jc as l,K as b,M as v,U as C,b as g}from"./chunk-PPCDQWQL.js";import{a as d,b as f}from"./chunk-PHUH23IY.js";var I=(()=>{class s{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||s)(u(E))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac})}}return s})();function w(s){s||(v(w),s=b(C));let P=new g(t=>s.onDestroy(t.next.bind(t)));return t=>t.pipe(y(P))}var W=(()=>{class s{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=[s.DAYS_BEFORE_REPAYMENT_IS_DUE,s.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(r=>{this.globalConfigurations.includes(r.name)&&e.push(r)}),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 r=this.settingsService.dateFormat,n=this.settingsService.language.code,i=f(d({},t),{charges:t.charges.map(c=>({id:c.id})),dateFormat:r,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(c=>{let p=this.resolvePropertyName(c.name);p!==""&&(!i[p]||i[p]==="")&&(i[p]=c.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||s)(u(l))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var X=(()=>{class s{constructor(t){this.http=t,this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,r){let n=new a().set("command",r);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,r){let n=new a().set("command",r);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new a().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new a().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||s)(u(h))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var nt=(()=>{class s{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 r=new a().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:r})}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 a().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let r=new a().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:r})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let r=new a().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:r})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new a().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let r=new a().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:r})}addOfficeDatatableEntry(t,e,r){let n=new a().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,r,{params:n})}editOfficeDatatableEntry(t,e,r){let n=new a().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,r,{params:n})}deleteDatatableContent(t,e){let r=new a().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:r})}getEmployees(){let t=new a().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let r=new a().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:r})}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,r){let n=new a().set("command",r.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new a().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 a().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,r){let n=new a().set("currencyCode",r);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,r){let n=new a().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,r,{params:n})}allocateCash(t,e,r){let n=new a().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,r,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,r){return this.http.put(`/tellers/${t}/cashiers/${e}`,r)}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 r=new a().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:r})}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 a().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 a().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 a().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new a().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new a().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 a;for(let r in t)t[r]!==""&&t[r]!==null&&(e=e.set(r,t[r]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,r,n){let i=new a().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),r&&(i=i.set("staffId",r.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new a().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,r){let n=new a;r.length&&(n=n.set("legalFormType",r));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||s)(u(h),u(l))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var ot=(()=>{class s{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||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{I as a,w as b,W as c,X as d,nt as e,ot as f}; +import{C as y,Cc as E,Fb as a,G as o,Ib as h,J as u,Jc as l,K as b,M as v,U as C,b as g}from"./chunk-GWLT6I7C.js";import{a as d,b as f}from"./chunk-PHUH23IY.js";var I=(()=>{class s{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||s)(u(E))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac})}}return s})();function w(s){s||(v(w),s=b(C));let P=new g(t=>s.onDestroy(t.next.bind(t)));return t=>t.pipe(y(P))}var W=(()=>{class s{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=[s.DAYS_BEFORE_REPAYMENT_IS_DUE,s.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(r=>{this.globalConfigurations.includes(r.name)&&e.push(r)}),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 r=this.settingsService.dateFormat,n=this.settingsService.language.code,i=f(d({},t),{charges:t.charges.map(c=>({id:c.id})),dateFormat:r,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(c=>{let p=this.resolvePropertyName(c.name);p!==""&&(!i[p]||i[p]==="")&&(i[p]=c.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||s)(u(l))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var X=(()=>{class s{constructor(t){this.http=t,this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,r){let n=new a().set("command",r);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,r){let n=new a().set("command",r);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new a().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new a().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||s)(u(h))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var nt=(()=>{class s{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 r=new a().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:r})}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 a().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let r=new a().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:r})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let r=new a().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:r})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new a().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let r=new a().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:r})}addOfficeDatatableEntry(t,e,r){let n=new a().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,r,{params:n})}editOfficeDatatableEntry(t,e,r){let n=new a().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,r,{params:n})}deleteDatatableContent(t,e){let r=new a().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:r})}getEmployees(){let t=new a().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let r=new a().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:r})}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,r){let n=new a().set("command",r.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new a().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 a().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,r){let n=new a().set("currencyCode",r);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,r){let n=new a().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,r,{params:n})}allocateCash(t,e,r){let n=new a().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,r,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,r){return this.http.put(`/tellers/${t}/cashiers/${e}`,r)}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 r=new a().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:r})}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 a().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 a().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 a().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new a().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new a().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 a;for(let r in t)t[r]!==""&&t[r]!==null&&(e=e.set(r,t[r]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,r,n){let i=new a().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),r&&(i=i.set("staffId",r.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new a().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,r){let n=new a;r.length&&(n=n.set("legalFormType",r));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||s)(u(h),u(l))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var ot=(()=>{class s{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||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{I as a,w as b,W as c,X as d,nt as e,ot as f}; diff --git a/browser/chunk-S3Z3ZVFE.js b/browser/chunk-OCC5TCCV.js similarity index 91% rename from browser/chunk-S3Z3ZVFE.js rename to browser/chunk-OCC5TCCV.js index f5f4fc37e..99a086fbf 100644 --- a/browser/chunk-S3Z3ZVFE.js +++ b/browser/chunk-OCC5TCCV.js @@ -1 +1 @@ -import{G as r,J as i,Yf as n}from"./chunk-PPCDQWQL.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{G as r,J as i,Yf as n}from"./chunk-GWLT6I7C.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-E5OIKCZE.js b/browser/chunk-UVJEJBJZ.js similarity index 89% rename from browser/chunk-E5OIKCZE.js rename to browser/chunk-UVJEJBJZ.js index 743d54c64..7b4cda3cc 100644 --- a/browser/chunk-E5OIKCZE.js +++ b/browser/chunk-UVJEJBJZ.js @@ -1,4 +1,4 @@ -import{Dc as S,La as t,Ma as m,Na as u,Va as f,Ya as o,Za as a,ea as n,hc as x,ia as p,id as E,ja as d,pa as c,sc as v,ta as e,ua as i,vc as D,wb as g,wc as M,xc as b,yc as C}from"./chunk-PPCDQWQL.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{Dc as S,La as t,Ma as m,Na as u,Va as f,Ya as o,Za as a,ea as n,hc as x,ia as p,id as E,ja as d,pa as c,sc as v,ta as e,ua as i,vc as D,wb as g,wc as M,xc as b,yc as C}from"./chunk-GWLT6I7C.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-4X5E7LQ2.js b/browser/collaterals.module-QLGAWWRW.js similarity index 99% rename from browser/collaterals.module-4X5E7LQ2.js rename to browser/collaterals.module-QLGAWWRW.js index 80d30060a..9fc20cb80 100644 --- a/browser/collaterals.module-4X5E7LQ2.js +++ b/browser/collaterals.module-QLGAWWRW.js @@ -1,4 +1,4 @@ -import{$c as rt,$e as gt,Aa as T,Ba as K,Bg as Bt,Dc as N,Fb as X,G as E,H as y,Ib as Y,Id as ft,J as w,Jc as tt,Kd as xt,La as t,Ma as c,Na as h,Nc as et,Nd as ht,O as Q,Oa as b,Oc as it,P as z,Pc as at,Qc as nt,Rd as bt,Rf as Rt,Uf as Pt,Va as B,Vc as lt,Ya as m,Yc as ot,Za as p,_b as F,_e as vt,af as _t,bc as O,cc as V,cd as mt,cf as St,df as Dt,ea as o,ec as U,ff as It,gd as pt,gf as Mt,gg as Tt,hc as L,ia as f,ib as W,id as A,if as Et,ja as R,jd as j,jf as yt,ka as P,lf as wt,md as H,na as d,od as st,pa as C,sd as ct,ta as i,td as dt,ua as a,uc as Z,va as u,wa as D,wb as g,xa as I,xd as ut,za as J,zd as Ct}from"./chunk-PPCDQWQL.js";import"./chunk-PHUH23IY.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{$c as rt,$e as gt,Aa as T,Ba as K,Bg as Bt,Dc as N,Fb as X,G as E,H as y,Ib as Y,Id as ft,J as w,Jc as tt,Kd as xt,La as t,Ma as c,Na as h,Nc as et,Nd as ht,O as Q,Oa as b,Oc as it,P as z,Pc as at,Qc as nt,Rd as bt,Rf as Rt,Uf as Pt,Va as B,Vc as lt,Ya as m,Yc as ot,Za as p,_b as F,_e as vt,af as _t,bc as O,cc as V,cd as mt,cf as St,df as Dt,ea as o,ec as U,ff as It,gd as pt,gf as Mt,gg as Tt,hc as L,ia as f,ib as W,id as A,if as Et,ja as R,jd as j,jf as yt,ka as P,lf as wt,md as H,na as d,od as st,pa as C,sd as ct,ta as i,td as dt,ua as a,uc as Z,va as u,wa as D,wb as g,xa as I,xd as ut,za as J,zd as Ct}from"./chunk-GWLT6I7C.js";import"./chunk-PHUH23IY.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-OIECFRQM.js b/browser/fixed-deposits.module-ETG456KY.js similarity index 99% rename from browser/fixed-deposits.module-OIECFRQM.js rename to browser/fixed-deposits.module-ETG456KY.js index 106a25d32..c59efb025 100644 --- a/browser/fixed-deposits.module-OIECFRQM.js +++ b/browser/fixed-deposits.module-ETG456KY.js @@ -1,4 +1,4 @@ -import{a as di}from"./chunk-E5OIKCZE.js";import{a as Fn,b as wn}from"./chunk-S3Z3ZVFE.js";import{a as mi}from"./chunk-CPNLZPUS.js";import{$b as zn,$c as pt,$d as xe,$e as Bt,Aa as b,Ad as At,Ag as an,Ba as C,Bg as si,Cd as Ot,Dc as E,Ea as ft,Ed as St,Fb as de,Fd as Pt,G as Gt,Gd as Mt,H as $e,Ha as _t,Hd as We,He as Qn,Ia as Ct,Ib as Hn,Ic as J,Id as yt,J as Lt,Ja as ht,Jc as H,Jd as It,Ka as R,Kd as ue,La as t,Lf as ei,Ma as u,N as te,Na as f,Nc as it,Nd as st,O as P,Oa as S,Oc as V,P as M,Pa as se,Pc as X,Qb as Ee,Qc as at,Qd as De,Qe as Yn,Qf as ni,Rb as Fe,Rd as ke,Re as Jn,Rf as fe,Sf as ii,Tb as ce,Tc as Q,Tf as ai,Ub as le,Ue as Xe,Uf as oi,V as Le,Va as k,Vb as we,Vc as ot,Vd as Ne,Ve as Ze,Wa as Ge,Wc as Kt,We as tn,Xc as Ln,Xe as en,Ya as r,Yc as rt,Yd as Ke,Ye as re,Yf as $t,Za as c,Zd as Qe,Ze as Qt,_a as F,_b as N,_d as Ye,_e as wt,aa as qn,ab as et,af as Rt,bb as jn,bc as $,cc as Y,cd as dt,cf as kt,dc as $n,df as Nt,ea as o,ec as En,ee as Je,ff as Vt,gb as Oe,gc as Be,gd as ct,gf as qt,gg as ri,hb as vt,hc as B,hg as nn,ia as _,ib as w,id as y,if as jt,ig as Ve,ja as A,jb as ye,jd as G,jf as Ht,ka as Ue,kd as Un,ld as Gn,lf as zt,lg as pi,md as ut,na as m,oa as Ae,od as Dt,of as be,pa as d,pd as Wn,qb as Ie,qg as ci,rd as Kn,sc as ee,sd as Z,sg as li,ta as n,tc as Re,td as xt,tf as Xn,ua as i,uc as Wt,uf as Zn,va as g,vb as me,vc as ne,vf as ti,wa as v,wb as O,wc as ie,wd as bt,xa as D,xc as ae,xd as tt,yc as oe,yd as Ft,za as I,zd as lt}from"./chunk-PPCDQWQL.js";import{a as j,b as K}from"./chunk-PHUH23IY.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-UVJEJBJZ.js";import{a as Fn,b as wn}from"./chunk-OCC5TCCV.js";import{a as mi}from"./chunk-72JMMEIC.js";import{$b as zn,$c as pt,$d as xe,$e as Bt,Aa as b,Ad as At,Ag as an,Ba as C,Bg as si,Cd as Ot,Dc as E,Ea as ft,Ed as St,Fb as de,Fd as Pt,G as Gt,Gd as Mt,H as $e,Ha as _t,Hd as We,He as Qn,Ia as Ct,Ib as Hn,Ic as J,Id as yt,J as Lt,Ja as ht,Jc as H,Jd as It,Ka as R,Kd as ue,La as t,Lf as ei,Ma as u,N as te,Na as f,Nc as it,Nd as st,O as P,Oa as S,Oc as V,P as M,Pa as se,Pc as X,Qb as Ee,Qc as at,Qd as De,Qe as Yn,Qf as ni,Rb as Fe,Rd as ke,Re as Jn,Rf as fe,Sf as ii,Tb as ce,Tc as Q,Tf as ai,Ub as le,Ue as Xe,Uf as oi,V as Le,Va as k,Vb as we,Vc as ot,Vd as Ne,Ve as Ze,Wa as Ge,Wc as Kt,We as tn,Xc as Ln,Xe as en,Ya as r,Yc as rt,Yd as Ke,Ye as re,Yf as $t,Za as c,Zd as Qe,Ze as Qt,_a as F,_b as N,_d as Ye,_e as wt,aa as qn,ab as et,af as Rt,bb as jn,bc as $,cc as Y,cd as dt,cf as kt,dc as $n,df as Nt,ea as o,ec as En,ee as Je,ff as Vt,gb as Oe,gc as Be,gd as ct,gf as qt,gg as ri,hb as vt,hc as B,hg as nn,ia as _,ib as w,id as y,if as jt,ig as Ve,ja as A,jb as ye,jd as G,jf as Ht,ka as Ue,kd as Un,ld as Gn,lf as zt,lg as pi,md as ut,na as m,oa as Ae,od as Dt,of as be,pa as d,pd as Wn,qb as Ie,qg as ci,rd as Kn,sc as ee,sd as Z,sg as li,ta as n,tc as Re,td as xt,tf as Xn,ua as i,uc as Wt,uf as Zn,va as g,vb as me,vc as ne,vf as ti,wa as v,wb as O,wc as ie,wd as bt,xa as D,xc as ae,xd as tt,yc as oe,yd as Ft,za as I,zd as lt}from"./chunk-GWLT6I7C.js";import{a as j,b as K}from"./chunk-PHUH23IY.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-E5OIKCZE.js";import{a as Fn,b as wn}from"./chunk-S3Z `,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-EWXN7ZYL.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-7RLATWW2.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 8c066f321..f2cde70c2 100644 --- a/browser/index.html +++ b/browser/index.html @@ -57,5 +57,5 @@
- + diff --git a/browser/loans.module-DDVH7NXY.js b/browser/loans.module-4IOD2I2C.js similarity index 78% rename from browser/loans.module-DDVH7NXY.js rename to browser/loans.module-4IOD2I2C.js index 837ba5e54..246b477a6 100644 --- a/browser/loans.module-DDVH7NXY.js +++ b/browser/loans.module-4IOD2I2C.js @@ -1,16 +1,16 @@ -import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr,e as Oc,f as Ec}from"./chunk-HBP5OFHI.js";import{a as Mc,b as ld,c as vf,d as bf}from"./chunk-74MN6JT4.js";import{a as hi}from"./chunk-FK6H3RFT.js";import{a as xf}from"./chunk-CPNLZPUS.js";import{$a as L1,$b as k1,$c as Oe,$d as Ii,$e as hn,Aa as nt,Ad as In,Ag as ki,Ba as I,Bg as hf,C as T1,Cc as ma,Cd as An,Dc as Pt,Ea as le,Ec as B1,Ed as Ze,Fa as E1,Fc as j1,Fd as Ke,G as an,Gd as Je,H as fc,Ha as si,Hc as Jl,Hd as wa,He as So,Ia as ci,Ic as ce,Id as On,J as sn,Ja as pi,Jc as ae,Jd as qa,Jf as nf,K as I1,Ka as Et,Kd as ye,Kf as af,La as e,Lc as q1,Lf as Ua,Ma as C,Mf as of,N as Lr,Na as y,Nb as Yl,Nc as ve,Nd as cn,O as ct,Oa as $t,Oc as Gt,P as pt,Pa as Qs,Pc as me,Pd as Z1,Pf as rf,Qa as t0,Qc as Ie,Qd as fi,Qe as za,Qf as Tc,Ra as e0,Rd as la,Re as Do,Rf as pn,Sa as n0,Sd as K1,Se as yc,Sf as Ic,Ta as i0,Tc as se,Tf as ns,U as A1,Uc as z1,Ud as xc,Ue as Xl,Uf as lf,V as $l,Va as Ut,Vc as Le,Vd as qo,Ve as Ql,Vf as is,Wa as La,Wc as Ti,We as ts,Xc as jo,Xe as es,Xf as Tt,Ya as p,Yc as Ae,Yd as _c,Ye as uo,Za as u,Zd as vc,Ze as Va,Zf as sf,_ as O1,_a as ze,_b as Ot,_d as bc,_e as fn,aa as od,ab as Ue,ad as V1,af as gn,b as D1,ba as hc,bc as oe,bd as U1,bf as Sc,c as w1,cc as te,cd as ke,cf as xn,dc as R1,df as _n,e as P1,ea as s,ec as rd,ee as Cc,ef as Dc,eg as cf,ff as vn,gb as pa,gc as ja,gd as be,gf as bn,gg as pf,ha as M1,hb as on,hc as Wt,hd as H1,hf as wc,hg as sa,ia as O,ib as Vt,id as Dt,ie as da,if as Cn,ig as Pi,ja as yt,jd as fe,jf as yn,jg as a0,ka as gc,kd as G1,kf as Pc,ld as W1,lf as Sn,lg as mf,md as we,mg as df,na as g,oa as ra,ob as N1,od as Re,of as Mi,pa as h,pd as $1,qg as uf,sc as Nr,sd as de,sg as ff,ta as r,tc as Fr,td as Be,tf as Q1,ua as l,ub as F1,uc as Wn,ue as J1,uf as tf,va as P,vb as Da,vc as Zl,ve as X1,vf as ef,wa as V,wb as St,wc as Kl,wd as $e,xa as U,xc as kr,xd as ue,yc as Rr,yd as Vn,za as vt,zd as Ce,zg as Ac}from"./chunk-PPCDQWQL.js";import{a as ie,b as De,d as S1}from"./chunk-PHUH23IY.js";var Lc=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 hx=()=>["./general"],gx=()=>["./accountdetail"],xx=()=>["./repayment-schedule"],_x=()=>["./loan-documents"],vx=()=>["./original-schedule"],bx=()=>["./transactions"],Cx=()=>["./deferred-income"],yx=()=>["./buy-down-fees"],Sx=()=>["./delinquencytags"],Dx=()=>["./loan-collateral"],wx=()=>["./loan-tranche-details"],Px=()=>["./term-variations"],Tx=()=>["./overdue-charges"],Ix=()=>["./floating-interest-rates"],Ax=()=>["./charges"],Ox=()=>["./loan-reschedules"],Mx=()=>["./notes"],Ex=()=>["./standing-instruction"],Lx=()=>["./external-asset-owner"],Nx=t=>["./datatables",t];function Fx(t,i){if(t&1&&(r(0,"tr"),e(1,` +import{a as _f}from"./chunk-D3O5676W.js";import{a as Y1,b as gf,c as jr,d as qr,e as Oc,f as Ec}from"./chunk-MZ5X4XIG.js";import{a as Mc,b as ld,c as vf,d as bf}from"./chunk-3WBZP2ER.js";import{a as hi}from"./chunk-FK6H3RFT.js";import{a as xf}from"./chunk-72JMMEIC.js";import{$a as L1,$b as k1,$c as Oe,$d as Ii,$e as hn,Aa as nt,Ad as In,Ag as ki,Ba as I,Bg as hf,C as P1,Cc as ma,Cd as An,Dc as Tt,Ea as le,Ec as B1,Ed as Ze,Fa as E1,Fc as j1,Fd as Ke,G as an,Gd as Je,H as fc,Ha as si,Hc as Xl,Hd as wa,He as So,Ia as ci,Ic as ce,Id as On,J as sn,Ja as pi,Jc as ae,Jd as qa,Jf as nf,K as I1,Ka as Et,Kd as ye,Kf as af,La as e,Lc as q1,Lf as Ua,Ma as C,Mf as of,N as Lr,Na as y,Nb as Zl,Nc as ve,Nd as cn,O as ct,Oa as $t,Oc as Gt,P as pt,Pa as Qs,Pc as me,Pd as Z1,Pf as rf,Qa as t0,Qc as Ie,Qd as fi,Qe as za,Qf as Pc,Ra as e0,Rd as la,Re as Do,Rf as pn,Sa as n0,Sd as K1,Se as yc,Sf as Ic,Ta as i0,Tc as se,Tf as Br,U as A1,Uc as z1,Ud as xc,Ue as Ql,Uf as lf,V as Yl,Va as Ut,Vc as Le,Vd as qo,Ve as ts,Vf as is,Wa as La,Wc as Pi,We as es,Xc as jo,Xe as ns,Xf as Pt,Ya as p,Yc as Ae,Yd as _c,Ye as uo,Za as d,Zd as vc,Ze as Va,Zf as sf,_ as O1,_a as ze,_b as Ot,_d as bc,_e as fn,aa as od,ab as Ue,ad as V1,af as gn,b as D1,ba as hc,bc as oe,bd as U1,bf as Sc,c as w1,cc as te,cd as ke,cf as xn,dc as R1,df as _n,e as T1,ea as s,ec as rd,ee as Cc,ef as Dc,eg as cf,ff as vn,gb as pa,gc as ja,gd as be,gf as bn,gg as pf,ha as M1,hb as on,hc as Wt,hd as H1,hf as wc,hg as sa,ia as O,ib as Vt,id as Dt,ie as da,if as Cn,ig as Ti,ja as yt,jd as fe,jf as yn,jg as a0,ka as gc,kd as G1,kf as Tc,ld as W1,lf as Sn,lg as mf,md as we,mg as df,na as g,oa as ra,ob as N1,od as Re,of as Mi,pa as h,pd as $1,qg as uf,sc as Nr,sd as de,sg as ff,ta as r,tc as Fr,td as Be,tf as Q1,ua as l,ub as F1,uc as Wn,ue as J1,uf as tf,va as T,vb as Da,vc as Kl,ve as X1,vf as ef,wa as V,wb as St,wc as Jl,wd as $e,xa as U,xc as kr,xd as ue,yc as Rr,yd as Vn,za as vt,zd as Ce,zg as Ac}from"./chunk-GWLT6I7C.js";import{a as ie,b as De,d as S1}from"./chunk-PHUH23IY.js";var Lc=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 hx=()=>["./general"],gx=()=>["./accountdetail"],xx=()=>["./repayment-schedule"],_x=()=>["./loan-documents"],vx=()=>["./original-schedule"],bx=()=>["./transactions"],Cx=()=>["./deferred-income"],yx=()=>["./buy-down-fees"],Sx=()=>["./delinquencytags"],Dx=()=>["./loan-collateral"],wx=()=>["./loan-tranche-details"],Tx=()=>["./term-variations"],Px=()=>["./overdue-charges"],Ix=()=>["./floating-interest-rates"],Ax=()=>["./charges"],Ox=()=>["./loan-reschedules"],Mx=()=>["./notes"],Ex=()=>["./standing-instruction"],Lx=()=>["./external-asset-owner"],Nx=t=>["./datatables",t];function Fx(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,` - `),l()),t&2){let n=I(2);s(3),y("",u(4,3,"labels.inputs.Delinquency Classification")," :"),s(6),h("ngClass",n.loanDelinquencyClassificationStyle),s(),y(` + `),r(8,"span",49),T(9,"i",50),l(),e(10),l(),e(11,` + `),l()),t&2){let n=I(2);s(3),y("",d(4,3,"labels.inputs.Delinquency Classification")," :"),s(6),h("ngClass",n.loanDelinquencyClassificationStyle),s(),y(` `,n.loanDetailsData==null?null:n.loanDetailsData.delinquencyRange.classification,` `)}}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),p(8,"formatNumber"),l(),e(9,` - `),l()),t&2){let n=I(2);s(3),y("",u(4,2,"labels.inputs.Past Due Days")," :"),s(4),C(u(8,4,n.loanDetailsData==null?null:n.loanDetailsData.delinquent.pastDueDays))}}function Rx(t,i){if(t&1&&(r(0,"tr"),e(1,` + `),l()),t&2){let n=I(2);s(3),y("",d(4,2,"labels.inputs.Past Due Days")," :"),s(4),C(d(8,4,n.loanDetailsData==null?null:n.loanDetailsData.delinquent.pastDueDays))}}function Rx(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),p(8,"formatNumber"),l(),e(9,` - `),l()),t&2){let n=I(2);s(3),y("",u(4,2,"labels.inputs.Delinquent Days")," :"),s(4),C(u(8,4,n.loanDetailsData==null?null:n.loanDetailsData.delinquent.delinquentDays))}}function Bx(t,i){if(t&1&&(r(0,"div"),e(1,` + `),l()),t&2){let n=I(2);s(3),y("",d(4,2,"labels.inputs.Delinquent Days")," :"),s(4),C(d(8,4,n.loanDetailsData==null?null:n.loanDetailsData.delinquent.delinquentDays))}}function Bx(t,i){if(t&1&&(r(0,"div"),e(1,` `),r(2,"table",48),e(3,` `),r(4,"tbody"),e(5,` `),g(6,Fx,12,5,"tr",39),e(7,` @@ -21,18 +21,18 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),l()),t&2){let n=I();s(6),h("ngIf",n.loanDetailsData.delinquencyRange),s(2),h("ngIf",n.loanDetailsData.delinquent&&n.loanDetailsData.delinquent.pastDueDays>0),s(2),h("ngIf",n.loanDetailsData.delinquent&&n.loanDetailsData.delinquent.delinquentDays>0&&n.loanDetailsData.delinquent.pastDueDays!==n.loanDetailsData.delinquent.delinquentDays)}}function jx(t,i){if(t&1&&(r(0,"td",52),e(1),p(2,"currency"),l()),t&2){let n=I(3);s(),y(` `,Ue(2,1,n.loanDetailsData.summary.totalOverdue,n.currency.code,"symbol-narrow","1.2-2"),` `)}}function qx(t,i){t&1&&(r(0,"td"),e(1),p(2,"translate"),l()),t&2&&(s(),y(` - `,u(2,1,"labels.inputs.Not Provided"),` + `,d(2,1,"labels.inputs.Not Provided"),` `))}function zx(t,i){if(t&1&&(r(0,"tr"),e(1,` `),r(2,"td"),e(3),p(4,"translate"),l(),e(5,` `),g(6,jx,3,6,"td",53),e(7,` `),g(8,qx,3,3,"td",39),e(9,` - `),l()),t&2){let n=I(2);s(3),C(u(4,3,"labels.inputs.Arrears By")),s(3),h("ngIf",n.loanDetailsData.summary.totalOverdue>=0),s(2),h("ngIf",!(n.loanDetailsData.summary.totalOverdue>=0))}}function Vx(t,i){if(t&1&&(r(0,"tr"),e(1,` + `),l()),t&2){let n=I(2);s(3),C(d(4,3,"labels.inputs.Arrears By")),s(3),h("ngIf",n.loanDetailsData.summary.totalOverdue>=0),s(2),h("ngIf",!(n.loanDetailsData.summary.totalOverdue>=0))}}function Vx(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),p(8,"dateFormat"),l(),e(9,` - `),l()),t&2){let n=I(2);s(3),C(u(4,2,"labels.inputs.Arrears Since")),s(4),C(u(8,4,n.loanDetailsData.summary.overdueSinceDate))}}function Ux(t,i){if(t&1&&(r(0,"tr"),e(1,` + `),l()),t&2){let n=I(2);s(3),C(d(4,2,"labels.inputs.Arrears Since")),s(4),C(d(8,4,n.loanDetailsData.summary.overdueSinceDate))}}function Ux(t,i){if(t&1&&(r(0,"tr"),e(1,` `),r(2,"td"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"td",52),e(7),p(8,"currency"),l(),e(9,` - `),l()),t&2){let n=I(2);s(3),C(u(4,2,"labels.inputs.Overpaid By")),s(4),y(` + `),l()),t&2){let n=I(2);s(3),C(d(4,2,"labels.inputs.Overpaid By")),s(4),y(` `,Ue(8,4,n.loanDetailsData.totalOverpaid,n.currency.code,"symbol-narrow","1.2-2"),` `)}}function Hx(t,i){if(t&1&&(r(0,"div",51),e(1,` `),r(2,"h3"),e(3),p(4,"translate"),l(),e(5,` @@ -47,21 +47,21 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(25,Ux,10,9,"tr",39),e(26,` `),l(),e(27,` `),l(),e(28,` - `),l()),t&2){let n=I();s(3),C(u(4,6,"labels.heading.Account Overview")),s(10),C(u(14,8,"labels.inputs.Current Balance")),s(4),y(` + `),l()),t&2){let n=I();s(3),C(d(4,6,"labels.heading.Account Overview")),s(10),C(d(14,8,"labels.inputs.Current Balance")),s(4),y(` `,Ue(18,10,n.loanDetailsData.summary.totalOutstanding,n.currency.code,"symbol-narrow","1.2-2"),` `),s(4),h("ngIf",n.loanDisplayArrearsDelinquency<2),s(2),h("ngIf",n.loanDetailsData.inArrears),s(2),h("ngIf",n.loanDetailsData.totalOverpaid&&n.loanDetailsData.totalOverpaid>0)}}function Gx(t,i){if(t&1&&(r(0,"button",54),e(1,` `),r(2,"mat-icon",55),e(3,` - `),P(4,"fa-icon",56),e(5,` + `),T(4,"fa-icon",56),e(5,` `),l(),e(6,` `),l()),t&2){I();let n=Et(66);h("matMenuTriggerFor",n)}}function Wx(t,i){if(t&1){let n=vt();r(0,"button",58),nt("click",function(){ct(n);let o=I().$implicit,c=I();return pt(c.loanAction(o.name))}),e(1,` `),r(2,"mat-icon",59),e(3,` - `),P(4,"fa-icon",60),e(5,` + `),T(4,"fa-icon",60),e(5,` `),l(),e(6,` `),r(7,"span"),e(8),p(9,"translate"),l(),e(10,` - `),l()}if(t&2){let n=I().$implicit;s(4),le("icon",n.icon),s(4),C(u(9,2,"labels.menus."+n.name))}}function $x(t,i){if(t&1&&(V(0),e(1,` + `),l()}if(t&2){let n=I().$implicit;s(4),le("icon",n.icon),s(4),C(d(9,2,"labels.menus."+n.name))}}function $x(t,i){if(t&1&&(V(0),e(1,` `),g(2,Wx,11,4,"button",57),e(3,` `),U()),t&2){let n=i.$implicit;s(2),h("mifosxHasPermission",n.taskPermissionName)}}function Yx(t,i){if(t&1){let n=vt();r(0,"button",58),nt("click",function(){ct(n);let o=I().$implicit,c=I(2);return pt(c.loanAction(o.name))}),e(1),p(2,"translate"),l()}if(t&2){let n=I().$implicit;s(),y(` - `,u(2,1,"labels.menus."+n.name),` + `,d(2,1,"labels.menus."+n.name),` `)}}function Zx(t,i){if(t&1&&(r(0,"span"),e(1,` `),g(2,Yx,3,3,"button",57),e(3,` `),l()),t&2){let n=i.$implicit;s(2),h("mifosxHasPermission",n.taskPermissionName)}}function Kx(t,i){if(t&1&&(V(0,61),e(1,` @@ -69,8 +69,8 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),r(6,"mat-menu",null,6),e(8,` `),g(9,Zx,4,1,"span",43),e(10,` `),l(),e(11,` - `),U()),t&2){let n=Et(7),a=I();s(2),h("matMenuTriggerFor",n),s(),C(u(4,3,"labels.menus.Payments")),s(6),h("ngForOf",a.buttonConfig.optionsPayment)}}function Jx(t,i){if(t&1){let n=vt();r(0,"button",58),nt("click",function(){ct(n);let o=I().$implicit,c=I(2);return pt(c.loanAction(o.name))}),e(1),p(2,"translate"),l()}if(t&2){let n=I().$implicit;s(),y(` - `,u(2,1,"labels.menus."+n.name),` + `),U()),t&2){let n=Et(7),a=I();s(2),h("matMenuTriggerFor",n),s(),C(d(4,3,"labels.menus.Payments")),s(6),h("ngForOf",a.buttonConfig.optionsPayment)}}function Jx(t,i){if(t&1){let n=vt();r(0,"button",58),nt("click",function(){ct(n);let o=I().$implicit,c=I(2);return pt(c.loanAction(o.name))}),e(1),p(2,"translate"),l()}if(t&2){let n=I().$implicit;s(),y(` + `,d(2,1,"labels.menus."+n.name),` `)}}function Xx(t,i){if(t&1&&(r(0,"span"),e(1,` `),g(2,Jx,3,3,"button",57),e(3,` `),l()),t&2){let n=i.$implicit;s(2),h("mifosxHasPermission",n.taskPermissionName)}}function Qx(t,i){if(t&1&&(V(0,61),e(1,` @@ -78,69 +78,69 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),r(6,"mat-menu",null,7),e(8,` `),g(9,Xx,4,1,"span",43),e(10,` `),l(),e(11,` - `),U()),t&2){let n=Et(7),a=I();s(2),h("matMenuTriggerFor",n),s(),C(u(4,3,"labels.menus.More")),s(6),h("ngForOf",a.buttonConfig.options)}}function t_(t,i){if(t&1&&(V(0),e(1,` + `),U()),t&2){let n=Et(7),a=I();s(2),h("matMenuTriggerFor",n),s(),C(d(4,3,"labels.menus.More")),s(6),h("ngForOf",a.buttonConfig.options)}}function t_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,8),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,vx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Original Schedule"),` + `,d(5,3,"labels.inputs.Original Schedule"),` `)}}function e_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,9),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,bx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Transactions"),` + `,d(5,3,"labels.inputs.Transactions"),` `)}}function n_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,10),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Cx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Deferred income"),` + `,d(5,3,"labels.inputs.Deferred income"),` `)}}function i_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,11),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,yx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.heading.Buy Down Fees"),` + `,d(5,3,"labels.heading.Buy Down Fees"),` `)}}function a_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,12),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Sx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Delinquency Tags"),` + `,d(5,3,"labels.inputs.Delinquency Tags"),` `)}}function o_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,13),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Dx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Loan Collateral Details"),` + `,d(5,3,"labels.inputs.Loan Collateral Details"),` `)}}function r_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,14),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,wx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Loan Tranche Details"),` + `,d(5,3,"labels.inputs.Loan Tranche Details"),` `)}}function l_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,15),e(4),p(5,"translate"),l(),e(6,` - `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Px))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Term Variations"),` + `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Tx))("active",n.isActive),s(2),y(` + `,d(5,3,"labels.inputs.Term Variations"),` `)}}function s_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,16),e(4),p(5,"translate"),l(),e(6,` - `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Tx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Overdue Charges"),` + `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Px))("active",n.isActive),s(2),y(` + `,d(5,3,"labels.inputs.Overdue Charges"),` `)}}function c_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,17),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Ix))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Floating Interest Rates"),` + `,d(5,3,"labels.inputs.Floating Interest Rates"),` `)}}function p_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,18),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Ax))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Charges"),` + `,d(5,3,"labels.inputs.Charges"),` `)}}function m_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,19),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Ox))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Loan Reschedules"),` + `,d(5,3,"labels.inputs.Loan Reschedules"),` `)}}function d_(t,i){if(t&1&&(r(0,"a",46,20),e(2),p(3,"translate"),l()),t&2){let n=Et(1);h("routerLink",Ut(5,Mx))("active",n.isActive),s(2),y(` - `,u(3,3,"labels.inputs.Notes"),` + `,d(3,3,"labels.inputs.Notes"),` `)}}function u_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,21),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Ex))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.Standing Instruction"),` + `,d(5,3,"labels.inputs.Standing Instruction"),` `)}}function f_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"a",46,22),e(4),p(5,"translate"),l(),e(6,` `),U()),t&2){let n=Et(3);s(2),h("routerLink",Ut(5,Lx))("active",n.isActive),s(2),y(` - `,u(5,3,"labels.inputs.External Asset Owner"),` + `,d(5,3,"labels.inputs.External Asset Owner"),` `)}}function h_(t,i){if(t&1&&(r(0,"a",46,23),e(2),l()),t&2){let n=Et(1),a=I().$implicit;h("routerLink",La(3,Nx,a.registeredTableName))("active",n.isActive),s(2),y(` `,a.registeredTableName,` `)}}function g_(t,i){if(t&1&&(V(0),e(1,` `),g(2,h_,3,5,"a",47),e(3,` - `),U()),t&2){let n=i.$implicit;s(2),h("mifosxHasPermission","READ_"+n.registeredTableName)}}var Nc=(()=>{class t{constructor(n,a,o,c,d){this.route=n,this.router=a,this.loansService=o,this.translateService=c,this.dialog=d,this.disburseTransactionNo=0,this.loanDelinquencyClassificationStyle="",this.loanSubStatus=null,this.loanReAged=!1,this.loanReAmortized=!1,this.route.data.subscribe(m=>{this.loanDetailsData=m.loanDetailsData,this.loanDatatables=m.loanDatatables,this.loanDisplayArrearsDelinquency=m.loanArrearsDelinquencyConfig.value||0,this.loanStatus=this.loanDetailsData.status,this.loanSubStatus=this.loanDetailsData.subStatus===void 0?null:this.loanDetailsData.subStatus,this.currency=this.loanDetailsData.currency,o.saveLoanDisbursementDetailsData(this.loanDetailsData.disbursementDetails),this.loanStatus.active&&this.loanDetailsData.transactions.forEach(x=>{x.manuallyReversed||(x.type.reAge?this.loanReAged=!0:x.type.reAmortize&&(this.loanReAmortized=!0))}),this.setConditionalButtons()}),this.loanId=this.route.snapshot.params.loanId,this.clientId=this.loanDetailsData.clientId}ngOnInit(){this.route.params.subscribe(n=>{this.loanId!=n.loanId&&(this.loanId=n.loanId,this.reload())}),this.recalculateInterest=this.loanDetailsData.recalculateInterest||!0,this.status=this.loanDetailsData.status.value,this.loanStatus=this.loanDetailsData.status,this.loanSubStatus=this.loanDetailsData.subStatus===void 0?null:this.loanDetailsData.subStatus,this.loanStatus.active&&this.loanDetailsData.multiDisburseLoan&&this.loanDetailsData&&this.loanDetailsData.transactions&&this.loanDetailsData.transactions.forEach(n=>{n.type.disbursement&&this.disburseTransactionNo++}),this.setConditionalButtons(),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center"),this.loanDelinquencyClassification()}setConditionalButtons(){this.buttonConfig=new Lc(this.status,this.loanSubStatus),this.status==="Submitted and pending approval"?(this.buttonConfig.addOption({name:this.loanDetailsData.loanOfficerName?"Change Loan Officer":"Assign Loan Officer",icon:"user-tie",taskPermissionName:"DISBURSE_LOAN"}),this.loanDetailsData.isVariableInstallmentsAllowed&&this.buttonConfig.addOption({name:"Edit Repayment Schedule",icon:"edit",taskPermissionName:"ADJUST_REPAYMENT_SCHEDULE"})):this.status==="Approved"?this.buttonConfig.addButton({name:this.loanDetailsData.loanOfficerName?"Change Loan Officer":"Assign Loan Officer",icon:"user-tie",taskPermissionName:"DISBURSE_LOAN"}):this.status==="Active"?(this.loanDetailsData.enableBuyDownFee&&this.buttonConfig.addButton({name:"Buy Down Fee",icon:"plus",taskPermissionName:"BUYDOWNFEE_LOAN"}),this.loanDetailsData.enableIncomeCapitalization&&this.buttonConfig.addButton({name:"Capitalized Income",icon:"coins",taskPermissionName:"CAPITALIZEDINCOME_LOAN"}),(this.loanDetailsData.canDisburse||this.loanDetailsData.multiDisburseLoan)&&this.buttonConfig.addButton({name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"}),this.loanDetailsData.canDisburse&&this.buttonConfig.addButton({name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"}),this.loanDetailsData.multiDisburseLoan&&this.disburseTransactionNo>1&&this.buttonConfig.addButton({name:"Undo Last Disbursal",icon:"undo",taskPermissionName:"DISBURSALLASTUNDO_LOAN"}),this.recalculateInterest&&this.buttonConfig.addButton({name:"Add Interest Pause",icon:"calendar",taskPermissionName:"CREATE_INTEREST_PAUSE"}),this.loanDetailsData.loanOfficerName||this.buttonConfig.addButton({name:"Assign Loan Officer",icon:"user-tie",taskPermissionName:"UPDATELOANOFFICER_LOAN"}),this.recalculateInterest&&this.buttonConfig.addButton({name:"Prepay Loan",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"}),this.loanDetailsData.chargedOff?this.buttonConfig.addButton({name:"Undo Charge-Off",icon:"undo",taskPermissionName:"UNDOCHARGEOFF_LOAN"}):this.buttonConfig.addButton({name:"Charge-Off",icon:"coins",taskPermissionName:"CHARGEOFF_LOAN"}),this.loanReAged?this.buttonConfig.addButton({name:"Undo Re-Age",icon:"undo",taskPermissionName:"UNDO_REAGE_LOAN"}):this.buttonConfig.addButton({name:"Re-Age",icon:"calendar",taskPermissionName:"REAGE_LOAN"}),this.loanReAmortized?this.buttonConfig.addButton({name:"Undo Re-Amortize",icon:"undo",taskPermissionName:"UNDO_REAMORTIZE_LOAN"}):this.buttonConfig.addButton({name:"Re-Amortize",icon:"calendar-alt",taskPermissionName:"REAMORTIZE_LOAN"})):(this.status==="Closed (obligations met)"||this.status==="Overpaid")&&(this.loanDetailsData.multiDisburseLoan&&this.buttonConfig.addButton({name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"}),Br.isAdvancedPaymentAllocationStrategy(this.loanDetailsData.transactionProcessingStrategyCode)&&this.buttonConfig.addButton({name:"Reschedule",icon:"calendar",taskPermissionName:"CREATE_RESCHEDULELOAN"}))}loanAction(n){switch(n){case"Recover From Guarantor":this.recoverFromGuarantor();break;case"Delete":this.deleteLoanAccount();break;case"Modify Application":this.router.navigate(["edit-loans-account"],{relativeTo:this.route});break;case"Transfer Funds":let a={loanId:this.loanId,accountType:"fromloans"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:a});break;case"Undo Re-Age":case"Undo Re-Amortize":case"Undo Charge-Off":this.undoLoanAction(n);break;default:let o={relativeTo:this.route,state:{data:this.loanDetailsData}};this.router.navigate(["actions",n],o);break}}recoverFromGuarantor(){this.dialog.open(da,{data:{heading:this.translateService.instant("labels.heading.Recover from Guarantor"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want recover from Guarantor"),type:"Mild"}}).afterClosed().subscribe(a=>{a.confirm&&this.loansService.loanActionButtons(this.loanId,"recoverGuarantees").subscribe(()=>{this.reload()})})}loanDelinquencyClassification(){this.loanDelinquencyClassificationStyle="",this.loanDetailsData.delinquent&&this.loanDetailsData.delinquent.delinquencyPausePeriods&&this.loanDetailsData.delinquent.delinquencyPausePeriods.some(n=>{n.active&&(this.loanDelinquencyClassificationStyle="fa fa-stop status-pending")})}undoLoanAction(n){n=n.replace("Undo ",""),this.dialog.open(da,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want undo the transaction type")+" "+this.translateService.instant("labels.menus."+n)}}).afterClosed().subscribe(o=>{if(o.confirm){let c="";switch(n){case"Re-Age":c="undoReAge";break;case"Re-Amortize":c="undoReAmortize";break;case"Charge-Off":c="undo-charge-off";break}this.loansService.executeLoansAccountTransactionsCommand(String(this.loanId),c,{}).subscribe(()=>{this.reload()})}})}iconLoanStatusColor(){return this.loanDetailsData.chargedOff?"loanStatusType.chargeoff":this.isContractTermination(this.loanSubStatus)?"loanSubStatusType.contractTermination":this.loanDetailsData.inArrears?"loanStatusType.activeOverdue":this.loanDetailsData.status.code}loanStatusTooltip(){return this.loanDetailsData.chargedOff?"Chargeoff":this.loanDetailsData.inArrears?"activeOverdue":this.loanDetailsData.status.code}loanSubStatusTooltip(){return this.isContractTermination(this.loanSubStatus)?"contractTermination":""}deleteLoanAccount(){this.dialog.open(la,{data:{deleteContext:`with loan id: ${this.loanId}`}}).afterClosed().subscribe(a=>{a.delete&&this.loansService.deleteLoanAccount(this.loanId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}reload(){let n=this.clientId,a=this.router.url;this.router.navigateByUrl(`/clients/${n}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([a]))}isContractTermination(n){return n==null?!1:n.code==="loanSubStatus.loanSubStatusType.contractTermination"}static{this.\u0275fac=function(a){return new(a||t)(O(Ot),O(oe),O(Tt),O(ma),O(Wn))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-loans-view"]],decls:142,vars:69,consts:[["accountMenu","matMenu"],["general","routerLinkActive"],["accountdetail","routerLinkActive"],["repaymentSchedule","routerLinkActive"],["loanDocuments","routerLinkActive"],["tabPanel",""],["Payments","matMenu"],["More","matMenu"],["originalSchedule","routerLinkActive"],["transactions","routerLinkActive"],["deferredIncome","routerLinkActive"],["buyDownFees","routerLinkActive"],["delinquencytags","routerLinkActive"],["loanCollateralDetails","routerLinkActive"],["loanTrancheDetails","routerLinkActive"],["termVariations","routerLinkActive"],["overduecharges","routerLinkActive"],["floatingInterestRates","routerLinkActive"],["charges","routerLinkActive"],["loanReschedules","routerLinkActive"],["notes","routerLinkActive"],["standingInstruction","routerLinkActive"],["externalAssetOwner","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["iconFile","account_placeholder","iconName","LOAN_ACCOUNT","iconWidth","210",3,"iconClass","matTooltip"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"matTooltip","ngClass"],[1,"m-r-5"],[3,"textValue"],["display","left",3,"accountNo"],[1,"loans-overview"],[1,"m-r-10"],[1,"m-l-5"],[4,"ngIf"],["class","loans-overview mat-typography flex-30",4,"ngIf"],[1,"flex-5"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor",4,"ngIf"],[4,"ngFor","ngForOf"],["class","loan-span",4,"ngIf"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[1,"account-overview"],[1,"m-r-3"],[3,"ngClass"],[1,"loans-overview","mat-typography","flex-30"],[1,"r-amount"],["class","r-amount",4,"ngIf"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],[1,"loan-span"],["mat-menu-item","",3,"matMenuTriggerFor"]],template:function(a,o){if(a&1&&(r(0,"mat-card",24),e(1,` + `),U()),t&2){let n=i.$implicit;s(2),h("mifosxHasPermission","READ_"+n.registeredTableName)}}var Nc=(()=>{class t{constructor(n,a,o,c,u){this.route=n,this.router=a,this.loansService=o,this.translateService=c,this.dialog=u,this.disburseTransactionNo=0,this.loanDelinquencyClassificationStyle="",this.loanSubStatus=null,this.loanReAged=!1,this.loanReAmortized=!1,this.route.data.subscribe(m=>{this.loanDetailsData=m.loanDetailsData,this.loanDatatables=m.loanDatatables,this.loanDisplayArrearsDelinquency=m.loanArrearsDelinquencyConfig.value||0,this.loanStatus=this.loanDetailsData.status,this.loanSubStatus=this.loanDetailsData.subStatus===void 0?null:this.loanDetailsData.subStatus,this.currency=this.loanDetailsData.currency,o.saveLoanDisbursementDetailsData(this.loanDetailsData.disbursementDetails),this.loanStatus.active&&this.loanDetailsData.transactions.forEach(x=>{x.manuallyReversed||(x.type.reAge?this.loanReAged=!0:x.type.reAmortize&&(this.loanReAmortized=!0))}),this.setConditionalButtons()}),this.loanId=this.route.snapshot.params.loanId,this.clientId=this.loanDetailsData.clientId}ngOnInit(){this.route.params.subscribe(n=>{this.loanId!=n.loanId&&(this.loanId=n.loanId,this.reload())}),this.recalculateInterest=this.loanDetailsData.recalculateInterest||!0,this.status=this.loanDetailsData.status.value,this.loanStatus=this.loanDetailsData.status,this.loanSubStatus=this.loanDetailsData.subStatus===void 0?null:this.loanDetailsData.subStatus,this.loanStatus.active&&this.loanDetailsData.multiDisburseLoan&&this.loanDetailsData&&this.loanDetailsData.transactions&&this.loanDetailsData.transactions.forEach(n=>{n.type.disbursement&&this.disburseTransactionNo++}),this.setConditionalButtons(),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center"),this.loanDelinquencyClassification()}setConditionalButtons(){this.buttonConfig=new Lc(this.status,this.loanSubStatus),this.status==="Submitted and pending approval"?(this.buttonConfig.addOption({name:this.loanDetailsData.loanOfficerName?"Change Loan Officer":"Assign Loan Officer",icon:"user-tie",taskPermissionName:"DISBURSE_LOAN"}),this.loanDetailsData.isVariableInstallmentsAllowed&&this.buttonConfig.addOption({name:"Edit Repayment Schedule",icon:"edit",taskPermissionName:"ADJUST_REPAYMENT_SCHEDULE"})):this.status==="Approved"?this.buttonConfig.addButton({name:this.loanDetailsData.loanOfficerName?"Change Loan Officer":"Assign Loan Officer",icon:"user-tie",taskPermissionName:"DISBURSE_LOAN"}):this.status==="Active"?(this.loanDetailsData.enableBuyDownFee&&this.buttonConfig.addButton({name:"Buy Down Fee",icon:"plus",taskPermissionName:"BUYDOWNFEE_LOAN"}),this.loanDetailsData.enableIncomeCapitalization&&this.buttonConfig.addButton({name:"Capitalized Income",icon:"coins",taskPermissionName:"CAPITALIZEDINCOME_LOAN"}),(this.loanDetailsData.canDisburse||this.loanDetailsData.multiDisburseLoan)&&this.buttonConfig.addButton({name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"}),this.loanDetailsData.canDisburse&&this.buttonConfig.addButton({name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"}),this.loanDetailsData.multiDisburseLoan&&this.disburseTransactionNo>1&&this.buttonConfig.addButton({name:"Undo Last Disbursal",icon:"undo",taskPermissionName:"DISBURSALLASTUNDO_LOAN"}),this.recalculateInterest&&this.buttonConfig.addButton({name:"Add Interest Pause",icon:"calendar",taskPermissionName:"CREATE_INTEREST_PAUSE"}),this.loanDetailsData.loanOfficerName||this.buttonConfig.addButton({name:"Assign Loan Officer",icon:"user-tie",taskPermissionName:"UPDATELOANOFFICER_LOAN"}),this.recalculateInterest&&this.buttonConfig.addButton({name:"Prepay Loan",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"}),this.loanDetailsData.chargedOff?this.buttonConfig.addButton({name:"Undo Charge-Off",icon:"undo",taskPermissionName:"UNDOCHARGEOFF_LOAN"}):this.buttonConfig.addButton({name:"Charge-Off",icon:"coins",taskPermissionName:"CHARGEOFF_LOAN"}),this.loanReAged?this.buttonConfig.addButton({name:"Undo Re-Age",icon:"undo",taskPermissionName:"UNDO_REAGE_LOAN"}):this.buttonConfig.addButton({name:"Re-Age",icon:"calendar",taskPermissionName:"REAGE_LOAN"}),this.loanReAmortized?this.buttonConfig.addButton({name:"Undo Re-Amortize",icon:"undo",taskPermissionName:"UNDO_REAMORTIZE_LOAN"}):this.buttonConfig.addButton({name:"Re-Amortize",icon:"calendar-alt",taskPermissionName:"REAMORTIZE_LOAN"})):(this.status==="Closed (obligations met)"||this.status==="Overpaid")&&(this.loanDetailsData.multiDisburseLoan&&this.buttonConfig.addButton({name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"}),jr.isAdvancedPaymentAllocationStrategy(this.loanDetailsData.transactionProcessingStrategyCode)&&this.buttonConfig.addButton({name:"Reschedule",icon:"calendar",taskPermissionName:"CREATE_RESCHEDULELOAN"}))}loanAction(n){switch(n){case"Recover From Guarantor":this.recoverFromGuarantor();break;case"Delete":this.deleteLoanAccount();break;case"Modify Application":this.router.navigate(["edit-loans-account"],{relativeTo:this.route});break;case"Transfer Funds":let a={loanId:this.loanId,accountType:"fromloans"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:a});break;case"Undo Re-Age":case"Undo Re-Amortize":case"Undo Charge-Off":this.undoLoanAction(n);break;default:let o={relativeTo:this.route,state:{data:this.loanDetailsData}};this.router.navigate(["actions",n],o);break}}recoverFromGuarantor(){this.dialog.open(da,{data:{heading:this.translateService.instant("labels.heading.Recover from Guarantor"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want recover from Guarantor"),type:"Mild"}}).afterClosed().subscribe(a=>{a.confirm&&this.loansService.loanActionButtons(this.loanId,"recoverGuarantees").subscribe(()=>{this.reload()})})}loanDelinquencyClassification(){this.loanDelinquencyClassificationStyle="",this.loanDetailsData.delinquent&&this.loanDetailsData.delinquent.delinquencyPausePeriods&&this.loanDetailsData.delinquent.delinquencyPausePeriods.some(n=>{n.active&&(this.loanDelinquencyClassificationStyle="fa fa-stop status-pending")})}undoLoanAction(n){n=n.replace("Undo ",""),this.dialog.open(da,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want undo the transaction type")+" "+this.translateService.instant("labels.menus."+n)}}).afterClosed().subscribe(o=>{if(o.confirm){let c="";switch(n){case"Re-Age":c="undoReAge";break;case"Re-Amortize":c="undoReAmortize";break;case"Charge-Off":c="undo-charge-off";break}this.loansService.executeLoansAccountTransactionsCommand(String(this.loanId),c,{}).subscribe(()=>{this.reload()})}})}iconLoanStatusColor(){return this.loanDetailsData.chargedOff?"loanStatusType.chargeoff":this.isContractTermination(this.loanSubStatus)?"loanSubStatusType.contractTermination":this.loanDetailsData.inArrears?"loanStatusType.activeOverdue":this.loanDetailsData.status.code}loanStatusTooltip(){return this.loanDetailsData.chargedOff?"Chargeoff":this.loanDetailsData.inArrears?"activeOverdue":this.loanDetailsData.status.code}loanSubStatusTooltip(){return this.isContractTermination(this.loanSubStatus)?"contractTermination":""}deleteLoanAccount(){this.dialog.open(la,{data:{deleteContext:`with loan id: ${this.loanId}`}}).afterClosed().subscribe(a=>{a.delete&&this.loansService.deleteLoanAccount(this.loanId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}reload(){let n=this.clientId,a=this.router.url;this.router.navigateByUrl(`/clients/${n}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([a]))}isContractTermination(n){return n==null?!1:n.code==="loanSubStatus.loanSubStatusType.contractTermination"}static{this.\u0275fac=function(a){return new(a||t)(O(Ot),O(oe),O(Pt),O(ma),O(Wn))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-loans-view"]],decls:142,vars:69,consts:[["accountMenu","matMenu"],["general","routerLinkActive"],["accountdetail","routerLinkActive"],["repaymentSchedule","routerLinkActive"],["loanDocuments","routerLinkActive"],["tabPanel",""],["Payments","matMenu"],["More","matMenu"],["originalSchedule","routerLinkActive"],["transactions","routerLinkActive"],["deferredIncome","routerLinkActive"],["buyDownFees","routerLinkActive"],["delinquencytags","routerLinkActive"],["loanCollateralDetails","routerLinkActive"],["loanTrancheDetails","routerLinkActive"],["termVariations","routerLinkActive"],["overduecharges","routerLinkActive"],["floatingInterestRates","routerLinkActive"],["charges","routerLinkActive"],["loanReschedules","routerLinkActive"],["notes","routerLinkActive"],["standingInstruction","routerLinkActive"],["externalAssetOwner","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["iconFile","account_placeholder","iconName","LOAN_ACCOUNT","iconWidth","210",3,"iconClass","matTooltip"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"matTooltip","ngClass"],[1,"m-r-5"],[3,"textValue"],["display","left",3,"accountNo"],[1,"loans-overview"],[1,"m-r-10"],[1,"m-l-5"],[4,"ngIf"],["class","loans-overview mat-typography flex-30",4,"ngIf"],[1,"flex-5"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor",4,"ngIf"],[4,"ngFor","ngForOf"],["class","loan-span",4,"ngIf"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[1,"account-overview"],[1,"m-r-3"],[3,"ngClass"],[1,"loans-overview","mat-typography","flex-30"],[1,"r-amount"],["class","r-amount",4,"ngIf"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],[1,"loan-span"],["mat-menu-item","",3,"matMenuTriggerFor"]],template:function(a,o){if(a&1&&(r(0,"mat-card",24),e(1,` `),r(2,"mat-card-header",25),e(3,` `),r(4,"mat-card-title-group",26),e(5,` `),r(6,"div",27),e(7,` @@ -155,13 +155,13 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),r(20,"div",30),e(21,` `),r(22,"div",31),e(23,` `),r(24,"h3"),e(25,` - `),P(26,"i",32),p(27,"translate"),p(28,"statusLookup"),e(29,` + `),T(26,"i",32),p(27,"translate"),p(28,"statusLookup"),e(29,` `),r(30,"span",33),e(31),p(32,"translate"),l(),e(33,` - `),r(34,"span",33),P(35,"mifosx-long-text",34),l(),e(36,` - `),P(37,"mifosx-account-number",35),e(38,` + `),r(34,"span",33),T(35,"mifosx-long-text",34),l(),e(36,` + `),T(37,"mifosx-account-number",35),e(38,` `),l(),e(39,` `),r(40,"span",36),e(41,` - `),r(42,"span",37),e(43),p(44,"translate"),p(45,"translate"),l(),e(46),r(47,"span",38),e(48),l(),P(49,"br"),e(50,` + `),r(42,"span",37),e(43),p(44,"translate"),p(45,"translate"),l(),e(46),r(47,"span",38),e(48),l(),T(49,"br"),e(50,` `),l(),e(51,` `),g(52,Bx,14,3,"div",39),e(53,` `),l(),e(54,` @@ -209,20 +209,20 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(131,g_,4,1,"ng-container",43),e(132,` `),l(),e(133,` `),r(134,"mat-tab-nav-panel",null,5),e(136,` - `),P(137,"router-outlet"),e(138,` + `),T(137,"router-outlet"),e(138,` `),l(),e(139,` `),l(),e(140,` `),l(),e(141,` -`)),a&2){let c=Et(82),d=Et(87),m=Et(94),x=Et(121),v=Et(135);s(10),le("matTooltip",u(11,45,"tooltips.Loan Account")),s(16),le("matTooltip",u(27,47,"labels.status."+o.loanDetailsData.status.value)),h("ngClass",u(28,49,o.iconLoanStatusColor())),s(5),y("",u(32,51,"labels.heading.Loan Product")," :"),s(4),le("textValue",o.loanDetailsData.loanProductName),s(2),le("accountNo",o.loanDetailsData.accountNo),s(6),$t("",u(44,53,"labels.text."+o.entityType)," ",u(45,55,"labels.inputs.name")," :"),s(3),y(` +`)),a&2){let c=Et(82),u=Et(87),m=Et(94),x=Et(121),v=Et(135);s(10),le("matTooltip",d(11,45,"tooltips.Loan Account")),s(16),le("matTooltip",d(27,47,"labels.status."+o.loanDetailsData.status.value)),h("ngClass",d(28,49,o.iconLoanStatusColor())),s(5),y("",d(32,51,"labels.heading.Loan Product")," :"),s(4),le("textValue",o.loanDetailsData.loanProductName),s(2),le("accountNo",o.loanDetailsData.accountNo),s(6),$t("",d(44,53,"labels.text."+o.entityType)," ",d(45,55,"labels.inputs.name")," :"),s(3),y(` `,o.loanDetailsData.clientName||o.loanDetailsData.group.name,""),s(2),y("(",o.loanDetailsData.clientAccountNo||o.loanDetailsData.group.accountNo,")"),s(4),h("ngIf",o.loanDisplayArrearsDelinquency!==1),s(3),h("ngIf",o.loanDetailsData.summary),s(4),h("ngIf",o.buttonConfig.singleButtons.length>0),s(9),h("ngForOf",o.buttonConfig.singleButtons),s(2),h("ngIf",o.buttonConfig.optionsPayment.length),s(2),h("ngIf",o.buttonConfig.options.length),s(7),h("tabPanel",v),s(2),h("routerLink",Ut(65,hx))("active",c.isActive),s(2),y(` - `,u(84,57,"labels.inputs.General"),` - `),s(3),h("routerLink",Ut(66,gx))("active",d.isActive),s(2),y(` - `,u(89,59,"labels.inputs.Account Details"),` + `,d(84,57,"labels.inputs.General"),` + `),s(3),h("routerLink",Ut(66,gx))("active",u.isActive),s(2),y(` + `,d(89,59,"labels.inputs.Account Details"),` `),s(3),h("ngIf",o.loanDetailsData.originalSchedule),s(2),h("routerLink",Ut(67,xx))("active",m.isActive),s(2),y(` - `,u(96,61,"labels.inputs.Repayment Schedule"),` + `,d(96,61,"labels.inputs.Repayment Schedule"),` `),s(3),h("ngIf",o.loanDetailsData.transactions),s(2),h("ngIf",o.loanDetailsData.enableIncomeCapitalization),s(2),h("ngIf",o.loanDetailsData.enableBuyDownFee),s(2),h("ngIf",o.loanDetailsData.status.active),s(2),h("ngIf",o.loanDetailsData.collateral),s(2),h("ngIf",o.loanDetailsData.multiDisburseLoan),s(2),h("ngIf",o.loanDetailsData.loanTermVariations),s(2),h("ngIf",o.loanDetailsData.overdueCharges.length>0),s(2),h("ngIf",o.loanDetailsData.isLoanProductLinkedToFloatingRate),s(2),h("ngIf",o.loanDetailsData.charges),s(2),h("ngIf",o.loanDetailsData.status.active||o.loanDetailsData.status.closed||o.loanDetailsData.status.overpaid),s(2),h("routerLink",Ut(68,_x))("active",x.isActive),s(2),y(` - `,u(123,63,"labels.inputs.Loan Documents"),` - `),s(3),h("mifosxHasPermission","READ_LOANNOTE"),s(2),h("ngIf",o.loanDetailsData.clientId),s(2),h("ngIf",o.loanDetailsData.status.active),s(2),h("ngForOf",o.loanDatatables)}},dependencies:[St,pa,on,Vt,Da,Dt,te,fe,we,On,ye,Pt,$1,W1,df,Ii,G1,Ac,uf,ja,bc,Cc,cn,vc,_c,Q1,tf,R1,ef,k1,Ic,pn],styles:[".loans-overview[_ngcontent-%COMP%]{font-size:14px}.account-overview[_ngcontent-%COMP%]{min-width:80%;font-weight:400}"]})}}return t})();function x_(t,i){if(t&1&&(V(0),e(1,` + `,d(123,63,"labels.inputs.Loan Documents"),` + `),s(3),h("mifosxHasPermission","READ_LOANNOTE"),s(2),h("ngIf",o.loanDetailsData.clientId),s(2),h("ngIf",o.loanDetailsData.status.active),s(2),h("ngForOf",o.loanDatatables)}},dependencies:[St,pa,on,Vt,Da,Dt,te,fe,we,On,ye,Tt,$1,W1,df,Ii,G1,Ac,uf,ja,bc,Cc,cn,vc,_c,Q1,tf,R1,ef,k1,Ic,pn],styles:[".loans-overview[_ngcontent-%COMP%]{font-size:14px}.account-overview[_ngcontent-%COMP%]{min-width:80%;font-weight:400}"]})}}return t})();function x_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"h3"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"div",2),e(7,` `),r(8,"table"),e(9,` @@ -240,25 +240,25 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),l(),e(37,` `),l(),e(38,` `),l(),e(39,` - `),U()),t&2){let n=I();s(3),C(u(4,5,"labels.heading.Performance History")),s(14),y("",u(18,7,"labels.inputs.Number of Repayments")," :"),s(5),y(` - `,u(23,9,n.loanDetails==null?null:n.loanDetails.numberOfRepayments),` - `),s(6),y("",u(29,11,"labels.inputs.Maturity Date")," :"),s(5),y(` - `,u(34,13,n.loanDetails==null?null:n.loanDetails.timeline.expectedMaturityDate),` - `)}}function __(t,i){t&1&&P(0,"th",22)}function v_(t,i){if(t&1&&(r(0,"td",23),e(1),l()),t&2){let n=i.$implicit;s(),C(n.property)}}function b_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(u(2,1,"labels.inputs.Original")))}function C_(t,i){if(t&1&&(r(0,"td",25),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` + `),U()),t&2){let n=I();s(3),C(d(4,5,"labels.heading.Performance History")),s(14),y("",d(18,7,"labels.inputs.Number of Repayments")," :"),s(5),y(` + `,d(23,9,n.loanDetails==null?null:n.loanDetails.numberOfRepayments),` + `),s(6),y("",d(29,11,"labels.inputs.Maturity Date")," :"),s(5),y(` + `,d(34,13,n.loanDetails==null?null:n.loanDetails.timeline.expectedMaturityDate),` + `)}}function __(t,i){t&1&&T(0,"th",22)}function v_(t,i){if(t&1&&(r(0,"td",23),e(1),l()),t&2){let n=i.$implicit;s(),C(n.property)}}function b_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(d(2,1,"labels.inputs.Original")))}function C_(t,i){if(t&1&&(r(0,"td",25),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` `,Ue(2,1,n.original,a.currencyCode,"symbol-narrow","1.2-2"),` - `)}}function y_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(u(2,1,"labels.inputs.Paid")))}function S_(t,i){if(t&1&&(r(0,"td",26),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` + `)}}function y_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(d(2,1,"labels.inputs.Paid")))}function S_(t,i){if(t&1&&(r(0,"td",26),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` `,Ue(2,1,n.paid,a.currencyCode,"symbol-narrow","1.2-2"),` - `)}}function D_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(u(2,1,"labels.inputs.Credit Adjustments")))}function w_(t,i){if(t&1&&(r(0,"td",27),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` + `)}}function D_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(d(2,1,"labels.inputs.Credit Adjustments")))}function w_(t,i){if(t&1&&(r(0,"td",27),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` `,Ue(2,1,n.adjustment,a.currencyCode,"symbol-narrow","1.2-2"),` - `)}}function P_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(u(2,1,"labels.inputs.Waived")))}function T_(t,i){if(t&1&&(r(0,"td",26),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` + `)}}function T_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(d(2,1,"labels.inputs.Waived")))}function P_(t,i){if(t&1&&(r(0,"td",26),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` `,Ue(2,1,n.waived,a.currencyCode,"symbol-narrow","1.2-2"),` - `)}}function I_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(u(2,1,"labels.inputs.Written Off")))}function A_(t,i){if(t&1&&(r(0,"td",26),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` + `)}}function I_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(d(2,1,"labels.inputs.Written Off")))}function A_(t,i){if(t&1&&(r(0,"td",26),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` `,Ue(2,1,n.writtenOff,a.currencyCode,"symbol-narrow","1.2-2"),` - `)}}function O_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(u(2,1,"labels.inputs.Outstanding")))}function M_(t,i){if(t&1&&(r(0,"td",25),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` + `)}}function O_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(d(2,1,"labels.inputs.Outstanding")))}function M_(t,i){if(t&1&&(r(0,"td",25),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` `,Ue(2,1,n.outstanding,a.currencyCode,"symbol-narrow","1.2-2"),` - `)}}function E_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(u(2,1,"labels.inputs.Over Due")))}function L_(t,i){if(t&1&&(r(0,"td",25),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` + `)}}function E_(t,i){t&1&&(r(0,"th",24),e(1),p(2,"translate"),l()),t&2&&(s(),C(d(2,1,"labels.inputs.Over Due")))}function L_(t,i){if(t&1&&(r(0,"td",25),e(1),p(2,"currency"),l()),t&2){let n=i.$implicit,a=I(2);s(),y(` `,Ue(2,1,n.overdue,a.currencyCode,"symbol-narrow","1.2-2"),` - `)}}function N_(t,i){t&1&&P(0,"tr",28)}function F_(t,i){t&1&&P(0,"tr",29)}function k_(t,i){if(t&1&&(r(0,"div"),e(1,` + `)}}function N_(t,i){t&1&&T(0,"tr",28)}function F_(t,i){t&1&&T(0,"tr",29)}function k_(t,i){if(t&1&&(r(0,"div"),e(1,` `),r(2,"h3"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"table",5),e(7,` @@ -283,8 +283,8 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),U(),e(35,` `),V(36,16),e(37,` - `),g(38,P_,3,3,"th",10),e(39,` - `),g(40,T_,3,6,"td",13),e(41,` + `),g(38,T_,3,3,"th",10),e(39,` + `),g(40,P_,3,6,"td",13),e(41,` `),U(),e(42,` `),V(43,17),e(44,` @@ -305,17 +305,17 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(64,N_,1,0,"tr",20),e(65,` `),g(66,F_,1,0,"tr",21),e(67,` `),l(),e(68,` - `),l()),t&2){let n=I();s(3),C(u(4,4,"labels.heading.Loan Summary")),s(3),h("dataSource",n.dataSource),s(58),h("matHeaderRowDef",n.loanSummaryColumns),s(2),h("matRowDefColumns",n.loanSummaryColumns)}}function R_(t,i){if(t&1&&(r(0,"td",23),e(1),p(2,"translate"),l()),t&2){let n=i.$implicit;s(),C(u(2,1,"labels.inputs."+n.key))}}function B_(t,i){if(t&1&&(r(0,"span"),e(1),p(2,"dateFormat"),l()),t&2){let n=I(4);s(),y(` - `,u(2,1,n.loanDetails.timeline.actualDisbursementDate),` + `),l()),t&2){let n=I();s(3),C(d(4,4,"labels.heading.Loan Summary")),s(3),h("dataSource",n.dataSource),s(58),h("matHeaderRowDef",n.loanSummaryColumns),s(2),h("matRowDefColumns",n.loanSummaryColumns)}}function R_(t,i){if(t&1&&(r(0,"td",23),e(1),p(2,"translate"),l()),t&2){let n=i.$implicit;s(),C(d(2,1,"labels.inputs."+n.key))}}function B_(t,i){if(t&1&&(r(0,"span"),e(1),p(2,"dateFormat"),l()),t&2){let n=I(4);s(),y(` + `,d(2,1,n.loanDetails.timeline.actualDisbursementDate),` `)}}function j_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(` - `,u(2,1,"labels.inputs.Not Available"),` + `,d(2,1,"labels.inputs.Not Available"),` `))}function q_(t,i){if(t&1&&(V(0),e(1,` `),g(2,B_,3,3,"span",1),e(3,` `),g(4,j_,3,3,"span",1),e(5,` - `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.timeline.actualDisbursementDate),s(2),h("ngIf",!n.loanDetails.timeline.actualDisbursementDate)}}function z_(t,i){if(t&1&&(r(0,"span"),e(1),l()),t&2){let n=I(4);s(),y(" ",n.loanDetails.loanPurposeName," ")}}function V_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",u(2,1,"labels.inputs.Not Available")," "))}function U_(t,i){if(t&1&&(V(0),e(1,` + `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.timeline.actualDisbursementDate),s(2),h("ngIf",!n.loanDetails.timeline.actualDisbursementDate)}}function z_(t,i){if(t&1&&(r(0,"span"),e(1),l()),t&2){let n=I(4);s(),y(" ",n.loanDetails.loanPurposeName," ")}}function V_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",d(2,1,"labels.inputs.Not Available")," "))}function U_(t,i){if(t&1&&(V(0),e(1,` `),g(2,z_,2,1,"span",1),e(3,` `),g(4,V_,3,3,"span",1),e(5,` - `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.loanPurposeName),s(2),h("ngIf",!n.loanDetails.loanPurposeName)}}function H_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",u(2,1,"labels.inputs.Unassigned")," "))}function G_(t,i){t&1&&(r(0,"span"),e(1," "),l())}function W_(t,i){if(t&1&&(r(0,"span"),e(1),g(2,G_,2,0,"span",1),e(3,` + `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.loanPurposeName),s(2),h("ngIf",!n.loanDetails.loanPurposeName)}}function H_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",d(2,1,"labels.inputs.Unassigned")," "))}function G_(t,i){t&1&&(r(0,"span"),e(1," "),l())}function W_(t,i){if(t&1&&(r(0,"span"),e(1),g(2,G_,2,0,"span",1),e(3,` `),l()),t&2){let n=I(4);s(),y(` `,n.loanDetails.loanOfficerName,` \xA0 `),s(),h("ngIf",n.loanDetails.loanOfficerName)}}function $_(t,i){if(t&1&&(V(0),e(1,` @@ -324,11 +324,11 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),U()),t&2){let n=I(3);s(2),h("ngIf",!n.loanDetails.loanOfficerName),s(2),h("ngIf",n.loanDetails.loanOfficerName)}}function Y_(t,i){if(t&1&&(V(0),e(1,` `),r(2,"span"),e(3),l(),e(4,` `),U()),t&2){let n=I(3);s(3),$t(" ",n.loanDetails.currency.name," ",n.loanDetails.currency.code," ")}}function Z_(t,i){if(t&1&&(r(0,"span"),e(1,` - `),P(2,"mifosx-external-identifier",32),e(3,` - `),l()),t&2){let n=I(4);s(2),le("externalId",n.loanDetails.externalId)}}function K_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",u(2,1,"labels.inputs.Not Available")," "))}function J_(t,i){if(t&1&&(V(0),e(1,` + `),T(2,"mifosx-external-identifier",32),e(3,` + `),l()),t&2){let n=I(4);s(2),le("externalId",n.loanDetails.externalId)}}function K_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",d(2,1,"labels.inputs.Not Available")," "))}function J_(t,i){if(t&1&&(V(0),e(1,` `),g(2,Z_,4,1,"span",1),e(3,` `),g(4,K_,3,3,"span",1),e(5,` - `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.externalId),s(2),h("ngIf",!n.loanDetails.externalId)}}function X_(t,i){if(t&1&&(r(0,"span"),e(1),l()),t&2){let n=I(2).$implicit;s(),C(n.value)}}function Q_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),C(u(2,1,"labels.inputs.Not Available")))}function tv(t,i){if(t&1&&(V(0),e(1,` + `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.externalId),s(2),h("ngIf",!n.loanDetails.externalId)}}function X_(t,i){if(t&1&&(r(0,"span"),e(1),l()),t&2){let n=I(2).$implicit;s(),C(n.value)}}function Q_(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),C(d(2,1,"labels.inputs.Not Available")))}function tv(t,i){if(t&1&&(V(0),e(1,` `),g(2,X_,2,1,"span",1),e(3,` `),g(4,Q_,3,3,"span",1),e(5,` `),U()),t&2){let n=I().$implicit;s(2),h("ngIf",n.value),s(2),h("ngIf",!n.value)}}function ev(t,i){if(t&1&&(V(0),e(1),U()),t&2){let n=I().$implicit;s(),y(` @@ -347,7 +347,7 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(12,tv,6,2,"ng-container",1),e(13,` `),g(14,ev,2,1,"ng-container",1),e(15,` - `),l()),t&2){let n=i.$implicit;s(2),h("ngIf",n.key==="Disbursement Date"),s(2),h("ngIf",n.key==="Loan Purpose"),s(2),h("ngIf",n.key==="Loan Officer"),s(2),h("ngIf",n.key==="Currency"),s(2),h("ngIf",n.key==="External Id"),s(2),h("ngIf",n.key==="Write-off Reason"),s(2),h("ngIf",n.key==="Proposed Amount"||n.key==="Approved Amount"||n.key==="Disburse Amount")}}function iv(t,i){t&1&&P(0,"tr",29)}function av(t,i){if(t&1&&(r(0,"div"),e(1,` + `),l()),t&2){let n=i.$implicit;s(2),h("ngIf",n.key==="Disbursement Date"),s(2),h("ngIf",n.key==="Loan Purpose"),s(2),h("ngIf",n.key==="Loan Officer"),s(2),h("ngIf",n.key==="Currency"),s(2),h("ngIf",n.key==="External Id"),s(2),h("ngIf",n.key==="Write-off Reason"),s(2),h("ngIf",n.key==="Proposed Amount"||n.key==="Approved Amount"||n.key==="Disburse Amount")}}function iv(t,i){t&1&&T(0,"tr",29)}function av(t,i){if(t&1&&(r(0,"div"),e(1,` `),r(2,"h3"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"table",5),e(7,` `),V(8,30),e(9,` @@ -360,14 +360,14 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(18,iv,1,0,"tr",21),e(19,` `),l(),e(20,` - `),l()),t&2){let n=I();s(3),C(u(4,3,"labels.heading.Loan Details")),s(3),h("dataSource",n.detailsDataSource),s(12),h("matRowDefColumns",n.loanDetailsColumns)}}function ov(t,i){if(t&1&&(r(0,"td",23),e(1),p(2,"translate"),l()),t&2){let n=i.$implicit;s(),C(u(2,1,"labels.inputs."+n.key))}}function rv(t,i){if(t&1&&(r(0,"span"),e(1),p(2,"dateFormat"),l()),t&2){let n=I(4);s(),y(` - `,u(2,1,n.loanDetails.timeline.actualDisbursementDate),` + `),l()),t&2){let n=I();s(3),C(d(4,3,"labels.heading.Loan Details")),s(3),h("dataSource",n.detailsDataSource),s(12),h("matRowDefColumns",n.loanDetailsColumns)}}function ov(t,i){if(t&1&&(r(0,"td",23),e(1),p(2,"translate"),l()),t&2){let n=i.$implicit;s(),C(d(2,1,"labels.inputs."+n.key))}}function rv(t,i){if(t&1&&(r(0,"span"),e(1),p(2,"dateFormat"),l()),t&2){let n=I(4);s(),y(` + `,d(2,1,n.loanDetails.timeline.actualDisbursementDate),` `)}}function lv(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(` - `,u(2,1,"labels.inputs.Not Available"),` + `,d(2,1,"labels.inputs.Not Available"),` `))}function sv(t,i){if(t&1&&(V(0),e(1,` `),g(2,rv,3,3,"span",1),e(3,` `),g(4,lv,3,3,"span",1),e(5,` - `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.timeline.actualDisbursementDate),s(2),h("ngIf",!n.loanDetails.timeline.actualDisbursementDate)}}function cv(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",u(2,1,"labels.inputs.Unassigned")," "))}function pv(t,i){t&1&&(r(0,"span"),e(1," "),l())}function mv(t,i){if(t&1&&(r(0,"span"),e(1),g(2,pv,2,0,"span",1),e(3,` + `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.timeline.actualDisbursementDate),s(2),h("ngIf",!n.loanDetails.timeline.actualDisbursementDate)}}function cv(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",d(2,1,"labels.inputs.Unassigned")," "))}function pv(t,i){t&1&&(r(0,"span"),e(1," "),l())}function mv(t,i){if(t&1&&(r(0,"span"),e(1),g(2,pv,2,0,"span",1),e(3,` `),l()),t&2){let n=I(4);s(),y(` `,n.loanDetails.loanOfficerName,` \xA0 `),s(),h("ngIf",n.loanDetails.loanOfficerName)}}function dv(t,i){if(t&1&&(V(0),e(1,` @@ -376,8 +376,8 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),U()),t&2){let n=I(3);s(2),h("ngIf",!n.loanDetails.loanOfficerName),s(2),h("ngIf",n.loanDetails.loanOfficerName)}}function uv(t,i){if(t&1&&(V(0),e(1,` `),r(2,"span"),e(3),l(),e(4,` `),U()),t&2){let n=I(3);s(3),$t(" ",n.loanDetails.currency.name," ",n.loanDetails.currency.code," ")}}function fv(t,i){if(t&1&&(r(0,"span"),e(1,` - `),P(2,"mifosx-external-identifier",32),e(3,` - `),l()),t&2){let n=I(4);s(2),le("externalId",n.loanDetails.externalId)}}function hv(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",u(2,1,"labels.inputs.Not Available")," "))}function gv(t,i){if(t&1&&(V(0),e(1,` + `),T(2,"mifosx-external-identifier",32),e(3,` + `),l()),t&2){let n=I(4);s(2),le("externalId",n.loanDetails.externalId)}}function hv(t,i){t&1&&(r(0,"span"),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",d(2,1,"labels.inputs.Not Available")," "))}function gv(t,i){if(t&1&&(V(0),e(1,` `),g(2,fv,4,1,"span",1),e(3,` `),g(4,hv,3,3,"span",1),e(5,` `),U()),t&2){let n=I(3);s(2),h("ngIf",n.loanDetails.externalId),s(2),h("ngIf",!n.loanDetails.externalId)}}function xv(t,i){if(t&1&&(r(0,"td",23),e(1,` @@ -388,7 +388,7 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(6,uv,5,2,"ng-container",1),e(7,` `),g(8,gv,6,2,"ng-container",1),e(9,` - `),l()),t&2){let n=i.$implicit;s(2),h("ngIf",n.key==="Disbursement Date"),s(2),h("ngIf",n.key==="Loan Officer"),s(2),h("ngIf",n.key==="Currency"),s(2),h("ngIf",n.key==="External Id")}}function _v(t,i){t&1&&P(0,"tr",29)}function vv(t,i){if(t&1&&(r(0,"div"),e(1,` + `),l()),t&2){let n=i.$implicit;s(2),h("ngIf",n.key==="Disbursement Date"),s(2),h("ngIf",n.key==="Loan Officer"),s(2),h("ngIf",n.key==="Currency"),s(2),h("ngIf",n.key==="External Id")}}function _v(t,i){t&1&&T(0,"tr",29)}function vv(t,i){if(t&1&&(r(0,"div"),e(1,` `),r(2,"h3"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"table",5),e(7,` `),V(8,30),e(9,` @@ -401,20 +401,20 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(18,_v,1,0,"tr",21),e(19,` `),l(),e(20,` - `),l()),t&2){let n=I();s(3),C(u(4,3,"labels.heading.Loan Details")),s(3),h("dataSource",n.detailsDataSource),s(12),h("matRowDefColumns",n.loanDetailsColumns)}}function bv(t,i){if(t&1&&(r(0,"span",36),e(1),l()),t&2){let n=I(2);s(),y(` + `),l()),t&2){let n=I();s(3),C(d(4,3,"labels.heading.Loan Details")),s(3),h("dataSource",n.detailsDataSource),s(12),h("matRowDefColumns",n.loanDetailsColumns)}}function bv(t,i){if(t&1&&(r(0,"span",36),e(1),l()),t&2){let n=I(2);s(),y(` `,n.loanDetails.loanPurposeName,` `)}}function Cv(t,i){t&1&&(r(0,"span",36),e(1),p(2,"translate"),l()),t&2&&(s(),y(` - `,u(2,1,"labels.inputs.Not Provided"),` + `,d(2,1,"labels.inputs.Not Provided"),` `))}function yv(t,i){if(t&1&&(r(0,"div",35),e(1,` `),r(2,"span",36),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",36),e(7),p(8,"currency"),l(),e(9,` - `),l()),t&2){let n=I(2);s(3),y("",u(4,2,"labels.inputs.Approved Amount"),":"),s(4),C(Ue(8,4,n.loanDetails.approvedPrincipal,n.currencyCode,"symbol-narrow","1.2-2"))}}function Sv(t,i){if(t&1&&(r(0,"div",35),e(1,` + `),l()),t&2){let n=I(2);s(3),y("",d(4,2,"labels.inputs.Approved Amount"),":"),s(4),C(Ue(8,4,n.loanDetails.approvedPrincipal,n.currencyCode,"symbol-narrow","1.2-2"))}}function Sv(t,i){if(t&1&&(r(0,"div",35),e(1,` `),r(2,"span",36),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",36),e(7),p(8,"currency"),l(),e(9,` - `),l()),t&2){let n=I(2);s(3),y("",u(4,2,"labels.inputs.Disburse Amount"),":"),s(4),C(Ue(8,4,n.loanDetails.principal,n.currencyCode,"symbol-narrow","1.2-2"))}}function Dv(t,i){if(t&1&&(r(0,"div",35),e(1,` + `),l()),t&2){let n=I(2);s(3),y("",d(4,2,"labels.inputs.Disburse Amount"),":"),s(4),C(Ue(8,4,n.loanDetails.principal,n.currencyCode,"symbol-narrow","1.2-2"))}}function Dv(t,i){if(t&1&&(r(0,"div",35),e(1,` `),r(2,"span",36),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",36),e(7),p(8,"currency"),l(),e(9,` - `),l()),t&2){let n=I(2);s(3),y("",u(4,2,"labels.inputs.Balloon Repayment Amount"),":"),s(4),C(Ue(8,4,n.loanDetails.balloonRepaymentAmount,n.currencyCode,"symbol-narrow","1.2-2"))}}function wv(t,i){if(t&1&&(r(0,"div"),e(1,` + `),l()),t&2){let n=I(2);s(3),y("",d(4,2,"labels.inputs.Balloon Repayment Amount"),":"),s(4),C(Ue(8,4,n.loanDetails.balloonRepaymentAmount,n.currencyCode,"symbol-narrow","1.2-2"))}}function wv(t,i){if(t&1&&(r(0,"div"),e(1,` `),r(2,"h3"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"div",33),e(7,` `),r(8,"div",34),e(9,` @@ -441,7 +441,7 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),l(),e(48,` `),l(),e(49,` `),l(),e(50,` - `),l()),t&2){let n=I();s(3),C(u(4,11,"labels.heading.Loan Purpose")),s(10),y("",u(14,13,"labels.inputs.Loan Purpose"),":"),s(3),h("ngIf",n.loanDetails.loanPurposeName),s(2),h("ngIf",!n.loanDetails.loanPurposeName),s(6),y("",u(25,15,"labels.inputs.Proposed Amount"),":"),s(4),C(Ue(29,17,n.loanDetails.proposedPrincipal,n.currencyCode,"symbol-narrow","1.2-2")),s(4),h("ngIf",n.showApprovedAmountBasedOnStatus()),s(2),h("ngIf",n.showDisbursedAmountBasedOnStatus()),s(2),h("ngIf",n.loanDetails.balloonRepaymentAmount>0),s(5),y("",u(42,22,"labels.inputs.Arrears By"),":"),s(4),C(u(46,24,"labels.inputs.Not Provided"))}}var Fc=(()=>{class t{constructor(n){this.route=n,this.loanSummaryColumns=["Empty","Original","Paid","Waived","Written Off","Outstanding","Over Due"],this.loanDetailsColumns=["Key","Value"],this.showDisbursedAmountBasedOnStatus=function(){return!(this.status==="Submitted and pending approval"||this.status==="Withdrawn by applicant"||this.status==="Rejected"||this.status==="Approved")},this.route.parent.data.subscribe(a=>{this.loanDetails=a.loanDetailsData,this.currencyCode=this.loanDetails.currency.code,this.loanDetails.transactions&&this.loanDetails.transactions.some(o=>{if(o.type.code==="loanTransactionType.chargeback"){this.loanSummaryColumns=["Empty","Original","Adjustments","Paid","Waived","Written Off","Outstanding","Over Due"];return}})})}ngOnInit(){this.status=this.loanDetails.value,this.loanDetails.summary?(this.setloanSummaryTableData(),this.setloanDetailsTableData()):this.setloanNonDetailsTableData()}setloanSummaryTableData(){this.loanSummaryTableData=[{property:"Principal",original:this.loanDetails.summary.totalPrincipal,adjustment:this.loanDetails.summary.principalAdjustments||0,paid:this.loanDetails.summary.principalPaid,waived:this.loanDetails.summary.principalWaived||0,writtenOff:this.loanDetails.summary.principalWrittenOff,outstanding:this.loanDetails.summary.principalOutstanding,overdue:this.loanDetails.summary.principalOverdue},{property:"Interest",original:this.loanDetails.summary.interestCharged,adjustment:"0",paid:this.loanDetails.summary.interestPaid,waived:this.loanDetails.summary.interestWaived,writtenOff:this.loanDetails.summary.interestWrittenOff,outstanding:this.loanDetails.summary.interestOutstanding,overdue:this.loanDetails.summary.interestOverdue},{property:"Fees",original:this.loanDetails.summary.feeChargesCharged,adjustment:"0",paid:this.loanDetails.summary.feeChargesPaid,waived:this.loanDetails.summary.feeChargesWaived,writtenOff:this.loanDetails.summary.feeChargesWrittenOff,outstanding:this.loanDetails.summary.feeChargesOutstanding,overdue:this.loanDetails.summary.feeChargesOverdue},{property:"Penalties",original:this.loanDetails.summary.penaltyChargesCharged,adjustment:"0",paid:this.loanDetails.summary.penaltyChargesPaid,waived:this.loanDetails.summary.penaltyChargesWaived,writtenOff:this.loanDetails.summary.penaltyChargesWrittenOff,outstanding:this.loanDetails.summary.penaltyChargesOutstanding,overdue:this.loanDetails.summary.penaltyChargesOverdue},{property:"Total",original:this.loanDetails.summary.totalExpectedRepayment,adjustment:this.loanDetails.summary.principalAdjustments||0,paid:this.loanDetails.summary.totalRepayment,waived:this.loanDetails.summary.totalWaived,writtenOff:this.loanDetails.summary.totalWrittenOff,outstanding:this.loanDetails.summary.totalOutstanding,overdue:this.loanDetails.summary.totalOverdue}],this.dataSource=new Mi(this.loanSummaryTableData)}setloanDetailsTableData(){this.loanDetailsTableData=[{key:"Disbursement Date"},{key:"Loan Purpose"},{key:"Loan Officer"},{key:"Currency"},{key:"External Id"},{key:"Proposed Amount",value:this.loanDetails.proposedPrincipal},{key:"Approved Amount",value:this.loanDetails.approvedPrincipal},{key:"Disburse Amount",value:this.loanDetails.principal}],this.loanDetails.writeOffReason&&this.loanDetailsTableData.push({key:"Write-off Reason",value:this.loanDetails.writeOffReason}),this.detailsDataSource=new Mi(this.loanDetailsTableData)}setloanNonDetailsTableData(){this.loanDetailsTableData=[{key:"Disbursement Date"},{key:"Currency"},{key:"Loan Officer"},{key:"External Id"}],this.detailsDataSource=new Mi(this.loanDetailsTableData)}showApprovedAmountBasedOnStatus(){return!(this.status==="Submitted and pending approval"||this.status==="Withdrawn by applicant"||this.status==="Rejected")}static{this.\u0275fac=function(a){return new(a||t)(O(Ot))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-general-tab"]],decls:13,vars:5,consts:[[1,"tab-container","mat-typography"],[4,"ngIf"],[1,"layout-row","gap-32px","performance-history-container"],[1,"flex-25"],[1,"flex-25","left"],["mat-table","",3,"dataSource"],["matColumnDef","Empty"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Original"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","Paid"],["mat-cell","","class","r-amount amount-minus",4,"matCellDef"],["matColumnDef","Adjustments"],["mat-cell","","class","r-amount amount-plus",4,"matCellDef"],["matColumnDef","Waived"],["matColumnDef","Written Off"],["matColumnDef","Outstanding"],["matColumnDef","Over Due"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-cell","",1,"r-amount","amount-minus"],["mat-cell","",1,"r-amount","amount-plus"],["mat-header-row",""],["mat-row",""],["matColumnDef","Key"],["matColumnDef","Value"],["completed","true",3,"externalId"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"flex-contents"],[1,"flex-50"],["class","flex-50",4,"ngIf"],["class","flex-contents",4,"ngIf"]],template:function(a,o){a&1&&(r(0,"div",0),e(1,` + `),l()),t&2){let n=I();s(3),C(d(4,11,"labels.heading.Loan Purpose")),s(10),y("",d(14,13,"labels.inputs.Loan Purpose"),":"),s(3),h("ngIf",n.loanDetails.loanPurposeName),s(2),h("ngIf",!n.loanDetails.loanPurposeName),s(6),y("",d(25,15,"labels.inputs.Proposed Amount"),":"),s(4),C(Ue(29,17,n.loanDetails.proposedPrincipal,n.currencyCode,"symbol-narrow","1.2-2")),s(4),h("ngIf",n.showApprovedAmountBasedOnStatus()),s(2),h("ngIf",n.showDisbursedAmountBasedOnStatus()),s(2),h("ngIf",n.loanDetails.balloonRepaymentAmount>0),s(5),y("",d(42,22,"labels.inputs.Arrears By"),":"),s(4),C(d(46,24,"labels.inputs.Not Provided"))}}var Fc=(()=>{class t{constructor(n){this.route=n,this.loanSummaryColumns=["Empty","Original","Paid","Waived","Written Off","Outstanding","Over Due"],this.loanDetailsColumns=["Key","Value"],this.showDisbursedAmountBasedOnStatus=function(){return!(this.status==="Submitted and pending approval"||this.status==="Withdrawn by applicant"||this.status==="Rejected"||this.status==="Approved")},this.route.parent.data.subscribe(a=>{this.loanDetails=a.loanDetailsData,this.currencyCode=this.loanDetails.currency.code,this.loanDetails.transactions&&this.loanDetails.transactions.some(o=>{if(o.type.code==="loanTransactionType.chargeback"){this.loanSummaryColumns=["Empty","Original","Adjustments","Paid","Waived","Written Off","Outstanding","Over Due"];return}})})}ngOnInit(){this.status=this.loanDetails.value,this.loanDetails.summary?(this.setloanSummaryTableData(),this.setloanDetailsTableData()):this.setloanNonDetailsTableData()}setloanSummaryTableData(){this.loanSummaryTableData=[{property:"Principal",original:this.loanDetails.summary.totalPrincipal,adjustment:this.loanDetails.summary.principalAdjustments||0,paid:this.loanDetails.summary.principalPaid,waived:this.loanDetails.summary.principalWaived||0,writtenOff:this.loanDetails.summary.principalWrittenOff,outstanding:this.loanDetails.summary.principalOutstanding,overdue:this.loanDetails.summary.principalOverdue},{property:"Interest",original:this.loanDetails.summary.interestCharged,adjustment:"0",paid:this.loanDetails.summary.interestPaid,waived:this.loanDetails.summary.interestWaived,writtenOff:this.loanDetails.summary.interestWrittenOff,outstanding:this.loanDetails.summary.interestOutstanding,overdue:this.loanDetails.summary.interestOverdue},{property:"Fees",original:this.loanDetails.summary.feeChargesCharged,adjustment:"0",paid:this.loanDetails.summary.feeChargesPaid,waived:this.loanDetails.summary.feeChargesWaived,writtenOff:this.loanDetails.summary.feeChargesWrittenOff,outstanding:this.loanDetails.summary.feeChargesOutstanding,overdue:this.loanDetails.summary.feeChargesOverdue},{property:"Penalties",original:this.loanDetails.summary.penaltyChargesCharged,adjustment:"0",paid:this.loanDetails.summary.penaltyChargesPaid,waived:this.loanDetails.summary.penaltyChargesWaived,writtenOff:this.loanDetails.summary.penaltyChargesWrittenOff,outstanding:this.loanDetails.summary.penaltyChargesOutstanding,overdue:this.loanDetails.summary.penaltyChargesOverdue},{property:"Total",original:this.loanDetails.summary.totalExpectedRepayment,adjustment:this.loanDetails.summary.principalAdjustments||0,paid:this.loanDetails.summary.totalRepayment,waived:this.loanDetails.summary.totalWaived,writtenOff:this.loanDetails.summary.totalWrittenOff,outstanding:this.loanDetails.summary.totalOutstanding,overdue:this.loanDetails.summary.totalOverdue}],this.dataSource=new Mi(this.loanSummaryTableData)}setloanDetailsTableData(){this.loanDetailsTableData=[{key:"Disbursement Date"},{key:"Loan Purpose"},{key:"Loan Officer"},{key:"Currency"},{key:"External Id"},{key:"Proposed Amount",value:this.loanDetails.proposedPrincipal},{key:"Approved Amount",value:this.loanDetails.approvedPrincipal},{key:"Disburse Amount",value:this.loanDetails.principal}],this.loanDetails.writeOffReason&&this.loanDetailsTableData.push({key:"Write-off Reason",value:this.loanDetails.writeOffReason}),this.detailsDataSource=new Mi(this.loanDetailsTableData)}setloanNonDetailsTableData(){this.loanDetailsTableData=[{key:"Disbursement Date"},{key:"Currency"},{key:"Loan Officer"},{key:"External Id"}],this.detailsDataSource=new Mi(this.loanDetailsTableData)}showApprovedAmountBasedOnStatus(){return!(this.status==="Submitted and pending approval"||this.status==="Withdrawn by applicant"||this.status==="Rejected")}static{this.\u0275fac=function(a){return new(a||t)(O(Ot))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-general-tab"]],decls:13,vars:5,consts:[[1,"tab-container","mat-typography"],[4,"ngIf"],[1,"layout-row","gap-32px","performance-history-container"],[1,"flex-25"],[1,"flex-25","left"],["mat-table","",3,"dataSource"],["matColumnDef","Empty"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Original"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","Paid"],["mat-cell","","class","r-amount amount-minus",4,"matCellDef"],["matColumnDef","Adjustments"],["mat-cell","","class","r-amount amount-plus",4,"matCellDef"],["matColumnDef","Waived"],["matColumnDef","Written Off"],["matColumnDef","Outstanding"],["matColumnDef","Over Due"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-cell","",1,"r-amount","amount-minus"],["mat-cell","",1,"r-amount","amount-plus"],["mat-header-row",""],["mat-row",""],["matColumnDef","Key"],["matColumnDef","Value"],["completed","true",3,"externalId"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"flex-contents"],[1,"flex-50"],["class","flex-50",4,"ngIf"],["class","flex-contents",4,"ngIf"]],template:function(a,o){a&1&&(r(0,"div",0),e(1,` `),g(2,x_,40,15,"ng-container",1),e(3,` `),g(4,k_,69,6,"div",1),e(5,` @@ -452,85 +452,85 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(10,wv,51,26,"div",1),e(11,` `),l(),e(12,` -`)),a&2&&(s(2),h("ngIf",o.loanDetails.summary),s(2),h("ngIf",o.loanDetails.summary),s(2),h("ngIf",o.loanDetails.summary),s(2),h("ngIf",!o.loanDetails.summary),s(2),h("ngIf",!o.loanDetails.summary))},dependencies:[St,Vt,Da,Dt,On,Pt,fn,xn,gn,_n,hn,vn,bn,yn,Cn,Sn,Ua,pn],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .performance-history-container[_ngcontent-%COMP%]{border:1px solid;padding:1%;margin-bottom:20px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return t})();function Pv(t,i){if(t&1&&(r(0,"span"),e(1,` +`)),a&2&&(s(2),h("ngIf",o.loanDetails.summary),s(2),h("ngIf",o.loanDetails.summary),s(2),h("ngIf",o.loanDetails.summary),s(2),h("ngIf",!o.loanDetails.summary),s(2),h("ngIf",!o.loanDetails.summary))},dependencies:[St,Vt,Da,Dt,On,Tt,fn,xn,gn,_n,hn,vn,bn,yn,Cn,Sn,Ua,pn],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .performance-history-container[_ngcontent-%COMP%]{border:1px solid;padding:1%;margin-bottom:20px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return t})();function Tv(t,i){if(t&1&&(r(0,"span"),e(1,` `),r(2,"span",7),e(3),p(4,"translate"),l(),e(5),r(6,"span",7),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I(2);s(3),C(u(4,3,"labels.commons.on")),s(2),y("",n.loanDetails.repaymentFrequencyNthDayType==null?null:n.loanDetails.repaymentFrequencyNthDayType.value,` - `),s(2),C(ze(8,5,n.loanDetails.repaymentFrequencyDayOfWeekType==null?null:n.loanDetails.repaymentFrequencyDayOfWeekType.value,"catalogs"))}}function Tv(t,i){if(t&1&&(r(0,"span",7),e(1,` - `),g(2,Pv,10,8,"span",8),e(3,` + `),l()),t&2){let n=I(2);s(3),C(d(4,3,"labels.commons.on")),s(2),y("",n.loanDetails.repaymentFrequencyNthDayType==null?null:n.loanDetails.repaymentFrequencyNthDayType.value,` + `),s(2),C(ze(8,5,n.loanDetails.repaymentFrequencyDayOfWeekType==null?null:n.loanDetails.repaymentFrequencyDayOfWeekType.value,"catalogs"))}}function Pv(t,i){if(t&1&&(r(0,"span",7),e(1,` + `),g(2,Tv,10,8,"span",8),e(3,` `),l()),t&2){let n=I();s(2),h("ngIf",n.loanDetails.repaymentFrequencyDayOfWeekType)}}function Iv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,3,"labels.inputs.Fixed Length")," "),s(4),$t(` + `),l()),t&2){let n=I();s(3),y(" ",d(4,3,"labels.inputs.Fixed Length")," "),s(4),$t(` `,n.loanDetails.fixedLength," ",ze(8,5,n.loanDetails.repaymentFrequencyType.value,"catalogs"),"")}}function Av(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"formatNumber"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Principal Percentage Per Installment")," "),s(4),y(" ",u(8,4,n.loanDetails.fixedPrincipalPercentagePerInstallment)," %")}}function Ov(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Principal Percentage Per Installment")," "),s(4),y(" ",d(8,4,n.loanDetails.fixedPrincipalPercentagePerInstallment)," %")}}function Ov(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Income capitalization calculation type"),""),s(4),y(` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Income capitalization calculation type"),""),s(4),y(` `,ze(8,4,n.loanDetails.capitalizedIncomeCalculationType==null?null:n.loanDetails.capitalizedIncomeCalculationType.value,"catalogs"),` `)}}function Mv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Income capitalization strategy"),""),s(4),y(" ",ze(8,4,n.loanDetails.capitalizedIncomeStrategy==null?null:n.loanDetails.capitalizedIncomeStrategy.value,"catalogs")," ")}}function Ev(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Income capitalization strategy"),""),s(4),y(" ",ze(8,4,n.loanDetails.capitalizedIncomeStrategy==null?null:n.loanDetails.capitalizedIncomeStrategy.value,"catalogs")," ")}}function Ev(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Income capitalization type"),""),s(4),y(" ",ze(8,4,n.loanDetails.capitalizedIncomeType==null?null:n.loanDetails.capitalizedIncomeType.value,"catalogs")," ")}}function Lv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Income capitalization type"),""),s(4),y(" ",ze(8,4,n.loanDetails.capitalizedIncomeType==null?null:n.loanDetails.capitalizedIncomeType.value,"catalogs")," ")}}function Lv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Buy down fee calculation type"),""),s(4),y(` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Buy down fee calculation type"),""),s(4),y(` `,ze(8,4,n.loanDetails.buyDownFeeCalculationType==null?null:n.loanDetails.buyDownFeeCalculationType.value,"catalogs"),` `)}}function Nv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Buy down fee strategy"),""),s(4),y(" ",ze(8,4,n.loanDetails.buyDownFeeStrategy==null?null:n.loanDetails.buyDownFeeStrategy.value,"catalogs")," ")}}function Fv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Buy down fee strategy"),""),s(4),y(" ",ze(8,4,n.loanDetails.buyDownFeeStrategy==null?null:n.loanDetails.buyDownFeeStrategy.value,"catalogs")," ")}}function Fv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Buy down fee income type"),""),s(4),y(" ",ze(8,4,n.loanDetails.buyDownFeeIncomeType==null?null:n.loanDetails.buyDownFeeIncomeType.value,"catalogs")," ")}}function kv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Buy down fee income type"),""),s(4),y(" ",ze(8,4,n.loanDetails.buyDownFeeIncomeType==null?null:n.loanDetails.buyDownFeeIncomeType.value,"catalogs")," ")}}function kv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"yesNo"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Merchant Buy down fee"),""),s(4),y(" ",u(8,4,n.loanDetails.merchantBuyDownFee)," ")}}function Rv(t,i){if(t&1&&(r(0,"span",3),e(1),l()),t&2){let n=I();s(),y(" ",n.loanDetails.fundName," ")}}function Bv(t,i){t&1&&(r(0,"span",3),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",u(2,1,"labels.inputs.Unassigned")," "))}function jv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Merchant Buy down fee"),""),s(4),y(" ",d(8,4,n.loanDetails.merchantBuyDownFee)," ")}}function Rv(t,i){if(t&1&&(r(0,"span",3),e(1),l()),t&2){let n=I();s(),y(" ",n.loanDetails.fundName," ")}}function Bv(t,i){t&1&&(r(0,"span",3),e(1),p(2,"translate"),l()),t&2&&(s(),y(" ",d(2,1,"labels.inputs.Unassigned")," "))}function jv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"formatNumber"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Fixed EMI amount"),""),s(4),y(" ",u(8,4,n.loanDetails.fixedEmiAmount)," ")}}function qv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Fixed EMI amount"),""),s(4),y(" ",d(8,4,n.loanDetails.fixedEmiAmount)," ")}}function qv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"yesNo"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Is Topup Loan"),"?"),s(4),y(" ",u(8,4,n.loanDetails.isTopup)," ")}}function zv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Is Topup Loan"),"?"),s(4),y(" ",d(8,4,n.loanDetails.isTopup)," ")}}function zv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7,` `),r(8,"a",9),e(9),l(),e(10,` `),l(),e(11,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Loan closed with Topup")," "),s(6),C(n.loanDetails.closureLoanAccountNo)}}function Vv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Loan closed with Topup")," "),s(6),C(n.loanDetails.closureLoanAccountNo)}}function Vv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"formatNumber"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Topup closure amount"),""),s(4),y(" ",u(8,4,n.loanDetails.topupAmount)," ")}}function Uv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Topup closure amount"),""),s(4),y(" ",d(8,4,n.loanDetails.topupAmount)," ")}}function Uv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Interest recalculation compounding on"),""),s(4),y(` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Interest recalculation compounding on"),""),s(4),y(` `,ze(8,4,n.loanDetails.interestRecalculationData.interestRecalculationCompoundingType.value,"catalogs"),` `)}}function Hv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"translateKey"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Advance payments adjustment type"),""),s(4),y(` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Advance payments adjustment type"),""),s(4),y(` `,ze(8,4,n.loanDetails.interestRecalculationData.rescheduleStrategyType.value,"catalogs"),` `)}}function Gv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),l(),e(8,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Frequency for recalculate Outstanding Principal"),""),s(4),y(" ",n.loanDetails.interestRecalculationData.calendarData.humanReadable," ")}}function Wv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Frequency for recalculate Outstanding Principal"),""),s(4),y(" ",n.loanDetails.interestRecalculationData.calendarData.humanReadable," ")}}function Wv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),l(),e(8,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Frequency for compounding"),""),s(4),y(" ",n.loanDetails.interestRecalculationData.compoundingCalendarData.humanReadable," ")}}function $v(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Frequency for compounding"),""),s(4),y(" ",n.loanDetails.interestRecalculationData.compoundingCalendarData.humanReadable," ")}}function $v(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"yesNo"),l(),e(9,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,2,"labels.inputs.Variable Installments Allowed"),""),s(4),y(" ",u(8,4,n.loanDetails.isVariableInstallmentsAllowed)," ")}}function Yv(t,i){if(t&1&&(r(0,"div",2),e(1,` + `),l()),t&2){let n=I();s(3),y(" ",d(4,2,"labels.inputs.Variable Installments Allowed"),""),s(4),y(" ",d(8,4,n.loanDetails.isVariableInstallmentsAllowed)," ")}}function Yv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"formatNumber"),p(9,"translate"),p(10,"formatNumber"),p(11,"translate"),l(),e(12,` - `),l()),t&2){let n=I();s(3),y(" ",u(4,5,"labels.inputs.Gap between Installments"),""),s(4),t0(` - `,u(8,7,n.loanDetails.minimumGap),"\xA0",u(9,9,"labels.text.Days"),"\xA0, Max:",u(10,11,n.loanDetails.maximumGap),"\xA0",u(11,13,"labels.text.Days"),` + `),l()),t&2){let n=I();s(3),y(" ",d(4,5,"labels.inputs.Gap between Installments"),""),s(4),t0(` + `,d(8,7,n.loanDetails.minimumGap),"\xA0",d(9,9,"labels.text.Days"),"\xA0, Max:",d(10,11,n.loanDetails.maximumGap),"\xA0",d(11,13,"labels.text.Days"),` `)}}function Zv(t,i){if(t&1&&(r(0,"div",2),e(1,` `),r(2,"span",3),e(3),p(4,"translate"),l(),e(5,` `),r(6,"span",3),e(7),p(8,"formatNumber"),l(),e(9,` - `),l()),t&2){let n=I();s(3),C(u(4,2,"labels.inputs.Available Disbursement Amount (with Over Applied)")),s(4),C(u(8,4,n.loanDetails.delinquent.availableDisbursementAmountWithOverApplied))}}var kc=(()=>{class t{constructor(n){this.route=n,this.route.parent.data.subscribe(a=>{this.loanDetails=a.loanDetailsData})}static{this.\u0275fac=function(a){return new(a||t)(O(Ot))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-account-details"]],decls:336,vars:188,consts:[[1,"container","p-b-20"],[1,"responsive-column"],[1,"flex-fill","layout-row"],[1,"flex-50"],["class","m-l-10",4,"ngIf"],["class","flex-fill layout-row",4,"ngIf"],["class","flex-50",4,"ngIf"],[1,"m-l-10"],[4,"ngIf"],["href","#"]],template:function(a,o){a&1&&(r(0,"div",0),e(1,` + `),l()),t&2){let n=I();s(3),C(d(4,2,"labels.inputs.Available Disbursement Amount (with Over Applied)")),s(4),C(d(8,4,n.loanDetails.delinquent.availableDisbursementAmountWithOverApplied))}}var kc=(()=>{class t{constructor(n){this.route=n,this.route.parent.data.subscribe(a=>{this.loanDetails=a.loanDetailsData})}static{this.\u0275fac=function(a){return new(a||t)(O(Ot))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-account-details"]],decls:336,vars:188,consts:[[1,"container","p-b-20"],[1,"responsive-column"],[1,"flex-fill","layout-row"],[1,"flex-50"],["class","m-l-10",4,"ngIf"],["class","flex-fill layout-row",4,"ngIf"],["class","flex-50",4,"ngIf"],[1,"m-l-10"],[4,"ngIf"],["href","#"]],template:function(a,o){a&1&&(r(0,"div",0),e(1,` `),r(2,"h3"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"div",1),e(7,` @@ -541,7 +541,7 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),r(19,"div",2),e(20,` `),r(21,"span",3),e(22),p(23,"translate"),l(),e(24,` - `),r(25,"span",3),e(26),p(27,"translateKey"),g(28,Tv,4,1,"span",4),e(29,` + `),r(25,"span",3),e(26),p(27,"translateKey"),g(28,Pv,4,1,"span",4),e(29,` `),l(),e(30,` `),l(),e(31,` @@ -707,66 +707,66 @@ import{a as _f}from"./chunk-H7VUTV6Q.js";import{a as Y1,b as gf,c as Br,d as jr, `),g(332,Zv,10,6,"div",5),e(333,` `),l(),e(334,` `),l(),e(335,` -`)),a&2&&(s(3),C(u(4,80,"labels.heading.Loan Details")),s(8),C(u(12,82,"labels.inputs.Repayment Strategy")),s(4),C(ze(16,84,o.loanDetails.transactionProcessingStrategyName,"catalogs")),s(7),C(u(23,87,"labels.inputs.Repayments")),s(4),Qs("",o.loanDetails.numberOfRepayments," every ",o.loanDetails.repaymentEvery,"\xA0",ze(27,89,o.loanDetails.repaymentFrequencyType.value,"catalogs"),` - `),s(2),h("ngIf",(o.loanDetails.repaymentFrequencyType==null?null:o.loanDetails.repaymentFrequencyType.id)===2&&(o.loanDetails.repaymentFrequencyNthDayType==null?null:o.loanDetails.repaymentFrequencyNthDayType.id)!==0&&(o.loanDetails.repaymentFrequencyDayOfWeekType==null?null:o.loanDetails.repaymentFrequencyDayOfWeekType.id)!==0),s(4),h("ngIf",o.loanDetails.fixedLength),s(5),y(" ",u(38,92,"labels.inputs.Amortization")," "),s(4),y(" ",ze(42,94,o.loanDetails.amortizationType.value,"catalogs")," "),s(4),h("ngIf",o.loanDetails.fixedPrincipalPercentagePerInstallment),s(5),y(" ",u(51,97,"labels.inputs.Equal Amortization")," "),s(4),y(" ",u(55,99,o.loanDetails.isEqualAmortization)," "),s(7),y(" ",u(62,101,"labels.inputs.Interest")," "),s(4),t0(` - `,u(66,103,o.loanDetails.annualInterestRate)," % ",u(67,105,"labels.text.per annum")," (",o.loanDetails.interestRatePerPeriod,` +`)),a&2&&(s(3),C(d(4,80,"labels.heading.Loan Details")),s(8),C(d(12,82,"labels.inputs.Repayment Strategy")),s(4),C(ze(16,84,o.loanDetails.transactionProcessingStrategyName,"catalogs")),s(7),C(d(23,87,"labels.inputs.Repayments")),s(4),Qs("",o.loanDetails.numberOfRepayments," every ",o.loanDetails.repaymentEvery,"\xA0",ze(27,89,o.loanDetails.repaymentFrequencyType.value,"catalogs"),` + `),s(2),h("ngIf",(o.loanDetails.repaymentFrequencyType==null?null:o.loanDetails.repaymentFrequencyType.id)===2&&(o.loanDetails.repaymentFrequencyNthDayType==null?null:o.loanDetails.repaymentFrequencyNthDayType.id)!==0&&(o.loanDetails.repaymentFrequencyDayOfWeekType==null?null:o.loanDetails.repaymentFrequencyDayOfWeekType.id)!==0),s(4),h("ngIf",o.loanDetails.fixedLength),s(5),y(" ",d(38,92,"labels.inputs.Amortization")," "),s(4),y(" ",ze(42,94,o.loanDetails.amortizationType.value,"catalogs")," "),s(4),h("ngIf",o.loanDetails.fixedPrincipalPercentagePerInstallment),s(5),y(" ",d(51,97,"labels.inputs.Equal Amortization")," "),s(4),y(" ",d(55,99,o.loanDetails.isEqualAmortization)," "),s(7),y(" ",d(62,101,"labels.inputs.Interest")," "),s(4),t0(` + `,d(66,103,o.loanDetails.annualInterestRate)," % ",d(67,105,"labels.text.per annum")," (",o.loanDetails.interestRatePerPeriod,` %\xA0 `,ze(68,107,o.loanDetails.interestRateFrequencyType.value,"catalogs"),`) - `),s(9),y(" ",u(75,110,"labels.inputs.Interest Type")," "),s(4),y(" ",u(79,112,"labels.text."+o.loanDetails.interestType.value)," "),s(7),y("",u(86,114,"labels.inputs.Enable Down Payments"),":"),s(4),C(u(90,116,o.loanDetails.enableDownPayment)),s(7),y("",u(97,118,"labels.inputs.Loan Charge-off behaviour"),":"),s(4),C(ze(101,120,o.loanDetails.chargeOffBehaviour.value,"catalogs")),s(7),y(" ",u(108,123,"labels.inputs.Enable income capitalization"),""),s(4),y(" ",u(112,125,o.loanDetails.enableIncomeCapitalization)," "),s(4),h("ngIf",o.loanDetails.enableIncomeCapitalization),s(2),h("ngIf",o.loanDetails.enableIncomeCapitalization),s(2),h("ngIf",o.loanDetails.enableIncomeCapitalization),s(5),y(" ",u(125,127,"labels.inputs.Enable Buy down fee"),""),s(4),y(" ",u(129,129,o.loanDetails.enableBuyDownFee)," "),s(4),h("ngIf",o.loanDetails.enableBuyDownFee),s(2),h("ngIf",o.loanDetails.enableBuyDownFee),s(2),h("ngIf",o.loanDetails.enableBuyDownFee),s(2),h("ngIf",o.loanDetails.enableBuyDownFee),s(5),y(" ",u(144,131,"labels.inputs.Grace: On Principal Payment"),""),s(4),y(" ",o.loanDetails.graceOnPrincipalPayment," "),s(6),y(" ",u(154,133,"labels.inputs.Grace: On Interest Payment"),""),s(4),y(" ",o.loanDetails.graceOnInterestPayment," "),s(6),y(" ",u(164,135,"labels.inputs.Grace on Arrears Ageing"),""),s(4),y(" ",o.loanDetails.graceOnArrearsAgeing," "),s(6),y(" ",u(174,137,"labels.inputs.Enable installment level Delinquency")," "),s(4),y(" ",u(178,139,o.loanDetails.enableInstallmentLevelDelinquency)," "),s(7),y(" ",u(185,141,"labels.inputs.Fund Source")," "),s(3),h("ngIf",o.loanDetails.fundName),s(2),h("ngIf",!o.loanDetails.fundName),s(6),y(" ",u(196,143,"labels.inputs.Interest Free Period"),""),s(4),y(" ",o.loanDetails.graceOnInterestCharged," "),s(6),y(" ",u(206,145,"labels.inputs.Interest Calculation Period"),""),s(4),y(" ",ze(210,147,o.loanDetails.interestCalculationPeriodType.value,"catalogs")," "),s(7),y(` - `,u(217,150,"labels.inputs.Allow Partial Interest Calculation with same as repayment"),""),s(4),y(" ",u(221,152,o.loanDetails.allowPartialPeriodInterestCalculation)," "),s(7),y("",u(228,154,"labels.inputs.Is interest recognition on disbursement date?"),":"),s(4),C(u(232,156,o.loanDetails.interestRecognitionOnDisbursementDate)),s(7),y(" ",u(239,158,"labels.inputs.Submitted on"),""),s(4),y(" ",u(243,160,o.loanDetails.timeline.submittedOnDate)," "),s(7),y(" ",u(250,162,"labels.inputs.Approved on"),""),s(4),y(" ",u(254,164,o.loanDetails.timeline.approvedOnDate)," "),s(7),y(" ",u(261,166,"labels.inputs.Disbursed on"),""),s(4),y(" ",u(265,168,o.loanDetails.timeline.actualDisbursementDate)," "),s(7),y(" ",u(272,170,"labels.inputs.Matures on"),""),s(4),y(" ",u(276,172,o.loanDetails.timeline.expectedMaturityDate)," "),s(4),h("ngIf",o.loanDetails.canDefineInstallmentAmount),s(2),h("ngIf",o.loanDetails.isTopup),s(2),h("ngIf",o.loanDetails.isTopup),s(2),h("ngIf",o.loanDetails.isTopup),s(5),y(" ",u(291,174,"labels.inputs.Recalculate Interest based on new terms"),""),s(4),y(" ",u(295,176,o.loanDetails.isInterestRecalculationEnabled)," "),s(7),y(" ",u(302,178,"labels.inputs.Days in year"),""),s(4),y(" ",ze(306,180,o.loanDetails.daysInYearType.value,"catalogs")," "),s(7),y(" ",u(313,183,"labels.inputs.Days in month"),""),s(4),y(" ",ze(317,185,o.loanDetails.daysInMonthType.value,"catalogs")," "),s(4),h("ngIf",o.loanDetails.isInterestRecalculationEnabled),s(2),h("ngIf",o.loanDetails.isInterestRecalculationEnabled),s(2),h("ngIf",o.loanDetails.isInterestRecalculationEnabled),s(2),h("ngIf",o.loanDetails.isInterestRecalculationEnabled&&o.loanDetails.interestRecalculationData.interestRecalculationCompoundingType.id!==0),s(2),h("ngIf",o.loanDetails.isVariableInstallmentsAllowed),s(2),h("ngIf",o.loanDetails.isVariableInstallmentsAllowed),s(2),h("ngIf",o.loanDetails&&o.loanDetails.delinquent&&o.loanDetails.delinquent.availableDisbursementAmountWithOverApplied!==void 0))},dependencies:[St,Vt,Dt,On,Pt,qa,pn,ns],styles:["table[_ngcontent-%COMP%]{width:100%}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return t})();var Rc=(()=>{class t{constructor(n,a,o){this.route=n,this.loansService=a,this.authenticationService=o;let c=this.authenticationService.getCredentials();this.username=c.username,this.entityId=this.route.parent.snapshot.params.loanId,this.route.data.subscribe(d=>{this.entityNotes=d.loanNotes})}ngOnInit(){this.route.parent.params.subscribe(n=>{this.entityId=n.loanId})}addNote(n){this.loansService.createLoanNote(this.entityId,n).subscribe(a=>{this.entityNotes.push({id:a.resourceId,createdByUsername:this.username,createdOn:new Date,note:n.note})})}editNote(n,a,o){this.loansService.editLoanNote(this.entityId,n,a).subscribe(()=>{this.entityNotes[o].note=a.note})}deleteNote(n,a){this.loansService.deleteLoanNote(this.entityId,n).subscribe(()=>{this.entityNotes.splice(a,1)})}static{this.\u0275fac=function(a){return new(a||t)(O(Ot),O(Tt),O(q1))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-notes-tab"]],decls:3,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(a,o){a&1&&(r(0,"mifosx-entity-notes-tab",0),e(1,` + `),s(9),y(" ",d(75,110,"labels.inputs.Interest Type")," "),s(4),y(" ",d(79,112,"labels.text."+o.loanDetails.interestType.value)," "),s(7),y("",d(86,114,"labels.inputs.Enable Down Payments"),":"),s(4),C(d(90,116,o.loanDetails.enableDownPayment)),s(7),y("",d(97,118,"labels.inputs.Loan Charge-off behaviour"),":"),s(4),C(ze(101,120,o.loanDetails.chargeOffBehaviour.value,"catalogs")),s(7),y(" ",d(108,123,"labels.inputs.Enable income capitalization"),""),s(4),y(" ",d(112,125,o.loanDetails.enableIncomeCapitalization)," "),s(4),h("ngIf",o.loanDetails.enableIncomeCapitalization),s(2),h("ngIf",o.loanDetails.enableIncomeCapitalization),s(2),h("ngIf",o.loanDetails.enableIncomeCapitalization),s(5),y(" ",d(125,127,"labels.inputs.Enable Buy down fee"),""),s(4),y(" ",d(129,129,o.loanDetails.enableBuyDownFee)," "),s(4),h("ngIf",o.loanDetails.enableBuyDownFee),s(2),h("ngIf",o.loanDetails.enableBuyDownFee),s(2),h("ngIf",o.loanDetails.enableBuyDownFee),s(2),h("ngIf",o.loanDetails.enableBuyDownFee),s(5),y(" ",d(144,131,"labels.inputs.Grace: On Principal Payment"),""),s(4),y(" ",o.loanDetails.graceOnPrincipalPayment," "),s(6),y(" ",d(154,133,"labels.inputs.Grace: On Interest Payment"),""),s(4),y(" ",o.loanDetails.graceOnInterestPayment," "),s(6),y(" ",d(164,135,"labels.inputs.Grace on Arrears Ageing"),""),s(4),y(" ",o.loanDetails.graceOnArrearsAgeing," "),s(6),y(" ",d(174,137,"labels.inputs.Enable installment level Delinquency")," "),s(4),y(" ",d(178,139,o.loanDetails.enableInstallmentLevelDelinquency)," "),s(7),y(" ",d(185,141,"labels.inputs.Fund Source")," "),s(3),h("ngIf",o.loanDetails.fundName),s(2),h("ngIf",!o.loanDetails.fundName),s(6),y(" ",d(196,143,"labels.inputs.Interest Free Period"),""),s(4),y(" ",o.loanDetails.graceOnInterestCharged," "),s(6),y(" ",d(206,145,"labels.inputs.Interest Calculation Period"),""),s(4),y(" ",ze(210,147,o.loanDetails.interestCalculationPeriodType.value,"catalogs")," "),s(7),y(` + `,d(217,150,"labels.inputs.Allow Partial Interest Calculation with same as repayment"),""),s(4),y(" ",d(221,152,o.loanDetails.allowPartialPeriodInterestCalculation)," "),s(7),y("",d(228,154,"labels.inputs.Is interest recognition on disbursement date?"),":"),s(4),C(d(232,156,o.loanDetails.interestRecognitionOnDisbursementDate)),s(7),y(" ",d(239,158,"labels.inputs.Submitted on"),""),s(4),y(" ",d(243,160,o.loanDetails.timeline.submittedOnDate)," "),s(7),y(" ",d(250,162,"labels.inputs.Approved on"),""),s(4),y(" ",d(254,164,o.loanDetails.timeline.approvedOnDate)," "),s(7),y(" ",d(261,166,"labels.inputs.Disbursed on"),""),s(4),y(" ",d(265,168,o.loanDetails.timeline.actualDisbursementDate)," "),s(7),y(" ",d(272,170,"labels.inputs.Matures on"),""),s(4),y(" ",d(276,172,o.loanDetails.timeline.expectedMaturityDate)," "),s(4),h("ngIf",o.loanDetails.canDefineInstallmentAmount),s(2),h("ngIf",o.loanDetails.isTopup),s(2),h("ngIf",o.loanDetails.isTopup),s(2),h("ngIf",o.loanDetails.isTopup),s(5),y(" ",d(291,174,"labels.inputs.Recalculate Interest based on new terms"),""),s(4),y(" ",d(295,176,o.loanDetails.isInterestRecalculationEnabled)," "),s(7),y(" ",d(302,178,"labels.inputs.Days in year"),""),s(4),y(" ",ze(306,180,o.loanDetails.daysInYearType.value,"catalogs")," "),s(7),y(" ",d(313,183,"labels.inputs.Days in month"),""),s(4),y(" ",ze(317,185,o.loanDetails.daysInMonthType.value,"catalogs")," "),s(4),h("ngIf",o.loanDetails.isInterestRecalculationEnabled),s(2),h("ngIf",o.loanDetails.isInterestRecalculationEnabled),s(2),h("ngIf",o.loanDetails.isInterestRecalculationEnabled),s(2),h("ngIf",o.loanDetails.isInterestRecalculationEnabled&&o.loanDetails.interestRecalculationData.interestRecalculationCompoundingType.id!==0),s(2),h("ngIf",o.loanDetails.isVariableInstallmentsAllowed),s(2),h("ngIf",o.loanDetails.isVariableInstallmentsAllowed),s(2),h("ngIf",o.loanDetails&&o.loanDetails.delinquent&&o.loanDetails.delinquent.availableDisbursementAmountWithOverApplied!==void 0))},dependencies:[St,Vt,Dt,On,Tt,qa,pn,Br],styles:["table[_ngcontent-%COMP%]{width:100%}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return t})();var Rc=(()=>{class t{constructor(n,a,o){this.route=n,this.loansService=a,this.authenticationService=o;let c=this.authenticationService.getCredentials();this.username=c.username,this.entityId=this.route.parent.snapshot.params.loanId,this.route.data.subscribe(u=>{this.entityNotes=u.loanNotes})}ngOnInit(){this.route.parent.params.subscribe(n=>{this.entityId=n.loanId})}addNote(n){this.loansService.createLoanNote(this.entityId,n).subscribe(a=>{this.entityNotes.push({id:a.resourceId,createdByUsername:this.username,createdOn:new Date,note:n.note})})}editNote(n,a,o){this.loansService.editLoanNote(this.entityId,n,a).subscribe(()=>{this.entityNotes[o].note=a.note})}deleteNote(n,a){this.loansService.deleteLoanNote(this.entityId,n).subscribe(()=>{this.entityNotes.splice(a,1)})}static{this.\u0275fac=function(a){return new(a||t)(O(Ot),O(Pt),O(q1))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-notes-tab"]],decls:3,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(a,o){a&1&&(r(0,"mifosx-entity-notes-tab",0),e(1,` `),l(),e(2,` -`)),a&2&&h("entityId",o.entityId)("entityNotes",o.entityNotes)("callbackAdd",o.addNote)("callbackEdit",o.editNote)("callbackDelete",o.deleteNote)},dependencies:[St,Dt,sf],encapsulation:2})}}return t})();var wo=Uint8Array,to=Uint16Array,dd=Int32Array,ud=new wo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fd=new wo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Cf=new wo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wf=function(t,i){for(var n=new to(31),a=0;a<31;++a)n[a]=i+=1<>1|(ai&21845)<<1,cr=(cr&52428)>>2|(cr&13107)<<2,cr=(cr&61680)>>4|(cr&3855)<<4,pd[ai]=((cr&65280)>>8|(cr&255)<<8)>>1;var cr,ai,l0=function(t,i,n){for(var a=t.length,o=0,c=new to(i);o>x]=v}else for(m=new to(a),o=0;o>15-t[o]);return m},Cl=new wo(288);for(ai=0;ai<144;++ai)Cl[ai]=8;var ai;for(ai=144;ai<256;++ai)Cl[ai]=9;var ai;for(ai=256;ai<280;++ai)Cl[ai]=7;var ai;for(ai=280;ai<288;++ai)Cl[ai]=8;var ai,Bc=new wo(32);for(ai=0;ai<32;++ai)Bc[ai]=5;var ai,Jv=l0(Cl,9,0);var Xv=l0(Bc,5,0);var If=function(t){return(t+7)/8|0},Qv=function(t,i,n){return(i==null||i<0)&&(i=0),(n==null||n>t.length)&&(n=t.length),new wo(t.subarray(i,n))};var pr=function(t,i,n){n<<=i&7;var a=i/8|0;t[a]|=n,t[a+1]|=n>>8},o0=function(t,i,n){n<<=i&7;var a=i/8|0;t[a]|=n,t[a+1]|=n>>8,t[a+2]|=n>>16},sd=function(t,i){for(var n=[],a=0;aL&&(L=c[a].s);var w=new to(L+1),z=md(n[S-1],w,0);if(z>i){var a=0,H=0,Z=z-i,j=1<i)H+=j-(1<>=Z;H>0;){var lt=c[a].s;w[lt]=0&&H;--a){var tt=c[a].s;w[tt]==i&&(--w[tt],++H)}z=i}return{t:new wo(w),l:z}},md=function(t,i,n){return t.s==-1?Math.max(md(t.l,i,n+1),md(t.r,i,n+1)):i[t.s]=n},Sf=function(t){for(var i=t.length;i&&!t[--i];);for(var n=new to(++i),a=0,o=t[0],c=1,d=function(x){n[a++]=x},m=1;m<=i;++m)if(t[m]==o&&m!=i)++c;else{if(!o&&c>2){for(;c>138;c-=138)d(32754);c>2&&(d(c>10?c-11<<5|28690:c-3<<5|12305),c=0)}else if(c>3){for(d(o),--c;c>6;c-=6)d(8304);c>2&&(d(c-3<<5|8208),c=0)}for(;c--;)d(o);c=1,o=t[m]}return{c:n.subarray(0,a),n:i}},r0=function(t,i){for(var n=0,a=0;a>8,t[o+2]=t[o]^255,t[o+3]=t[o+1]^255;for(var c=0;c4&&!xt[Cf[$-1]];--$);var at=v+5<<3,it=r0(o,Cl)+r0(c,Bc)+d,wt=r0(o,L)+r0(c,H)+d+14+3*$+r0(qt,xt)+2*qt[16]+3*qt[17]+7*qt[18];if(x>=0&&at<=it&&at<=wt)return Af(i,S,t.subarray(x,x+v));var Nt,kt,bt,Bt;if(pr(i,S,1+(wt15&&(pr(i,S,K[ut]>>5&127),S+=K[ut]>>12)}}else Nt=Jv,kt=Cl,bt=Xv,Bt=Bc;for(var ut=0;ut255){var X=st>>18&31;o0(i,S,Nt[X+257]),S+=kt[X+257],X>7&&(pr(i,S,st>>23&31),S+=ud[X]);var dt=st&31;o0(i,S,bt[dt]),S+=Bt[dt],dt>3&&(o0(i,S,st>>5&8191),S+=fd[dt])}else o0(i,S,Nt[st]),S+=kt[st]}return o0(i,S,Nt[256]),S+kt[256]},t5=new dd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Of=new wo(0),e5=function(t,i,n,a,o,c){var d=c.z||t.length,m=new wo(a+d+5*(1+Math.ceil(d/7e3))+o),x=m.subarray(a,m.length-o),v=c.l,S=(c.r||0)&7;if(i){S&&(x[0]=c.r>>3);for(var A=t5[i-1],L=A>>13,w=A&8191,z=(1<7e3||xt>24576)&&(Nt>423||!v)){S=Df(t,x,0,tt,It,Yt,ut,xt,$,Q-$,S),xt=qt=ut=0,$=Q;for(var kt=0;kt<286;++kt)It[kt]=0;for(var kt=0;kt<30;++kt)Yt[kt]=0}var bt=2,Bt=0,re=w,Kt=it-wt&32767;if(Nt>2&&at==lt(Q-Kt))for(var k=Math.min(L,Nt)-1,K=Math.min(32767,Q),X=Math.min(258,Nt);Kt<=K&&--re&&it!=wt;){if(t[Q+bt]==t[Q+bt-Kt]){for(var st=0;stbt){if(bt=st,Bt=Kt,st>k)break;for(var dt=Math.min(Kt,st-2),Ct=0,kt=0;ktCt&&(Ct=Ht,wt=Mt)}}}it=wt,wt=H[it],Kt+=it-wt&32767}if(Bt){tt[xt++]=268435456|cd[bt]<<18|yf[Bt];var ee=cd[bt]&31,_e=yf[Bt]&31;ut+=ud[ee]+fd[_e],++It[257+ee],++Yt[_e],B=Q+bt,++qt}else tt[xt++]=t[Q],++It[t[Q]]}}for(Q=Math.max(Q,B);Q=d&&(x[S/8|0]=v,Se=d),S=Af(x,S+1,t.subarray(Q,Se))}c.i=d}return Qv(m,0,a+If(S)+o)};var Mf=function(){var t=1,i=0;return{p:function(n){for(var a=t,o=i,c=n.length|0,d=0;d!=c;){for(var m=Math.min(d+2655,c);d>16),o=(o&65535)+15*(o>>16)}t=a,i=o},d:function(){return t%=65521,i%=65521,(t&255)<<24|(t&65280)<<8|(i&255)<<8|i>>8}}},n5=function(t,i,n,a,o){if(!o&&(o={l:1},i.dictionary)){var c=i.dictionary.subarray(-32768),d=new wo(c.length+t.length);d.set(c),d.set(t,c.length),t=d,o.w=c.length}return e5(t,i.level==null?6:i.level,i.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+i.mem,n,a,o)};var Ef=function(t,i,n){for(;n;++i)t[i]=n,n>>>=8};var i5=function(t,i){var n=i.level,a=n==0?0:n<6?1:n==9?3:2;if(t[0]=120,t[1]=a<<6|(i.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,i.dictionary){var o=Mf();o.p(i.dictionary),Ef(t,2,o.d())}};function jc(t,i){i||(i={});var n=Mf();n.p(t);var a=n5(t,i,i.dictionary?6:2,4);return i5(a,i),Ef(a,a.length-4,n.d()),a}var a5=typeof TextDecoder<"u"&&new TextDecoder,o5=0;try{a5.decode(Of,{stream:!0}),o5=1}catch{}function Lf(t){if(Array.isArray(t))return t}function Nf(t,i){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,o,c,d,m=[],x=!0,v=!1;try{if(c=(n=n.call(t)).next,i===0){if(Object(n)!==n)return;x=!1}else for(;!(x=(a=c.call(n)).done)&&(m.push(a.value),m.length!==i);x=!0);}catch(S){v=!0,o=S}finally{try{if(!x&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(v)throw o}}return m}}function hd(t,i){(i==null||i>t.length)&&(i=t.length);for(var n=0,a=Array(i);n{let t=new Uint8Array(4),i=new Uint32Array(t.buffer);return!((i[0]=1)&t[0])})(),_d={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},s0=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(i=l5,n={}){let a=!1;typeof i=="number"?i=new ArrayBuffer(i):(a=!0,this.lastWrittenByte=i.byteLength);let o=n.offset?n.offset>>>0:0,c=i.byteLength-o,d=o;(ArrayBuffer.isView(i)||i instanceof t)&&(i.byteLength!==i.buffer.byteLength&&(d=i.byteOffset+o),i=i.buffer),a?this.lastWrittenByte=c:this.lastWrittenByte=0,this.buffer=i,this.length=c,this.byteLength=c,this.byteOffset=d,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,d,c),this._mark=0,this._marks=[]}available(i=1){return this.offset+i<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(i=1){return this.offset+=i,this}back(i=1){return this.offset-=i,this}seek(i){return this.offset=i,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let i=this._marks.pop();if(i===void 0)throw new Error("Mark stack empty");return this.seek(i),this}rewind(){return this.offset=0,this}ensureAvailable(i=1){if(!this.available(i)){let a=(this.offset+i)*2,o=new Uint8Array(a);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=a,this.byteLength=a,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(i=1){return this.readArray(i,"uint8")}readArray(i,n){let a=_d[n].BYTES_PER_ELEMENT*i,o=this.byteOffset+this.offset,c=this.buffer.slice(o,o+a);if(this.littleEndian===s5&&n!=="uint8"&&n!=="int8"){let m=new Uint8Array(this.buffer.slice(o,o+a));m.reverse();let x=new _d[n](m.buffer);return this.offset+=a,x.reverse(),x}let d=new _d[n](c);return this.offset+=a,d}readInt16(){let i=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,i}readUint16(){let i=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,i}readInt32(){let i=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,i}readUint32(){let i=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat32(){let i=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat64(){let i=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,i}readBigInt64(){let i=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,i}readBigUint64(){let i=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,i}readChar(){return String.fromCharCode(this.readInt8())}readChars(i=1){let n="";for(let a=0;athis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function ps(t){let i=t.length;for(;--i>=0;)t[i]=0}var c5=0,yh=1,p5=2,m5=3,d5=258,Vd=29,S0=256,h0=S0+1+Vd,ls=30,Ud=19,Sh=2*h0+1,yl=15,vd=16,u5=7,Hd=256,Dh=16,wh=17,Ph=18,Ld=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Gc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),f5=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Th=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h5=512,dr=new Array((h0+2)*2);ps(dr);var d0=new Array(ls*2);ps(d0);var g0=new Array(h5);ps(g0);var x0=new Array(d5-m5+1);ps(x0);var Gd=new Array(Vd);ps(Gd);var Wc=new Array(ls);ps(Wc);function bd(t,i,n,a,o){this.static_tree=t,this.extra_bits=i,this.extra_base=n,this.elems=a,this.max_length=o,this.has_stree=t&&t.length}var Ih,Ah,Oh;function Cd(t,i){this.dyn_tree=t,this.max_code=0,this.stat_desc=i}var Mh=t=>t<256?g0[t]:g0[256+(t>>>7)],_0=(t,i)=>{t.pending_buf[t.pending++]=i&255,t.pending_buf[t.pending++]=i>>>8&255},Ha=(t,i,n)=>{t.bi_valid>vd-n?(t.bi_buf|=i<>vd-t.bi_valid,t.bi_valid+=n-vd):(t.bi_buf|=i<{Ha(t,n[i*2],n[i*2+1])},Eh=(t,i)=>{let n=0;do n|=t&1,t>>>=1,n<<=1;while(--i>0);return n>>>1},g5=t=>{t.bi_valid===16?(_0(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},x5=(t,i)=>{let n=i.dyn_tree,a=i.max_code,o=i.stat_desc.static_tree,c=i.stat_desc.has_stree,d=i.stat_desc.extra_bits,m=i.stat_desc.extra_base,x=i.stat_desc.max_length,v,S,A,L,w,z,H=0;for(L=0;L<=yl;L++)t.bl_count[L]=0;for(n[t.heap[t.heap_max]*2+1]=0,v=t.heap_max+1;vx&&(L=x,H++),n[S*2+1]=L,!(S>a)&&(t.bl_count[L]++,w=0,S>=m&&(w=d[S-m]),z=n[S*2],t.opt_len+=z*(L+w),c&&(t.static_len+=z*(o[S*2+1]+w)));if(H!==0){do{for(L=x-1;t.bl_count[L]===0;)L--;t.bl_count[L]--,t.bl_count[L+1]+=2,t.bl_count[x]--,H-=2}while(H>0);for(L=x;L!==0;L--)for(S=t.bl_count[L];S!==0;)A=t.heap[--v],!(A>a)&&(n[A*2+1]!==L&&(t.opt_len+=(L-n[A*2+1])*n[A*2],n[A*2+1]=L),S--)}},Lh=(t,i,n)=>{let a=new Array(yl+1),o=0,c,d;for(c=1;c<=yl;c++)o=o+n[c-1]<<1,a[c]=o;for(d=0;d<=i;d++){let m=t[d*2+1];m!==0&&(t[d*2]=Eh(a[m]++,m))}},_5=()=>{let t,i,n,a,o,c=new Array(yl+1);for(n=0,a=0;a>=7;a{let i;for(i=0;i{t.bi_valid>8?_0(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Bf=(t,i,n,a)=>{let o=i*2,c=n*2;return t[o]{let a=t.heap[n],o=n<<1;for(;o<=t.heap_len&&(o{let a,o,c=0,d,m;if(t.sym_next!==0)do a=t.pending_buf[t.sym_buf+c++]&255,a+=(t.pending_buf[t.sym_buf+c++]&255)<<8,o=t.pending_buf[t.sym_buf+c++],a===0?Vo(t,o,i):(d=x0[o],Vo(t,d+S0+1,i),m=Ld[d],m!==0&&(o-=Gd[d],Ha(t,o,m)),a--,d=Mh(a),Vo(t,d,n),m=Gc[d],m!==0&&(a-=Wc[d],Ha(t,a,m)));while(c{let n=i.dyn_tree,a=i.stat_desc.static_tree,o=i.stat_desc.has_stree,c=i.stat_desc.elems,d,m,x=-1,v;for(t.heap_len=0,t.heap_max=Sh,d=0;d>1;d>=1;d--)yd(t,n,d);v=c;do d=t.heap[1],t.heap[1]=t.heap[t.heap_len--],yd(t,n,1),m=t.heap[1],t.heap[--t.heap_max]=d,t.heap[--t.heap_max]=m,n[v*2]=n[d*2]+n[m*2],t.depth[v]=(t.depth[d]>=t.depth[m]?t.depth[d]:t.depth[m])+1,n[d*2+1]=n[m*2+1]=v,t.heap[1]=v++,yd(t,n,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],x5(t,i),Lh(n,x,t.bl_count)},qf=(t,i,n)=>{let a,o=-1,c,d=i[0*2+1],m=0,x=7,v=4;for(d===0&&(x=138,v=3),i[(n+1)*2+1]=65535,a=0;a<=n;a++)c=d,d=i[(a+1)*2+1],!(++m{let a,o=-1,c,d=i[0*2+1],m=0,x=7,v=4;for(d===0&&(x=138,v=3),a=0;a<=n;a++)if(c=d,d=i[(a+1)*2+1],!(++m{let i;for(qf(t,t.dyn_ltree,t.l_desc.max_code),qf(t,t.dyn_dtree,t.d_desc.max_code),Nd(t,t.bl_desc),i=Ud-1;i>=3&&t.bl_tree[Th[i]*2+1]===0;i--);return t.opt_len+=3*(i+1)+5+5+4,i},b5=(t,i,n,a)=>{let o;for(Ha(t,i-257,5),Ha(t,n-1,5),Ha(t,a-4,4),o=0;o{let i=4093624447,n;for(n=0;n<=31;n++,i>>>=1)if(i&1&&t.dyn_ltree[n*2]!==0)return 0;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return 1;for(n=32;n{Vf||(_5(),Vf=!0),t.l_desc=new Cd(t.dyn_ltree,Ih),t.d_desc=new Cd(t.dyn_dtree,Ah),t.bl_desc=new Cd(t.bl_tree,Oh),t.bi_buf=0,t.bi_valid=0,Nh(t)},kh=(t,i,n,a)=>{Ha(t,(c5<<1)+(a?1:0),3),Fh(t),_0(t,n),_0(t,~n),n&&t.pending_buf.set(t.window.subarray(i,i+n),t.pending),t.pending+=n},S5=t=>{Ha(t,yh<<1,3),Vo(t,Hd,dr),g5(t)},D5=(t,i,n,a)=>{let o,c,d=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=C5(t)),Nd(t,t.l_desc),Nd(t,t.d_desc),d=v5(t),o=t.opt_len+3+7>>>3,c=t.static_len+3+7>>>3,c<=o&&(o=c)):o=c=n+5,n+4<=o&&i!==-1?kh(t,i,n,a):t.strategy===4||c===o?(Ha(t,(yh<<1)+(a?1:0),3),jf(t,dr,d0)):(Ha(t,(p5<<1)+(a?1:0),3),b5(t,t.l_desc.max_code+1,t.d_desc.max_code+1,d+1),jf(t,t.dyn_ltree,t.dyn_dtree)),Nh(t),a&&Fh(t)},w5=(t,i,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=i,t.pending_buf[t.sym_buf+t.sym_next++]=i>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,i===0?t.dyn_ltree[n*2]++:(t.matches++,i--,t.dyn_ltree[(x0[n]+S0+1)*2]++,t.dyn_dtree[Mh(i)*2]++),t.sym_next===t.sym_end),P5=y5,T5=kh,I5=D5,A5=w5,O5=S5,M5={_tr_init:P5,_tr_stored_block:T5,_tr_flush_block:I5,_tr_tally:A5,_tr_align:O5},E5=(t,i,n,a)=>{let o=t&65535|0,c=t>>>16&65535|0,d=0;for(;n!==0;){d=n>2e3?2e3:n,n-=d;do o=o+i[a++]|0,c=c+o|0;while(--d);o%=65521,c%=65521}return o|c<<16|0},v0=E5,L5=()=>{let t,i=[];for(var n=0;n<256;n++){t=n;for(var a=0;a<8;a++)t=t&1?3988292384^t>>>1:t>>>1;i[n]=t}return i},N5=new Uint32Array(L5()),F5=(t,i,n,a)=>{let o=N5,c=a+n;t^=-1;for(let d=a;d>>8^o[(t^i[d])&255];return t^-1},ua=F5,wl={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ms={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:k5,_tr_stored_block:Fd,_tr_flush_block:R5,_tr_tally:Vr,_tr_align:B5}=M5,{Z_NO_FLUSH:Ur,Z_PARTIAL_FLUSH:j5,Z_FULL_FLUSH:q5,Z_FINISH:fo,Z_BLOCK:Uf,Z_OK:ba,Z_STREAM_END:Hf,Z_STREAM_ERROR:Uo,Z_DATA_ERROR:z5,Z_BUF_ERROR:Sd,Z_DEFAULT_COMPRESSION:V5,Z_FILTERED:U5,Z_HUFFMAN_ONLY:qc,Z_RLE:H5,Z_FIXED:G5,Z_DEFAULT_STRATEGY:W5,Z_UNKNOWN:$5,Z_DEFLATED:Zc}=ms,Y5=9,Z5=15,K5=8,J5=29,X5=256,kd=X5+1+J5,Q5=30,tb=19,eb=2*kd+1,nb=15,Jn=3,zr=258,Ho=zr+Jn+1,ib=32,ss=42,Wd=57,Rd=69,Bd=73,jd=91,qd=103,Sl=113,p0=666,Na=1,ds=2,Pl=3,us=4,ab=3,Dl=(t,i)=>(t.msg=wl[i],i),Gf=t=>t*2-(t>4?9:0),qr=t=>{let i=t.length;for(;--i>=0;)t[i]=0},ob=t=>{let i,n,a,o=t.w_size;i=t.hash_size,a=i;do n=t.head[--a],t.head[a]=n>=o?n-o:0;while(--i);i=o,a=i;do n=t.prev[--a],t.prev[a]=n>=o?n-o:0;while(--i)},rb=(t,i,n)=>(i<{let i=t.state,n=i.pending;n>t.avail_out&&(n=t.avail_out),n!==0&&(t.output.set(i.pending_buf.subarray(i.pending_out,i.pending_out+n),t.next_out),t.next_out+=n,i.pending_out+=n,t.total_out+=n,t.avail_out-=n,i.pending-=n,i.pending===0&&(i.pending_out=0))},no=(t,i)=>{R5(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,i),t.block_start=t.strstart,eo(t.strm)},oi=(t,i)=>{t.pending_buf[t.pending++]=i},c0=(t,i)=>{t.pending_buf[t.pending++]=i>>>8&255,t.pending_buf[t.pending++]=i&255},zd=(t,i,n,a)=>{let o=t.avail_in;return o>a&&(o=a),o===0?0:(t.avail_in-=o,i.set(t.input.subarray(t.next_in,t.next_in+o),n),t.state.wrap===1?t.adler=v0(t.adler,i,o,n):t.state.wrap===2&&(t.adler=ua(t.adler,i,o,n)),t.next_in+=o,t.total_in+=o,o)},Rh=(t,i)=>{let n=t.max_chain_length,a=t.strstart,o,c,d=t.prev_length,m=t.nice_match,x=t.strstart>t.w_size-Ho?t.strstart-(t.w_size-Ho):0,v=t.window,S=t.w_mask,A=t.prev,L=t.strstart+zr,w=v[a+d-1],z=v[a+d];t.prev_length>=t.good_match&&(n>>=2),m>t.lookahead&&(m=t.lookahead);do if(o=i,!(v[o+d]!==z||v[o+d-1]!==w||v[o]!==v[a]||v[++o]!==v[a+1])){a+=2,o++;do;while(v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&ad){if(t.match_start=i,d=c,c>=m)break;w=v[a+d-1],z=v[a+d]}}while((i=A[i&S])>x&&--n!==0);return d<=t.lookahead?d:t.lookahead},cs=t=>{let i=t.w_size,n,a,o;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=i+(i-Ho)&&(t.window.set(t.window.subarray(i,i+i-a),0),t.match_start-=i,t.strstart-=i,t.block_start-=i,t.insert>t.strstart&&(t.insert=t.strstart),ob(t),a+=i),t.strm.avail_in===0)break;if(n=zd(t.strm,t.window,t.strstart+t.lookahead,a),t.lookahead+=n,t.lookahead+t.insert>=Jn)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=Hr(t,t.ins_h,t.window[o+1]);t.insert&&(t.ins_h=Hr(t,t.ins_h,t.window[o+Jn-1]),t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert{let n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a,o,c,d=0,m=t.strm.avail_in;do{if(a=65535,c=t.bi_valid+42>>3,t.strm.avail_outo+t.strm.avail_in&&(a=o+t.strm.avail_in),a>c&&(a=c),a>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,eo(t.strm),o&&(o>a&&(o=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+o),t.strm.next_out),t.strm.next_out+=o,t.strm.avail_out-=o,t.strm.total_out+=o,t.block_start+=o,a-=o),a&&(zd(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(d===0);return m-=t.strm.avail_in,m&&(m>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=m&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-m,t.strm.next_in),t.strstart),t.strstart+=m,t.insert+=m>t.w_size-t.insert?t.w_size-t.insert:m),t.block_start=t.strstart),t.high_waterc&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,c+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),c>t.strm.avail_in&&(c=t.strm.avail_in),c&&(zd(t.strm,t.window,t.strstart,c),t.strstart+=c,t.insert+=c>t.w_size-t.insert?t.w_size-t.insert:c),t.high_water>3,c=t.pending_buf_size-c>65535?65535:t.pending_buf_size-c,n=c>t.w_size?t.w_size:c,o=t.strstart-t.block_start,(o>=n||(o||i===fo)&&i!==Ur&&t.strm.avail_in===0&&o<=c)&&(a=o>c?c:o,d=i===fo&&t.strm.avail_in===0&&a===o?1:0,Fd(t,t.block_start,a,d),t.block_start+=a,eo(t.strm)),d?Pl:Na)},Dd=(t,i)=>{let n,a;for(;;){if(t.lookahead=Jn&&(t.ins_h=Hr(t,t.ins_h,t.window[t.strstart+Jn-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),n!==0&&t.strstart-n<=t.w_size-Ho&&(t.match_length=Rh(t,n)),t.match_length>=Jn)if(a=Vr(t,t.strstart-t.match_start,t.match_length-Jn),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=Jn){t.match_length--;do t.strstart++,t.ins_h=Hr(t,t.ins_h,t.window[t.strstart+Jn-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Hr(t,t.ins_h,t.window[t.strstart+1]);else a=Vr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(a&&(no(t,!1),t.strm.avail_out===0))return Na}return t.insert=t.strstart{let n,a,o;for(;;){if(t.lookahead=Jn&&(t.ins_h=Hr(t,t.ins_h,t.window[t.strstart+Jn-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=Jn-1,n!==0&&t.prev_length4096)&&(t.match_length=Jn-1)),t.prev_length>=Jn&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-Jn,a=Vr(t,t.strstart-1-t.prev_match,t.prev_length-Jn),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=o&&(t.ins_h=Hr(t,t.ins_h,t.window[t.strstart+Jn-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=Jn-1,t.strstart++,a&&(no(t,!1),t.strm.avail_out===0))return Na}else if(t.match_available){if(a=Vr(t,0,t.window[t.strstart-1]),a&&no(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Na}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(a=Vr(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let n,a,o,c,d=t.window;for(;;){if(t.lookahead<=zr){if(cs(t),t.lookahead<=zr&&i===Ur)return Na;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=Jn&&t.strstart>0&&(o=t.strstart-1,a=d[o],a===d[++o]&&a===d[++o]&&a===d[++o])){c=t.strstart+zr;do;while(a===d[++o]&&a===d[++o]&&a===d[++o]&&a===d[++o]&&a===d[++o]&&a===d[++o]&&a===d[++o]&&a===d[++o]&&ot.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=Jn?(n=Vr(t,1,t.match_length-Jn),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Vr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(no(t,!1),t.strm.avail_out===0))return Na}return t.insert=0,i===fo?(no(t,!0),t.strm.avail_out===0?Pl:us):t.sym_next&&(no(t,!1),t.strm.avail_out===0)?Na:ds},sb=(t,i)=>{let n;for(;;){if(t.lookahead===0&&(cs(t),t.lookahead===0)){if(i===Ur)return Na;break}if(t.match_length=0,n=Vr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(no(t,!1),t.strm.avail_out===0))return Na}return t.insert=0,i===fo?(no(t,!0),t.strm.avail_out===0?Pl:us):t.sym_next&&(no(t,!1),t.strm.avail_out===0)?Na:ds};function zo(t,i,n,a,o){this.good_length=t,this.max_lazy=i,this.nice_length=n,this.max_chain=a,this.func=o}var m0=[new zo(0,0,0,0,Bh),new zo(4,4,8,4,Dd),new zo(4,5,16,8,Dd),new zo(4,6,32,32,Dd),new zo(4,4,16,16,os),new zo(8,16,32,32,os),new zo(8,16,128,128,os),new zo(8,32,128,256,os),new zo(32,128,258,1024,os),new zo(32,258,258,4096,os)],cb=t=>{t.window_size=2*t.w_size,qr(t.head),t.max_lazy_match=m0[t.level].max_lazy,t.good_match=m0[t.level].good_length,t.nice_match=m0[t.level].nice_length,t.max_chain_length=m0[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=Jn-1,t.match_available=0,t.ins_h=0};function pb(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Zc,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(eb*2),this.dyn_dtree=new Uint16Array((2*Q5+1)*2),this.bl_tree=new Uint16Array((2*tb+1)*2),qr(this.dyn_ltree),qr(this.dyn_dtree),qr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(nb+1),this.heap=new Uint16Array(2*kd+1),qr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*kd+1),qr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var D0=t=>{if(!t)return 1;let i=t.state;return!i||i.strm!==t||i.status!==ss&&i.status!==Wd&&i.status!==Rd&&i.status!==Bd&&i.status!==jd&&i.status!==qd&&i.status!==Sl&&i.status!==p0?1:0},jh=t=>{if(D0(t))return Dl(t,Uo);t.total_in=t.total_out=0,t.data_type=$5;let i=t.state;return i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap===2?Wd:i.wrap?ss:Sl,t.adler=i.wrap===2?0:1,i.last_flush=-2,k5(i),ba},qh=t=>{let i=jh(t);return i===ba&&cb(t.state),i},mb=(t,i)=>D0(t)||t.state.wrap!==2?Uo:(t.state.gzhead=i,ba),zh=(t,i,n,a,o,c)=>{if(!t)return Uo;let d=1;if(i===V5&&(i=6),a<0?(d=0,a=-a):a>15&&(d=2,a-=16),o<1||o>Y5||n!==Zc||a<8||a>15||i<0||i>9||c<0||c>G5||a===8&&d!==1)return Dl(t,Uo);a===8&&(a=9);let m=new pb;return t.state=m,m.strm=t,m.status=ss,m.wrap=d,m.gzhead=null,m.w_bits=a,m.w_size=1<zh(t,i,Zc,Z5,K5,W5),ub=(t,i)=>{if(D0(t)||i>Uf||i<0)return t?Dl(t,Uo):Uo;let n=t.state;if(!t.output||t.avail_in!==0&&!t.input||n.status===p0&&i!==fo)return Dl(t,t.avail_out===0?Sd:Uo);let a=n.last_flush;if(n.last_flush=i,n.pending!==0){if(eo(t),t.avail_out===0)return n.last_flush=-1,ba}else if(t.avail_in===0&&Gf(i)<=Gf(a)&&i!==fo)return Dl(t,Sd);if(n.status===p0&&t.avail_in!==0)return Dl(t,Sd);if(n.status===ss&&n.wrap===0&&(n.status=Sl),n.status===ss){let o=Zc+(n.w_bits-8<<4)<<8,c=-1;if(n.strategy>=qc||n.level<2?c=0:n.level<6?c=1:n.level===6?c=2:c=3,o|=c<<6,n.strstart!==0&&(o|=ib),o+=31-o%31,c0(n,o),n.strstart!==0&&(c0(n,t.adler>>>16),c0(n,t.adler&65535)),t.adler=1,n.status=Sl,eo(t),n.pending!==0)return n.last_flush=-1,ba}if(n.status===Wd){if(t.adler=0,oi(n,31),oi(n,139),oi(n,8),n.gzhead)oi(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),oi(n,n.gzhead.time&255),oi(n,n.gzhead.time>>8&255),oi(n,n.gzhead.time>>16&255),oi(n,n.gzhead.time>>24&255),oi(n,n.level===9?2:n.strategy>=qc||n.level<2?4:0),oi(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(oi(n,n.gzhead.extra.length&255),oi(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=ua(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Rd;else if(oi(n,0),oi(n,0),oi(n,0),oi(n,0),oi(n,0),oi(n,n.level===9?2:n.strategy>=qc||n.level<2?4:0),oi(n,ab),n.status=Sl,eo(t),n.pending!==0)return n.last_flush=-1,ba}if(n.status===Rd){if(n.gzhead.extra){let o=n.pending,c=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+c>n.pending_buf_size;){let m=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+m),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>o&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),n.gzindex+=m,eo(t),n.pending!==0)return n.last_flush=-1,ba;o=0,c-=m}let d=new Uint8Array(n.gzhead.extra);n.pending_buf.set(d.subarray(n.gzindex,n.gzindex+c),n.pending),n.pending+=c,n.gzhead.hcrc&&n.pending>o&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),n.gzindex=0}n.status=Bd}if(n.status===Bd){if(n.gzhead.name){let o=n.pending,c;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>o&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),eo(t),n.pending!==0)return n.last_flush=-1,ba;o=0}n.gzindexo&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),n.gzindex=0}n.status=jd}if(n.status===jd){if(n.gzhead.comment){let o=n.pending,c;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>o&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),eo(t),n.pending!==0)return n.last_flush=-1,ba;o=0}n.gzindexo&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o))}n.status=qd}if(n.status===qd){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(eo(t),n.pending!==0))return n.last_flush=-1,ba;oi(n,t.adler&255),oi(n,t.adler>>8&255),t.adler=0}if(n.status=Sl,eo(t),n.pending!==0)return n.last_flush=-1,ba}if(t.avail_in!==0||n.lookahead!==0||i!==Ur&&n.status!==p0){let o=n.level===0?Bh(n,i):n.strategy===qc?sb(n,i):n.strategy===H5?lb(n,i):m0[n.level].func(n,i);if((o===Pl||o===us)&&(n.status=p0),o===Na||o===Pl)return t.avail_out===0&&(n.last_flush=-1),ba;if(o===ds&&(i===j5?B5(n):i!==Uf&&(Fd(n,0,0,!1),i===q5&&(qr(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),eo(t),t.avail_out===0))return n.last_flush=-1,ba}return i!==fo?ba:n.wrap<=0?Hf:(n.wrap===2?(oi(n,t.adler&255),oi(n,t.adler>>8&255),oi(n,t.adler>>16&255),oi(n,t.adler>>24&255),oi(n,t.total_in&255),oi(n,t.total_in>>8&255),oi(n,t.total_in>>16&255),oi(n,t.total_in>>24&255)):(c0(n,t.adler>>>16),c0(n,t.adler&65535)),eo(t),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?ba:Hf)},fb=t=>{if(D0(t))return Uo;let i=t.state.status;return t.state=null,i===Sl?Dl(t,z5):ba},hb=(t,i)=>{let n=i.length;if(D0(t))return Uo;let a=t.state,o=a.wrap;if(o===2||o===1&&a.status!==ss||a.lookahead)return Uo;if(o===1&&(t.adler=v0(t.adler,i,n,0)),a.wrap=0,n>=a.w_size){o===0&&(qr(a.head),a.strstart=0,a.block_start=0,a.insert=0);let x=new Uint8Array(a.w_size);x.set(i.subarray(n-a.w_size,n),0),i=x,n=a.w_size}let c=t.avail_in,d=t.next_in,m=t.input;for(t.avail_in=n,t.next_in=0,t.input=i,cs(a);a.lookahead>=Jn;){let x=a.strstart,v=a.lookahead-(Jn-1);do a.ins_h=Hr(a,a.ins_h,a.window[x+Jn-1]),a.prev[x&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=x,x++;while(--v);a.strstart=x,a.lookahead=Jn-1,cs(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=Jn-1,a.match_available=0,t.next_in=d,t.input=m,t.avail_in=c,a.wrap=o,ba},gb=db,xb=zh,_b=qh,vb=jh,bb=mb,Cb=ub,yb=fb,Sb=hb,Db="pako deflate (from Nodeca project)",u0={deflateInit:gb,deflateInit2:xb,deflateReset:_b,deflateResetKeep:vb,deflateSetHeader:bb,deflate:Cb,deflateEnd:yb,deflateSetDictionary:Sb,deflateInfo:Db},wb=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),Pb=function(t){let i=Array.prototype.slice.call(arguments,1);for(;i.length;){let n=i.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let a in n)wb(n,a)&&(t[a]=n[a])}}return t},Tb=t=>{let i=0;for(let a=0,o=t.length;a=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;b0[254]=b0[254]=1;var Ib=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let i,n,a,o,c,d=t.length,m=0;for(o=0;o>>6,i[c++]=128|n&63):n<65536?(i[c++]=224|n>>>12,i[c++]=128|n>>>6&63,i[c++]=128|n&63):(i[c++]=240|n>>>18,i[c++]=128|n>>>12&63,i[c++]=128|n>>>6&63,i[c++]=128|n&63);return i},Ab=(t,i)=>{if(i<65534&&t.subarray&&Vh)return String.fromCharCode.apply(null,t.length===i?t:t.subarray(0,i));let n="";for(let a=0;a{let n=i||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,i));let a,o,c=new Array(n*2);for(o=0,a=0;a4){c[o++]=65533,a+=m-1;continue}for(d&=m===2?31:m===3?15:7;m>1&&a1){c[o++]=65533;continue}d<65536?c[o++]=d:(d-=65536,c[o++]=55296|d>>10&1023,c[o++]=56320|d&1023)}return Ab(c,o)},Mb=(t,i)=>{i=i||t.length,i>t.length&&(i=t.length);let n=i-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?i:n+b0[t[n]]>i?n:i},C0={string2buf:Ib,buf2string:Ob,utf8border:Mb};function Eb(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Uh=Eb,Hh=Object.prototype.toString,{Z_NO_FLUSH:Lb,Z_SYNC_FLUSH:Nb,Z_FULL_FLUSH:Fb,Z_FINISH:kb,Z_OK:$c,Z_STREAM_END:Rb,Z_DEFAULT_COMPRESSION:Bb,Z_DEFAULT_STRATEGY:jb,Z_DEFLATED:qb}=ms;function w0(t){this.options=Kc.assign({level:Bb,method:qb,chunkSize:16384,windowBits:15,memLevel:8,strategy:jb},t||{});let i=this.options;i.raw&&i.windowBits>0?i.windowBits=-i.windowBits:i.gzip&&i.windowBits>0&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Uh,this.strm.avail_out=0;let n=u0.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(n!==$c)throw new Error(wl[n]);if(i.header&&u0.deflateSetHeader(this.strm,i.header),i.dictionary){let a;if(typeof i.dictionary=="string"?a=C0.string2buf(i.dictionary):Hh.call(i.dictionary)==="[object ArrayBuffer]"?a=new Uint8Array(i.dictionary):a=i.dictionary,n=u0.deflateSetDictionary(this.strm,a),n!==$c)throw new Error(wl[n]);this._dict_set=!0}}w0.prototype.push=function(t,i){let n=this.strm,a=this.options.chunkSize,o,c;if(this.ended)return!1;for(i===~~i?c=i:c=i===!0?kb:Lb,typeof t=="string"?n.input=C0.string2buf(t):Hh.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),(c===Nb||c===Fb)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(o=u0.deflate(n,c),o===Rb)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),o=u0.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===$c;if(n.avail_out===0){this.onData(n.output);continue}if(c>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};w0.prototype.onData=function(t){this.chunks.push(t)};w0.prototype.onEnd=function(t){t===$c&&(this.result=Kc.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function $d(t,i){let n=new w0(i);if(n.push(t,!0),n.err)throw n.msg||wl[n.err];return n.result}function zb(t,i){return i=i||{},i.raw=!0,$d(t,i)}function Vb(t,i){return i=i||{},i.gzip=!0,$d(t,i)}var Ub=w0,Hb=$d,Gb=zb,Wb=Vb,$b=ms,Yb={Deflate:Ub,deflate:Hb,deflateRaw:Gb,gzip:Wb,constants:$b},zc=16209,Zb=16191,Kb=function(i,n){let a,o,c,d,m,x,v,S,A,L,w,z,H,Z,j,rt,lt,tt,It,Yt,qt,ut,Q,xt,B=i.state;a=i.next_in,Q=i.input,o=a+(i.avail_in-5),c=i.next_out,xt=i.output,d=c-(n-i.avail_out),m=c+(i.avail_out-257),x=B.dmax,v=B.wsize,S=B.whave,A=B.wnext,L=B.window,w=B.hold,z=B.bits,H=B.lencode,Z=B.distcode,j=(1<>>24,w>>>=tt,z-=tt,tt=lt>>>16&255,tt===0)xt[c++]=lt&65535;else if(tt&16){It=lt&65535,tt&=15,tt&&(z>>=tt,z-=tt),z<15&&(w+=Q[a++]<>>24,w>>>=tt,z-=tt,tt=lt>>>16&255,tt&16){if(Yt=lt&65535,tt&=15,zx){i.msg="invalid distance too far back",B.mode=zc;break t}if(w>>>=tt,z-=tt,tt=c-d,Yt>tt){if(tt=Yt-tt,tt>S&&B.sane){i.msg="invalid distance too far back",B.mode=zc;break t}if(qt=0,ut=L,A===0){if(qt+=v-tt,tt2;)xt[c++]=ut[qt++],xt[c++]=ut[qt++],xt[c++]=ut[qt++],It-=3;It&&(xt[c++]=ut[qt++],It>1&&(xt[c++]=ut[qt++]))}else{qt=c-Yt;do xt[c++]=xt[qt++],xt[c++]=xt[qt++],xt[c++]=xt[qt++],It-=3;while(It>2);It&&(xt[c++]=xt[qt++],It>1&&(xt[c++]=xt[qt++]))}}else if((tt&64)===0){lt=Z[(lt&65535)+(w&(1<>3,a-=It,z-=It<<3,w&=(1<{let x=m.bits,v=0,S=0,A=0,L=0,w=0,z=0,H=0,Z=0,j=0,rt=0,lt,tt,It,Yt,qt,ut=null,Q,xt=new Uint16Array(rs+1),B=new Uint16Array(rs+1),$=null,at,it,wt;for(v=0;v<=rs;v++)xt[v]=0;for(S=0;S=1&&xt[L]===0;L--);if(w>L&&(w=L),L===0)return o[c++]=1<<24|64<<16|0,o[c++]=1<<24|64<<16|0,m.bits=1,0;for(A=1;A0&&(t===Yf||L!==1))return-1;for(B[1]=0,v=1;vWf||t===Zf&&j>$f)return 1;for(;;){at=v-H,d[S]+1=Q?(it=$[d[S]-Q],wt=ut[d[S]-Q]):(it=96,wt=0),lt=1<>H)+tt]=at<<24|it<<16|wt|0;while(tt!==0);for(lt=1<>=1;if(lt!==0?(rt&=lt-1,rt+=lt):rt=0,S++,--xt[v]===0){if(v===L)break;v=i[n+d[S]]}if(v>w&&(rt&Yt)!==It){for(H===0&&(H=w),qt+=A,z=v-H,Z=1<Wf||t===Zf&&j>$f)return 1;It=rt&Yt,o[It]=w<<24|z<<16|qt-c|0}}return rt!==0&&(o[qt+rt]=v-H<<24|64<<16|0),m.bits=w,0},f0=e3,n3=0,Gh=1,Wh=2,{Z_FINISH:Kf,Z_BLOCK:i3,Z_TREES:Vc,Z_OK:Tl,Z_STREAM_END:a3,Z_NEED_DICT:o3,Z_STREAM_ERROR:ho,Z_DATA_ERROR:$h,Z_MEM_ERROR:Yh,Z_BUF_ERROR:r3,Z_DEFLATED:Jf}=ms,Jc=16180,Xf=16181,Qf=16182,th=16183,eh=16184,nh=16185,ih=16186,ah=16187,oh=16188,rh=16189,Yc=16190,mr=16191,Pd=16192,lh=16193,Td=16194,sh=16195,ch=16196,ph=16197,mh=16198,Uc=16199,Hc=16200,dh=16201,uh=16202,fh=16203,hh=16204,gh=16205,Id=16206,xh=16207,_h=16208,Ai=16209,Zh=16210,Kh=16211,l3=852,s3=592,c3=15,p3=c3,vh=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function m3(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Il=t=>{if(!t)return 1;let i=t.state;return!i||i.strm!==t||i.modeKh?1:0},Jh=t=>{if(Il(t))return ho;let i=t.state;return t.total_in=t.total_out=i.total=0,t.msg="",i.wrap&&(t.adler=i.wrap&1),i.mode=Jc,i.last=0,i.havedict=0,i.flags=-1,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(l3),i.distcode=i.distdyn=new Int32Array(s3),i.sane=1,i.back=-1,Tl},Xh=t=>{if(Il(t))return ho;let i=t.state;return i.wsize=0,i.whave=0,i.wnext=0,Jh(t)},Qh=(t,i)=>{let n;if(Il(t))return ho;let a=t.state;return i<0?(n=0,i=-i):(n=(i>>4)+5,i<48&&(i&=15)),i&&(i<8||i>15)?ho:(a.window!==null&&a.wbits!==i&&(a.window=null),a.wrap=n,a.wbits=i,Xh(t))},t2=(t,i)=>{if(!t)return ho;let n=new m3;t.state=n,n.strm=t,n.window=null,n.mode=Jc;let a=Qh(t,i);return a!==Tl&&(t.state=null),a},d3=t=>t2(t,p3),bh=!0,Ad,Od,u3=t=>{if(bh){Ad=new Int32Array(512),Od=new Int32Array(32);let i=0;for(;i<144;)t.lens[i++]=8;for(;i<256;)t.lens[i++]=9;for(;i<280;)t.lens[i++]=7;for(;i<288;)t.lens[i++]=8;for(f0(Gh,t.lens,0,288,Ad,0,t.work,{bits:9}),i=0;i<32;)t.lens[i++]=5;f0(Wh,t.lens,0,32,Od,0,t.work,{bits:5}),bh=!1}t.lencode=Ad,t.lenbits=9,t.distcode=Od,t.distbits=5},e2=(t,i,n,a)=>{let o,c=t.state;return c.window===null&&(c.wsize=1<=c.wsize?(c.window.set(i.subarray(n-c.wsize,n),0),c.wnext=0,c.whave=c.wsize):(o=c.wsize-c.wnext,o>a&&(o=a),c.window.set(i.subarray(n-a,n-a+o),c.wnext),a-=o,a?(c.window.set(i.subarray(n-a,n),0),c.wnext=a,c.whave=c.wsize):(c.wnext+=o,c.wnext===c.wsize&&(c.wnext=0),c.whave{let n,a,o,c,d,m,x,v,S,A,L,w,z,H,Z=0,j,rt,lt,tt,It,Yt,qt,ut,Q=new Uint8Array(4),xt,B,$=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Il(t)||!t.output||!t.input&&t.avail_in!==0)return ho;n=t.state,n.mode===mr&&(n.mode=Pd),d=t.next_out,o=t.output,x=t.avail_out,c=t.next_in,a=t.input,m=t.avail_in,v=n.hold,S=n.bits,A=m,L=x,ut=Tl;t:for(;;)switch(n.mode){case Jc:if(n.wrap===0){n.mode=Pd;break}for(;S<16;){if(m===0)break t;m--,v+=a[c++]<>>8&255,n.check=ua(n.check,Q,2,0),v=0,S=0,n.mode=Xf;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((v&255)<<8)+(v>>8))%31){t.msg="incorrect header check",n.mode=Ai;break}if((v&15)!==Jf){t.msg="unknown compression method",n.mode=Ai;break}if(v>>>=4,S-=4,qt=(v&15)+8,n.wbits===0&&(n.wbits=qt),qt>15||qt>n.wbits){t.msg="invalid window size",n.mode=Ai;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(Q[0]=v&255,Q[1]=v>>>8&255,n.check=ua(n.check,Q,2,0)),v=0,S=0,n.mode=Qf;case Qf:for(;S<32;){if(m===0)break t;m--,v+=a[c++]<>>8&255,Q[2]=v>>>16&255,Q[3]=v>>>24&255,n.check=ua(n.check,Q,4,0)),v=0,S=0,n.mode=th;case th:for(;S<16;){if(m===0)break t;m--,v+=a[c++]<>8),n.flags&512&&n.wrap&4&&(Q[0]=v&255,Q[1]=v>>>8&255,n.check=ua(n.check,Q,2,0)),v=0,S=0,n.mode=eh;case eh:if(n.flags&1024){for(;S<16;){if(m===0)break t;m--,v+=a[c++]<>>8&255,n.check=ua(n.check,Q,2,0)),v=0,S=0}else n.head&&(n.head.extra=null);n.mode=nh;case nh:if(n.flags&1024&&(w=n.length,w>m&&(w=m),w&&(n.head&&(qt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(a.subarray(c,c+w),qt)),n.flags&512&&n.wrap&4&&(n.check=ua(n.check,a,w,c)),m-=w,c+=w,n.length-=w),n.length))break t;n.length=0,n.mode=ih;case ih:if(n.flags&2048){if(m===0)break t;w=0;do qt=a[c+w++],n.head&&qt&&n.length<65536&&(n.head.name+=String.fromCharCode(qt));while(qt&&w>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=mr;break;case rh:for(;S<32;){if(m===0)break t;m--,v+=a[c++]<>>=S&7,S-=S&7,n.mode=Id;break}for(;S<3;){if(m===0)break t;m--,v+=a[c++]<>>=1,S-=1,v&3){case 0:n.mode=lh;break;case 1:if(u3(n),n.mode=Uc,i===Vc){v>>>=2,S-=2;break t}break;case 2:n.mode=ch;break;case 3:t.msg="invalid block type",n.mode=Ai}v>>>=2,S-=2;break;case lh:for(v>>>=S&7,S-=S&7;S<32;){if(m===0)break t;m--,v+=a[c++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=Ai;break}if(n.length=v&65535,v=0,S=0,n.mode=Td,i===Vc)break t;case Td:n.mode=sh;case sh:if(w=n.length,w){if(w>m&&(w=m),w>x&&(w=x),w===0)break t;o.set(a.subarray(c,c+w),d),m-=w,c+=w,x-=w,d+=w,n.length-=w;break}n.mode=mr;break;case ch:for(;S<14;){if(m===0)break t;m--,v+=a[c++]<>>=5,S-=5,n.ndist=(v&31)+1,v>>>=5,S-=5,n.ncode=(v&15)+4,v>>>=4,S-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Ai;break}n.have=0,n.mode=ph;case ph:for(;n.have>>=3,S-=3}for(;n.have<19;)n.lens[$[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,xt={bits:n.lenbits},ut=f0(n3,n.lens,0,19,n.lencode,0,n.work,xt),n.lenbits=xt.bits,ut){t.msg="invalid code lengths set",n.mode=Ai;break}n.have=0,n.mode=mh;case mh:for(;n.have>>24,rt=Z>>>16&255,lt=Z&65535,!(j<=S);){if(m===0)break t;m--,v+=a[c++]<>>=j,S-=j,n.lens[n.have++]=lt;else{if(lt===16){for(B=j+2;S>>=j,S-=j,n.have===0){t.msg="invalid bit length repeat",n.mode=Ai;break}qt=n.lens[n.have-1],w=3+(v&3),v>>>=2,S-=2}else if(lt===17){for(B=j+3;S>>=j,S-=j,qt=0,w=3+(v&7),v>>>=3,S-=3}else{for(B=j+7;S>>=j,S-=j,qt=0,w=11+(v&127),v>>>=7,S-=7}if(n.have+w>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Ai;break}for(;w--;)n.lens[n.have++]=qt}}if(n.mode===Ai)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=Ai;break}if(n.lenbits=9,xt={bits:n.lenbits},ut=f0(Gh,n.lens,0,n.nlen,n.lencode,0,n.work,xt),n.lenbits=xt.bits,ut){t.msg="invalid literal/lengths set",n.mode=Ai;break}if(n.distbits=6,n.distcode=n.distdyn,xt={bits:n.distbits},ut=f0(Wh,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,xt),n.distbits=xt.bits,ut){t.msg="invalid distances set",n.mode=Ai;break}if(n.mode=Uc,i===Vc)break t;case Uc:n.mode=Hc;case Hc:if(m>=6&&x>=258){t.next_out=d,t.avail_out=x,t.next_in=c,t.avail_in=m,n.hold=v,n.bits=S,Kb(t,L),d=t.next_out,o=t.output,x=t.avail_out,c=t.next_in,a=t.input,m=t.avail_in,v=n.hold,S=n.bits,n.mode===mr&&(n.back=-1);break}for(n.back=0;Z=n.lencode[v&(1<>>24,rt=Z>>>16&255,lt=Z&65535,!(j<=S);){if(m===0)break t;m--,v+=a[c++]<>tt)],j=Z>>>24,rt=Z>>>16&255,lt=Z&65535,!(tt+j<=S);){if(m===0)break t;m--,v+=a[c++]<>>=tt,S-=tt,n.back+=tt}if(v>>>=j,S-=j,n.back+=j,n.length=lt,rt===0){n.mode=gh;break}if(rt&32){n.back=-1,n.mode=mr;break}if(rt&64){t.msg="invalid literal/length code",n.mode=Ai;break}n.extra=rt&15,n.mode=dh;case dh:if(n.extra){for(B=n.extra;S>>=n.extra,S-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=uh;case uh:for(;Z=n.distcode[v&(1<>>24,rt=Z>>>16&255,lt=Z&65535,!(j<=S);){if(m===0)break t;m--,v+=a[c++]<>tt)],j=Z>>>24,rt=Z>>>16&255,lt=Z&65535,!(tt+j<=S);){if(m===0)break t;m--,v+=a[c++]<>>=tt,S-=tt,n.back+=tt}if(v>>>=j,S-=j,n.back+=j,rt&64){t.msg="invalid distance code",n.mode=Ai;break}n.offset=lt,n.extra=rt&15,n.mode=fh;case fh:if(n.extra){for(B=n.extra;S>>=n.extra,S-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Ai;break}n.mode=hh;case hh:if(x===0)break t;if(w=L-x,n.offset>w){if(w=n.offset-w,w>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Ai;break}w>n.wnext?(w-=n.wnext,z=n.wsize-w):z=n.wnext-w,w>n.length&&(w=n.length),H=n.window}else H=o,z=d-n.offset,w=n.length;w>x&&(w=x),x-=w,n.length-=w;do o[d++]=H[z++];while(--w);n.length===0&&(n.mode=Hc);break;case gh:if(x===0)break t;o[d++]=n.length,x--,n.mode=Hc;break;case Id:if(n.wrap){for(;S<32;){if(m===0)break t;m--,v|=a[c++]<{if(Il(t))return ho;let i=t.state;return i.window&&(i.window=null),t.state=null,Tl},g3=(t,i)=>{if(Il(t))return ho;let n=t.state;return(n.wrap&2)===0?ho:(n.head=i,i.done=!1,Tl)},x3=(t,i)=>{let n=i.length,a,o,c;return Il(t)||(a=t.state,a.wrap!==0&&a.mode!==Yc)?ho:a.mode===Yc&&(o=1,o=v0(o,i,n,0),o!==a.check)?$h:(c=e2(t,i,n,n),c?(a.mode=Zh,Yh):(a.havedict=1,Tl))},_3=Xh,v3=Qh,b3=Jh,C3=d3,y3=t2,S3=f3,D3=h3,w3=g3,P3=x3,T3="pako inflate (from Nodeca project)",ur={inflateReset:_3,inflateReset2:v3,inflateResetKeep:b3,inflateInit:C3,inflateInit2:y3,inflate:S3,inflateEnd:D3,inflateGetHeader:w3,inflateSetDictionary:P3,inflateInfo:T3};function I3(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var A3=I3,n2=Object.prototype.toString,{Z_NO_FLUSH:O3,Z_FINISH:M3,Z_OK:y0,Z_STREAM_END:Md,Z_NEED_DICT:Ed,Z_STREAM_ERROR:E3,Z_DATA_ERROR:Ch,Z_MEM_ERROR:L3}=ms;function P0(t){this.options=Kc.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});let i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),i.windowBits>=0&&i.windowBits<16&&!(t&&t.windowBits)&&(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&(i.windowBits&15)===0&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Uh,this.strm.avail_out=0;let n=ur.inflateInit2(this.strm,i.windowBits);if(n!==y0)throw new Error(wl[n]);if(this.header=new A3,ur.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=C0.string2buf(i.dictionary):n2.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(n=ur.inflateSetDictionary(this.strm,i.dictionary),n!==y0)))throw new Error(wl[n])}P0.prototype.push=function(t,i){let n=this.strm,a=this.options.chunkSize,o=this.options.dictionary,c,d,m;if(this.ended)return!1;for(i===~~i?d=i:d=i===!0?M3:O3,n2.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),c=ur.inflate(n,d),c===Ed&&o&&(c=ur.inflateSetDictionary(n,o),c===y0?c=ur.inflate(n,d):c===Ch&&(c=Ed));n.avail_in>0&&c===Md&&n.state.wrap>0&&t[n.next_in]!==0;)ur.inflateReset(n),c=ur.inflate(n,d);switch(c){case E3:case Ch:case Ed:case L3:return this.onEnd(c),this.ended=!0,!1}if(m=n.avail_out,n.next_out&&(n.avail_out===0||c===Md))if(this.options.to==="string"){let x=C0.utf8border(n.output,n.next_out),v=n.next_out-x,S=C0.buf2string(n.output,x);n.next_out=v,n.avail_out=a-v,v&&n.output.set(n.output.subarray(x,x+v),0),this.onData(S)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(c===y0&&m===0)){if(c===Md)return c=ur.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};P0.prototype.onData=function(t){this.chunks.push(t)};P0.prototype.onEnd=function(t){t===y0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Kc.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Yd(t,i){let n=new P0(i);if(n.push(t),n.err)throw n.msg||wl[n.err];return n.result}function N3(t,i){return i=i||{},i.raw=!0,Yd(t,i)}var F3=P0,k3=Yd,R3=N3,B3=Yd,j3=ms,q3={Inflate:F3,inflate:k3,inflateRaw:R3,ungzip:B3,constants:j3},{Deflate:xk,deflate:_k,deflateRaw:vk,gzip:bk}=Yb,{Inflate:z3,inflate:V3,inflateRaw:Ck,ungzip:yk}=q3;var Zd=z3,i2=V3;var o2=[];for(let t=0;t<256;t++){let i=t;for(let n=0;n<8;n++)i&1?i=3988292384^i>>>1:i=i>>>1;o2[t]=i}var a2=4294967295;function U3(t,i,n){let a=t;for(let o=0;o>>8;return a}function H3(t,i){return(U3(a2,t,i)^a2)>>>0}function Kd(t,i,n){let a=t.readUint32(),o=H3(new Uint8Array(t.buffer,t.byteOffset+t.offset-i-4,i),i);if(o!==a)throw new Error(`CRC mismatch for chunk ${n}. Expected ${a}, found ${o}`)}function Xc(t,i,n){for(let a=0;a>1)&255}else{for(;c>1)&255;for(;c>1)&255}}function np(t,i,n,a,o){let c=0;if(n.length===0){for(;c=n||Yt>=a))for(let qt=0;qt>8&255}var K3=new Uint16Array([255]),J3=new Uint8Array(K3.buffer),X3=J3[0]===255,Q3=new Uint8Array(0);function Jd(t){let{data:i,width:n,height:a,channels:o,depth:c}=t,d=Math.ceil(c/8)*o,m=Math.ceil(c/8*o*n),x=new Uint8Array(a*m),v=Q3,S=0,A,L;for(let w=0;w>8&255}var ip=Uint8Array.of(137,80,78,71,13,10,26,10);function Xd(t){if(!s2(t.readBytes(ip.length)))throw new Error("wrong PNG signature")}function s2(t){if(t.length79)throw new Error("keyword length must be between 1 and 79")}var aC=/^[\u0000-\u00FF]*$/;function oC(t){if(!aC.test(t))throw new Error("invalid latin1 text")}function m2(t,i,n){let a=Qd(i);t[a]=rC(i,n-a.length-1)}function Qd(t){for(t.mark();t.readByte()!==nC;);let i=t.offset;t.reset();let n=p2.decode(t.readBytes(i-t.offset-1));return t.skip(1),iC(n),n}function rC(t,i){return p2.decode(t.readBytes(i))}var Fa={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},T0={UNKNOWN:-1,DEFLATE:0},ap={UNKNOWN:-1,ADAPTIVE:0},I0={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},A0={NONE:0,BACKGROUND:1,PREVIOUS:2},op={SOURCE:0,OVER:1};var rp=class extends s0{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(i,n={}){super(i);let{checkCrc:a=!1}=n;this._checkCrc=a,this._inflator=new Zd,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=T0.UNKNOWN,this._filterMethod=ap.UNKNOWN,this._interlaceMethod=I0.UNKNOWN,this._colorType=Fa.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Xd(this);!this._end;){let i=this.readUint32(),n=this.readChars(4);this.decodeChunk(i,n)}return this.decodeImage(),this._png}decodeApng(){for(Xd(this);!this._end;){let i=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(i,n)}return this.decodeApngImage(),this._apng}decodeChunk(i,n){let a=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(i);break;case"IDAT":this.decodeIDAT(i);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(i);break;case"iCCP":this.decodeiCCP(i);break;case c2:m2(this._png.text,this,i);break;case"pHYs":this.decodepHYs();break;default:this.skip(i);break}if(this.offset-a!==i)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?Kd(this,i+4,n):this.skip(4)}decodeApngChunk(i,n){let a=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(i);break;default:this.decodeChunk(i,n),this.offset=a+i;break}if(this.offset-a!==i)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?Kd(this,i+4,n):this.skip(4)}decodeIHDR(){let i=this._png;i.width=this.readUint32(),i.height=this.readUint32(),i.depth=lC(this.readUint8());let n=this.readUint8();this._colorType=n;let a;switch(n){case Fa.GREYSCALE:a=1;break;case Fa.TRUECOLOUR:a=3;break;case Fa.INDEXED_COLOUR:a=1;break;case Fa.GREYSCALE_ALPHA:a=2;break;case Fa.TRUECOLOUR_ALPHA:a=4;break;case Fa.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=a,this._compressionMethod=this.readUint8(),this._compressionMethod!==T0.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let i={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(i)}decodePLTE(i){if(i%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${i}`);let n=i/3;this._hasPalette=!0;let a=[];this._palette=a;for(let o=0;othis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${i/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(i/2);for(let n=0;nthis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${i} vs ${this._palette.length})`);let n=0;for(;n{let m=((c+n.yOffset)*this._png.width+n.xOffset+d)*this._png.channels,x=(c*n.width+d)*this._png.channels;return{index:m,frameIndex:x}};switch(n.blendOp){case op.SOURCE:for(let c=0;c=200&&i.status<=299}function lp(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var Al=dn.saveAs||((typeof window>"u"?"undefined":hi(window))!=="object"||window!==dn?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,i,n){var a=dn.URL||dn.webkitURL,o=document.createElement("a");i=i||t.name||"download",o.download=i,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?u2(o.href)?eu(t,i,n):lp(o,o.target="_blank"):lp(o)):(o.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(o.href)},4e4),setTimeout(function(){lp(o)},0))}:"msSaveOrOpenBlob"in navigator?function(t,i,n){if(i=i||t.name||"download",typeof t=="string")if(u2(t))eu(t,i,n);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){lp(a)})}else navigator.msSaveOrOpenBlob(function(o,c){return c===void 0?c={autoBom:!1}:hi(c)!=="object"&&(bi.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(t,n),i)}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof t=="string")return eu(t,i,n);var o=t.type==="application/octet-stream",c=/constructor/i.test(dn.HTMLElement)||dn.safari,d=/CriOS\/[\d]+/.test(navigator.userAgent);if((d||o&&c)&&(typeof FileReader>"u"?"undefined":hi(FileReader))==="object"){var m=new FileReader;m.onloadend=function(){var S=m.result;S=d?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=S:location=S,a=null},m.readAsDataURL(t)}else{var x=dn.URL||dn.webkitURL,v=x.createObjectURL(t);a?a.location=v:location.href=v,a=null,setTimeout(function(){x.revokeObjectURL(v)},4e4)}});function R2(t){var i;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(m){return[parseInt(m[1]),parseInt(m[2]),parseInt(m[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(m){return[parseInt(m[1],16),parseInt(m[2],16),parseInt(m[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(m){return[parseInt(m[1]+m[1],16),parseInt(m[2]+m[2],16),parseInt(m[3]+m[3],16)]}}],a=0;a255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var m=this.r.toString(16),x=this.g.toString(16),v=this.b.toString(16);return m.length==1&&(m="0"+m),x.length==1&&(x="0"+x),v.length==1&&(v="0"+v),"#"+m+x+v}}var mp=dn.atob.bind(dn),f2=dn.btoa.bind(dn);function nu(t,i){var n=t[0],a=t[1],o=t[2],c=t[3];n=Pa(n,a,o,c,i[0],7,-680876936),c=Pa(c,n,a,o,i[1],12,-389564586),o=Pa(o,c,n,a,i[2],17,606105819),a=Pa(a,o,c,n,i[3],22,-1044525330),n=Pa(n,a,o,c,i[4],7,-176418897),c=Pa(c,n,a,o,i[5],12,1200080426),o=Pa(o,c,n,a,i[6],17,-1473231341),a=Pa(a,o,c,n,i[7],22,-45705983),n=Pa(n,a,o,c,i[8],7,1770035416),c=Pa(c,n,a,o,i[9],12,-1958414417),o=Pa(o,c,n,a,i[10],17,-42063),a=Pa(a,o,c,n,i[11],22,-1990404162),n=Pa(n,a,o,c,i[12],7,1804603682),c=Pa(c,n,a,o,i[13],12,-40341101),o=Pa(o,c,n,a,i[14],17,-1502002290),n=Ta(n,a=Pa(a,o,c,n,i[15],22,1236535329),o,c,i[1],5,-165796510),c=Ta(c,n,a,o,i[6],9,-1069501632),o=Ta(o,c,n,a,i[11],14,643717713),a=Ta(a,o,c,n,i[0],20,-373897302),n=Ta(n,a,o,c,i[5],5,-701558691),c=Ta(c,n,a,o,i[10],9,38016083),o=Ta(o,c,n,a,i[15],14,-660478335),a=Ta(a,o,c,n,i[4],20,-405537848),n=Ta(n,a,o,c,i[9],5,568446438),c=Ta(c,n,a,o,i[14],9,-1019803690),o=Ta(o,c,n,a,i[3],14,-187363961),a=Ta(a,o,c,n,i[8],20,1163531501),n=Ta(n,a,o,c,i[13],5,-1444681467),c=Ta(c,n,a,o,i[2],9,-51403784),o=Ta(o,c,n,a,i[7],14,1735328473),n=Ia(n,a=Ta(a,o,c,n,i[12],20,-1926607734),o,c,i[5],4,-378558),c=Ia(c,n,a,o,i[8],11,-2022574463),o=Ia(o,c,n,a,i[11],16,1839030562),a=Ia(a,o,c,n,i[14],23,-35309556),n=Ia(n,a,o,c,i[1],4,-1530992060),c=Ia(c,n,a,o,i[4],11,1272893353),o=Ia(o,c,n,a,i[7],16,-155497632),a=Ia(a,o,c,n,i[10],23,-1094730640),n=Ia(n,a,o,c,i[13],4,681279174),c=Ia(c,n,a,o,i[0],11,-358537222),o=Ia(o,c,n,a,i[3],16,-722521979),a=Ia(a,o,c,n,i[6],23,76029189),n=Ia(n,a,o,c,i[9],4,-640364487),c=Ia(c,n,a,o,i[12],11,-421815835),o=Ia(o,c,n,a,i[15],16,530742520),n=Aa(n,a=Ia(a,o,c,n,i[2],23,-995338651),o,c,i[0],6,-198630844),c=Aa(c,n,a,o,i[7],10,1126891415),o=Aa(o,c,n,a,i[14],15,-1416354905),a=Aa(a,o,c,n,i[5],21,-57434055),n=Aa(n,a,o,c,i[12],6,1700485571),c=Aa(c,n,a,o,i[3],10,-1894986606),o=Aa(o,c,n,a,i[10],15,-1051523),a=Aa(a,o,c,n,i[1],21,-2054922799),n=Aa(n,a,o,c,i[8],6,1873313359),c=Aa(c,n,a,o,i[15],10,-30611744),o=Aa(o,c,n,a,i[6],15,-1560198380),a=Aa(a,o,c,n,i[13],21,1309151649),n=Aa(n,a,o,c,i[4],6,-145523070),c=Aa(c,n,a,o,i[11],10,-1120210379),o=Aa(o,c,n,a,i[2],15,718787259),a=Aa(a,o,c,n,i[9],21,-343485551),t[0]=Wr(n,t[0]),t[1]=Wr(a,t[1]),t[2]=Wr(o,t[2]),t[3]=Wr(c,t[3])}function _p(t,i,n,a,o,c){return i=Wr(Wr(i,t),Wr(a,c)),Wr(i<>>32-o,n)}function Pa(t,i,n,a,o,c,d){return _p(i&n|~i&a,t,i,o,c,d)}function Ta(t,i,n,a,o,c,d){return _p(i&a|n&~a,t,i,o,c,d)}function Ia(t,i,n,a,o,c,d){return _p(i^n^a,t,i,o,c,d)}function Aa(t,i,n,a,o,c,d){return _p(n^(i|~a),t,i,o,c,d)}function B2(t){var i,n=t.length,a=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=t.length;i+=64)nu(a,sC(t.substring(i-64,i)));t=t.substring(i-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i>2]|=t.charCodeAt(i)<<(i%4<<3);if(o[i>>2]|=128<<(i%4<<3),i>55)for(nu(a,o),i=0;i<16;i++)o[i]=0;return o[14]=8*n,nu(a,o),a}function sC(t){var i,n=[];for(i=0;i<64;i+=4)n[i>>2]=t.charCodeAt(i)+(t.charCodeAt(i+1)<<8)+(t.charCodeAt(i+2)<<16)+(t.charCodeAt(i+3)<<24);return n}var h2="0123456789abcdef".split("");function cC(t){for(var i="",n=0;n<4;n++)i+=h2[t>>8*n+4&15]+h2[t>>8*n&15];return i}function pC(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function su(t){return B2(t).map(pC).join("")}var mC=function(t){for(var i=0;i>16)+(i>>16)+(n>>16)<<16|65535&n}return t+i&4294967295}function cu(t,i){var n,a,o,c;if(t!==n){for(var d=(o=t,c=1+(256/t.length|0),new Array(c+1).join(o)),m=[],x=0;x<256;x++)m[x]=x;var v=0;for(x=0;x<256;x++){var S=m[x];v=(v+S+d.charCodeAt(x))%256,m[x]=m[v],m[v]=S}n=t,a=m}else m=a;var A=i.length,L=0,w=0,z="";for(x=0;x\x80/\f\xA9\xFEdSiz";var c=(i+this.padding).substr(0,32),d=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(c,d),this.P=-(1+(255^o)),this.encryptionKey=su(c+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=cu(this.encryptionKey,this.padding)}function xs(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var i="",n=t.length,a=0;a126?"#"+("0"+o.toString(16)).slice(-2):t[a]}return i}function x2(t){if(hi(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var i={};this.subscribe=function(n,a,o){if(o=o||!1,typeof n!="string"||typeof a!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");i.hasOwnProperty(n)||(i[n]={});var c=Math.random().toString(35);return i[n][c]=[a,!!o],c},this.unsubscribe=function(n){for(var a in i)if(i[a][n])return delete i[a][n],Object.keys(i[a]).length===0&&delete i[a],!0;return!1},this.publish=function(n){if(i.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),o=[];for(var c in i[n]){var d=i[n][c];try{d[0].apply(t,a)}catch(m){dn.console&&bi.error("jsPDF PubSub Error",m.message,m)}d[1]&&o.push(c)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return i}}function gp(t){if(!(this instanceof gp))return new gp(t);var i="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&i.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function j2(t,i){this.gState=t,this.matrix=i,this.id="",this.objectNumber=-1}function Ol(t,i,n,a,o){if(!(this instanceof Ol))return new Ol(t,i,n,a,o);this.type=t==="axial"?2:3,this.coords=i,this.colors=n,j2.call(this,a,o)}function _s(t,i,n,a,o){if(!(this instanceof _s))return new _s(t,i,n,a,o);this.boundingBox=t,this.xStep=i,this.yStep=n,this.stream="",this.cloneIndex=0,j2.call(this,a,o)}function He(t){var i,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],o=arguments[2],c=arguments[3],d=[],m=1,x=16,v="S",S=null;hi(t=t||{})==="object"&&(n=t.orientation,a=t.unit||a,o=t.format||o,c=t.compress||t.compressPdf||c,(S=t.encryption||null)!==null&&(S.userPassword=S.userPassword||"",S.ownerPassword=S.ownerPassword||"",S.userPermissions=S.userPermissions||[]),m=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(i=t.precision),t.floatPrecision!==void 0&&(x=t.floatPrecision),v=t.defaultPathOperation||"S"),d=t.filters||(c===!0?["FlateEncode"]:d),a=a||"mm",n=(""+(n||"P")).toLowerCase();var A=t.putOnlyUsedFonts||!1,L={},w={internal:{},__private__:{}};w.__private__.PubSub=x2;var z="1.3",H=w.__private__.getPdfVersion=function(){return z};w.__private__.setPdfVersion=function(b){z=b};var Z={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};w.__private__.getPageFormats=function(){return Z};var j=w.__private__.getPageFormat=function(b){return Z[b]};o=o||"a4";var rt="compat",lt="advanced",tt=rt;function It(){this.saveGraphicsState(),J(new ln(mn,0,0,-mn,0,cl()*mn).toString()+" cm"),this.setFontSize(this.getFontSize()/mn),v="n",tt=lt}function Yt(){this.restoreGraphicsState(),v="S",tt=rt}var qt=w.__private__.combineFontStyleAndFontWeight=function(b,M){if(b=="bold"&&M=="normal"||b=="bold"&&M==400||b=="normal"&&M=="italic"||b=="bold"&&M=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return M&&(b=M==400||M==="normal"?b==="italic"?"italic":"normal":M!=700&&M!=="bold"||b!=="normal"?(M==700?"bold":M)+""+b:"bold"),b};w.advancedAPI=function(b){var M=tt===rt;return M&&It.call(this),typeof b!="function"||(b(this),M&&Yt.call(this)),this},w.compatAPI=function(b){var M=tt===lt;return M&&Yt.call(this),typeof b!="function"||(b(this),M&&It.call(this)),this},w.isAdvancedAPI=function(){return tt===lt};var ut,Q=function(b){if(tt!==lt)throw new Error(b+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},xt=w.roundToPrecision=w.__private__.roundToPrecision=function(b,M){var Y=i||M;if(isNaN(b)||isNaN(Y))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return b.toFixed(Y).replace(/0+$/,"")};ut=w.hpf=w.__private__.hpf=typeof x=="number"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return xt(b,x)}:x==="smart"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return xt(b,b>-1&&b<1?16:5)}:function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return xt(b,16)};var B=w.f2=w.__private__.f2=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f2");return xt(b,2)},$=w.__private__.f3=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f3");return xt(b,3)},at=w.scale=w.__private__.scale=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.scale");return tt===rt?b*mn:tt===lt?b:void 0},it=function(b){return at(function(M){return tt===rt?cl()-M:tt===lt?M:void 0}(b))};w.__private__.setPrecision=w.setPrecision=function(b){typeof parseInt(b,10)=="number"&&(i=parseInt(b,10))};var wt,Nt="00000000000000000000000000000000",kt=w.__private__.getFileId=function(){return Nt},bt=w.__private__.setFileId=function(b){return Nt=b!==void 0&&/^[a-fA-F0-9]{32}$/.test(b)?b.toUpperCase():Nt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),S!==null&&(ji=new gs(S.userPermissions,S.userPassword,S.ownerPassword,Nt)),Nt};w.setFileId=function(b){return bt(b),this},w.getFileId=function(){return kt()};var Bt=w.__private__.convertDateToPDFDate=function(b){var M=b.getTimezoneOffset(),Y=M<0?"+":"-",et=Math.floor(Math.abs(M/60)),ft=Math.abs(M%60),jt=[Y,X(et),"'",X(ft),"'"].join("");return["D:",b.getFullYear(),X(b.getMonth()+1),X(b.getDate()),X(b.getHours()),X(b.getMinutes()),X(b.getSeconds()),jt].join("")},re=w.__private__.convertPDFDateToDate=function(b){var M=parseInt(b.substr(2,4),10),Y=parseInt(b.substr(6,2),10)-1,et=parseInt(b.substr(8,2),10),ft=parseInt(b.substr(10,2),10),jt=parseInt(b.substr(12,2),10),Jt=parseInt(b.substr(14,2),10);return new Date(M,Y,et,ft,jt,Jt,0)},Kt=w.__private__.setCreationDate=function(b){var M;if(b===void 0&&(b=new Date),b instanceof Date)M=Bt(b);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(b))throw new Error("Invalid argument passed to jsPDF.setCreationDate");M=b}return wt=M},k=w.__private__.getCreationDate=function(b){var M=wt;return b==="jsDate"&&(M=re(wt)),M};w.setCreationDate=function(b){return Kt(b),this},w.getCreationDate=function(b){return k(b)};var K,X=w.__private__.padd2=function(b){return("0"+parseInt(b)).slice(-2)},st=w.__private__.padd2Hex=function(b){return("00"+(b=b.toString())).substr(b.length)},dt=0,Ct=[],Mt=[],At=0,Ht=[],ee=[],_e=!1,Se=Mt;w.__private__.setCustomOutputDestination=function(b){_e=!0,Se=b};var Lt=function(b){_e||(Se=b)};w.__private__.resetCustomOutputDestination=function(){_e=!1,Se=Mt};var J=w.__private__.out=function(b){return b=b.toString(),At+=b.length+1,Se.push(b),Se},Gn=w.__private__.write=function(b){return J(arguments.length===1?b.toString():Array.prototype.join.call(arguments," "))},Rn=w.__private__.getArrayBuffer=function(b){for(var M=b.length,Y=new ArrayBuffer(M),et=new Uint8Array(Y);M--;)et[M]=b.charCodeAt(M);return Y},nn=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];w.__private__.getStandardFonts=function(){return nn};var ne=t.fontSize||16;w.__private__.setFontSize=w.setFontSize=function(b){return ne=tt===lt?b/mn:b,this};var Ye,he=w.__private__.getFontSize=w.getFontSize=function(){return tt===rt?ne:ne*mn},Bn=t.R2L||!1;w.__private__.setR2L=w.setR2L=function(b){return Bn=b,this},w.__private__.getR2L=w.getR2L=function(){return Bn};var en,ei=w.__private__.setZoomMode=function(b){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(b))Ye=b;else if(isNaN(b)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(b)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+b+'" is not recognized.');Ye=b}else Ye=parseInt(b,10)};w.__private__.getZoomMode=function(){return Ye};var En,Ln=w.__private__.setPageMode=function(b){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(b)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+b+'" is not recognized.');en=b};w.__private__.getPageMode=function(){return en};var ui=w.__private__.setLayoutMode=function(b){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(b)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+b+'" is not recognized.');En=b};w.__private__.getLayoutMode=function(){return En},w.__private__.setDisplayMode=w.setDisplayMode=function(b,M,Y){return ei(b),ui(M),Ln(Y),this};var jn={title:"",subject:"",author:"",keywords:"",creator:""};w.__private__.getDocumentProperty=function(b){if(Object.keys(jn).indexOf(b)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return jn[b]},w.__private__.getDocumentProperties=function(){return jn},w.__private__.setDocumentProperties=w.setProperties=w.setDocumentProperties=function(b){for(var M in jn)jn.hasOwnProperty(M)&&b[M]&&(jn[M]=b[M]);return this},w.__private__.setDocumentProperty=function(b,M){if(Object.keys(jn).indexOf(b)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return jn[b]=M};var Xe,mn,Qe,yi,ni,Ge={},Nn={},gi=[],rn={},Yn={},Fn={},Bi={},ta=null,xi=0,Dn=[],ri=new x2(w),Jr=t.hotfixes||[],Ca={},Zo={},Eo=[],ln=function b(M,Y,et,ft,jt,Jt){if(!(this instanceof b))return new b(M,Y,et,ft,jt,Jt);isNaN(M)&&(M=1),isNaN(Y)&&(Y=0),isNaN(et)&&(et=0),isNaN(ft)&&(ft=1),isNaN(jt)&&(jt=0),isNaN(Jt)&&(Jt=0),this._matrix=[M,Y,et,ft,jt,Jt]};Object.defineProperty(ln.prototype,"sx",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(ln.prototype,"shy",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(ln.prototype,"shx",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(ln.prototype,"sy",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(ln.prototype,"tx",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(ln.prototype,"ty",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(ln.prototype,"a",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(ln.prototype,"b",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(ln.prototype,"c",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(ln.prototype,"d",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(ln.prototype,"e",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(ln.prototype,"f",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(ln.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ln.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ln.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ln.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ln.prototype.join=function(b){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ut).join(b)},ln.prototype.multiply=function(b){var M=b.sx*this.sx+b.shy*this.shx,Y=b.sx*this.shy+b.shy*this.sy,et=b.shx*this.sx+b.sy*this.shx,ft=b.shx*this.shy+b.sy*this.sy,jt=b.tx*this.sx+b.ty*this.shx+this.tx,Jt=b.tx*this.shy+b.ty*this.sy+this.ty;return new ln(M,Y,et,ft,jt,Jt)},ln.prototype.decompose=function(){var b=this.sx,M=this.shy,Y=this.shx,et=this.sy,ft=this.tx,jt=this.ty,Jt=Math.sqrt(b*b+M*M),Fe=(b/=Jt)*Y+(M/=Jt)*et;Y-=b*Fe,et-=M*Fe;var Ve=Math.sqrt(Y*Y+et*et);return Fe/=Ve,b*(et/=Ve)>16&255,et=Ve>>8&255,ft=255&Ve}if(et===void 0||jt===void 0&&Y===et&&et===ft)M=typeof Y=="string"?Y+" "+Jt[0]:b.precision===2?B(Y/255)+" "+Jt[0]:$(Y/255)+" "+Jt[0];else if(jt===void 0||hi(jt)==="object"){if(jt&&!isNaN(jt.a)&&jt.a===0)return["1.","1.","1.",Jt[1]].join(" ");M=typeof Y=="string"?[Y,et,ft,Jt[1]].join(" "):b.precision===2?[B(Y/255),B(et/255),B(ft/255),Jt[1]].join(" "):[$(Y/255),$(et/255),$(ft/255),Jt[1]].join(" ")}else M=typeof Y=="string"?[Y,et,ft,jt,Jt[2]].join(" "):b.precision===2?[B(Y),B(et),B(ft),B(jt),Jt[2]].join(" "):[$(Y),$(et),$(ft),$(jt),Jt[2]].join(" ");return M},_o=w.__private__.getFilters=function(){return d},oo=w.__private__.putStream=function(b){var M=(b=b||{}).data||"",Y=b.filters||_o(),et=b.alreadyAppliedFilters||[],ft=b.addLength1||!1,jt=M.length,Jt=b.objectId,Fe=function(ea){return ea};if(S!==null&&Jt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");S!==null&&(Fe=ji.encryptor(Jt,0));var Ve={};Y===!0&&(Y=["FlateEncode"]);var un=b.additionalKeyValues||[],Tn=(Ve=He.API.processDataByFilters!==void 0?He.API.processDataByFilters(M,Y):{data:M,reverseChain:[]}).reverseChain+(Array.isArray(et)?et.join(" "):et.toString());if(Ve.data.length!==0&&(un.push({key:"Length",value:Ve.data.length}),ft===!0&&un.push({key:"Length1",value:jt})),Tn.length!=0)if(Tn.split("/").length-1==1)un.push({key:"Filter",value:Tn});else{un.push({key:"Filter",value:"["+Tn+"]"});for(var ii=0;ii>"),Ve.data.length!==0&&(J("stream"),J(Fe(Ve.data)),J("endstream"))},Qr=w.__private__.putPage=function(b){var M=b.number,Y=b.data,et=b.objId,ft=b.contentsObjId;ha(et,!0),J("<>"),J("endobj");var jt=Y.join(` +`)),a&2&&h("entityId",o.entityId)("entityNotes",o.entityNotes)("callbackAdd",o.addNote)("callbackEdit",o.editNote)("callbackDelete",o.deleteNote)},dependencies:[St,Dt,sf],encapsulation:2})}}return t})();var wo=Uint8Array,to=Uint16Array,dd=Int32Array,ud=new wo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fd=new wo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Cf=new wo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wf=function(t,i){for(var n=new to(31),a=0;a<31;++a)n[a]=i+=1<>1|(ai&21845)<<1,cr=(cr&52428)>>2|(cr&13107)<<2,cr=(cr&61680)>>4|(cr&3855)<<4,pd[ai]=((cr&65280)>>8|(cr&255)<<8)>>1;var cr,ai,l0=function(t,i,n){for(var a=t.length,o=0,c=new to(i);o>x]=v}else for(m=new to(a),o=0;o>15-t[o]);return m},yl=new wo(288);for(ai=0;ai<144;++ai)yl[ai]=8;var ai;for(ai=144;ai<256;++ai)yl[ai]=9;var ai;for(ai=256;ai<280;++ai)yl[ai]=7;var ai;for(ai=280;ai<288;++ai)yl[ai]=8;var ai,Bc=new wo(32);for(ai=0;ai<32;++ai)Bc[ai]=5;var ai,Jv=l0(yl,9,0);var Xv=l0(Bc,5,0);var If=function(t){return(t+7)/8|0},Qv=function(t,i,n){return(i==null||i<0)&&(i=0),(n==null||n>t.length)&&(n=t.length),new wo(t.subarray(i,n))};var pr=function(t,i,n){n<<=i&7;var a=i/8|0;t[a]|=n,t[a+1]|=n>>8},o0=function(t,i,n){n<<=i&7;var a=i/8|0;t[a]|=n,t[a+1]|=n>>8,t[a+2]|=n>>16},sd=function(t,i){for(var n=[],a=0;aL&&(L=c[a].s);var w=new to(L+1),z=md(n[S-1],w,0);if(z>i){var a=0,H=0,Z=z-i,j=1<i)H+=j-(1<>=Z;H>0;){var lt=c[a].s;w[lt]=0&&H;--a){var tt=c[a].s;w[tt]==i&&(--w[tt],++H)}z=i}return{t:new wo(w),l:z}},md=function(t,i,n){return t.s==-1?Math.max(md(t.l,i,n+1),md(t.r,i,n+1)):i[t.s]=n},Sf=function(t){for(var i=t.length;i&&!t[--i];);for(var n=new to(++i),a=0,o=t[0],c=1,u=function(x){n[a++]=x},m=1;m<=i;++m)if(t[m]==o&&m!=i)++c;else{if(!o&&c>2){for(;c>138;c-=138)u(32754);c>2&&(u(c>10?c-11<<5|28690:c-3<<5|12305),c=0)}else if(c>3){for(u(o),--c;c>6;c-=6)u(8304);c>2&&(u(c-3<<5|8208),c=0)}for(;c--;)u(o);c=1,o=t[m]}return{c:n.subarray(0,a),n:i}},r0=function(t,i){for(var n=0,a=0;a>8,t[o+2]=t[o]^255,t[o+3]=t[o+1]^255;for(var c=0;c4&&!xt[Cf[$-1]];--$);var at=v+5<<3,it=r0(o,yl)+r0(c,Bc)+u,wt=r0(o,L)+r0(c,H)+u+14+3*$+r0(qt,xt)+2*qt[16]+3*qt[17]+7*qt[18];if(x>=0&&at<=it&&at<=wt)return Af(i,S,t.subarray(x,x+v));var Nt,kt,bt,Bt;if(pr(i,S,1+(wt15&&(pr(i,S,K[ut]>>5&127),S+=K[ut]>>12)}}else Nt=Jv,kt=yl,bt=Xv,Bt=Bc;for(var ut=0;ut255){var X=st>>18&31;o0(i,S,Nt[X+257]),S+=kt[X+257],X>7&&(pr(i,S,st>>23&31),S+=ud[X]);var dt=st&31;o0(i,S,bt[dt]),S+=Bt[dt],dt>3&&(o0(i,S,st>>5&8191),S+=fd[dt])}else o0(i,S,Nt[st]),S+=kt[st]}return o0(i,S,Nt[256]),S+kt[256]},t5=new dd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Of=new wo(0),e5=function(t,i,n,a,o,c){var u=c.z||t.length,m=new wo(a+u+5*(1+Math.ceil(u/7e3))+o),x=m.subarray(a,m.length-o),v=c.l,S=(c.r||0)&7;if(i){S&&(x[0]=c.r>>3);for(var A=t5[i-1],L=A>>13,w=A&8191,z=(1<7e3||xt>24576)&&(Nt>423||!v)){S=Df(t,x,0,tt,It,Yt,ut,xt,$,Q-$,S),xt=qt=ut=0,$=Q;for(var kt=0;kt<286;++kt)It[kt]=0;for(var kt=0;kt<30;++kt)Yt[kt]=0}var bt=2,Bt=0,re=w,Kt=it-wt&32767;if(Nt>2&&at==lt(Q-Kt))for(var k=Math.min(L,Nt)-1,K=Math.min(32767,Q),X=Math.min(258,Nt);Kt<=K&&--re&&it!=wt;){if(t[Q+bt]==t[Q+bt-Kt]){for(var st=0;stbt){if(bt=st,Bt=Kt,st>k)break;for(var dt=Math.min(Kt,st-2),Ct=0,kt=0;ktCt&&(Ct=Ht,wt=Mt)}}}it=wt,wt=H[it],Kt+=it-wt&32767}if(Bt){tt[xt++]=268435456|cd[bt]<<18|yf[Bt];var ee=cd[bt]&31,_e=yf[Bt]&31;ut+=ud[ee]+fd[_e],++It[257+ee],++Yt[_e],B=Q+bt,++qt}else tt[xt++]=t[Q],++It[t[Q]]}}for(Q=Math.max(Q,B);Q=u&&(x[S/8|0]=v,Se=u),S=Af(x,S+1,t.subarray(Q,Se))}c.i=u}return Qv(m,0,a+If(S)+o)};var Mf=function(){var t=1,i=0;return{p:function(n){for(var a=t,o=i,c=n.length|0,u=0;u!=c;){for(var m=Math.min(u+2655,c);u>16),o=(o&65535)+15*(o>>16)}t=a,i=o},d:function(){return t%=65521,i%=65521,(t&255)<<24|(t&65280)<<8|(i&255)<<8|i>>8}}},n5=function(t,i,n,a,o){if(!o&&(o={l:1},i.dictionary)){var c=i.dictionary.subarray(-32768),u=new wo(c.length+t.length);u.set(c),u.set(t,c.length),t=u,o.w=c.length}return e5(t,i.level==null?6:i.level,i.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+i.mem,n,a,o)};var Ef=function(t,i,n){for(;n;++i)t[i]=n,n>>>=8};var i5=function(t,i){var n=i.level,a=n==0?0:n<6?1:n==9?3:2;if(t[0]=120,t[1]=a<<6|(i.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,i.dictionary){var o=Mf();o.p(i.dictionary),Ef(t,2,o.d())}};function jc(t,i){i||(i={});var n=Mf();n.p(t);var a=n5(t,i,i.dictionary?6:2,4);return i5(a,i),Ef(a,a.length-4,n.d()),a}var a5=typeof TextDecoder<"u"&&new TextDecoder,o5=0;try{a5.decode(Of,{stream:!0}),o5=1}catch{}function Lf(t){if(Array.isArray(t))return t}function Nf(t,i){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,o,c,u,m=[],x=!0,v=!1;try{if(c=(n=n.call(t)).next,i===0){if(Object(n)!==n)return;x=!1}else for(;!(x=(a=c.call(n)).done)&&(m.push(a.value),m.length!==i);x=!0);}catch(S){v=!0,o=S}finally{try{if(!x&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(v)throw o}}return m}}function hd(t,i){(i==null||i>t.length)&&(i=t.length);for(var n=0,a=Array(i);n{let t=new Uint8Array(4),i=new Uint32Array(t.buffer);return!((i[0]=1)&t[0])})(),_d={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},s0=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(i=l5,n={}){let a=!1;typeof i=="number"?i=new ArrayBuffer(i):(a=!0,this.lastWrittenByte=i.byteLength);let o=n.offset?n.offset>>>0:0,c=i.byteLength-o,u=o;(ArrayBuffer.isView(i)||i instanceof t)&&(i.byteLength!==i.buffer.byteLength&&(u=i.byteOffset+o),i=i.buffer),a?this.lastWrittenByte=c:this.lastWrittenByte=0,this.buffer=i,this.length=c,this.byteLength=c,this.byteOffset=u,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,u,c),this._mark=0,this._marks=[]}available(i=1){return this.offset+i<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(i=1){return this.offset+=i,this}back(i=1){return this.offset-=i,this}seek(i){return this.offset=i,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let i=this._marks.pop();if(i===void 0)throw new Error("Mark stack empty");return this.seek(i),this}rewind(){return this.offset=0,this}ensureAvailable(i=1){if(!this.available(i)){let a=(this.offset+i)*2,o=new Uint8Array(a);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=a,this.byteLength=a,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(i=1){return this.readArray(i,"uint8")}readArray(i,n){let a=_d[n].BYTES_PER_ELEMENT*i,o=this.byteOffset+this.offset,c=this.buffer.slice(o,o+a);if(this.littleEndian===s5&&n!=="uint8"&&n!=="int8"){let m=new Uint8Array(this.buffer.slice(o,o+a));m.reverse();let x=new _d[n](m.buffer);return this.offset+=a,x.reverse(),x}let u=new _d[n](c);return this.offset+=a,u}readInt16(){let i=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,i}readUint16(){let i=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,i}readInt32(){let i=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,i}readUint32(){let i=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat32(){let i=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat64(){let i=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,i}readBigInt64(){let i=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,i}readBigUint64(){let i=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,i}readChar(){return String.fromCharCode(this.readInt8())}readChars(i=1){let n="";for(let a=0;athis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function ps(t){let i=t.length;for(;--i>=0;)t[i]=0}var c5=0,yh=1,p5=2,m5=3,d5=258,Vd=29,S0=256,h0=S0+1+Vd,ls=30,Ud=19,Sh=2*h0+1,Sl=15,vd=16,u5=7,Hd=256,Dh=16,wh=17,Th=18,Ld=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Gc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),f5=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ph=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h5=512,dr=new Array((h0+2)*2);ps(dr);var d0=new Array(ls*2);ps(d0);var g0=new Array(h5);ps(g0);var x0=new Array(d5-m5+1);ps(x0);var Gd=new Array(Vd);ps(Gd);var Wc=new Array(ls);ps(Wc);function bd(t,i,n,a,o){this.static_tree=t,this.extra_bits=i,this.extra_base=n,this.elems=a,this.max_length=o,this.has_stree=t&&t.length}var Ih,Ah,Oh;function Cd(t,i){this.dyn_tree=t,this.max_code=0,this.stat_desc=i}var Mh=t=>t<256?g0[t]:g0[256+(t>>>7)],_0=(t,i)=>{t.pending_buf[t.pending++]=i&255,t.pending_buf[t.pending++]=i>>>8&255},Ha=(t,i,n)=>{t.bi_valid>vd-n?(t.bi_buf|=i<>vd-t.bi_valid,t.bi_valid+=n-vd):(t.bi_buf|=i<{Ha(t,n[i*2],n[i*2+1])},Eh=(t,i)=>{let n=0;do n|=t&1,t>>>=1,n<<=1;while(--i>0);return n>>>1},g5=t=>{t.bi_valid===16?(_0(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},x5=(t,i)=>{let n=i.dyn_tree,a=i.max_code,o=i.stat_desc.static_tree,c=i.stat_desc.has_stree,u=i.stat_desc.extra_bits,m=i.stat_desc.extra_base,x=i.stat_desc.max_length,v,S,A,L,w,z,H=0;for(L=0;L<=Sl;L++)t.bl_count[L]=0;for(n[t.heap[t.heap_max]*2+1]=0,v=t.heap_max+1;vx&&(L=x,H++),n[S*2+1]=L,!(S>a)&&(t.bl_count[L]++,w=0,S>=m&&(w=u[S-m]),z=n[S*2],t.opt_len+=z*(L+w),c&&(t.static_len+=z*(o[S*2+1]+w)));if(H!==0){do{for(L=x-1;t.bl_count[L]===0;)L--;t.bl_count[L]--,t.bl_count[L+1]+=2,t.bl_count[x]--,H-=2}while(H>0);for(L=x;L!==0;L--)for(S=t.bl_count[L];S!==0;)A=t.heap[--v],!(A>a)&&(n[A*2+1]!==L&&(t.opt_len+=(L-n[A*2+1])*n[A*2],n[A*2+1]=L),S--)}},Lh=(t,i,n)=>{let a=new Array(Sl+1),o=0,c,u;for(c=1;c<=Sl;c++)o=o+n[c-1]<<1,a[c]=o;for(u=0;u<=i;u++){let m=t[u*2+1];m!==0&&(t[u*2]=Eh(a[m]++,m))}},_5=()=>{let t,i,n,a,o,c=new Array(Sl+1);for(n=0,a=0;a>=7;a{let i;for(i=0;i{t.bi_valid>8?_0(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Bf=(t,i,n,a)=>{let o=i*2,c=n*2;return t[o]{let a=t.heap[n],o=n<<1;for(;o<=t.heap_len&&(o{let a,o,c=0,u,m;if(t.sym_next!==0)do a=t.pending_buf[t.sym_buf+c++]&255,a+=(t.pending_buf[t.sym_buf+c++]&255)<<8,o=t.pending_buf[t.sym_buf+c++],a===0?Vo(t,o,i):(u=x0[o],Vo(t,u+S0+1,i),m=Ld[u],m!==0&&(o-=Gd[u],Ha(t,o,m)),a--,u=Mh(a),Vo(t,u,n),m=Gc[u],m!==0&&(a-=Wc[u],Ha(t,a,m)));while(c{let n=i.dyn_tree,a=i.stat_desc.static_tree,o=i.stat_desc.has_stree,c=i.stat_desc.elems,u,m,x=-1,v;for(t.heap_len=0,t.heap_max=Sh,u=0;u>1;u>=1;u--)yd(t,n,u);v=c;do u=t.heap[1],t.heap[1]=t.heap[t.heap_len--],yd(t,n,1),m=t.heap[1],t.heap[--t.heap_max]=u,t.heap[--t.heap_max]=m,n[v*2]=n[u*2]+n[m*2],t.depth[v]=(t.depth[u]>=t.depth[m]?t.depth[u]:t.depth[m])+1,n[u*2+1]=n[m*2+1]=v,t.heap[1]=v++,yd(t,n,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],x5(t,i),Lh(n,x,t.bl_count)},qf=(t,i,n)=>{let a,o=-1,c,u=i[0*2+1],m=0,x=7,v=4;for(u===0&&(x=138,v=3),i[(n+1)*2+1]=65535,a=0;a<=n;a++)c=u,u=i[(a+1)*2+1],!(++m{let a,o=-1,c,u=i[0*2+1],m=0,x=7,v=4;for(u===0&&(x=138,v=3),a=0;a<=n;a++)if(c=u,u=i[(a+1)*2+1],!(++m{let i;for(qf(t,t.dyn_ltree,t.l_desc.max_code),qf(t,t.dyn_dtree,t.d_desc.max_code),Nd(t,t.bl_desc),i=Ud-1;i>=3&&t.bl_tree[Ph[i]*2+1]===0;i--);return t.opt_len+=3*(i+1)+5+5+4,i},b5=(t,i,n,a)=>{let o;for(Ha(t,i-257,5),Ha(t,n-1,5),Ha(t,a-4,4),o=0;o{let i=4093624447,n;for(n=0;n<=31;n++,i>>>=1)if(i&1&&t.dyn_ltree[n*2]!==0)return 0;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return 1;for(n=32;n{Vf||(_5(),Vf=!0),t.l_desc=new Cd(t.dyn_ltree,Ih),t.d_desc=new Cd(t.dyn_dtree,Ah),t.bl_desc=new Cd(t.bl_tree,Oh),t.bi_buf=0,t.bi_valid=0,Nh(t)},kh=(t,i,n,a)=>{Ha(t,(c5<<1)+(a?1:0),3),Fh(t),_0(t,n),_0(t,~n),n&&t.pending_buf.set(t.window.subarray(i,i+n),t.pending),t.pending+=n},S5=t=>{Ha(t,yh<<1,3),Vo(t,Hd,dr),g5(t)},D5=(t,i,n,a)=>{let o,c,u=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=C5(t)),Nd(t,t.l_desc),Nd(t,t.d_desc),u=v5(t),o=t.opt_len+3+7>>>3,c=t.static_len+3+7>>>3,c<=o&&(o=c)):o=c=n+5,n+4<=o&&i!==-1?kh(t,i,n,a):t.strategy===4||c===o?(Ha(t,(yh<<1)+(a?1:0),3),jf(t,dr,d0)):(Ha(t,(p5<<1)+(a?1:0),3),b5(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),jf(t,t.dyn_ltree,t.dyn_dtree)),Nh(t),a&&Fh(t)},w5=(t,i,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=i,t.pending_buf[t.sym_buf+t.sym_next++]=i>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,i===0?t.dyn_ltree[n*2]++:(t.matches++,i--,t.dyn_ltree[(x0[n]+S0+1)*2]++,t.dyn_dtree[Mh(i)*2]++),t.sym_next===t.sym_end),T5=y5,P5=kh,I5=D5,A5=w5,O5=S5,M5={_tr_init:T5,_tr_stored_block:P5,_tr_flush_block:I5,_tr_tally:A5,_tr_align:O5},E5=(t,i,n,a)=>{let o=t&65535|0,c=t>>>16&65535|0,u=0;for(;n!==0;){u=n>2e3?2e3:n,n-=u;do o=o+i[a++]|0,c=c+o|0;while(--u);o%=65521,c%=65521}return o|c<<16|0},v0=E5,L5=()=>{let t,i=[];for(var n=0;n<256;n++){t=n;for(var a=0;a<8;a++)t=t&1?3988292384^t>>>1:t>>>1;i[n]=t}return i},N5=new Uint32Array(L5()),F5=(t,i,n,a)=>{let o=N5,c=a+n;t^=-1;for(let u=a;u>>8^o[(t^i[u])&255];return t^-1},ua=F5,Tl={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ms={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:k5,_tr_stored_block:Fd,_tr_flush_block:R5,_tr_tally:Ur,_tr_align:B5}=M5,{Z_NO_FLUSH:Hr,Z_PARTIAL_FLUSH:j5,Z_FULL_FLUSH:q5,Z_FINISH:fo,Z_BLOCK:Uf,Z_OK:ba,Z_STREAM_END:Hf,Z_STREAM_ERROR:Uo,Z_DATA_ERROR:z5,Z_BUF_ERROR:Sd,Z_DEFAULT_COMPRESSION:V5,Z_FILTERED:U5,Z_HUFFMAN_ONLY:qc,Z_RLE:H5,Z_FIXED:G5,Z_DEFAULT_STRATEGY:W5,Z_UNKNOWN:$5,Z_DEFLATED:Zc}=ms,Y5=9,Z5=15,K5=8,J5=29,X5=256,kd=X5+1+J5,Q5=30,tb=19,eb=2*kd+1,nb=15,Jn=3,Vr=258,Ho=Vr+Jn+1,ib=32,ss=42,Wd=57,Rd=69,Bd=73,jd=91,qd=103,Dl=113,p0=666,Na=1,ds=2,Pl=3,us=4,ab=3,wl=(t,i)=>(t.msg=Tl[i],i),Gf=t=>t*2-(t>4?9:0),zr=t=>{let i=t.length;for(;--i>=0;)t[i]=0},ob=t=>{let i,n,a,o=t.w_size;i=t.hash_size,a=i;do n=t.head[--a],t.head[a]=n>=o?n-o:0;while(--i);i=o,a=i;do n=t.prev[--a],t.prev[a]=n>=o?n-o:0;while(--i)},rb=(t,i,n)=>(i<{let i=t.state,n=i.pending;n>t.avail_out&&(n=t.avail_out),n!==0&&(t.output.set(i.pending_buf.subarray(i.pending_out,i.pending_out+n),t.next_out),t.next_out+=n,i.pending_out+=n,t.total_out+=n,t.avail_out-=n,i.pending-=n,i.pending===0&&(i.pending_out=0))},no=(t,i)=>{R5(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,i),t.block_start=t.strstart,eo(t.strm)},oi=(t,i)=>{t.pending_buf[t.pending++]=i},c0=(t,i)=>{t.pending_buf[t.pending++]=i>>>8&255,t.pending_buf[t.pending++]=i&255},zd=(t,i,n,a)=>{let o=t.avail_in;return o>a&&(o=a),o===0?0:(t.avail_in-=o,i.set(t.input.subarray(t.next_in,t.next_in+o),n),t.state.wrap===1?t.adler=v0(t.adler,i,o,n):t.state.wrap===2&&(t.adler=ua(t.adler,i,o,n)),t.next_in+=o,t.total_in+=o,o)},Rh=(t,i)=>{let n=t.max_chain_length,a=t.strstart,o,c,u=t.prev_length,m=t.nice_match,x=t.strstart>t.w_size-Ho?t.strstart-(t.w_size-Ho):0,v=t.window,S=t.w_mask,A=t.prev,L=t.strstart+Vr,w=v[a+u-1],z=v[a+u];t.prev_length>=t.good_match&&(n>>=2),m>t.lookahead&&(m=t.lookahead);do if(o=i,!(v[o+u]!==z||v[o+u-1]!==w||v[o]!==v[a]||v[++o]!==v[a+1])){a+=2,o++;do;while(v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&v[++a]===v[++o]&&au){if(t.match_start=i,u=c,c>=m)break;w=v[a+u-1],z=v[a+u]}}while((i=A[i&S])>x&&--n!==0);return u<=t.lookahead?u:t.lookahead},cs=t=>{let i=t.w_size,n,a,o;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=i+(i-Ho)&&(t.window.set(t.window.subarray(i,i+i-a),0),t.match_start-=i,t.strstart-=i,t.block_start-=i,t.insert>t.strstart&&(t.insert=t.strstart),ob(t),a+=i),t.strm.avail_in===0)break;if(n=zd(t.strm,t.window,t.strstart+t.lookahead,a),t.lookahead+=n,t.lookahead+t.insert>=Jn)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=Gr(t,t.ins_h,t.window[o+1]);t.insert&&(t.ins_h=Gr(t,t.ins_h,t.window[o+Jn-1]),t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert{let n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a,o,c,u=0,m=t.strm.avail_in;do{if(a=65535,c=t.bi_valid+42>>3,t.strm.avail_outo+t.strm.avail_in&&(a=o+t.strm.avail_in),a>c&&(a=c),a>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,eo(t.strm),o&&(o>a&&(o=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+o),t.strm.next_out),t.strm.next_out+=o,t.strm.avail_out-=o,t.strm.total_out+=o,t.block_start+=o,a-=o),a&&(zd(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(u===0);return m-=t.strm.avail_in,m&&(m>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=m&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-m,t.strm.next_in),t.strstart),t.strstart+=m,t.insert+=m>t.w_size-t.insert?t.w_size-t.insert:m),t.block_start=t.strstart),t.high_waterc&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,c+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),c>t.strm.avail_in&&(c=t.strm.avail_in),c&&(zd(t.strm,t.window,t.strstart,c),t.strstart+=c,t.insert+=c>t.w_size-t.insert?t.w_size-t.insert:c),t.high_water>3,c=t.pending_buf_size-c>65535?65535:t.pending_buf_size-c,n=c>t.w_size?t.w_size:c,o=t.strstart-t.block_start,(o>=n||(o||i===fo)&&i!==Hr&&t.strm.avail_in===0&&o<=c)&&(a=o>c?c:o,u=i===fo&&t.strm.avail_in===0&&a===o?1:0,Fd(t,t.block_start,a,u),t.block_start+=a,eo(t.strm)),u?Pl:Na)},Dd=(t,i)=>{let n,a;for(;;){if(t.lookahead=Jn&&(t.ins_h=Gr(t,t.ins_h,t.window[t.strstart+Jn-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),n!==0&&t.strstart-n<=t.w_size-Ho&&(t.match_length=Rh(t,n)),t.match_length>=Jn)if(a=Ur(t,t.strstart-t.match_start,t.match_length-Jn),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=Jn){t.match_length--;do t.strstart++,t.ins_h=Gr(t,t.ins_h,t.window[t.strstart+Jn-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Gr(t,t.ins_h,t.window[t.strstart+1]);else a=Ur(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(a&&(no(t,!1),t.strm.avail_out===0))return Na}return t.insert=t.strstart{let n,a,o;for(;;){if(t.lookahead=Jn&&(t.ins_h=Gr(t,t.ins_h,t.window[t.strstart+Jn-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=Jn-1,n!==0&&t.prev_length4096)&&(t.match_length=Jn-1)),t.prev_length>=Jn&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-Jn,a=Ur(t,t.strstart-1-t.prev_match,t.prev_length-Jn),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=o&&(t.ins_h=Gr(t,t.ins_h,t.window[t.strstart+Jn-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=Jn-1,t.strstart++,a&&(no(t,!1),t.strm.avail_out===0))return Na}else if(t.match_available){if(a=Ur(t,0,t.window[t.strstart-1]),a&&no(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Na}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(a=Ur(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let n,a,o,c,u=t.window;for(;;){if(t.lookahead<=Vr){if(cs(t),t.lookahead<=Vr&&i===Hr)return Na;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=Jn&&t.strstart>0&&(o=t.strstart-1,a=u[o],a===u[++o]&&a===u[++o]&&a===u[++o])){c=t.strstart+Vr;do;while(a===u[++o]&&a===u[++o]&&a===u[++o]&&a===u[++o]&&a===u[++o]&&a===u[++o]&&a===u[++o]&&a===u[++o]&&ot.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=Jn?(n=Ur(t,1,t.match_length-Jn),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Ur(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(no(t,!1),t.strm.avail_out===0))return Na}return t.insert=0,i===fo?(no(t,!0),t.strm.avail_out===0?Pl:us):t.sym_next&&(no(t,!1),t.strm.avail_out===0)?Na:ds},sb=(t,i)=>{let n;for(;;){if(t.lookahead===0&&(cs(t),t.lookahead===0)){if(i===Hr)return Na;break}if(t.match_length=0,n=Ur(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(no(t,!1),t.strm.avail_out===0))return Na}return t.insert=0,i===fo?(no(t,!0),t.strm.avail_out===0?Pl:us):t.sym_next&&(no(t,!1),t.strm.avail_out===0)?Na:ds};function zo(t,i,n,a,o){this.good_length=t,this.max_lazy=i,this.nice_length=n,this.max_chain=a,this.func=o}var m0=[new zo(0,0,0,0,Bh),new zo(4,4,8,4,Dd),new zo(4,5,16,8,Dd),new zo(4,6,32,32,Dd),new zo(4,4,16,16,os),new zo(8,16,32,32,os),new zo(8,16,128,128,os),new zo(8,32,128,256,os),new zo(32,128,258,1024,os),new zo(32,258,258,4096,os)],cb=t=>{t.window_size=2*t.w_size,zr(t.head),t.max_lazy_match=m0[t.level].max_lazy,t.good_match=m0[t.level].good_length,t.nice_match=m0[t.level].nice_length,t.max_chain_length=m0[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=Jn-1,t.match_available=0,t.ins_h=0};function pb(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Zc,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(eb*2),this.dyn_dtree=new Uint16Array((2*Q5+1)*2),this.bl_tree=new Uint16Array((2*tb+1)*2),zr(this.dyn_ltree),zr(this.dyn_dtree),zr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(nb+1),this.heap=new Uint16Array(2*kd+1),zr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*kd+1),zr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var D0=t=>{if(!t)return 1;let i=t.state;return!i||i.strm!==t||i.status!==ss&&i.status!==Wd&&i.status!==Rd&&i.status!==Bd&&i.status!==jd&&i.status!==qd&&i.status!==Dl&&i.status!==p0?1:0},jh=t=>{if(D0(t))return wl(t,Uo);t.total_in=t.total_out=0,t.data_type=$5;let i=t.state;return i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap===2?Wd:i.wrap?ss:Dl,t.adler=i.wrap===2?0:1,i.last_flush=-2,k5(i),ba},qh=t=>{let i=jh(t);return i===ba&&cb(t.state),i},mb=(t,i)=>D0(t)||t.state.wrap!==2?Uo:(t.state.gzhead=i,ba),zh=(t,i,n,a,o,c)=>{if(!t)return Uo;let u=1;if(i===V5&&(i=6),a<0?(u=0,a=-a):a>15&&(u=2,a-=16),o<1||o>Y5||n!==Zc||a<8||a>15||i<0||i>9||c<0||c>G5||a===8&&u!==1)return wl(t,Uo);a===8&&(a=9);let m=new pb;return t.state=m,m.strm=t,m.status=ss,m.wrap=u,m.gzhead=null,m.w_bits=a,m.w_size=1<zh(t,i,Zc,Z5,K5,W5),ub=(t,i)=>{if(D0(t)||i>Uf||i<0)return t?wl(t,Uo):Uo;let n=t.state;if(!t.output||t.avail_in!==0&&!t.input||n.status===p0&&i!==fo)return wl(t,t.avail_out===0?Sd:Uo);let a=n.last_flush;if(n.last_flush=i,n.pending!==0){if(eo(t),t.avail_out===0)return n.last_flush=-1,ba}else if(t.avail_in===0&&Gf(i)<=Gf(a)&&i!==fo)return wl(t,Sd);if(n.status===p0&&t.avail_in!==0)return wl(t,Sd);if(n.status===ss&&n.wrap===0&&(n.status=Dl),n.status===ss){let o=Zc+(n.w_bits-8<<4)<<8,c=-1;if(n.strategy>=qc||n.level<2?c=0:n.level<6?c=1:n.level===6?c=2:c=3,o|=c<<6,n.strstart!==0&&(o|=ib),o+=31-o%31,c0(n,o),n.strstart!==0&&(c0(n,t.adler>>>16),c0(n,t.adler&65535)),t.adler=1,n.status=Dl,eo(t),n.pending!==0)return n.last_flush=-1,ba}if(n.status===Wd){if(t.adler=0,oi(n,31),oi(n,139),oi(n,8),n.gzhead)oi(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),oi(n,n.gzhead.time&255),oi(n,n.gzhead.time>>8&255),oi(n,n.gzhead.time>>16&255),oi(n,n.gzhead.time>>24&255),oi(n,n.level===9?2:n.strategy>=qc||n.level<2?4:0),oi(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(oi(n,n.gzhead.extra.length&255),oi(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=ua(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Rd;else if(oi(n,0),oi(n,0),oi(n,0),oi(n,0),oi(n,0),oi(n,n.level===9?2:n.strategy>=qc||n.level<2?4:0),oi(n,ab),n.status=Dl,eo(t),n.pending!==0)return n.last_flush=-1,ba}if(n.status===Rd){if(n.gzhead.extra){let o=n.pending,c=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+c>n.pending_buf_size;){let m=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+m),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>o&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),n.gzindex+=m,eo(t),n.pending!==0)return n.last_flush=-1,ba;o=0,c-=m}let u=new Uint8Array(n.gzhead.extra);n.pending_buf.set(u.subarray(n.gzindex,n.gzindex+c),n.pending),n.pending+=c,n.gzhead.hcrc&&n.pending>o&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),n.gzindex=0}n.status=Bd}if(n.status===Bd){if(n.gzhead.name){let o=n.pending,c;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>o&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),eo(t),n.pending!==0)return n.last_flush=-1,ba;o=0}n.gzindexo&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),n.gzindex=0}n.status=jd}if(n.status===jd){if(n.gzhead.comment){let o=n.pending,c;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>o&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o)),eo(t),n.pending!==0)return n.last_flush=-1,ba;o=0}n.gzindexo&&(t.adler=ua(t.adler,n.pending_buf,n.pending-o,o))}n.status=qd}if(n.status===qd){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(eo(t),n.pending!==0))return n.last_flush=-1,ba;oi(n,t.adler&255),oi(n,t.adler>>8&255),t.adler=0}if(n.status=Dl,eo(t),n.pending!==0)return n.last_flush=-1,ba}if(t.avail_in!==0||n.lookahead!==0||i!==Hr&&n.status!==p0){let o=n.level===0?Bh(n,i):n.strategy===qc?sb(n,i):n.strategy===H5?lb(n,i):m0[n.level].func(n,i);if((o===Pl||o===us)&&(n.status=p0),o===Na||o===Pl)return t.avail_out===0&&(n.last_flush=-1),ba;if(o===ds&&(i===j5?B5(n):i!==Uf&&(Fd(n,0,0,!1),i===q5&&(zr(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),eo(t),t.avail_out===0))return n.last_flush=-1,ba}return i!==fo?ba:n.wrap<=0?Hf:(n.wrap===2?(oi(n,t.adler&255),oi(n,t.adler>>8&255),oi(n,t.adler>>16&255),oi(n,t.adler>>24&255),oi(n,t.total_in&255),oi(n,t.total_in>>8&255),oi(n,t.total_in>>16&255),oi(n,t.total_in>>24&255)):(c0(n,t.adler>>>16),c0(n,t.adler&65535)),eo(t),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?ba:Hf)},fb=t=>{if(D0(t))return Uo;let i=t.state.status;return t.state=null,i===Dl?wl(t,z5):ba},hb=(t,i)=>{let n=i.length;if(D0(t))return Uo;let a=t.state,o=a.wrap;if(o===2||o===1&&a.status!==ss||a.lookahead)return Uo;if(o===1&&(t.adler=v0(t.adler,i,n,0)),a.wrap=0,n>=a.w_size){o===0&&(zr(a.head),a.strstart=0,a.block_start=0,a.insert=0);let x=new Uint8Array(a.w_size);x.set(i.subarray(n-a.w_size,n),0),i=x,n=a.w_size}let c=t.avail_in,u=t.next_in,m=t.input;for(t.avail_in=n,t.next_in=0,t.input=i,cs(a);a.lookahead>=Jn;){let x=a.strstart,v=a.lookahead-(Jn-1);do a.ins_h=Gr(a,a.ins_h,a.window[x+Jn-1]),a.prev[x&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=x,x++;while(--v);a.strstart=x,a.lookahead=Jn-1,cs(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=Jn-1,a.match_available=0,t.next_in=u,t.input=m,t.avail_in=c,a.wrap=o,ba},gb=db,xb=zh,_b=qh,vb=jh,bb=mb,Cb=ub,yb=fb,Sb=hb,Db="pako deflate (from Nodeca project)",u0={deflateInit:gb,deflateInit2:xb,deflateReset:_b,deflateResetKeep:vb,deflateSetHeader:bb,deflate:Cb,deflateEnd:yb,deflateSetDictionary:Sb,deflateInfo:Db},wb=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),Tb=function(t){let i=Array.prototype.slice.call(arguments,1);for(;i.length;){let n=i.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let a in n)wb(n,a)&&(t[a]=n[a])}}return t},Pb=t=>{let i=0;for(let a=0,o=t.length;a=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;b0[254]=b0[254]=1;var Ib=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let i,n,a,o,c,u=t.length,m=0;for(o=0;o>>6,i[c++]=128|n&63):n<65536?(i[c++]=224|n>>>12,i[c++]=128|n>>>6&63,i[c++]=128|n&63):(i[c++]=240|n>>>18,i[c++]=128|n>>>12&63,i[c++]=128|n>>>6&63,i[c++]=128|n&63);return i},Ab=(t,i)=>{if(i<65534&&t.subarray&&Vh)return String.fromCharCode.apply(null,t.length===i?t:t.subarray(0,i));let n="";for(let a=0;a{let n=i||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,i));let a,o,c=new Array(n*2);for(o=0,a=0;a4){c[o++]=65533,a+=m-1;continue}for(u&=m===2?31:m===3?15:7;m>1&&a1){c[o++]=65533;continue}u<65536?c[o++]=u:(u-=65536,c[o++]=55296|u>>10&1023,c[o++]=56320|u&1023)}return Ab(c,o)},Mb=(t,i)=>{i=i||t.length,i>t.length&&(i=t.length);let n=i-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?i:n+b0[t[n]]>i?n:i},C0={string2buf:Ib,buf2string:Ob,utf8border:Mb};function Eb(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Uh=Eb,Hh=Object.prototype.toString,{Z_NO_FLUSH:Lb,Z_SYNC_FLUSH:Nb,Z_FULL_FLUSH:Fb,Z_FINISH:kb,Z_OK:$c,Z_STREAM_END:Rb,Z_DEFAULT_COMPRESSION:Bb,Z_DEFAULT_STRATEGY:jb,Z_DEFLATED:qb}=ms;function w0(t){this.options=Kc.assign({level:Bb,method:qb,chunkSize:16384,windowBits:15,memLevel:8,strategy:jb},t||{});let i=this.options;i.raw&&i.windowBits>0?i.windowBits=-i.windowBits:i.gzip&&i.windowBits>0&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Uh,this.strm.avail_out=0;let n=u0.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(n!==$c)throw new Error(Tl[n]);if(i.header&&u0.deflateSetHeader(this.strm,i.header),i.dictionary){let a;if(typeof i.dictionary=="string"?a=C0.string2buf(i.dictionary):Hh.call(i.dictionary)==="[object ArrayBuffer]"?a=new Uint8Array(i.dictionary):a=i.dictionary,n=u0.deflateSetDictionary(this.strm,a),n!==$c)throw new Error(Tl[n]);this._dict_set=!0}}w0.prototype.push=function(t,i){let n=this.strm,a=this.options.chunkSize,o,c;if(this.ended)return!1;for(i===~~i?c=i:c=i===!0?kb:Lb,typeof t=="string"?n.input=C0.string2buf(t):Hh.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),(c===Nb||c===Fb)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(o=u0.deflate(n,c),o===Rb)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),o=u0.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===$c;if(n.avail_out===0){this.onData(n.output);continue}if(c>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};w0.prototype.onData=function(t){this.chunks.push(t)};w0.prototype.onEnd=function(t){t===$c&&(this.result=Kc.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function $d(t,i){let n=new w0(i);if(n.push(t,!0),n.err)throw n.msg||Tl[n.err];return n.result}function zb(t,i){return i=i||{},i.raw=!0,$d(t,i)}function Vb(t,i){return i=i||{},i.gzip=!0,$d(t,i)}var Ub=w0,Hb=$d,Gb=zb,Wb=Vb,$b=ms,Yb={Deflate:Ub,deflate:Hb,deflateRaw:Gb,gzip:Wb,constants:$b},zc=16209,Zb=16191,Kb=function(i,n){let a,o,c,u,m,x,v,S,A,L,w,z,H,Z,j,rt,lt,tt,It,Yt,qt,ut,Q,xt,B=i.state;a=i.next_in,Q=i.input,o=a+(i.avail_in-5),c=i.next_out,xt=i.output,u=c-(n-i.avail_out),m=c+(i.avail_out-257),x=B.dmax,v=B.wsize,S=B.whave,A=B.wnext,L=B.window,w=B.hold,z=B.bits,H=B.lencode,Z=B.distcode,j=(1<>>24,w>>>=tt,z-=tt,tt=lt>>>16&255,tt===0)xt[c++]=lt&65535;else if(tt&16){It=lt&65535,tt&=15,tt&&(z>>=tt,z-=tt),z<15&&(w+=Q[a++]<>>24,w>>>=tt,z-=tt,tt=lt>>>16&255,tt&16){if(Yt=lt&65535,tt&=15,zx){i.msg="invalid distance too far back",B.mode=zc;break t}if(w>>>=tt,z-=tt,tt=c-u,Yt>tt){if(tt=Yt-tt,tt>S&&B.sane){i.msg="invalid distance too far back",B.mode=zc;break t}if(qt=0,ut=L,A===0){if(qt+=v-tt,tt2;)xt[c++]=ut[qt++],xt[c++]=ut[qt++],xt[c++]=ut[qt++],It-=3;It&&(xt[c++]=ut[qt++],It>1&&(xt[c++]=ut[qt++]))}else{qt=c-Yt;do xt[c++]=xt[qt++],xt[c++]=xt[qt++],xt[c++]=xt[qt++],It-=3;while(It>2);It&&(xt[c++]=xt[qt++],It>1&&(xt[c++]=xt[qt++]))}}else if((tt&64)===0){lt=Z[(lt&65535)+(w&(1<>3,a-=It,z-=It<<3,w&=(1<{let x=m.bits,v=0,S=0,A=0,L=0,w=0,z=0,H=0,Z=0,j=0,rt=0,lt,tt,It,Yt,qt,ut=null,Q,xt=new Uint16Array(rs+1),B=new Uint16Array(rs+1),$=null,at,it,wt;for(v=0;v<=rs;v++)xt[v]=0;for(S=0;S=1&&xt[L]===0;L--);if(w>L&&(w=L),L===0)return o[c++]=1<<24|64<<16|0,o[c++]=1<<24|64<<16|0,m.bits=1,0;for(A=1;A0&&(t===Yf||L!==1))return-1;for(B[1]=0,v=1;vWf||t===Zf&&j>$f)return 1;for(;;){at=v-H,u[S]+1=Q?(it=$[u[S]-Q],wt=ut[u[S]-Q]):(it=96,wt=0),lt=1<>H)+tt]=at<<24|it<<16|wt|0;while(tt!==0);for(lt=1<>=1;if(lt!==0?(rt&=lt-1,rt+=lt):rt=0,S++,--xt[v]===0){if(v===L)break;v=i[n+u[S]]}if(v>w&&(rt&Yt)!==It){for(H===0&&(H=w),qt+=A,z=v-H,Z=1<Wf||t===Zf&&j>$f)return 1;It=rt&Yt,o[It]=w<<24|z<<16|qt-c|0}}return rt!==0&&(o[qt+rt]=v-H<<24|64<<16|0),m.bits=w,0},f0=e3,n3=0,Gh=1,Wh=2,{Z_FINISH:Kf,Z_BLOCK:i3,Z_TREES:Vc,Z_OK:Il,Z_STREAM_END:a3,Z_NEED_DICT:o3,Z_STREAM_ERROR:ho,Z_DATA_ERROR:$h,Z_MEM_ERROR:Yh,Z_BUF_ERROR:r3,Z_DEFLATED:Jf}=ms,Jc=16180,Xf=16181,Qf=16182,th=16183,eh=16184,nh=16185,ih=16186,ah=16187,oh=16188,rh=16189,Yc=16190,mr=16191,Td=16192,lh=16193,Pd=16194,sh=16195,ch=16196,ph=16197,mh=16198,Uc=16199,Hc=16200,dh=16201,uh=16202,fh=16203,hh=16204,gh=16205,Id=16206,xh=16207,_h=16208,Ai=16209,Zh=16210,Kh=16211,l3=852,s3=592,c3=15,p3=c3,vh=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function m3(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Al=t=>{if(!t)return 1;let i=t.state;return!i||i.strm!==t||i.modeKh?1:0},Jh=t=>{if(Al(t))return ho;let i=t.state;return t.total_in=t.total_out=i.total=0,t.msg="",i.wrap&&(t.adler=i.wrap&1),i.mode=Jc,i.last=0,i.havedict=0,i.flags=-1,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(l3),i.distcode=i.distdyn=new Int32Array(s3),i.sane=1,i.back=-1,Il},Xh=t=>{if(Al(t))return ho;let i=t.state;return i.wsize=0,i.whave=0,i.wnext=0,Jh(t)},Qh=(t,i)=>{let n;if(Al(t))return ho;let a=t.state;return i<0?(n=0,i=-i):(n=(i>>4)+5,i<48&&(i&=15)),i&&(i<8||i>15)?ho:(a.window!==null&&a.wbits!==i&&(a.window=null),a.wrap=n,a.wbits=i,Xh(t))},t2=(t,i)=>{if(!t)return ho;let n=new m3;t.state=n,n.strm=t,n.window=null,n.mode=Jc;let a=Qh(t,i);return a!==Il&&(t.state=null),a},d3=t=>t2(t,p3),bh=!0,Ad,Od,u3=t=>{if(bh){Ad=new Int32Array(512),Od=new Int32Array(32);let i=0;for(;i<144;)t.lens[i++]=8;for(;i<256;)t.lens[i++]=9;for(;i<280;)t.lens[i++]=7;for(;i<288;)t.lens[i++]=8;for(f0(Gh,t.lens,0,288,Ad,0,t.work,{bits:9}),i=0;i<32;)t.lens[i++]=5;f0(Wh,t.lens,0,32,Od,0,t.work,{bits:5}),bh=!1}t.lencode=Ad,t.lenbits=9,t.distcode=Od,t.distbits=5},e2=(t,i,n,a)=>{let o,c=t.state;return c.window===null&&(c.wsize=1<=c.wsize?(c.window.set(i.subarray(n-c.wsize,n),0),c.wnext=0,c.whave=c.wsize):(o=c.wsize-c.wnext,o>a&&(o=a),c.window.set(i.subarray(n-a,n-a+o),c.wnext),a-=o,a?(c.window.set(i.subarray(n-a,n),0),c.wnext=a,c.whave=c.wsize):(c.wnext+=o,c.wnext===c.wsize&&(c.wnext=0),c.whave{let n,a,o,c,u,m,x,v,S,A,L,w,z,H,Z=0,j,rt,lt,tt,It,Yt,qt,ut,Q=new Uint8Array(4),xt,B,$=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Al(t)||!t.output||!t.input&&t.avail_in!==0)return ho;n=t.state,n.mode===mr&&(n.mode=Td),u=t.next_out,o=t.output,x=t.avail_out,c=t.next_in,a=t.input,m=t.avail_in,v=n.hold,S=n.bits,A=m,L=x,ut=Il;t:for(;;)switch(n.mode){case Jc:if(n.wrap===0){n.mode=Td;break}for(;S<16;){if(m===0)break t;m--,v+=a[c++]<>>8&255,n.check=ua(n.check,Q,2,0),v=0,S=0,n.mode=Xf;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((v&255)<<8)+(v>>8))%31){t.msg="incorrect header check",n.mode=Ai;break}if((v&15)!==Jf){t.msg="unknown compression method",n.mode=Ai;break}if(v>>>=4,S-=4,qt=(v&15)+8,n.wbits===0&&(n.wbits=qt),qt>15||qt>n.wbits){t.msg="invalid window size",n.mode=Ai;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(Q[0]=v&255,Q[1]=v>>>8&255,n.check=ua(n.check,Q,2,0)),v=0,S=0,n.mode=Qf;case Qf:for(;S<32;){if(m===0)break t;m--,v+=a[c++]<>>8&255,Q[2]=v>>>16&255,Q[3]=v>>>24&255,n.check=ua(n.check,Q,4,0)),v=0,S=0,n.mode=th;case th:for(;S<16;){if(m===0)break t;m--,v+=a[c++]<>8),n.flags&512&&n.wrap&4&&(Q[0]=v&255,Q[1]=v>>>8&255,n.check=ua(n.check,Q,2,0)),v=0,S=0,n.mode=eh;case eh:if(n.flags&1024){for(;S<16;){if(m===0)break t;m--,v+=a[c++]<>>8&255,n.check=ua(n.check,Q,2,0)),v=0,S=0}else n.head&&(n.head.extra=null);n.mode=nh;case nh:if(n.flags&1024&&(w=n.length,w>m&&(w=m),w&&(n.head&&(qt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(a.subarray(c,c+w),qt)),n.flags&512&&n.wrap&4&&(n.check=ua(n.check,a,w,c)),m-=w,c+=w,n.length-=w),n.length))break t;n.length=0,n.mode=ih;case ih:if(n.flags&2048){if(m===0)break t;w=0;do qt=a[c+w++],n.head&&qt&&n.length<65536&&(n.head.name+=String.fromCharCode(qt));while(qt&&w>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=mr;break;case rh:for(;S<32;){if(m===0)break t;m--,v+=a[c++]<>>=S&7,S-=S&7,n.mode=Id;break}for(;S<3;){if(m===0)break t;m--,v+=a[c++]<>>=1,S-=1,v&3){case 0:n.mode=lh;break;case 1:if(u3(n),n.mode=Uc,i===Vc){v>>>=2,S-=2;break t}break;case 2:n.mode=ch;break;case 3:t.msg="invalid block type",n.mode=Ai}v>>>=2,S-=2;break;case lh:for(v>>>=S&7,S-=S&7;S<32;){if(m===0)break t;m--,v+=a[c++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=Ai;break}if(n.length=v&65535,v=0,S=0,n.mode=Pd,i===Vc)break t;case Pd:n.mode=sh;case sh:if(w=n.length,w){if(w>m&&(w=m),w>x&&(w=x),w===0)break t;o.set(a.subarray(c,c+w),u),m-=w,c+=w,x-=w,u+=w,n.length-=w;break}n.mode=mr;break;case ch:for(;S<14;){if(m===0)break t;m--,v+=a[c++]<>>=5,S-=5,n.ndist=(v&31)+1,v>>>=5,S-=5,n.ncode=(v&15)+4,v>>>=4,S-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Ai;break}n.have=0,n.mode=ph;case ph:for(;n.have>>=3,S-=3}for(;n.have<19;)n.lens[$[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,xt={bits:n.lenbits},ut=f0(n3,n.lens,0,19,n.lencode,0,n.work,xt),n.lenbits=xt.bits,ut){t.msg="invalid code lengths set",n.mode=Ai;break}n.have=0,n.mode=mh;case mh:for(;n.have>>24,rt=Z>>>16&255,lt=Z&65535,!(j<=S);){if(m===0)break t;m--,v+=a[c++]<>>=j,S-=j,n.lens[n.have++]=lt;else{if(lt===16){for(B=j+2;S>>=j,S-=j,n.have===0){t.msg="invalid bit length repeat",n.mode=Ai;break}qt=n.lens[n.have-1],w=3+(v&3),v>>>=2,S-=2}else if(lt===17){for(B=j+3;S>>=j,S-=j,qt=0,w=3+(v&7),v>>>=3,S-=3}else{for(B=j+7;S>>=j,S-=j,qt=0,w=11+(v&127),v>>>=7,S-=7}if(n.have+w>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Ai;break}for(;w--;)n.lens[n.have++]=qt}}if(n.mode===Ai)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=Ai;break}if(n.lenbits=9,xt={bits:n.lenbits},ut=f0(Gh,n.lens,0,n.nlen,n.lencode,0,n.work,xt),n.lenbits=xt.bits,ut){t.msg="invalid literal/lengths set",n.mode=Ai;break}if(n.distbits=6,n.distcode=n.distdyn,xt={bits:n.distbits},ut=f0(Wh,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,xt),n.distbits=xt.bits,ut){t.msg="invalid distances set",n.mode=Ai;break}if(n.mode=Uc,i===Vc)break t;case Uc:n.mode=Hc;case Hc:if(m>=6&&x>=258){t.next_out=u,t.avail_out=x,t.next_in=c,t.avail_in=m,n.hold=v,n.bits=S,Kb(t,L),u=t.next_out,o=t.output,x=t.avail_out,c=t.next_in,a=t.input,m=t.avail_in,v=n.hold,S=n.bits,n.mode===mr&&(n.back=-1);break}for(n.back=0;Z=n.lencode[v&(1<>>24,rt=Z>>>16&255,lt=Z&65535,!(j<=S);){if(m===0)break t;m--,v+=a[c++]<>tt)],j=Z>>>24,rt=Z>>>16&255,lt=Z&65535,!(tt+j<=S);){if(m===0)break t;m--,v+=a[c++]<>>=tt,S-=tt,n.back+=tt}if(v>>>=j,S-=j,n.back+=j,n.length=lt,rt===0){n.mode=gh;break}if(rt&32){n.back=-1,n.mode=mr;break}if(rt&64){t.msg="invalid literal/length code",n.mode=Ai;break}n.extra=rt&15,n.mode=dh;case dh:if(n.extra){for(B=n.extra;S>>=n.extra,S-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=uh;case uh:for(;Z=n.distcode[v&(1<>>24,rt=Z>>>16&255,lt=Z&65535,!(j<=S);){if(m===0)break t;m--,v+=a[c++]<>tt)],j=Z>>>24,rt=Z>>>16&255,lt=Z&65535,!(tt+j<=S);){if(m===0)break t;m--,v+=a[c++]<>>=tt,S-=tt,n.back+=tt}if(v>>>=j,S-=j,n.back+=j,rt&64){t.msg="invalid distance code",n.mode=Ai;break}n.offset=lt,n.extra=rt&15,n.mode=fh;case fh:if(n.extra){for(B=n.extra;S>>=n.extra,S-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Ai;break}n.mode=hh;case hh:if(x===0)break t;if(w=L-x,n.offset>w){if(w=n.offset-w,w>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Ai;break}w>n.wnext?(w-=n.wnext,z=n.wsize-w):z=n.wnext-w,w>n.length&&(w=n.length),H=n.window}else H=o,z=u-n.offset,w=n.length;w>x&&(w=x),x-=w,n.length-=w;do o[u++]=H[z++];while(--w);n.length===0&&(n.mode=Hc);break;case gh:if(x===0)break t;o[u++]=n.length,x--,n.mode=Hc;break;case Id:if(n.wrap){for(;S<32;){if(m===0)break t;m--,v|=a[c++]<{if(Al(t))return ho;let i=t.state;return i.window&&(i.window=null),t.state=null,Il},g3=(t,i)=>{if(Al(t))return ho;let n=t.state;return(n.wrap&2)===0?ho:(n.head=i,i.done=!1,Il)},x3=(t,i)=>{let n=i.length,a,o,c;return Al(t)||(a=t.state,a.wrap!==0&&a.mode!==Yc)?ho:a.mode===Yc&&(o=1,o=v0(o,i,n,0),o!==a.check)?$h:(c=e2(t,i,n,n),c?(a.mode=Zh,Yh):(a.havedict=1,Il))},_3=Xh,v3=Qh,b3=Jh,C3=d3,y3=t2,S3=f3,D3=h3,w3=g3,T3=x3,P3="pako inflate (from Nodeca project)",ur={inflateReset:_3,inflateReset2:v3,inflateResetKeep:b3,inflateInit:C3,inflateInit2:y3,inflate:S3,inflateEnd:D3,inflateGetHeader:w3,inflateSetDictionary:T3,inflateInfo:P3};function I3(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var A3=I3,n2=Object.prototype.toString,{Z_NO_FLUSH:O3,Z_FINISH:M3,Z_OK:y0,Z_STREAM_END:Md,Z_NEED_DICT:Ed,Z_STREAM_ERROR:E3,Z_DATA_ERROR:Ch,Z_MEM_ERROR:L3}=ms;function T0(t){this.options=Kc.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});let i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),i.windowBits>=0&&i.windowBits<16&&!(t&&t.windowBits)&&(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&(i.windowBits&15)===0&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Uh,this.strm.avail_out=0;let n=ur.inflateInit2(this.strm,i.windowBits);if(n!==y0)throw new Error(Tl[n]);if(this.header=new A3,ur.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=C0.string2buf(i.dictionary):n2.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(n=ur.inflateSetDictionary(this.strm,i.dictionary),n!==y0)))throw new Error(Tl[n])}T0.prototype.push=function(t,i){let n=this.strm,a=this.options.chunkSize,o=this.options.dictionary,c,u,m;if(this.ended)return!1;for(i===~~i?u=i:u=i===!0?M3:O3,n2.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),c=ur.inflate(n,u),c===Ed&&o&&(c=ur.inflateSetDictionary(n,o),c===y0?c=ur.inflate(n,u):c===Ch&&(c=Ed));n.avail_in>0&&c===Md&&n.state.wrap>0&&t[n.next_in]!==0;)ur.inflateReset(n),c=ur.inflate(n,u);switch(c){case E3:case Ch:case Ed:case L3:return this.onEnd(c),this.ended=!0,!1}if(m=n.avail_out,n.next_out&&(n.avail_out===0||c===Md))if(this.options.to==="string"){let x=C0.utf8border(n.output,n.next_out),v=n.next_out-x,S=C0.buf2string(n.output,x);n.next_out=v,n.avail_out=a-v,v&&n.output.set(n.output.subarray(x,x+v),0),this.onData(S)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(c===y0&&m===0)){if(c===Md)return c=ur.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};T0.prototype.onData=function(t){this.chunks.push(t)};T0.prototype.onEnd=function(t){t===y0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Kc.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Yd(t,i){let n=new T0(i);if(n.push(t),n.err)throw n.msg||Tl[n.err];return n.result}function N3(t,i){return i=i||{},i.raw=!0,Yd(t,i)}var F3=T0,k3=Yd,R3=N3,B3=Yd,j3=ms,q3={Inflate:F3,inflate:k3,inflateRaw:R3,ungzip:B3,constants:j3},{Deflate:vk,deflate:bk,deflateRaw:Ck,gzip:yk}=Yb,{Inflate:z3,inflate:V3,inflateRaw:Sk,ungzip:Dk}=q3;var Zd=z3,i2=V3;var o2=[];for(let t=0;t<256;t++){let i=t;for(let n=0;n<8;n++)i&1?i=3988292384^i>>>1:i=i>>>1;o2[t]=i}var a2=4294967295;function U3(t,i,n){let a=t;for(let o=0;o>>8;return a}function H3(t,i){return(U3(a2,t,i)^a2)>>>0}function Kd(t,i,n){let a=t.readUint32(),o=H3(new Uint8Array(t.buffer,t.byteOffset+t.offset-i-4,i),i);if(o!==a)throw new Error(`CRC mismatch for chunk ${n}. Expected ${a}, found ${o}`)}function Xc(t,i,n){for(let a=0;a>1)&255}else{for(;c>1)&255;for(;c>1)&255}}function np(t,i,n,a,o){let c=0;if(n.length===0){for(;c=n||Yt>=a))for(let qt=0;qt>8&255}var K3=new Uint16Array([255]),J3=new Uint8Array(K3.buffer),X3=J3[0]===255,Q3=new Uint8Array(0);function Jd(t){let{data:i,width:n,height:a,channels:o,depth:c}=t,u=Math.ceil(c/8)*o,m=Math.ceil(c/8*o*n),x=new Uint8Array(a*m),v=Q3,S=0,A,L;for(let w=0;w>8&255}var ip=Uint8Array.of(137,80,78,71,13,10,26,10);function Xd(t){if(!s2(t.readBytes(ip.length)))throw new Error("wrong PNG signature")}function s2(t){if(t.length79)throw new Error("keyword length must be between 1 and 79")}var aC=/^[\u0000-\u00FF]*$/;function oC(t){if(!aC.test(t))throw new Error("invalid latin1 text")}function m2(t,i,n){let a=Qd(i);t[a]=rC(i,n-a.length-1)}function Qd(t){for(t.mark();t.readByte()!==nC;);let i=t.offset;t.reset();let n=p2.decode(t.readBytes(i-t.offset-1));return t.skip(1),iC(n),n}function rC(t,i){return p2.decode(t.readBytes(i))}var Fa={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},P0={UNKNOWN:-1,DEFLATE:0},ap={UNKNOWN:-1,ADAPTIVE:0},I0={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},A0={NONE:0,BACKGROUND:1,PREVIOUS:2},op={SOURCE:0,OVER:1};var rp=class extends s0{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(i,n={}){super(i);let{checkCrc:a=!1}=n;this._checkCrc=a,this._inflator=new Zd,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=P0.UNKNOWN,this._filterMethod=ap.UNKNOWN,this._interlaceMethod=I0.UNKNOWN,this._colorType=Fa.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Xd(this);!this._end;){let i=this.readUint32(),n=this.readChars(4);this.decodeChunk(i,n)}return this.decodeImage(),this._png}decodeApng(){for(Xd(this);!this._end;){let i=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(i,n)}return this.decodeApngImage(),this._apng}decodeChunk(i,n){let a=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(i);break;case"IDAT":this.decodeIDAT(i);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(i);break;case"iCCP":this.decodeiCCP(i);break;case c2:m2(this._png.text,this,i);break;case"pHYs":this.decodepHYs();break;default:this.skip(i);break}if(this.offset-a!==i)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?Kd(this,i+4,n):this.skip(4)}decodeApngChunk(i,n){let a=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(i);break;default:this.decodeChunk(i,n),this.offset=a+i;break}if(this.offset-a!==i)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?Kd(this,i+4,n):this.skip(4)}decodeIHDR(){let i=this._png;i.width=this.readUint32(),i.height=this.readUint32(),i.depth=lC(this.readUint8());let n=this.readUint8();this._colorType=n;let a;switch(n){case Fa.GREYSCALE:a=1;break;case Fa.TRUECOLOUR:a=3;break;case Fa.INDEXED_COLOUR:a=1;break;case Fa.GREYSCALE_ALPHA:a=2;break;case Fa.TRUECOLOUR_ALPHA:a=4;break;case Fa.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=a,this._compressionMethod=this.readUint8(),this._compressionMethod!==P0.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let i={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(i)}decodePLTE(i){if(i%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${i}`);let n=i/3;this._hasPalette=!0;let a=[];this._palette=a;for(let o=0;othis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${i/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(i/2);for(let n=0;nthis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${i} vs ${this._palette.length})`);let n=0;for(;n{let m=((c+n.yOffset)*this._png.width+n.xOffset+u)*this._png.channels,x=(c*n.width+u)*this._png.channels;return{index:m,frameIndex:x}};switch(n.blendOp){case op.SOURCE:for(let c=0;c=200&&i.status<=299}function lp(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var Ol=dn.saveAs||((typeof window>"u"?"undefined":hi(window))!=="object"||window!==dn?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,i,n){var a=dn.URL||dn.webkitURL,o=document.createElement("a");i=i||t.name||"download",o.download=i,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?u2(o.href)?eu(t,i,n):lp(o,o.target="_blank"):lp(o)):(o.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(o.href)},4e4),setTimeout(function(){lp(o)},0))}:"msSaveOrOpenBlob"in navigator?function(t,i,n){if(i=i||t.name||"download",typeof t=="string")if(u2(t))eu(t,i,n);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){lp(a)})}else navigator.msSaveOrOpenBlob(function(o,c){return c===void 0?c={autoBom:!1}:hi(c)!=="object"&&(bi.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(t,n),i)}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof t=="string")return eu(t,i,n);var o=t.type==="application/octet-stream",c=/constructor/i.test(dn.HTMLElement)||dn.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&c)&&(typeof FileReader>"u"?"undefined":hi(FileReader))==="object"){var m=new FileReader;m.onloadend=function(){var S=m.result;S=u?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=S:location=S,a=null},m.readAsDataURL(t)}else{var x=dn.URL||dn.webkitURL,v=x.createObjectURL(t);a?a.location=v:location.href=v,a=null,setTimeout(function(){x.revokeObjectURL(v)},4e4)}});function R2(t){var i;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(m){return[parseInt(m[1]),parseInt(m[2]),parseInt(m[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(m){return[parseInt(m[1],16),parseInt(m[2],16),parseInt(m[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(m){return[parseInt(m[1]+m[1],16),parseInt(m[2]+m[2],16),parseInt(m[3]+m[3],16)]}}],a=0;a255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var m=this.r.toString(16),x=this.g.toString(16),v=this.b.toString(16);return m.length==1&&(m="0"+m),x.length==1&&(x="0"+x),v.length==1&&(v="0"+v),"#"+m+x+v}}var mp=dn.atob.bind(dn),f2=dn.btoa.bind(dn);function nu(t,i){var n=t[0],a=t[1],o=t[2],c=t[3];n=Ta(n,a,o,c,i[0],7,-680876936),c=Ta(c,n,a,o,i[1],12,-389564586),o=Ta(o,c,n,a,i[2],17,606105819),a=Ta(a,o,c,n,i[3],22,-1044525330),n=Ta(n,a,o,c,i[4],7,-176418897),c=Ta(c,n,a,o,i[5],12,1200080426),o=Ta(o,c,n,a,i[6],17,-1473231341),a=Ta(a,o,c,n,i[7],22,-45705983),n=Ta(n,a,o,c,i[8],7,1770035416),c=Ta(c,n,a,o,i[9],12,-1958414417),o=Ta(o,c,n,a,i[10],17,-42063),a=Ta(a,o,c,n,i[11],22,-1990404162),n=Ta(n,a,o,c,i[12],7,1804603682),c=Ta(c,n,a,o,i[13],12,-40341101),o=Ta(o,c,n,a,i[14],17,-1502002290),n=Pa(n,a=Ta(a,o,c,n,i[15],22,1236535329),o,c,i[1],5,-165796510),c=Pa(c,n,a,o,i[6],9,-1069501632),o=Pa(o,c,n,a,i[11],14,643717713),a=Pa(a,o,c,n,i[0],20,-373897302),n=Pa(n,a,o,c,i[5],5,-701558691),c=Pa(c,n,a,o,i[10],9,38016083),o=Pa(o,c,n,a,i[15],14,-660478335),a=Pa(a,o,c,n,i[4],20,-405537848),n=Pa(n,a,o,c,i[9],5,568446438),c=Pa(c,n,a,o,i[14],9,-1019803690),o=Pa(o,c,n,a,i[3],14,-187363961),a=Pa(a,o,c,n,i[8],20,1163531501),n=Pa(n,a,o,c,i[13],5,-1444681467),c=Pa(c,n,a,o,i[2],9,-51403784),o=Pa(o,c,n,a,i[7],14,1735328473),n=Ia(n,a=Pa(a,o,c,n,i[12],20,-1926607734),o,c,i[5],4,-378558),c=Ia(c,n,a,o,i[8],11,-2022574463),o=Ia(o,c,n,a,i[11],16,1839030562),a=Ia(a,o,c,n,i[14],23,-35309556),n=Ia(n,a,o,c,i[1],4,-1530992060),c=Ia(c,n,a,o,i[4],11,1272893353),o=Ia(o,c,n,a,i[7],16,-155497632),a=Ia(a,o,c,n,i[10],23,-1094730640),n=Ia(n,a,o,c,i[13],4,681279174),c=Ia(c,n,a,o,i[0],11,-358537222),o=Ia(o,c,n,a,i[3],16,-722521979),a=Ia(a,o,c,n,i[6],23,76029189),n=Ia(n,a,o,c,i[9],4,-640364487),c=Ia(c,n,a,o,i[12],11,-421815835),o=Ia(o,c,n,a,i[15],16,530742520),n=Aa(n,a=Ia(a,o,c,n,i[2],23,-995338651),o,c,i[0],6,-198630844),c=Aa(c,n,a,o,i[7],10,1126891415),o=Aa(o,c,n,a,i[14],15,-1416354905),a=Aa(a,o,c,n,i[5],21,-57434055),n=Aa(n,a,o,c,i[12],6,1700485571),c=Aa(c,n,a,o,i[3],10,-1894986606),o=Aa(o,c,n,a,i[10],15,-1051523),a=Aa(a,o,c,n,i[1],21,-2054922799),n=Aa(n,a,o,c,i[8],6,1873313359),c=Aa(c,n,a,o,i[15],10,-30611744),o=Aa(o,c,n,a,i[6],15,-1560198380),a=Aa(a,o,c,n,i[13],21,1309151649),n=Aa(n,a,o,c,i[4],6,-145523070),c=Aa(c,n,a,o,i[11],10,-1120210379),o=Aa(o,c,n,a,i[2],15,718787259),a=Aa(a,o,c,n,i[9],21,-343485551),t[0]=$r(n,t[0]),t[1]=$r(a,t[1]),t[2]=$r(o,t[2]),t[3]=$r(c,t[3])}function _p(t,i,n,a,o,c){return i=$r($r(i,t),$r(a,c)),$r(i<>>32-o,n)}function Ta(t,i,n,a,o,c,u){return _p(i&n|~i&a,t,i,o,c,u)}function Pa(t,i,n,a,o,c,u){return _p(i&a|n&~a,t,i,o,c,u)}function Ia(t,i,n,a,o,c,u){return _p(i^n^a,t,i,o,c,u)}function Aa(t,i,n,a,o,c,u){return _p(n^(i|~a),t,i,o,c,u)}function B2(t){var i,n=t.length,a=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=t.length;i+=64)nu(a,sC(t.substring(i-64,i)));t=t.substring(i-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i>2]|=t.charCodeAt(i)<<(i%4<<3);if(o[i>>2]|=128<<(i%4<<3),i>55)for(nu(a,o),i=0;i<16;i++)o[i]=0;return o[14]=8*n,nu(a,o),a}function sC(t){var i,n=[];for(i=0;i<64;i+=4)n[i>>2]=t.charCodeAt(i)+(t.charCodeAt(i+1)<<8)+(t.charCodeAt(i+2)<<16)+(t.charCodeAt(i+3)<<24);return n}var h2="0123456789abcdef".split("");function cC(t){for(var i="",n=0;n<4;n++)i+=h2[t>>8*n+4&15]+h2[t>>8*n&15];return i}function pC(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function su(t){return B2(t).map(pC).join("")}var mC=function(t){for(var i=0;i>16)+(i>>16)+(n>>16)<<16|65535&n}return t+i&4294967295}function cu(t,i){var n,a,o,c;if(t!==n){for(var u=(o=t,c=1+(256/t.length|0),new Array(c+1).join(o)),m=[],x=0;x<256;x++)m[x]=x;var v=0;for(x=0;x<256;x++){var S=m[x];v=(v+S+u.charCodeAt(x))%256,m[x]=m[v],m[v]=S}n=t,a=m}else m=a;var A=i.length,L=0,w=0,z="";for(x=0;x\x80/\f\xA9\xFEdSiz";var c=(i+this.padding).substr(0,32),u=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(c,u),this.P=-(1+(255^o)),this.encryptionKey=su(c+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=cu(this.encryptionKey,this.padding)}function xs(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var i="",n=t.length,a=0;a126?"#"+("0"+o.toString(16)).slice(-2):t[a]}return i}function x2(t){if(hi(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var i={};this.subscribe=function(n,a,o){if(o=o||!1,typeof n!="string"||typeof a!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");i.hasOwnProperty(n)||(i[n]={});var c=Math.random().toString(35);return i[n][c]=[a,!!o],c},this.unsubscribe=function(n){for(var a in i)if(i[a][n])return delete i[a][n],Object.keys(i[a]).length===0&&delete i[a],!0;return!1},this.publish=function(n){if(i.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),o=[];for(var c in i[n]){var u=i[n][c];try{u[0].apply(t,a)}catch(m){dn.console&&bi.error("jsPDF PubSub Error",m.message,m)}u[1]&&o.push(c)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return i}}function gp(t){if(!(this instanceof gp))return new gp(t);var i="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&i.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function j2(t,i){this.gState=t,this.matrix=i,this.id="",this.objectNumber=-1}function Ml(t,i,n,a,o){if(!(this instanceof Ml))return new Ml(t,i,n,a,o);this.type=t==="axial"?2:3,this.coords=i,this.colors=n,j2.call(this,a,o)}function _s(t,i,n,a,o){if(!(this instanceof _s))return new _s(t,i,n,a,o);this.boundingBox=t,this.xStep=i,this.yStep=n,this.stream="",this.cloneIndex=0,j2.call(this,a,o)}function He(t){var i,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],o=arguments[2],c=arguments[3],u=[],m=1,x=16,v="S",S=null;hi(t=t||{})==="object"&&(n=t.orientation,a=t.unit||a,o=t.format||o,c=t.compress||t.compressPdf||c,(S=t.encryption||null)!==null&&(S.userPassword=S.userPassword||"",S.ownerPassword=S.ownerPassword||"",S.userPermissions=S.userPermissions||[]),m=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(i=t.precision),t.floatPrecision!==void 0&&(x=t.floatPrecision),v=t.defaultPathOperation||"S"),u=t.filters||(c===!0?["FlateEncode"]:u),a=a||"mm",n=(""+(n||"P")).toLowerCase();var A=t.putOnlyUsedFonts||!1,L={},w={internal:{},__private__:{}};w.__private__.PubSub=x2;var z="1.3",H=w.__private__.getPdfVersion=function(){return z};w.__private__.setPdfVersion=function(b){z=b};var Z={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};w.__private__.getPageFormats=function(){return Z};var j=w.__private__.getPageFormat=function(b){return Z[b]};o=o||"a4";var rt="compat",lt="advanced",tt=rt;function It(){this.saveGraphicsState(),J(new ln(mn,0,0,-mn,0,pl()*mn).toString()+" cm"),this.setFontSize(this.getFontSize()/mn),v="n",tt=lt}function Yt(){this.restoreGraphicsState(),v="S",tt=rt}var qt=w.__private__.combineFontStyleAndFontWeight=function(b,M){if(b=="bold"&&M=="normal"||b=="bold"&&M==400||b=="normal"&&M=="italic"||b=="bold"&&M=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return M&&(b=M==400||M==="normal"?b==="italic"?"italic":"normal":M!=700&&M!=="bold"||b!=="normal"?(M==700?"bold":M)+""+b:"bold"),b};w.advancedAPI=function(b){var M=tt===rt;return M&&It.call(this),typeof b!="function"||(b(this),M&&Yt.call(this)),this},w.compatAPI=function(b){var M=tt===lt;return M&&Yt.call(this),typeof b!="function"||(b(this),M&&It.call(this)),this},w.isAdvancedAPI=function(){return tt===lt};var ut,Q=function(b){if(tt!==lt)throw new Error(b+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},xt=w.roundToPrecision=w.__private__.roundToPrecision=function(b,M){var Y=i||M;if(isNaN(b)||isNaN(Y))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return b.toFixed(Y).replace(/0+$/,"")};ut=w.hpf=w.__private__.hpf=typeof x=="number"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return xt(b,x)}:x==="smart"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return xt(b,b>-1&&b<1?16:5)}:function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return xt(b,16)};var B=w.f2=w.__private__.f2=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f2");return xt(b,2)},$=w.__private__.f3=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f3");return xt(b,3)},at=w.scale=w.__private__.scale=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.scale");return tt===rt?b*mn:tt===lt?b:void 0},it=function(b){return at(function(M){return tt===rt?pl()-M:tt===lt?M:void 0}(b))};w.__private__.setPrecision=w.setPrecision=function(b){typeof parseInt(b,10)=="number"&&(i=parseInt(b,10))};var wt,Nt="00000000000000000000000000000000",kt=w.__private__.getFileId=function(){return Nt},bt=w.__private__.setFileId=function(b){return Nt=b!==void 0&&/^[a-fA-F0-9]{32}$/.test(b)?b.toUpperCase():Nt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),S!==null&&(ji=new gs(S.userPermissions,S.userPassword,S.ownerPassword,Nt)),Nt};w.setFileId=function(b){return bt(b),this},w.getFileId=function(){return kt()};var Bt=w.__private__.convertDateToPDFDate=function(b){var M=b.getTimezoneOffset(),Y=M<0?"+":"-",et=Math.floor(Math.abs(M/60)),ft=Math.abs(M%60),jt=[Y,X(et),"'",X(ft),"'"].join("");return["D:",b.getFullYear(),X(b.getMonth()+1),X(b.getDate()),X(b.getHours()),X(b.getMinutes()),X(b.getSeconds()),jt].join("")},re=w.__private__.convertPDFDateToDate=function(b){var M=parseInt(b.substr(2,4),10),Y=parseInt(b.substr(6,2),10)-1,et=parseInt(b.substr(8,2),10),ft=parseInt(b.substr(10,2),10),jt=parseInt(b.substr(12,2),10),Jt=parseInt(b.substr(14,2),10);return new Date(M,Y,et,ft,jt,Jt,0)},Kt=w.__private__.setCreationDate=function(b){var M;if(b===void 0&&(b=new Date),b instanceof Date)M=Bt(b);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(b))throw new Error("Invalid argument passed to jsPDF.setCreationDate");M=b}return wt=M},k=w.__private__.getCreationDate=function(b){var M=wt;return b==="jsDate"&&(M=re(wt)),M};w.setCreationDate=function(b){return Kt(b),this},w.getCreationDate=function(b){return k(b)};var K,X=w.__private__.padd2=function(b){return("0"+parseInt(b)).slice(-2)},st=w.__private__.padd2Hex=function(b){return("00"+(b=b.toString())).substr(b.length)},dt=0,Ct=[],Mt=[],At=0,Ht=[],ee=[],_e=!1,Se=Mt;w.__private__.setCustomOutputDestination=function(b){_e=!0,Se=b};var Lt=function(b){_e||(Se=b)};w.__private__.resetCustomOutputDestination=function(){_e=!1,Se=Mt};var J=w.__private__.out=function(b){return b=b.toString(),At+=b.length+1,Se.push(b),Se},Gn=w.__private__.write=function(b){return J(arguments.length===1?b.toString():Array.prototype.join.call(arguments," "))},Rn=w.__private__.getArrayBuffer=function(b){for(var M=b.length,Y=new ArrayBuffer(M),et=new Uint8Array(Y);M--;)et[M]=b.charCodeAt(M);return Y},nn=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];w.__private__.getStandardFonts=function(){return nn};var ne=t.fontSize||16;w.__private__.setFontSize=w.setFontSize=function(b){return ne=tt===lt?b/mn:b,this};var Ye,he=w.__private__.getFontSize=w.getFontSize=function(){return tt===rt?ne:ne*mn},Bn=t.R2L||!1;w.__private__.setR2L=w.setR2L=function(b){return Bn=b,this},w.__private__.getR2L=w.getR2L=function(){return Bn};var en,ei=w.__private__.setZoomMode=function(b){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(b))Ye=b;else if(isNaN(b)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(b)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+b+'" is not recognized.');Ye=b}else Ye=parseInt(b,10)};w.__private__.getZoomMode=function(){return Ye};var En,Ln=w.__private__.setPageMode=function(b){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(b)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+b+'" is not recognized.');en=b};w.__private__.getPageMode=function(){return en};var ui=w.__private__.setLayoutMode=function(b){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(b)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+b+'" is not recognized.');En=b};w.__private__.getLayoutMode=function(){return En},w.__private__.setDisplayMode=w.setDisplayMode=function(b,M,Y){return ei(b),ui(M),Ln(Y),this};var jn={title:"",subject:"",author:"",keywords:"",creator:""};w.__private__.getDocumentProperty=function(b){if(Object.keys(jn).indexOf(b)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return jn[b]},w.__private__.getDocumentProperties=function(){return jn},w.__private__.setDocumentProperties=w.setProperties=w.setDocumentProperties=function(b){for(var M in jn)jn.hasOwnProperty(M)&&b[M]&&(jn[M]=b[M]);return this},w.__private__.setDocumentProperty=function(b,M){if(Object.keys(jn).indexOf(b)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return jn[b]=M};var Xe,mn,Qe,yi,ni,Ge={},Nn={},gi=[],rn={},Yn={},Fn={},Bi={},ta=null,xi=0,Dn=[],ri=new x2(w),Xr=t.hotfixes||[],Ca={},Zo={},Eo=[],ln=function b(M,Y,et,ft,jt,Jt){if(!(this instanceof b))return new b(M,Y,et,ft,jt,Jt);isNaN(M)&&(M=1),isNaN(Y)&&(Y=0),isNaN(et)&&(et=0),isNaN(ft)&&(ft=1),isNaN(jt)&&(jt=0),isNaN(Jt)&&(Jt=0),this._matrix=[M,Y,et,ft,jt,Jt]};Object.defineProperty(ln.prototype,"sx",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(ln.prototype,"shy",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(ln.prototype,"shx",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(ln.prototype,"sy",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(ln.prototype,"tx",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(ln.prototype,"ty",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(ln.prototype,"a",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(ln.prototype,"b",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(ln.prototype,"c",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(ln.prototype,"d",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(ln.prototype,"e",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(ln.prototype,"f",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(ln.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ln.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ln.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ln.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ln.prototype.join=function(b){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ut).join(b)},ln.prototype.multiply=function(b){var M=b.sx*this.sx+b.shy*this.shx,Y=b.sx*this.shy+b.shy*this.sy,et=b.shx*this.sx+b.sy*this.shx,ft=b.shx*this.shy+b.sy*this.sy,jt=b.tx*this.sx+b.ty*this.shx+this.tx,Jt=b.tx*this.shy+b.ty*this.sy+this.ty;return new ln(M,Y,et,ft,jt,Jt)},ln.prototype.decompose=function(){var b=this.sx,M=this.shy,Y=this.shx,et=this.sy,ft=this.tx,jt=this.ty,Jt=Math.sqrt(b*b+M*M),Fe=(b/=Jt)*Y+(M/=Jt)*et;Y-=b*Fe,et-=M*Fe;var Ve=Math.sqrt(Y*Y+et*et);return Fe/=Ve,b*(et/=Ve)>16&255,et=Ve>>8&255,ft=255&Ve}if(et===void 0||jt===void 0&&Y===et&&et===ft)M=typeof Y=="string"?Y+" "+Jt[0]:b.precision===2?B(Y/255)+" "+Jt[0]:$(Y/255)+" "+Jt[0];else if(jt===void 0||hi(jt)==="object"){if(jt&&!isNaN(jt.a)&&jt.a===0)return["1.","1.","1.",Jt[1]].join(" ");M=typeof Y=="string"?[Y,et,ft,Jt[1]].join(" "):b.precision===2?[B(Y/255),B(et/255),B(ft/255),Jt[1]].join(" "):[$(Y/255),$(et/255),$(ft/255),Jt[1]].join(" ")}else M=typeof Y=="string"?[Y,et,ft,jt,Jt[2]].join(" "):b.precision===2?[B(Y),B(et),B(ft),B(jt),Jt[2]].join(" "):[$(Y),$(et),$(ft),$(jt),Jt[2]].join(" ");return M},_o=w.__private__.getFilters=function(){return u},oo=w.__private__.putStream=function(b){var M=(b=b||{}).data||"",Y=b.filters||_o(),et=b.alreadyAppliedFilters||[],ft=b.addLength1||!1,jt=M.length,Jt=b.objectId,Fe=function(ea){return ea};if(S!==null&&Jt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");S!==null&&(Fe=ji.encryptor(Jt,0));var Ve={};Y===!0&&(Y=["FlateEncode"]);var un=b.additionalKeyValues||[],Pn=(Ve=He.API.processDataByFilters!==void 0?He.API.processDataByFilters(M,Y):{data:M,reverseChain:[]}).reverseChain+(Array.isArray(et)?et.join(" "):et.toString());if(Ve.data.length!==0&&(un.push({key:"Length",value:Ve.data.length}),ft===!0&&un.push({key:"Length1",value:jt})),Pn.length!=0)if(Pn.split("/").length-1==1)un.push({key:"Filter",value:Pn});else{un.push({key:"Filter",value:"["+Pn+"]"});for(var ii=0;ii>"),Ve.data.length!==0&&(J("stream"),J(Fe(Ve.data)),J("endstream"))},tl=w.__private__.putPage=function(b){var M=b.number,Y=b.data,et=b.objId,ft=b.contentsObjId;ha(et,!0),J("<>"),J("endobj");var jt=Y.join(` `);return tt===lt&&(jt+=` -Q`),ha(ft,!0),oo({data:jt,filters:_o(),objectId:ft}),J("endobj"),et},No=w.__private__.putPages=function(){var b,M,Y=[];for(b=1;b<=xi;b++)Dn[b].objId=ca(),Dn[b].contentsObjId=ca();for(b=1;b<=xi;b++)Y.push(Qr({number:b,data:ee[b],objId:Dn[b].objId,contentsObjId:Dn[b].contentsObjId,mediaBox:Dn[b].mediaBox,cropBox:Dn[b].cropBox,bleedBox:Dn[b].bleedBox,trimBox:Dn[b].trimBox,artBox:Dn[b].artBox,userUnit:Dn[b].userUnit,rootDictionaryObjId:gr,resourceDictionaryObjId:go}));ha(gr,!0),J("<>"),J("endobj"),ri.publish("postPutPages")},tl=function(b){ri.publish("putFont",{font:b,out:J,newObject:Ei,putStream:oo}),b.isAlreadyPutted!==!0&&(b.objectNumber=Ei(),J("<<"),J("/Type /Font"),J("/BaseFont /"+xs(b.postScriptName)),J("/Subtype /Type1"),typeof b.encoding=="string"&&J("/Encoding /"+b.encoding),J("/FirstChar 32"),J("/LastChar 255"),J(">>"),J("endobj"))},Nl=function(b){b.objectNumber=Ei();var M=[];M.push({key:"Type",value:"/XObject"}),M.push({key:"Subtype",value:"/Form"}),M.push({key:"BBox",value:"["+[ut(b.x),ut(b.y),ut(b.x+b.width),ut(b.y+b.height)].join(" ")+"]"}),M.push({key:"Matrix",value:"["+b.matrix.toString()+"]"});var Y=b.pages[1].join(` -`);oo({data:Y,additionalKeyValues:M,objectId:b.objectNumber}),J("endobj")},Fl=function(b,M){M||(M=21);var Y=Ei(),et=function(Jt,Fe){var Ve,un=[],Tn=1/(Fe-1);for(Ve=0;Ve<1;Ve+=Tn)un.push(Ve);if(un.push(1),Jt[0].offset!=0){var ii={offset:0,color:Jt[0].color};Jt.unshift(ii)}if(Jt[Jt.length-1].offset!=1){var Oi={offset:1,color:Jt[Jt.length-1].color};Jt.push(Oi)}for(var Xi="",Si=0,ea=0;eaJt[Si+1].offset;)Si++;var Qi=Jt[Si].offset,ga=(Ve-Qi)/(Jt[Si+1].offset-Qi),lo=Jt[Si].color,ka=Jt[Si+1].color;Xi+=st(Math.round((1-ga)*lo[0]+ga*ka[0]).toString(16))+st(Math.round((1-ga)*lo[1]+ga*ka[1]).toString(16))+st(Math.round((1-ga)*lo[2]+ga*ka[2]).toString(16))}return Xi.trim()}(b.colors,M),ft=[];ft.push({key:"FunctionType",value:"0"}),ft.push({key:"Domain",value:"[0.0 1.0]"}),ft.push({key:"Size",value:"["+M+"]"}),ft.push({key:"BitsPerSample",value:"8"}),ft.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ft.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),oo({data:et,additionalKeyValues:ft,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Y}),J("endobj"),b.objectNumber=Ei(),J("<< /ShadingType "+b.type),J("/ColorSpace /DeviceRGB");var jt="/Coords ["+ut(parseFloat(b.coords[0]))+" "+ut(parseFloat(b.coords[1]))+" ";b.type===2?jt+=ut(parseFloat(b.coords[2]))+" "+ut(parseFloat(b.coords[3])):jt+=ut(parseFloat(b.coords[2]))+" "+ut(parseFloat(b.coords[3]))+" "+ut(parseFloat(b.coords[4]))+" "+ut(parseFloat(b.coords[5])),J(jt+="]"),b.matrix&&J("/Matrix ["+b.matrix.toString()+"]"),J("/Function "+Y+" 0 R"),J("/Extend [true true]"),J(">>"),J("endobj")},kl=function(b,M){var Y=ca(),et=Ei();M.push({resourcesOid:Y,objectOid:et}),b.objectNumber=et;var ft=[];ft.push({key:"Type",value:"/Pattern"}),ft.push({key:"PatternType",value:"1"}),ft.push({key:"PaintType",value:"1"}),ft.push({key:"TilingType",value:"1"}),ft.push({key:"BBox",value:"["+b.boundingBox.map(ut).join(" ")+"]"}),ft.push({key:"XStep",value:ut(b.xStep)}),ft.push({key:"YStep",value:ut(b.yStep)}),ft.push({key:"Resources",value:Y+" 0 R"}),b.matrix&&ft.push({key:"Matrix",value:"["+b.matrix.toString()+"]"}),oo({data:b.stream,additionalKeyValues:ft,objectId:b.objectNumber}),J("endobj")},Tm=function(b){for(var M in b.objectNumber=Ei(),J("<<"),b)switch(M){case"opacity":J("/ca "+B(b[M]));break;case"stroke-opacity":J("/CA "+B(b[M]))}J(">>"),J("endobj")},ws=function(b){ha(b.resourcesOid,!0),J("<<"),J("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var M in J("/Font <<"),Ge)Ge.hasOwnProperty(M)&&(A===!1||A===!0&&L.hasOwnProperty(M))&&J("/"+M+" "+Ge[M].objectNumber+" 0 R");J(">>")}(),function(){if(Object.keys(rn).length>0){for(var M in J("/Shading <<"),rn)rn.hasOwnProperty(M)&&rn[M]instanceof Ol&&rn[M].objectNumber>=0&&J("/"+M+" "+rn[M].objectNumber+" 0 R");ri.publish("putShadingPatternDict"),J(">>")}}(),function(M){if(Object.keys(rn).length>0){for(var Y in J("/Pattern <<"),rn)rn.hasOwnProperty(Y)&&rn[Y]instanceof w.TilingPattern&&rn[Y].objectNumber>=0&&rn[Y].objectNumber>")}}(b.objectOid),function(){if(Object.keys(Fn).length>0){var M;for(M in J("/ExtGState <<"),Fn)Fn.hasOwnProperty(M)&&Fn[M].objectNumber>=0&&J("/"+M+" "+Fn[M].objectNumber+" 0 R");ri.publish("putGStateDict"),J(">>")}}(),function(){for(var M in J("/XObject <<"),Ca)Ca.hasOwnProperty(M)&&Ca[M].objectNumber>=0&&J("/"+M+" "+Ca[M].objectNumber+" 0 R");ri.publish("putXobjectDict"),J(">>")}(),J(">>"),J("endobj")},L0=function(b){Nn[b.fontName]=Nn[b.fontName]||{},Nn[b.fontName][b.fontStyle]=b.id},N0=function(b,M,Y,et,ft){var jt={id:"F"+(Object.keys(Ge).length+1).toString(10),postScriptName:b,fontName:M,fontStyle:Y,encoding:et,isStandardFont:ft||!1,metadata:{}};return ri.publish("addFont",{font:jt,instance:this}),Ge[jt.id]=jt,L0(jt),jt.id},ro=w.__private__.pdfEscape=w.pdfEscape=function(b,M){return function(Y,et){var ft,jt,Jt,Fe,Ve,un,Tn,ii,Oi;if(Jt=(et=et||{}).sourceEncoding||"Unicode",Ve=et.outputEncoding,(et.autoencode||Ve)&&Ge[Xe].metadata&&Ge[Xe].metadata[Jt]&&Ge[Xe].metadata[Jt].encoding&&(Fe=Ge[Xe].metadata[Jt].encoding,!Ve&&Ge[Xe].encoding&&(Ve=Ge[Xe].encoding),!Ve&&Fe.codePages&&(Ve=Fe.codePages[0]),typeof Ve=="string"&&(Ve=Fe[Ve]),Ve)){for(Tn=!1,un=[],ft=0,jt=Y.length;ft>8&&(Tn=!0);Y=un.join("")}for(ft=Y.length;Tn===void 0&&ft!==0;)Y.charCodeAt(ft-1)>>8&&(Tn=!0),ft--;if(!Tn)return Y;for(un=et.noBOM?[]:[254,255],ft=0,jt=Y.length;ft>8)>>8)throw new Error("Character at position "+ft+" of string '"+Y+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");un.push(Oi),un.push(ii-(Oi<<8))}return String.fromCharCode.apply(void 0,un)}(b,M).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ps=w.__private__.beginPage=function(b){ee[++xi]=[],Dn[xi]={objId:0,contentsObjId:0,userUnit:Number(m),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(b[0]),topRightY:Number(b[1])}},k0(xi),Lt(ee[K])},F0=function(b,M){var Y,et,ft;switch(n=M||n,typeof b=="string"&&(Y=j(b.toLowerCase()),Array.isArray(Y)&&(et=Y[0],ft=Y[1])),Array.isArray(b)&&(et=b[0]*mn,ft=b[1]*mn),isNaN(et)&&(et=o[0],ft=o[1]),(et>14400||ft>14400)&&(bi.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),et=Math.min(14400,et),ft=Math.min(14400,ft)),o=[et,ft],n.substr(0,1)){case"l":ft>et&&(o=[ft,et]);break;case"p":et>ft&&(o=[ft,et])}Ps(o),km(Ms),J(Bl),Ls!==0&&J(Ls+" J"),Ns!==0&&J(Ns+" j"),ri.publish("addPage",{pageNumber:xi})},Ts=function(b){b>0&&b<=xi&&(ee.splice(b,1),Dn.splice(b,1),xi--,K>xi&&(K=xi),this.setPage(K))},k0=function(b){b>0&&b<=xi&&(K=b)},R0=w.__private__.getNumberOfPages=w.getNumberOfPages=function(){return ee.length-1},B0=function(b,M,Y){var et,ft=void 0;return Y=Y||{},b=b!==void 0?b:Ge[Xe].fontName,M=M!==void 0?M:Ge[Xe].fontStyle,et=b.toLowerCase(),Nn[et]!==void 0&&Nn[et][M]!==void 0?ft=Nn[et][M]:Nn[b]!==void 0&&Nn[b][M]!==void 0?ft=Nn[b][M]:Y.disableWarning===!1&&bi.warn("Unable to look up font label for font '"+b+"', '"+M+"'. Refer to getFontList() for available fonts."),ft||Y.noFallback||(ft=Nn.times[M])==null&&(ft=Nn.times.normal),ft},Rl=w.__private__.putInfo=function(){var b=Ei(),M=function(et){return et};for(var Y in S!==null&&(M=ji.encryptor(b,0)),J("<<"),J("/Producer ("+ro(M("jsPDF "+He.version))+")"),jn)jn.hasOwnProperty(Y)&&jn[Y]&&J("/"+Y.substr(0,1).toUpperCase()+Y.substr(1)+" ("+ro(M(jn[Y]))+")");J("/CreationDate ("+ro(M(wt))+")"),J(">>"),J("endobj")},Im=w.__private__.putCatalog=function(b){var M=(b=b||{}).rootDictionaryObjId||gr;switch(Ei(),J("<<"),J("/Type /Catalog"),J("/Pages "+M+" 0 R"),Ye||(Ye="fullwidth"),Ye){case"fullwidth":J("/OpenAction [3 0 R /FitH null]");break;case"fullheight":J("/OpenAction [3 0 R /FitV null]");break;case"fullpage":J("/OpenAction [3 0 R /Fit]");break;case"original":J("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Y=""+Ye;Y.substr(Y.length-1)==="%"&&(Ye=parseInt(Ye)/100),typeof Ye=="number"&&J("/OpenAction [3 0 R /XYZ null null "+B(Ye)+"]")}switch(En||(En="continuous"),En){case"continuous":J("/PageLayout /OneColumn");break;case"single":J("/PageLayout /SinglePage");break;case"two":case"twoleft":J("/PageLayout /TwoColumnLeft");break;case"tworight":J("/PageLayout /TwoColumnRight")}en&&J("/PageMode /"+en),ri.publish("putCatalog"),J(">>"),J("endobj")},Ji=w.__private__.putTrailer=function(){J("trailer"),J("<<"),J("/Size "+(dt+1)),J("/Root "+dt+" 0 R"),J("/Info "+(dt-1)+" 0 R"),S!==null&&J("/Encrypt "+ji.oid+" 0 R"),J("/ID [ <"+Nt+"> <"+Nt+"> ]"),J(">>")},j0=w.__private__.putHeader=function(){J("%PDF-"+z),J("%\xBA\xDF\xAC\xE0")},q0=w.__private__.putXRef=function(){var b="0000000000";J("xref"),J("0 "+(dt+1)),J("0000000000 65535 f ");for(var M=1;M<=dt;M++)typeof Ct[M]=="function"?J((b+Ct[M]()).slice(-10)+" 00000 n "):Ct[M]!==void 0?J((b+Ct[M]).slice(-10)+" 00000 n "):J("0000000000 00000 n ")},Xo=w.__private__.buildDocument=function(){var b;dt=0,At=0,Mt=[],Ct=[],Ht=[],gr=ca(),go=ca(),Lt(Mt),ri.publish("buildDocument"),j0(),No(),function(){ri.publish("putAdditionalObjects");for(var Y=0;Y"),J("/O <"+ji.toHexString(ji.O)+">"),J("/P "+ji.P),J(">>"),J("endobj")),Rl(),Im();var M=At;return q0(),Ji(),J("startxref"),J(""+M),J("%%EOF"),Lt(ee[K]),Mt.join(` -`)},el=w.__private__.getBlob=function(b){return new Blob([Rn(b)],{type:"application/pdf"})},vo=w.output=w.__private__.output=(ao=function(b,M){switch(typeof(M=M||{})=="string"?M={filename:M}:M.filename=M.filename||"generated.pdf",b){case void 0:return Xo();case"save":w.save(M.filename);break;case"arraybuffer":return Rn(Xo());case"blob":return el(Xo());case"bloburi":case"bloburl":if(dn.URL!==void 0&&typeof dn.URL.createObjectURL=="function")return dn.URL&&dn.URL.createObjectURL(el(Xo()))||void 0;bi.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Y="",et=Xo();try{Y=f2(et)}catch{Y=f2(unescape(encodeURIComponent(et)))}return"data:application/pdf;filename="+M.filename+";base64,"+Y;case"pdfobjectnewwindow":if(Object.prototype.toString.call(dn)==="[object Window]"){var ft="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",jt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';M.pdfObjectUrl&&(ft=M.pdfObjectUrl,jt="");var Jt='