From ee31ced3f5cd6abe78ffc5c813d10c1e4ec01307 Mon Sep 17 00:00:00 2001 From: alberto-art3ch Date: Tue, 2 Dec 2025 20:38:43 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20openMF/w?= =?UTF-8?q?eb-app@27466996196ae884921a592a0987731139900e25=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...s => account-transfers.module-OK4HEU3M.js} | 2 +- .../{chunk-Q4M4U6WO.js => chunk-3ECYXF3K.js} | 2 +- .../{chunk-QASQQR43.js => chunk-HTRAKYZW.js} | 2 +- .../{chunk-EYEHKXQV.js => chunk-KFAN3QJB.js} | 2 +- .../{chunk-NKNH55Z3.js => chunk-KU2DV3OF.js} | 2 +- .../{chunk-JAKZ4STC.js => chunk-QRALQUVB.js} | 2 +- .../{chunk-K5WRCHK2.js => chunk-TO6SHLEP.js} | 2 +- .../{chunk-DF5NHKR4.js => chunk-VCV3Q6QU.js} | 2 +- ...2XYM.js => collaterals.module-IJ26RR63.js} | 2 +- ...X.js => fixed-deposits.module-747ILHNJ.js} | 4 +- browser/index.html | 2 +- ...e-23WM4WIA.js => loans.module-6EEDVQ6H.js} | 4 +- browser/main.js | 116 +++++++++--------- ... => recurring-deposits.module-D77WH4XP.js} | 4 +- ...4PPQUA3Q.js => savings.module-FHROXIW2.js} | 4 +- ...-ROGGCF26.js => shares.module-T7NIMTEI.js} | 2 +- 16 files changed, 77 insertions(+), 77 deletions(-) rename browser/{account-transfers.module-QNHSWPSE.js => account-transfers.module-OK4HEU3M.js} (99%) rename browser/{chunk-Q4M4U6WO.js => chunk-3ECYXF3K.js} (82%) rename browser/{chunk-QASQQR43.js => chunk-HTRAKYZW.js} (91%) rename browser/{chunk-EYEHKXQV.js => chunk-KFAN3QJB.js} (97%) rename browser/{chunk-NKNH55Z3.js => chunk-KU2DV3OF.js} (89%) rename browser/{chunk-JAKZ4STC.js => chunk-QRALQUVB.js} (99%) rename browser/{chunk-K5WRCHK2.js => chunk-TO6SHLEP.js} (99%) rename browser/{chunk-DF5NHKR4.js => chunk-VCV3Q6QU.js} (97%) rename browser/{collaterals.module-IY4Y2XYM.js => collaterals.module-IJ26RR63.js} (99%) rename browser/{fixed-deposits.module-QWAQTFGX.js => fixed-deposits.module-747ILHNJ.js} (99%) rename browser/{loans.module-23WM4WIA.js => loans.module-6EEDVQ6H.js} (99%) rename browser/{recurring-deposits.module-B6LAI43Z.js => recurring-deposits.module-D77WH4XP.js} (99%) rename browser/{savings.module-4PPQUA3Q.js => savings.module-FHROXIW2.js} (99%) rename browser/{shares.module-ROGGCF26.js => shares.module-T7NIMTEI.js} (99%) diff --git a/browser/account-transfers.module-QNHSWPSE.js b/browser/account-transfers.module-OK4HEU3M.js similarity index 99% rename from browser/account-transfers.module-QNHSWPSE.js rename to browser/account-transfers.module-OK4HEU3M.js index d947472be..05fae5ed2 100644 --- a/browser/account-transfers.module-QNHSWPSE.js +++ b/browser/account-transfers.module-OK4HEU3M.js @@ -1,4 +1,4 @@ -import{a as D}from"./chunk-EYEHKXQV.js";import{$c as at,$d as Ne,$e as $t,Aa as T,Ad as mt,Ba as S,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,bg as $e,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,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,wg as Ue,xa as B,xd as J,yd as Ht,za as A,zd as K}from"./chunk-JAKZ4STC.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-KFAN3QJB.js";import{$c as at,$d as Ne,$e as $t,Aa as T,Ad as mt,Ba as S,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,bg as $e,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,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,wg as Ue,xa as B,xd as J,yd as Ht,za as A,zd as K}from"./chunk-QRALQUVB.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/chunk-Q4M4U6WO.js b/browser/chunk-3ECYXF3K.js similarity index 82% rename from browser/chunk-Q4M4U6WO.js rename to browser/chunk-3ECYXF3K.js index ac587b423..3c7bc4d81 100644 --- a/browser/chunk-Q4M4U6WO.js +++ b/browser/chunk-3ECYXF3K.js @@ -1 +1 @@ -import{G as r,J as c,Yf as a}from"./chunk-JAKZ4STC.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-QRALQUVB.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-QASQQR43.js b/browser/chunk-HTRAKYZW.js similarity index 91% rename from browser/chunk-QASQQR43.js rename to browser/chunk-HTRAKYZW.js index 139ef9bbd..3259dd2ac 100644 --- a/browser/chunk-QASQQR43.js +++ b/browser/chunk-HTRAKYZW.js @@ -1 +1 @@ -import{G as r,J as i,Yf as n}from"./chunk-JAKZ4STC.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-QRALQUVB.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-EYEHKXQV.js b/browser/chunk-KFAN3QJB.js similarity index 97% rename from browser/chunk-EYEHKXQV.js rename to browser/chunk-KFAN3QJB.js index 1deca97cd..5b5c7af84 100644 --- a/browser/chunk-EYEHKXQV.js +++ b/browser/chunk-KFAN3QJB.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-JAKZ4STC.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-QRALQUVB.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-NKNH55Z3.js b/browser/chunk-KU2DV3OF.js similarity index 89% rename from browser/chunk-NKNH55Z3.js rename to browser/chunk-KU2DV3OF.js index 915b01a43..9f39e5e45 100644 --- a/browser/chunk-NKNH55Z3.js +++ b/browser/chunk-KU2DV3OF.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-JAKZ4STC.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-QRALQUVB.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/chunk-JAKZ4STC.js b/browser/chunk-QRALQUVB.js similarity index 99% rename from browser/chunk-JAKZ4STC.js rename to browser/chunk-QRALQUVB.js index 5a3acfd5c..181c14266 100644 --- a/browser/chunk-JAKZ4STC.js +++ b/browser/chunk-QRALQUVB.js @@ -13,7 +13,7 @@ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(` `+t.message,r,e,n),t[eN]=r,t[n0]=null,t}function oN(t,i,e,n=null){t=t&&t.charAt(0)===` `&&t.charAt(1)==nN?t.slice(2):t;let r=Qi(i);if(Array.isArray(i))r=i.map(Qi).join(" -> ");else if(typeof i=="object"){let a=[];for(let o in i)if(i.hasOwnProperty(o)){let s=i[o];a.push(o+":"+(typeof s=="string"?JSON.stringify(s):Qi(s)))}r=`{${a.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(tN,` `)}`}var hr=Yb(Nb("Optional"),8);var Yr=Yb(Nb("SkipSelf"),4);function Bs(t,i){let e=t.hasOwnProperty(e0);return e?t[e0]:null}function sN(t,i,e){if(t.length!==i.length)return!1;for(let n=0;nArray.isArray(e)?i8(e,i):i(e))}function Qb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function i0(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function lN(t,i){let e=[];for(let n=0;ni;){let a=r-2;t[r]=t[a],r--}t[i]=e,t[i+1]=n}}function T0(t,i,e){let n=N1(t,i);return n>=0?t[n|1]=e:(n=~n,dN(t,n,i,e)),n}function Th(t,i){let e=N1(t,i);if(e>=0)return t[e|1]}function N1(t,i){return uN(t,i,1)}function uN(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){let a=n+(r-n>>1),o=t[a<i?r=a:n=a+1}return~(r<{e.push(o)};return i8(i,o=>{let s=o;Kh(s,a,[],n)&&(r||=[],r.push(s))}),r!==void 0&&ty(r,a),e}function ty(t,i){for(let e=0;e{i(a,n)})}}function Kh(t,i,e,n){if(t=di(t),!t)return!1;let r=null,a=jv(t),o=!a&&jo(t);if(!a&&!o){let d=t.ngModule;if(a=jv(d),a)r=d;else return!1}else{if(o&&!o.standalone)return!1;r=t}let s=n.has(r);if(o){if(s)return!1;if(n.add(r),o.dependencies){let d=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let h of d)Kh(h,i,e,n)}}else if(a){if(a.imports!=null&&!s){n.add(r);let h;try{i8(a.imports,v=>{Kh(v,i,e,n)&&(h||=[],h.push(v))})}finally{}h!==void 0&&ty(h,i)}if(!s){let h=Bs(r)||(()=>new r);i({provide:r,useFactory:h,deps:Ai},r),i({provide:Zb,useValue:r,multi:!0},r),i({provide:_l,useValue:()=>ae(r),multi:!0},r)}let d=a.providers;if(d!=null&&!s){let h=t;r8(d,v=>{i(v,h)})}}else return!1;return r!==t&&t.providers!==void 0}function r8(t,i){for(let e of t)$b(e)&&(e=e.\u0275providers),Array.isArray(e)?r8(e,i):i(e)}var fN=Wt({provide:String,useValue:Wt});function ny(t){return t!==null&&typeof t=="object"&&fN in t}function hN(t){return!!(t&&t.useExisting)}function gN(t){return!!(t&&t.useFactory)}function vl(t){return typeof t=="function"}function _N(t){return!!t.useClass}var A0=new A(""),Q3={},Wv={},Ah;function V0(){return Ah===void 0&&(Ah=new r0),Ah}var fn=class{},I1=class extends fn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,Xh(i,o=>this.processProvider(o)),this.records.set(Kb,ul(void 0,this)),r.has("environment")&&this.records.set(fn,ul(void 0,this));let a=this.records.get(A0);a!=null&&typeof a.value=="string"&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Zb,Ai,ft.Self))}retrieve(i,e){let n=e;return this.get(i,n.optional?f3:Ns,n)}destroy(){D1(this),this._destroyed=!0;let i=ht(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ht(i)}}onDestroy(i){return D1(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){D1(this);let e=Ja(this),n=qi(void 0),r;try{return i()}finally{Ja(e),qi(n)}}get(i,e=Ns,n=ft.Default){if(D1(this),i.hasOwnProperty($v))return i[$v](this);n=P0(n);let r,a=Ja(this),o=qi(void 0);try{if(!(n&ft.SkipSelf)){let d=this.records.get(i);if(d===void 0){let h=xN(i)&&I0(i);h&&this.injectableDefInScope(h)?d=ul(Zh(i),Q3):d=null,this.records.set(i,d)}if(d!=null)return this.hydrate(i,d,n)}let s=n&ft.Self?V0():this.parent;return e=n&ft.Optional&&e===Ns?null:e,s.get(i,e)}catch(s){if(s.name==="NullInjectorError"){if((s[n0]=s[n0]||[]).unshift(Qi(i)),a)throw s;return aN(s,i,"R3InjectorError",this.source)}else throw s}finally{qi(o),Ja(a)}}resolveInjectorInitializers(){let i=ht(null),e=Ja(this),n=qi(void 0),r;try{let a=this.get(_l,Ai,ft.Self);for(let o of a)o()}finally{Ja(e),qi(n),ht(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(Qi(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=di(i);let e=vl(i)?i:di(i&&i.provide),n=bN(i);if(!vl(i)&&i.multi===!0){let r=this.records.get(e);r||(r=ul(void 0,Q3,!0),r.factory=()=>Qh(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let r=ht(null);try{return e.value===Wv?Gb(Qi(i)):e.value===Q3&&(e.value=Wv,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&CN(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ht(r)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=di(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function Zh(t){let i=I0(t),e=i!==null?i.factory:Bs(t);if(e!==null)return e;if(t instanceof A)throw new Ce(204,!1);if(t instanceof Function)return vN(t);throw new Ce(204,!1)}function vN(t){if(t.length>0)throw new Ce(204,!1);let e=WH(t);return e!==null?()=>e.factory(t):()=>new t}function bN(t){if(ny(t))return ul(void 0,t.useValue);{let i=iy(t);return ul(i,Q3)}}function iy(t,i,e){let n;if(vl(t)){let r=di(t);return Bs(r)||Zh(r)}else if(ny(t))n=()=>di(t.useValue);else if(gN(t))n=()=>t.useFactory(...Qh(t.deps||[]));else if(hN(t))n=(r,a)=>ae(di(t.useExisting),a!==void 0&&a&ft.Optional?ft.Optional:void 0);else{let r=di(t&&(t.useClass||t.provide));if(yN(t))n=()=>new r(...Qh(t.deps));else return Bs(r)||Zh(r)}return n}function D1(t){if(t.destroyed)throw new Ce(205,!1)}function ul(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function yN(t){return!!t.deps}function CN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function xN(t){return typeof t=="function"||typeof t=="object"&&t instanceof A}function Xh(t,i){for(let e of t)Array.isArray(e)?Xh(e,i):e&&$b(e)?Xh(e.\u0275providers,i):i(e)}function Ki(t,i){let e;t instanceof I1?(D1(t),e=t):e=new t0(t);let n,r=Ja(e),a=qi(void 0);try{return i()}finally{Ja(r),qi(a)}}function a8(){return Wb()!==void 0||v1()!=null}function o8(t){if(!a8())throw new Ce(-203,!1)}function MN(t){let i=ii.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function wN(t){return typeof t=="function"}var lo=0,lt=1,et=2,vi=3,qr=4,Zi=5,bl=6,a0=7,qn=8,yl=9,ao=10,an=11,P1=12,qv=13,kl=14,pr=15,js=16,ml=17,oo=18,L0=19,ry=20,Fo=21,Vh=22,Us=23,Ir=24,hl=25,Sn=26,ay=1;var $s=7,o0=8,Cl=9,_i=10;function Bo(t){return Array.isArray(t)&&typeof t[ay]=="object"}function uo(t){return Array.isArray(t)&&t[ay]===!0}function s8(t){return(t.flags&4)!==0}function El(t){return t.componentOffset>-1}function R0(t){return(t.flags&1)===1}function Ca(t){return!!t.template}function s0(t){return(t[et]&512)!==0}function Ol(t){return(t[et]&256)===256}var Jh=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function oy(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var Pe=(()=>{let t=()=>sy;return t.ngInherit=!0,t})();function sy(t){return t.type.prototype.ngOnChanges&&(t.setInput=SN),DN}function DN(){let t=ly(this),i=t?.current;if(i){let e=t.previous;if(e===ya)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function SN(t,i,e,n,r){let a=this.declaredInputs[n],o=ly(t)||kN(t,{previous:ya,current:null}),s=o.current||(o.current={}),d=o.previous,h=d[a];s[a]=new Jh(h&&h.currentValue,e,d===ya),oy(t,i,r,e)}var cy="__ngSimpleChanges__";function ly(t){return t[cy]||null}function kN(t,i){return t[cy]=i}var Yv=null;var Qt=function(t,i=null,e){Yv?.(t,i,e)},dy="svg",EN="math";function xa(t){for(;Array.isArray(t);)t=t[lo];return t}function uy(t,i){return xa(i[t])}function Sa(t,i){return xa(i[t.index])}function c8(t,i){return t.data[i]}function F1(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 Ma(t,i){let e=i[t];return Bo(e)?e:e[lo]}function ON(t){return(t[et]&4)===4}function l8(t){return(t[et]&128)===128}function IN(t){return uo(t[vi])}function Uo(t,i){return i==null?null:t[i]}function py(t){t[ml]=0}function fy(t){t[et]&1024||(t[et]|=1024,l8(t)&&Il(t))}function PN(t,i){for(;t>0;)i=i[kl],t--;return i}function z0(t){return!!(t[et]&9216||t[Ir]?.dirty)}function e6(t){t[ao].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),z0(t)&&Il(t)}function Il(t){t[ao].changeDetectionScheduler?.notify(0);let i=Gs(t);for(;i!==null&&!(i[et]&8192||(i[et]|=8192,!l8(i)));)i=Gs(i)}function hy(t,i){if(Ol(t))throw new Ce(911,!1);t[Fo]===null&&(t[Fo]=[]),t[Fo].push(i)}function TN(t,i){if(t[Fo]===null)return;let e=t[Fo].indexOf(i);e!==-1&&t[Fo].splice(e,1)}function Gs(t){let i=t[vi];return uo(i)?i[vi]:i}function d8(t){return t[a0]??=[]}function u8(t){return t.cleanup??=[]}function AN(t,i,e,n){let r=d8(i);r.push(e),t.firstCreatePass&&u8(t).push(n,r.length-1)}var ut={lFrame:Cy(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var t6=!1;function VN(){return ut.lFrame.elementDepthCount}function LN(){ut.lFrame.elementDepthCount++}function RN(){ut.lFrame.elementDepthCount--}function m8(){return ut.bindingsEnabled}function gy(){return ut.skipHydrationRootTNode!==null}function zN(t){return ut.skipHydrationRootTNode===t}function HN(){ut.skipHydrationRootTNode=null}function je(){return ut.lFrame.lView}function Kt(){return ut.lFrame.tView}function G(t){return ut.lFrame.contextLView=t,t[qn]}function W(t){return ut.lFrame.contextLView=null,t}function yi(){let t=_y();for(;t!==null&&t.type===64;)t=t.parent;return t}function _y(){return ut.lFrame.currentTNode}function NN(){let t=ut.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function $o(t,i){let e=ut.lFrame;e.currentTNode=t,e.isParent=i}function p8(){return ut.lFrame.isParent}function f8(){ut.lFrame.isParent=!1}function FN(){return ut.lFrame.contextLView}function vy(){return t6}function c0(t){let i=t6;return t6=t,i}function Xs(){let t=ut.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function h8(){return ut.lFrame.bindingIndex}function BN(t){return ut.lFrame.bindingIndex=t}function Js(){return ut.lFrame.bindingIndex++}function B1(t){let i=ut.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function jN(){return ut.lFrame.inI18n}function UN(t,i){let e=ut.lFrame;e.bindingIndex=e.bindingRootIndex=t,n6(i)}function $N(){return ut.lFrame.currentDirectiveIndex}function n6(t){ut.lFrame.currentDirectiveIndex=t}function GN(t){let i=ut.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function g8(){return ut.lFrame.currentQueryIndex}function H0(t){ut.lFrame.currentQueryIndex=t}function WN(t){let i=t[lt];return i.type===2?i.declTNode:i.type===1?t[Zi]:null}function by(t,i,e){if(e&ft.SkipSelf){let r=i,a=t;for(;r=r.parent,r===null&&!(e&ft.Host);)if(r=WN(a),r===null||(a=a[kl],r.type&10))break;if(r===null)return!1;i=r,t=a}let n=ut.lFrame=yy();return n.currentTNode=i,n.lView=t,!0}function _8(t){let i=yy(),e=t[lt];ut.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function yy(){let t=ut.lFrame,i=t===null?null:t.child;return i===null?Cy(t):i}function Cy(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function xy(){let t=ut.lFrame;return ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var My=xy;function v8(){let t=xy();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function qN(t){return(ut.lFrame.contextLView=PN(t,ut.lFrame.contextLView))[qn]}function Qr(){return ut.lFrame.selectedIndex}function Ws(t){ut.lFrame.selectedIndex=t}function Pl(){let t=ut.lFrame;return c8(t.tView,t.selectedIndex)}function Ut(){ut.lFrame.currentNamespace=dy}function ka(){YN()}function YN(){ut.lFrame.currentNamespace=null}function QN(){return ut.lFrame.currentNamespace}var wy=!0;function N0(){return wy}function F0(t){wy=t}function KN(t,i,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=i.type.prototype;if(n){let o=sy(i);(e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o)}r&&(e.preOrderHooks??=[]).push(0-t,r),a&&((e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a))}function b8(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[d]<0&&(t[ml]+=65536),(s>14>16&&(t[et]&3)===i&&(t[et]+=16384,Qv(s,a)):Qv(s,a)}var gl=-1,qs=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n){this.factory=i,this.canSeeViewProviders=e,this.injectImpl=n}};function XN(t){return(t.flags&8)!==0}function JN(t){return(t.flags&16)!==0}function eF(t,i,e){let n=0;for(;ni){o=a-1;break}}}for(;a>16}function d0(t,i){let e=nF(t),n=i;for(;e>0;)n=n[kl],e--;return n}var i6=!0;function u0(t){let i=i6;return i6=t,i}var iF=256,Ey=iF-1,Oy=5,rF=0,ba={};function aF(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(k1)&&(n=e[k1]),n==null&&(n=e[k1]=rF++);let r=n&Ey,a=1<>Oy)]|=a}function m0(t,i){let e=Iy(t,i);if(e!==-1)return e;let n=i[lt];n.firstCreatePass&&(t.injectorIndex=i.length,Rh(n.data,t),Rh(i,null),Rh(n.blueprint,null));let r=y8(t,i),a=t.injectorIndex;if(ky(r)){let o=l0(r),s=d0(r,i),d=s[lt].data;for(let h=0;h<8;h++)i[a+h]=s[o+h]|d[o+h]}return i[a+8]=r,a}function Rh(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Iy(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function y8(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;r!==null;){if(n=Ly(r),n===null)return gl;if(e++,r=r[kl],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return gl}function r6(t,i,e){aF(t,i,e)}function oF(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,r=0;for(;r>20,C=n?s:s+v,S=r?s+v:h;for(let D=C;D=d&&L.type===e)return D}if(r){let D=o[d];if(D&&Ca(D)&&D.type===e)return d}return null}function T1(t,i,e,n,r){let a=t[e],o=i.data;if(a instanceof qs){let s=a;s.resolving&&Gb(XH(o[e]));let d=u0(s.canSeeViewProviders);s.resolving=!0;let h,v=s.injectImpl?qi(s.injectImpl):null,C=by(t,n,ft.Default);try{a=t[e]=s.factory(void 0,r,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&KN(e,o[e],i)}finally{v!==null&&qi(v),u0(d),s.resolving=!1,My()}}return a}function cF(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(k1)?t[k1]:void 0;return typeof i=="number"?i>=0?i&Ey:lF:i}function Zv(t,i,e){let n=1<>Oy)]&n)}function Xv(t,i){return!(t&ft.Self)&&!(t&ft.Host&&i)}var Fs=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return Ay(this._tNode,this._lView,i,P0(n),e)}};function lF(){return new Fs(yi(),je())}function we(t){return H1(()=>{let i=t.prototype.constructor,e=i[e0]||a6(i),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let a=r[e0]||a6(r);if(a&&a!==e)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function a6(t){return Fb(t)?()=>{let i=a6(di(t));return i&&i()}:Bs(t)}function dF(t,i,e,n,r){let a=t,o=i;for(;a!==null&&o!==null&&o[et]&2048&&!s0(o);){let s=Vy(a,o,e,n|ft.Self,ba);if(s!==ba)return s;let d=a.parent;if(!d){let h=o[ry];if(h){let v=h.get(e,ba,n);if(v!==ba)return v}d=Ly(o),o=o[kl]}a=d}return r}function Ly(t){let i=t[lt],e=i.type;return e===2?i.declTNode:e===1?t[Zi]:null}function B0(t){return oF(yi(),t)}function Jv(t,i=null,e=null,n){let r=Ry(t,i,e,n);return r.resolveInjectorInitializers(),r}function Ry(t,i=null,e=null,n,r=new Set){let a=[e||Ai,pN(t)];return n=n||(typeof t=="object"?void 0:Qi(t)),new I1(a,i||V0(),n||null,r)}var Te=class t{static THROW_IF_NOT_FOUND=Ns;static NULL=new r0;static create(i,e){if(Array.isArray(i))return Jv({name:""},e,i,"");{let n=i.name??"";return Jv({name:n},i.parent,i.providers,n)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>ae(Kb)});static __NG_ELEMENT_ID__=-1};var hn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>B0(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},uF=new A("");uF.__NG_ELEMENT_ID__=t=>{let i=yi();if(i===null)throw new Ce(204,!1);if(i.type&2)return i.value;if(t&ft.Optional)return null;throw new Ce(204,!1)};var zy=!1,Go=(()=>{class t{static __NG_ELEMENT_ID__=mF;static __NG_ENV_ID__=e=>e}return t})(),p0=class extends Go{_lView;constructor(i){super(),this._lView=i}onDestroy(i){let e=this._lView;return Ol(e)?(i(),()=>{}):(hy(e,i),()=>TN(e,i))}};function mF(){return new p0(je())}var Ys=class{},C8=new A("",{providedIn:"root",factory:()=>!1});var Hy=new A(""),Ny=new A(""),mo=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Je(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();var o6=class extends N{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,a8()&&(this.destroyRef=u(Go,{optional:!0})??void 0,this.pendingTasks=u(mo,{optional:!0})??void 0)}emit(i){let e=ht(null);try{super.next(i)}finally{ht(e)}}subscribe(i,e,n){let r=i,a=e||(()=>null),o=n;if(i&&typeof i=="object"){let d=i;r=d.next?.bind(d),a=d.error?.bind(d),o=d.complete?.bind(d)}this.__isAsync&&(a=this.wrapInTimeout(a),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:a,complete:o});return i instanceof Me&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},j=o6;function A1(...t){}function Fy(t){let i,e;function n(){t=A1;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch{}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function eb(t){return queueMicrotask(()=>t()),()=>{t=A1}}var x8="isAngularZone",f0=x8+"_ID",pF=0,se=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new j(!1);onMicrotaskEmpty=new j(!1);onStable=new j(!1);onError=new j(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:a=zy}=i;if(typeof Zone>"u")throw new Ce(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,o.scheduleInRootZone=a,gF(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(x8)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Ce(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Ce(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){let a=this._inner,o=a.scheduleEventTask("NgZoneEvent: "+r,i,fF,A1,A1);try{return a.runTask(o,e,n)}finally{a.cancelTask(o)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},fF={};function M8(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function hF(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Fy(()=>{t.callbackScheduled=!1,s6(t),t.isCheckStableRunning=!0,M8(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),s6(t)}function gF(t){let i=()=>{hF(t)},e=pF++;t._inner=t._inner.fork({name:"angular",properties:{[x8]:!0,[f0]:e,[f0+e]:!0},onInvokeTask:(n,r,a,o,s,d)=>{if(_F(d))return n.invokeTask(a,o,s,d);try{return tb(t),n.invokeTask(a,o,s,d)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),nb(t)}},onInvoke:(n,r,a,o,s,d,h)=>{try{return tb(t),n.invoke(a,o,s,d,h)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!vF(d)&&i(),nb(t)}},onHasTask:(n,r,a,o)=>{n.hasTask(a,o),r===a&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,s6(t),M8(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 s6(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function tb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function nb(t){t._nesting--,M8(t)}var h0=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new j;onMicrotaskEmpty=new j;onStable=new j;onError=new j;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}};function _F(t){return By(t,"__ignore_ng_zone__")}function vF(t){return By(t,"__scheduler_tick__")}function By(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function bF(t="zone.js",i){return t==="noop"?new h0:t==="zone.js"?new se(i):t}var Vi=class{_console=console;handleError(i){this._console.error("ERROR",i)}},yF=new A("",{providedIn:"root",factory:()=>{let t=u(se),i=u(Vi);return e=>t.runOutsideAngular(()=>i.handleError(e))}});function ib(t,i){return Hb(t,i)}function CF(t){return Hb(zb,t)}var jy=(ib.required=CF,ib);function xF(){return Tl(yi(),je())}function Tl(t,i){return new Y(Sa(t,i))}var Y=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=xF}return t})();function Uy(t){return t instanceof Y?t.nativeElement:t}function Wo(t){return typeof t=="function"&&t[Gi]!==void 0}function Hn(t,i){let e=mh(t,i?.equal),n=e[Gi];return e.set=r=>_1(n,r),e.update=r=>ph(n,r),e.asReadonly=MF.bind(e),e}function MF(){let t=this[Gi];if(t.readonlyFn===void 0){let i=()=>this();i[Gi]=t,t.readonlyFn=i}return t.readonlyFn}function $y(t){return Wo(t)&&typeof t.set=="function"}function wF(){return this._results[Symbol.iterator]()}var kn=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new N}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=cN(i);(this._changesDetected=!sN(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=wF};function Gy(t){return(t.flags&128)===128}var Wy=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Wy||{}),qy=new Map,DF=0;function SF(){return DF++}function kF(t){qy.set(t[L0],t)}function c6(t){qy.delete(t[L0])}var rb="__ngContext__";function Al(t,i){Bo(i)?(t[rb]=i[L0],kF(i)):t[rb]=i}function Yy(t){return Ky(t[P1])}function Qy(t){return Ky(t[qr])}function Ky(t){for(;t!==null&&!uo(t);)t=t[qr];return t}var l6;function Zy(t){l6=t}function Xy(){if(l6!==void 0)return l6;if(typeof document<"u")return document;throw new Ce(210,!1)}var ec=new A("",{providedIn:"root",factory:()=>EF}),EF="ng",w8=new A(""),qo=new A("",{providedIn:"platform",factory:()=>"unknown"});var ze=new A(""),j1=new A("",{providedIn:"root",factory:()=>Xy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var OF="h",IF="b";var Jy=!1,PF=new A("",{providedIn:"root",factory:()=>Jy});var D8=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(D8||{}),Vl=new A(""),ab=new Set;function Yo(t){ab.has(t)||(ab.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var S8=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=TF}return t})();function TF(){return new S8(je(),yi())}var pl=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(pl||{}),eC=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),AF=[pl.EarlyRead,pl.Write,pl.MixedReadWrite,pl.Read],VF=(()=>{class t{ngZone=u(se);scheduler=u(Ys);errorHandler=u(Vi,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Vl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Qt(16),this.executing=!0;for(let n of AF)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let a=r.hooks[n];return a(r.pipelinedValue)},r.snapshot))}catch(a){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(a)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Qt(17)}register(e){let{view:n}=e;n!==void 0?((n[hl]??=[]).push(e),Il(n),n[et]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,n){return n?n.run(D8.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),d6=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?.[hl];i&&(this.view[hl]=i.filter(e=>e!==this))}};function tc(t,i){!i?.injector&&o8(tc);let e=i?.injector??u(Te);return Yo("NgAfterRender"),tC(t,e,i,!1)}function kt(t,i){!i?.injector&&o8(kt);let e=i?.injector??u(Te);return Yo("NgAfterNextRender"),tC(t,e,i,!0)}function LF(t,i){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[i]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function tC(t,i,e,n){let r=i.get(eC);r.impl??=i.get(VF);let a=i.get(Vl,null,{optional:!0}),o=e?.phase??pl.MixedReadWrite,s=e?.manualCleanup!==!0?i.get(Go):null,d=i.get(S8,null,{optional:!0}),h=new d6(r.impl,LF(t,o),d?.view,n,s,a?.snapshot(null));return r.impl.register(h),h}var RF=(t,i,e,n)=>{};function zF(t,i,e,n){RF(t,i,e,n)}var HF=()=>null;function nC(t,i,e=!1){return HF(t,i,e)}function iC(t,i){let e=t.contentQueries;if(e!==null){let n=ht(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return $3}function j0(t){return NF()?.createHTML(t)||t}var G3;function rC(){if(G3===void 0&&(G3=null,ii.trustedTypes))try{G3=ii.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return G3}function ob(t){return rC()?.createHTML(t)||t}function sb(t){return rC()?.createScriptURL(t)||t}var so=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rb})`}},m6=class extends so{getTypeName(){return"HTML"}},p6=class extends so{getTypeName(){return"Style"}},f6=class extends so{getTypeName(){return"Script"}},h6=class extends so{getTypeName(){return"URL"}},g6=class extends so{getTypeName(){return"ResourceURL"}};function Pr(t){return t instanceof so?t.changingThisBreaksApplicationSecurity:t}function po(t,i){let e=FF(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Rb})`)}return e===i}function FF(t){return t instanceof so&&t.getTypeName()||null}function aC(t){return new m6(t)}function oC(t){return new p6(t)}function sC(t){return new f6(t)}function cC(t){return new h6(t)}function lC(t){return new g6(t)}function BF(t){let i=new v6(t);return jF()?new _6(i):i}var _6=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(j0(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},v6=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=j0(i),e}};function jF(){try{return!!new window.DOMParser().parseFromString(j0(""),"text/html")}catch{return!1}}var UF=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function U0(t){return t=String(t),t.match(UF)?t:"unsafe:"+t}function fo(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function U1(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var dC=fo("area,br,col,hr,img,wbr"),uC=fo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mC=fo("rp,rt"),$F=U1(mC,uC),GF=U1(uC,fo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),WF=U1(mC,fo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),cb=U1(dC,GF,WF,$F),pC=fo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qF=fo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),YF=fo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),QF=U1(pC,qF,YF),KF=fo("script,style,template"),b6=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=JF(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let a=XF(e);if(a){e=a;break}e=r.pop()}}return this.buf.join("")}startElement(i){let e=lb(i).toLowerCase();if(!cb.hasOwnProperty(e))return this.sanitizedSomething=!0,!KF.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let r=0;r"),!0}endElement(i){let e=lb(i).toLowerCase();cb.hasOwnProperty(e)&&!dC.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(db(i))}};function ZF(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function XF(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw fC(i);return i}function JF(t){let i=t.firstChild;if(i&&ZF(t,i))throw fC(i);return i}function lb(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function fC(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var eB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tB=/([^\#-~ |!])/g;function db(t){return t.replace(/&/g,"&").replace(eB,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(tB,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var W3;function E8(t,i){let e=null;try{W3=W3||BF(t);let n=i?String(i):"";e=W3.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=W3.getInertBodyElement(n)}while(n!==a);let s=new b6().sanitizeChildren(ub(e)||e);return j0(s)}finally{if(e){let n=ub(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function ub(t){return"content"in t&&nB(t)?t.content:null}function nB(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ln=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ln||{});function Ll(t){let i=I8();return i?ob(i.sanitize(Ln.HTML,t)||""):po(t,"HTML")?ob(Pr(t)):E8(Xy(),Yi(t))}function O8(t){let i=I8();return i?i.sanitize(Ln.URL,t)||"":po(t,"URL")?Pr(t):U0(Yi(t))}function iB(t){let i=I8();if(i)return sb(i.sanitize(Ln.RESOURCE_URL,t)||"");if(po(t,"ResourceURL"))return sb(Pr(t));throw new Ce(904,!1)}function rB(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?iB:O8}function hC(t,i,e){return rB(i,e)(t)}function I8(){let t=je();return t&&t[ao].sanitizer}var aB=/^>|^->||--!>|)/g,sB="\u200B$1\u200B";function cB(t){return t.replace(aB,i=>i.replace(oB,sB))}function ame(t){return t.ownerDocument.defaultView}function ome(t){return t.ownerDocument}function gC(t){return t instanceof Function?t():t}function lB(t,i,e){let n=t.length;for(;;){let r=t.indexOf(i,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let a=i.length;if(r+a===n||t.charCodeAt(r+a)<=32)return r}e=r+1}}var _C="ng-template";function dB(t,i,e,n){let r=0;if(n){for(;r-1){let a;for(;++ra?C="":C=r[v+1].toLowerCase(),n&2&&h!==C){if(Gr(n))return!1;o=!0}}}}return Gr(n)||o}function Gr(t){return(t&1)===0}function pB(t,i,e,n){if(i===null)return-1;let r=0;if(n||!e){let a=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!Gr(o)&&(i+=mb(a,r),r=""),n=o,a=a||!Gr(n);e++}return r!==""&&(i+=mb(a,r)),i}function bB(t){return t.map(vB).join(",")}function yB(t){let i=[],e=[],n=1,r=2;for(;nSn&&wC(t,i,Sn,!1),Qt(o?2:0,r),e(n,r)}finally{Ws(a),Qt(o?3:1,r)}}function G0(t,i,e){LB(t,i,e),(e.flags&64)===64&&RB(t,i,e)}function L8(t,i,e=Sa){let n=i.localNames;if(n!==null){let r=i.index+1;for(let a=0;anull;function AB(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function $1(t,i,e,n,r,a,o,s){if(!s&&z8(i,t,e,n,r)){El(i)&&VB(e,i.index);return}if(i.type&3){let d=Sa(i,e);n=AB(n),r=o!=null?o(r,i.value||"",n):r,a.setProperty(d,n,r)}else i.type&12}function VB(t,i){let e=Ma(i,t);e[et]&16||(e[et]|=64)}function LB(t,i,e){let n=e.directiveStart,r=e.directiveEnd;El(e)&&OB(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||m0(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[a0]=null);let r=i[Fo];if(r!==null){i[Fo]=null;for(let o=0;o{Il(t.lView)},consumerOnSignalRead(){this.lView[Ir]=this}});function cj(t){let i=t[Ir]??Object.create(lj);return i.lView=t,i}var lj=Be(q({},Qc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Gs(t.lView);for(;i&&!AC(i[lt]);)i=Gs(i);i&&fy(i)},consumerOnSignalRead(){this.lView[Ir]=this}});function AC(t){return t.type!==2}function VC(t){if(t[Us]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Us])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[et]&8192)}}var dj=100;function LC(t,i=!0,e=0){let r=t[ao].rendererFactory,a=!1;a||r.begin?.();try{uj(t,e)}catch(o){throw i&&BB(t,o),o}finally{a||r.end?.()}}function uj(t,i){let e=vy();try{c0(!0),x6(t,i);let n=0;for(;z0(t);){if(n===dj)throw new Ce(103,!1);n++,x6(t,1)}}finally{c0(e)}}function mj(t,i,e,n){if(Ol(i))return;let r=i[et],a=!1,o=!1;_8(i);let s=!0,d=null,h=null;a||(AC(t)?(h=rj(i),d=h1(h)):sh()===null?(s=!1,h=cj(i),d=h1(h)):i[Ir]&&(g1(i[Ir]),i[Ir]=null));try{py(i),BN(t.bindingStartIndex),e!==null&&DC(t,i,e,2,n);let v=(r&3)===3;if(!a)if(v){let D=t.preOrderCheckHooks;D!==null&&K3(i,D,null)}else{let D=t.preOrderHooks;D!==null&&Z3(i,D,0,null),Lh(i,0)}if(o||pj(i),VC(i),RC(i,0),t.contentQueries!==null&&iC(t,i),!a)if(v){let D=t.contentCheckHooks;D!==null&&K3(i,D)}else{let D=t.contentHooks;D!==null&&Z3(i,D,1),Lh(i,1)}hj(t,i);let C=t.components;C!==null&&HC(i,C,0);let S=t.viewQuery;if(S!==null&&u6(2,S,n),!a)if(v){let D=t.viewCheckHooks;D!==null&&K3(i,D)}else{let D=t.viewHooks;D!==null&&Z3(i,D,2),Lh(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Vh]){for(let D of i[Vh])D();i[Vh]=null}a||(PC(i),i[et]&=-73)}catch(v){throw a||Il(i),v}finally{h!==null&&(c3(h,d),s&&oj(h)),v8()}}function RC(t,i){for(let e=Yy(t);e!==null;e=Qy(e))for(let n=_i;n0&&(t[e-1][qr]=n[qr]);let a=i0(t,_i+i);WB(n[lt],n);let o=a[oo];o!==null&&o.detachView(a[lt]),n[vi]=null,n[qr]=null,n[et]&=-129}return n}function gj(t,i,e,n){let r=_i+n,a=e.length;n>0&&(e[r-1][qr]=i),n-1&&(V1(i,n),i0(e,n))}this._attachedToViewContainer=!1}W0(this._lView[lt],this._lView)}onDestroy(i){hy(this._lView,i)}markForCheck(){U8(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){e6(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,LC(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=s0(this._lView),e=this._lView[js];e!==null&&!i&&B8(e,this._lView),SC(this._lView[lt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ce(902,!1);this._appRef=i;let e=s0(this._lView),n=this._lView[js];n!==null&&!e&&jC(n,this._lView),e6(this._lView)}};var Qe=(()=>{class t{static __NG_ELEMENT_ID__=bj}return t})(),_j=Qe,vj=class extends _j{_declarationLView;_declarationTContainer;elementRef;constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){let r=G1(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:e,dehydratedView:n});return new L1(r)}};function bj(){return Q0(yi(),je())}function Q0(t,i){return t.type&4?new vj(i,t,Tl(t,i)):null}function Rl(t,i,e,n,r){let a=t.data[i];if(a===null)a=yj(t,i,e,n,r),jN()&&(a.flags|=32);else if(a.type&64){a.type=e,a.value=n,a.attrs=r;let o=NN();a.injectorIndex=o===null?-1:o.injectorIndex}return $o(a,!0),a}function yj(t,i,e,n,r){let a=_y(),o=p8(),s=o?a:a&&a.parent,d=t.data[i]=xj(t,s,e,i,n,r);return Cj(t,d,a,o),d}function Cj(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function xj(t,i,e,n,r,a){let o=i?i.injectorIndex:-1,s=0;return gy()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var lme=new RegExp(`^(\\d+)*(${IF}|${OF})*(.*)`);var Mj=()=>null;function wl(t,i){return Mj(t,i)}var wj=class{},UC=class{},M6=class{resolveComponentFactory(i){throw Error(`No component factory found for ${Qi(i)}.`)}},K0=class{static NULL=new M6},En=class{},Ke=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>Dj()}return t})();function Dj(){let t=je(),i=yi(),e=Ma(i.index,t);return(Bo(e)?e:t)[an]}var Sj=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var Hh={},w6=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=P0(n);let r=this.injector.get(i,Hh,n);return r!==Hh||e===Hh?r:this.parentInjector.get(i,e,n)}};function D6(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,a=0;if(i!==null)for(let o=0;o0&&(e.directiveToIndex=new Map);for(let S=0;S0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function Rj(t,i,e){if(e){if(i.exportAs)for(let n=0;n{let[e,n,r]=t[i],a={propName:e,templateName:i,isSignal:(n&$0.SignalBased)!==0};return r&&(a.transform=r),a})}function Nj(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function Fj(t,i,e){let n=i instanceof fn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new w6(e,n):e}function Bj(t){let i=t.get(En,null);if(i===null)throw new Ce(407,!1);let e=t.get(Sj,null),n=t.get(Ys,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n}}function jj(t,i){let e=(t.selectors[0][0]||"div").toLowerCase();return bC(i,e,e==="svg"?dy:e==="math"?EN:null)}var Qs=class extends UC{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Hj(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Nj(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=bB(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,r){Qt(22);let a=ht(null);try{let o=this.componentDef,s=n?["ng-version","19.2.14"]:yB(this.componentDef.selectors[0]),d=T8(0,null,null,1,0,null,null,null,null,[s],null),h=Fj(o,r||this.ngModule,i),v=Bj(h),C=v.rendererFactory.createRenderer(null,o),S=n?IB(C,n,o.encapsulation,h):jj(o,C),D=A8(null,d,null,512|xC(o),null,null,v,C,h,null,nC(S,h,!0));D[Sn]=S,_8(D);let L=null;try{let ne=GC(Sn,d,D,"#host",()=>[this.componentDef],!0,0);S&&(CC(C,S,ne),Al(S,D)),G0(d,D,ne),k8(d,ne,D),WC(d,ne),e!==void 0&&Uj(ne,this.ngContentSelectors,e),L=Ma(ne.index,D),D[qn]=L[qn],H8(d,D,null)}catch(ne){throw L!==null&&c6(L),c6(D),ne}finally{Qt(23),v8()}return new S6(this.componentType,D)}finally{ht(a)}}},S6=class extends wj{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e){super(),this._rootLView=e,this._tNode=c8(e[lt],Sn),this.location=Tl(this._tNode,e),this.instance=Ma(this._tNode.index,e)[qn],this.hostView=this.changeDetectorRef=new L1(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=z8(n,r[lt],r,i,e);this.previousInputValues.set(i,e);let o=Ma(n.index,r);U8(o,1)}get injector(){return new Fs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function Uj(t,i,e){let n=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=$j}return t})();function $j(){let t=yi();return YC(t,je())}var Gj=rt,qC=class extends Gj{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Tl(this._hostTNode,this._hostLView)}get injector(){return new Fs(this._hostTNode,this._hostLView)}get parentInjector(){let i=y8(this._hostTNode,this._hostLView);if(ky(i)){let e=d0(i,this._hostLView),n=l0(i),r=e[lt].data[n+8];return new Fs(r,e)}else return new Fs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=vb(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-_i}createEmbeddedView(i,e,n){let r,a;typeof n=="number"?r=n:n!=null&&(r=n.index,a=n.injector);let o=wl(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},a,o);return this.insertImpl(s,r,Ml(this._hostTNode,o)),s}createComponent(i,e,n,r,a){let o=i&&!wN(i),s;if(o)s=e;else{let L=e||{};s=L.index,n=L.injector,r=L.projectableNodes,a=L.environmentInjector||L.ngModuleRef}let d=o?i:new Qs(jo(i)),h=n||this.parentInjector;if(!a&&d.ngModule==null){let ne=(o?h:this.parentInjector).get(fn,null);ne&&(a=ne)}let v=jo(d.componentType??{}),C=wl(this._lContainer,v?.id??null),S=C?.firstChild??null,D=d.create(h,r,S,a);return this.insertImpl(D.hostView,s,Ml(this._hostTNode,C)),D}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let r=i._lView;if(IN(r)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let d=r[vi],h=new qC(d,d[Zi],d[vi]);h.detach(h.indexOf(i))}}let a=this._adjustIndex(e),o=this._lContainer;return W1(o,r,a,n),i.attachToViewContainerRef(),Qb(Nh(o),a,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=vb(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=V1(this._lContainer,e);n&&(i0(Nh(this._lContainer),e),W0(n[lt],n))}detach(i){let e=this._adjustIndex(i,-1),n=V1(this._lContainer,e);return n&&i0(Nh(this._lContainer),e)!=null?new L1(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function vb(t){return t[o0]}function Nh(t){return t[o0]||(t[o0]=[])}function YC(t,i){let e,n=i[t.index];return uo(n)?e=n:(e=NC(n,i,null,t),i[t.index]=e,V8(i,e)),qj(e,i,t,n),new qC(e,t,i)}function Wj(t,i){let e=t[an],n=e.createComment(""),r=Sa(i,t),a=e.parentNode(r);return g0(e,a,n,e.nextSibling(r),!1),n}var qj=Kj,Yj=()=>!1;function Qj(t,i,e){return Yj(t,i,e)}function Kj(t,i,e,n){if(t[$s])return;let r;e.type&8?r=xa(n):r=Wj(i,e),t[$s]=r}var k6=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},E6=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,r=[];for(let a=0;a0)n.push(o[s/2]);else{let h=a[s+1],v=i[-d];for(let C=_i;Ci.trim())}function XC(t,i,e){t.queries===null&&(t.queries=new O6),t.queries.track(new I6(i,e))}function iU(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function W8(t,i){return t.queries.getByIndex(i)}function JC(t,i){let e=t[lt],n=W8(e,i);return n.crossesNgTemplate?P6(e,t,i,[]):QC(e,t,n,i)}function ex(t,i,e){let n,r=m3(()=>{n._dirtyCounter();let a=sU(n,t);if(i&&a===void 0)throw new Ce(-951,!1);return a});return n=r[Gi],n._dirtyCounter=Hn(0),n._flatValue=void 0,r}function rU(t){return ex(!0,!1,t)}function aU(t){return ex(!0,!0,t)}function oU(t,i){let e=t[Gi];e._lView=je(),e._queryIndex=i,e._queryList=G8(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function sU(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[et]&4)return i?void 0:Ai;let r=G8(e,n),a=JC(e,n);return r.reset(a,Uy),i?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function bb(t,i){return rU(i)}function cU(t,i){return aU(i)}var tx=(bb.required=cU,bb);function lU(t){let i=[],e=new Map;function n(r){let a=e.get(r);if(!a){let o=t(r);e.set(r,a=o.then(pU))}return a}return y0.forEach((r,a)=>{let o=[];r.templateUrl&&o.push(n(r.templateUrl).then(h=>{r.template=h}));let s=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=s,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let h=r.styles.length,v=r.styleUrls;r.styleUrls.forEach((C,S)=>{s.push(""),o.push(n(C).then(D=>{s[h+S]=D,v.splice(v.indexOf(C),1),v.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&o.push(n(r.styleUrl).then(h=>{s.push(h),r.styleUrl=void 0}));let d=Promise.all(o).then(()=>fU(a));i.push(d)}),uU(),Promise.all(i).then(()=>{})}var y0=new Map,dU=new Set;function uU(){let t=y0;return y0=new Map,t}function mU(){return y0.size===0}function pU(t){return typeof t=="string"?t:t.text()}function fU(t){dU.delete(t)}var co=class{},q8=class{};var C0=class extends co{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new v0(this);constructor(i,e,n,r=!0){super(),this.ngModuleType=i,this._parent=e;let a=Xb(i);this._bootstrapComponents=gC(a.bootstrap),this._r3Injector=Ry(i,e,[{provide:co,useValue:this},{provide:K0,useValue:this.componentFactoryResolver},...n],Qi(i),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},x0=class extends q8{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new C0(this.moduleType,i,[])}};function hU(t,i,e){return new C0(t,i,e,!1)}var T6=class extends co{injector;componentFactoryResolver=new v0(this);instance=null;constructor(i){super();let e=new I1([...i.providers,{provide:co,useValue:this},{provide:K0,useValue:this.componentFactoryResolver}],i.parent||V0(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function q1(t,i,e=null){return new T6({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var gU=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=ey(!1,e.type),r=n.length>0?q1([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(ae(fn))})}return t})();function I(t){return H1(()=>{let i=nx(t),e=Be(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Wy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?r=>r.get(gU).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||wa.Emulated,styles:t.styles||Ai,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Yo("NgStandalone"),ix(e);let n=t.dependencies;return e.directiveDefs=yb(n,!1),e.pipeDefs=yb(n,!0),e.id=CU(e),e})}function _U(t){return jo(t)||Jb(t)}function vU(t){return t!==null}function K(t){return H1(()=>({type:t.type,bootstrap:t.bootstrap||Ai,declarations:t.declarations||Ai,imports:t.imports||Ai,exports:t.exports||Ai,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function bU(t,i){if(t==null)return ya;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=$0.None,d=null),e[a]=[n,s,d],i[a]=o}return e}function yU(t){if(t==null)return ya;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function V(t){return H1(()=>{let i=nx(t);return ix(i),i})}function _t(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function nx(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||ya,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ai,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:bU(t.inputs,i),outputs:yU(t.outputs),debugInfo:null}}function ix(t){t.features?.forEach(i=>i(t))}function yb(t,i){if(!t)return null;let e=i?mN:_U;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(vU)}function CU(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let a of n.join("|"))i=Math.imul(31,i)+a.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function xU(t){return Object.getPrototypeOf(t.prototype).constructor}function ce(t){let i=xU(t.type),e=!0,n=[t];for(;i;){let r;if(Ca(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=Fh(t.inputs),o.declaredInputs=Fh(t.declaredInputs),o.outputs=Fh(t.outputs);let s=r.hostBindings;s&&kU(t,s);let d=r.viewQuery,h=r.contentQueries;if(d&&DU(t,d),h&&SU(t,h),MU(t,r),$H(t.outputs,r.outputs),Ca(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=xl(r.hostAttrs,e=xl(e,r.hostAttrs))}}function Fh(t){return t===ya?{}:t===Ai?[]:t}function DU(t,i){let e=t.viewQuery;e?t.viewQuery=(n,r)=>{i(n,r),e(n,r)}:t.viewQuery=i}function SU(t,i){let e=t.contentQueries;e?t.contentQueries=(n,r,a)=>{i(n,r,a),e(n,r,a)}:t.contentQueries=i}function kU(t,i){let e=t.hostBindings;e?t.hostBindings=(n,r)=>{i(n,r),e(n,r)}:t.hostBindings=i}function rx(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=ax,e.hostDirectives=n?t.map(A6):[t]):n?e.hostDirectives.unshift(...t.map(A6)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function ax(t,i,e){if(t.hostDirectives!==null)for(let n of t.hostDirectives)if(typeof n=="function"){let r=n();for(let a of r)Cb(A6(a),i,e)}else Cb(n,i,e)}function Cb(t,i,e){let n=Jb(t.directive);EU(n.declaredInputs,t.inputs),ax(n,i,e),e.set(n,t),i.push(n)}function A6(t){return typeof t=="function"?{directive:di(t),inputs:ya,outputs:ya}:{directive:di(t.directive),inputs:xb(t.inputs),outputs:xb(t.outputs)}}function xb(t){if(t===void 0||t.length===0)return ya;let i={};for(let e=0;e{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var K8=new A(""),Q1=new A(""),X0=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,r){this._ngZone=e,this.registry=n,a8()&&(this._destroyRef=u(Go,{optional:!0})??void 0),Z8||(VU(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let a=-1;n&&n>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==a),e()},n)),this._callbacks.push({doneCb:e,timeoutId:a,updateCb:r})}whenStable(e,n,r){if(r&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,r),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}static \u0275fac=function(n){return new(n||t)(ae(se),ae(J0),ae(Q1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),J0=(()=>{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 Z8?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function VU(t){Z8=t}var Z8,lx=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new V6})}return t})(),V6=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 Qo(t){return!!t&&typeof t.then=="function"}function X8(t){return!!t&&typeof t.subscribe=="function"}var dx=new A("");function J8(t){return Sl([{provide:dx,multi:!0,useValue:t}])}var ux=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=u(dx,{optional:!0})??[];injector=u(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let a=Ki(this.injector,r);if(Qo(a))e.push(a);else if(X8(a)){let o=new Promise((s,d)=>{a.subscribe({complete:s,error:d})});e.push(o)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eg=new A("");function LU(){uh(()=>{throw new Ce(600,!1)})}function RU(t){return t.isBoundToModule}var zU=10;function mx(t,i){return Array.isArray(i)?i.reduce(mx,t):q(q({},t),i)}var bi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(yF);afterRenderManager=u(eC);zonelessEnabled=u(C8);rootEffectScheduler=u(lx);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new N;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=u(mo).hasPendingTasks.pipe(me(e=>!e));constructor(){u(Vl,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:r=>{r&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=u(fn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,r=Te.NULL){Qt(10);let a=e instanceof UC;if(!this._injector.get(ux).done){let D="";throw new Ce(405,D)}let s;a?s=e:s=this._injector.get(K0).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let d=RU(s)?void 0:this._injector.get(co),h=n||s.selector,v=s.create(r,[],h,d),C=v.location.nativeElement,S=v.injector.get(K8,null);return S?.registerApplication(C),v.onDestroy(()=>{this.detachView(v.hostView),J3(this.components,v),S?.unregisterApplication(C)}),this._loadComponent(v),Qt(11,v),v}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Qt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(D8.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Ce(101,!1);let e=ht(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ht(e),this.afterTick.next(),Qt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(En,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++z0(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;J3(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(eg,[]).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),()=>J3(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ce(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function J3(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function HU(t,i,e,n){if(!e&&!z0(t))return;LC(t,i,e&&!n?0:1)}function ee(t,i,e,n){let r=je(),a=Js();if(fr(r,a,i)){let o=Kt(),s=Pl();HB(s,r,t,i,e,n)}return ee}function tg(t,i,e,n){return fr(t,Js(),e)?i+Yi(e)+n:Yn}function px(t,i,e,n,r,a){let o=h8(),s=R1(t,o,e,r);return B1(2),s?i+Yi(e)+n+Yi(r)+a:Yn}function NU(t,i,e,n,r,a,o,s){let d=h8(),h=sx(t,d,e,r,o);return B1(3),h?i+Yi(e)+n+Yi(r)+a+Yi(o)+s:Yn}function FU(t,i,e,n,r,a,o,s,d,h){let v=h8(),C=cx(t,v,e,r,o,d);return B1(4),C?i+Yi(e)+n+Yi(r)+a+Yi(o)+s+Yi(d)+h:Yn}function q3(t,i){return t<<17|i<<2}function Ks(t){return t>>17&32767}function BU(t){return(t&2)==2}function jU(t,i){return t&131071|i<<17}function L6(t){return t|2}function Dl(t){return(t&131068)>>2}function Bh(t,i){return t&-131069|i<<2}function UU(t){return(t&1)===1}function R6(t){return t|1}function $U(t,i,e,n,r,a){let o=a?i.classBindings:i.styleBindings,s=Ks(o),d=Dl(o);t[n]=e;let h=!1,v;if(Array.isArray(e)){let C=e;v=C[1],(v===null||N1(C,v)>0)&&(h=!0)}else v=e;if(r)if(d!==0){let S=Ks(t[s+1]);t[n+1]=q3(S,s),S!==0&&(t[S+1]=Bh(t[S+1],n)),t[s+1]=jU(t[s+1],n)}else t[n+1]=q3(s,0),s!==0&&(t[s+1]=Bh(t[s+1],n)),s=n;else t[n+1]=q3(d,0),s===0?s=n:t[d+1]=Bh(t[d+1],n),d=n;h&&(t[n+1]=L6(t[n+1])),Mb(t,v,n,!0),Mb(t,v,n,!1),GU(i,v,t,n,a),o=q3(s,d),a?i.classBindings=o:i.styleBindings=o}function GU(t,i,e,n,r){let a=r?t.residualClasses:t.residualStyles;a!=null&&typeof i=="string"&&N1(a,i)>=0&&(e[n+1]=R6(e[n+1]))}function Mb(t,i,e,n){let r=t[e+1],a=i===null,o=n?Ks(r):Dl(r),s=!1;for(;o!==0&&(s===!1||a);){let d=t[o],h=t[o+1];WU(d,i)&&(s=!0,t[o+1]=n?R6(h):L6(h)),o=n?Ks(h):Dl(h)}s&&(t[e+1]=n?L6(r):R6(r))}function WU(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?N1(t,i)>=0:!1}var Wr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qU(t){return t.substring(Wr.key,Wr.keyEnd)}function YU(t){return QU(t),fx(t,hx(t,0,Wr.textEnd))}function fx(t,i){let e=Wr.textEnd;return e===i?-1:(i=Wr.keyEnd=KU(t,Wr.key=i,e),hx(t,i,e))}function QU(t){Wr.key=0,Wr.keyEnd=0,Wr.value=0,Wr.valueEnd=0,Wr.textEnd=t.length}function hx(t,i,e){for(;i32;)i++;return i}function y(t,i,e){let n=je(),r=Js();if(fr(n,r,i)){let a=Kt(),o=Pl();$1(a,o,n,t,i,n[an],e,!1)}return y}function z6(t,i,e,n,r){z8(i,t,e,r?"class":"style",n)}function Et(t,i,e){return _x(t,i,e,!1),Et}function te(t,i){return _x(t,i,null,!0),te}function It(t){vx(n$,gx,t,!0)}function gx(t,i){for(let e=YU(i);e>=0;e=fx(i,e))T0(t,qU(i),!0)}function _x(t,i,e,n){let r=je(),a=Kt(),o=B1(2);if(a.firstUpdatePass&&yx(a,t,o,n),i!==Yn&&fr(r,o,i)){let s=a.data[Qr()];Cx(a,s,r,r[an],t,r[o+1]=r$(i,e),n,o)}}function vx(t,i,e,n){let r=Kt(),a=B1(2);r.firstUpdatePass&&yx(r,null,a,n);let o=je();if(e!==Yn&&fr(o,a,e)){let s=r.data[Qr()];if(xx(s,n)&&!bx(r,a)){let d=n?s.classesWithoutHost:s.stylesWithoutHost;d!==null&&(e=Wh(d,e||"")),z6(r,s,o,e,n)}else i$(r,s,o,o[an],o[a+1],o[a+1]=t$(t,i,e),n,a)}}function bx(t,i){return i>=t.expandoStartIndex}function yx(t,i,e,n){let r=t.data;if(r[e+1]===null){let a=r[Qr()],o=bx(t,e);xx(a,n)&&i===null&&!o&&(i=!1),i=ZU(r,a,i,n),$U(r,a,i,e,o,n)}}function ZU(t,i,e,n){let r=GN(t),a=n?i.residualClasses:i.residualStyles;if(r===null)(n?i.classBindings:i.styleBindings)===0&&(e=jh(null,t,i,e,n),e=z1(e,i.attrs,n),a=null);else{let o=i.directiveStylingLast;if(o===-1||t[o]!==r)if(e=jh(r,t,i,e,n),a===null){let d=XU(t,i,n);d!==void 0&&Array.isArray(d)&&(d=jh(null,t,i,d[1],n),d=z1(d,i.attrs,n),JU(t,i,n,d))}else a=e$(t,i,n)}return a!==void 0&&(n?i.residualClasses=a:i.residualStyles=a),e}function XU(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Dl(n)!==0)return t[Ks(n)]}function JU(t,i,e,n){let r=e?i.classBindings:i.styleBindings;t[Ks(r)]=n}function e$(t,i,e){let n,r=i.directiveEnd;for(let a=1+i.directiveStylingLast;a0;){let d=t[r],h=Array.isArray(d),v=h?d[1]:d,C=v===null,S=e[r+1];S===Yn&&(S=C?Ai:void 0);let D=C?Th(S,n):v===n?S:void 0;if(h&&!w0(D)&&(D=Th(d,n)),w0(D)&&(s=D,o))return s;let L=t[r+1];r=o?Ks(L):Dl(L)}if(i!==null){let d=a?i.residualClasses:i.residualStyles;d!=null&&(s=Th(d,n))}return s}function w0(t){return t!==void 0}function r$(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=Qi(Pr(t)))),t}function xx(t,i){return(t.flags&(i?8:16))!==0}function eu(t,i,e){let n=je(),r=tg(n,t,i,e);vx(T0,gx,r,!0)}var H6=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 Uh(t,i,e,n,r){return t===e&&Object.is(i,n)?1:Object.is(r(t,i),r(e,n))?-1:0}function a$(t,i,e){let n,r,a=0,o=t.length-1,s=void 0;if(Array.isArray(i)){let d=i.length-1;for(;a<=o&&a<=d;){let h=t.at(a),v=i[a],C=Uh(a,h,a,v,e);if(C!==0){C<0&&t.updateValue(a,v),a++;continue}let S=t.at(o),D=i[d],L=Uh(o,S,d,D,e);if(L!==0){L<0&&t.updateValue(o,D),o--,d--;continue}let ne=e(a,h),oe=e(o,S),ye=e(a,v);if(Object.is(ye,oe)){let qe=e(d,D);Object.is(qe,ne)?(t.swap(a,o),t.updateValue(o,D),d--,o--):t.move(o,a),t.updateValue(a,v),a++;continue}if(n??=new D0,r??=Sb(t,a,o,e),N6(t,n,a,ye))t.updateValue(a,v),a++,o++;else if(r.has(ye))n.set(ne,t.detach(a)),o--;else{let qe=t.create(a,i[a]);t.attach(a,qe),a++,o++}}for(;a<=d;)Db(t,n,e,a,i[a]),a++}else if(i!=null){let d=i[Symbol.iterator](),h=d.next();for(;!h.done&&a<=o;){let v=t.at(a),C=h.value,S=Uh(a,v,a,C,e);if(S!==0)S<0&&t.updateValue(a,C),a++,h=d.next();else{n??=new D0,r??=Sb(t,a,o,e);let D=e(a,C);if(N6(t,n,a,D))t.updateValue(a,C),a++,o++,h=d.next();else if(!r.has(D))t.attach(a,t.create(a,C)),a++,o++,h=d.next();else{let L=e(a,v);n.set(L,t.detach(a)),o--}}}for(;!h.done;)Db(t,n,e,t.length,h.value),h=d.next()}for(;a<=o;)t.destroy(t.detach(o--));n?.forEach(d=>{t.destroy(d)})}function N6(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Db(t,i,e,n,r){if(N6(t,i,n,e(n,r)))t.updateValue(n,r);else{let a=t.create(n,r);t.attach(n,a)}}function Sb(t,i,e,n){let r=new Set;for(let a=i;a<=e;a++)r.add(n(a,t.at(a)));return r}var D0=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){Yo("NgControlFlow");let e=je(),n=Js(),r=e[n]!==Yn?e[n]:-1,a=r!==-1?S0(e,Sn+r):void 0,o=0;if(fr(e,n,t)){let s=ht(null);try{if(a!==void 0&&BC(a,o),t!==-1){let d=Sn+t,h=S0(e,d),v=U6(e[lt],d),C=wl(h,v.tView.ssrId),S=G1(e,v,i,{dehydratedView:C});W1(h,S,o,Ml(v,C))}}finally{ht(s)}}else if(a!==void 0){let s=FC(a,o);s!==void 0&&(s[qn]=i)}}var F6=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-_i}};function ho(t,i){return i}var B6=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function Xi(t,i,e,n,r,a,o,s,d,h,v,C,S){Yo("NgControlFlow");let D=je(),L=Kt(),ne=d!==void 0,oe=je(),ye=s?o.bind(oe[pr][qn]):o,qe=new B6(ne,ye);oe[Sn+t]=qe,M0(D,L,t+1,i,e,n,r,Uo(L.consts,a)),ne&&M0(D,L,t+2,d,h,v,C,Uo(L.consts,S))}var j6=class extends H6{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-_i}at(i){return this.getLView(i)[qn].$implicit}attach(i,e){let n=e[bl];this.needsIndexUpdate||=i!==this.length,W1(this.lContainer,e,i,Ml(this.templateTNode,n))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,o$(this.lContainer,i)}create(i,e){let n=wl(this.lContainer,this.templateTNode.tView.ssrId),r=G1(this.hostLView,this.templateTNode,new F6(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(i){W0(i[lt],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[qn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i(F0(!0),bC(n,r,QN()));function l$(t,i,e,n,r){let a=i.consts,o=Uo(a,n),s=Rl(i,t,8,"ng-container",o);o!==null&&D6(s,o,!0);let d=Uo(a,r);return m8()&&$8(i,e,s,d,R8),s.mergedAttrs=xl(s.mergedAttrs,s.attrs),i.queries!==null&&i.queries.elementStart(i,s),s}function gn(t,i,e){let n=je(),r=Kt(),a=t+Sn,o=r.firstCreatePass?l$(a,r,n,i,e):r.data[a];$o(o,!0);let s=d$(r,n,o,t);return n[a]=s,N0()&&q0(r,n,s,o),Al(s,n),R0(o)&&(G0(r,n,o),k8(r,o,n)),e!=null&&L8(n,o),gn}function _n(){let t=yi(),i=Kt();return p8()?f8():(t=t.parent,$o(t,!1)),i.firstCreatePass&&(b8(i,t),s8(t)&&i.queries.elementEnd(t)),_n}function Tt(t,i,e){return gn(t,i,e),_n(),Tt}var d$=(t,i,e,n)=>(F0(!0),MB(i[an],""));function de(){return je()}function zt(t,i,e){let n=je(),r=Js();if(fr(n,r,i)){let a=Kt(),o=Pl();$1(a,o,n,t,i,n[an],e,!0)}return zt}var Hs=void 0;function u$(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var m$=["en",[["a","p"],["AM","PM"],Hs],[["AM","PM"],Hs,Hs],[["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"]],Hs,[["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"]],Hs,[["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}",Hs,"{1} 'at' {0}",Hs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",u$],E1={};function Mx(t,i,e){typeof i!="string"&&(e=i,i=t[on.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),E1[i]=t,e&&(E1[i][on.ExtraData]=e)}function er(t){let i=p$(t),e=kb(i);if(e)return e;let n=i.split("-")[0];if(e=kb(n),e)return e;if(n==="en")return m$;throw new Ce(701,!1)}function kb(t){return t in E1||(E1[t]=ii.ng&&ii.ng.common&&ii.ng.common.locales&&ii.ng.common.locales[t]),E1[t]}var on=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(on||{});function p$(t){return t.toLowerCase().replace(/_/g,"-")}var k0="en-US",f$="USD";var h$=k0;function g$(t){typeof t=="string"&&(h$=t.toLowerCase().replace(/_/g,"-"))}function Eb(t,i,e){return function n(r){if(r===Function)return e;let a=El(t)?Ma(t.index,i):i;U8(a,5);let o=i[qn],s=Ob(i,o,e,r),d=n.__ngNextListenerFn__;for(;d;)s=Ob(i,o,d,r)&&s,d=d.__ngNextListenerFn__;return s}}function Ob(t,i,e,n){let r=ht(null);try{return Qt(6,i,e),e(n)!==!1}catch(a){return _$(t,a),!1}finally{Qt(7,i,e),ht(r)}}function _$(t,i){let e=t[yl],n=e?e.get(Vi,null):null;n&&n.handleError(i)}function Ib(t,i,e,n,r,a){let o=i[e],s=i[lt],h=s.data[e].outputs[n],v=o[h],C=s.firstCreatePass?u8(s):null,S=d8(i),D=v.subscribe(a),L=S.length;S.push(a,D),C&&C.push(r,t.index,L,-(L+1))}function z(t,i,e,n){let r=je(),a=Kt(),o=yi();return wx(a,r,r[an],o,t,i,n),z}function v$(t,i,e,n){let r=t.cleanup;if(r!=null)for(let a=0;ad?s[d]:null}typeof o=="string"&&(a+=2)}return null}function wx(t,i,e,n,r,a,o){let s=R0(n),h=t.firstCreatePass?u8(t):null,v=d8(i),C=!0;if(n.type&3||o){let S=Sa(n,i),D=o?o(S):S,L=v.length,ne=o?ye=>o(xa(ye[n.index])):n.index,oe=null;if(!o&&s&&(oe=v$(t,i,r,n.index)),oe!==null){let ye=oe.__ngLastListenerFn__||oe;ye.__ngNextListenerFn__=a,oe.__ngLastListenerFn__=a,C=!1}else{a=Eb(n,i,a),zF(i,D,r,a);let ye=e.listen(D,r,a);v.push(a,ye),h&&h.push(r,ne,L,L+1)}}else a=Eb(n,i,a);if(C){let S=n.outputs?.[r],D=n.hostDirectiveOutputs?.[r];if(D&&D.length)for(let L=0;L(F0(!0),CB(i[an],n));function P(t){return X("",t,""),P}function X(t,i,e){let n=je(),r=tg(n,t,i,e);return r!==Yn&&iu(n,Qr(),r),X}function Ct(t,i,e,n,r){let a=je(),o=px(a,t,i,e,n,r);return o!==Yn&&iu(a,Qr(),o),Ct}function Ko(t,i,e,n,r,a,o){let s=je(),d=NU(s,t,i,e,n,r,a,o);return d!==Yn&&iu(s,Qr(),d),Ko}function x$(t,i,e,n,r,a,o,s,d){let h=je(),v=FU(h,t,i,e,n,r,a,o,s,d);return v!==Yn&&iu(h,Qr(),v),x$}function iu(t,i,e){let n=uy(i,t);xB(t[an],n,e)}function K1(t,i,e){$y(i)&&(i=i());let n=je(),r=Js();if(fr(n,r,i)){let a=Kt(),o=Pl();$1(a,o,n,t,i,n[an],e,!1)}return K1}function ru(t,i){let e=$y(t);return e&&t.set(i),e}function Z1(t,i){let e=je(),n=Kt(),r=yi();return wx(n,e,e[an],r,t,i),Z1}var M$={};function ng(t){let i=Kt(),e=je(),n=t+Sn,r=Rl(i,n,128,null,null);return $o(r,!1),my(i,e,n,M$),ng}function w$(t,i,e){let n=Kt();if(n.firstCreatePass){let r=Ca(t);$6(e,n.data,n.blueprint,r,!0),$6(i,n.data,n.blueprint,r,!1)}}function $6(t,i,e,n,r){if(t=di(t),Array.isArray(t))for(let a=0;a>20;if(vl(t)||!t.multi){let D=new qs(h,r,E),L=Gh(d,i,r?v:v+S,C);L===-1?(r6(m0(s,o),a,d),$h(a,t,i.length),i.push(d),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),o.push(D)):(e[L]=D,o[L]=D)}else{let D=Gh(d,i,v+S,C),L=Gh(d,i,v,v+S),ne=D>=0&&e[D],oe=L>=0&&e[L];if(r&&!oe||!r&&!ne){r6(m0(s,o),a,d);let ye=k$(r?S$:D$,e.length,r,n,h);!r&&oe&&(e[L].providerFactory=ye),$h(a,t,i.length,0),i.push(d),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(ye),o.push(ye)}else{let ye=kx(e[r?L:D],h,!r&&n);$h(a,t,D>-1?D:L,ye)}!r&&n&&oe&&e[L].componentProviders++}}}function $h(t,i,e,n){let r=vl(i),a=_N(i);if(r||a){let d=(a?di(i.useClass):i).prototype.ngOnDestroy;if(d){let h=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){let v=h.indexOf(e);v===-1?h.push(e,[n,d]):h[v+1].push(n,d)}else h.push(e,d)}}}function kx(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Gh(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>w$(n,r?r(t):t,i)}}function tr(t,i,e){let n=Xs()+t,r=je();return r[n]===Yn?Y1(r,n,e?i.call(e):i()):IU(r,n)}function go(t,i,e,n){return Ex(je(),Xs(),t,i,e,n)}function Ea(t,i,e,n,r){return Ox(je(),Xs(),t,i,e,n,r)}function au(t,i){let e=t[i];return e===Yn?void 0:e}function Ex(t,i,e,n,r,a){let o=i+e;return fr(t,o,r)?Y1(t,o+1,a?n.call(a,r):n(r)):au(t,o+1)}function Ox(t,i,e,n,r,a,o){let s=i+e;return R1(t,s,r,a)?Y1(t,s+2,o?n.call(o,r,a):n(r,a)):au(t,s+2)}function E$(t,i,e,n,r,a,o,s){let d=i+e;return sx(t,d,r,a,o)?Y1(t,d+3,s?n.call(s,r,a,o):n(r,a,o)):au(t,d+3)}function O$(t,i,e,n,r,a,o,s,d){let h=i+e;return cx(t,h,r,a,o,s)?Y1(t,h+4,d?n.call(d,r,a,o,s):n(r,a,o,s)):au(t,h+4)}function k(t,i){let e=Kt(),n,r=t+Sn;e.firstCreatePass?(n=I$(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??=[]).push(r,n.onDestroy)):n=e.data[r];let a=n.factory||(n.factory=Bs(n.type,!0)),o,s=qi(E);try{let d=u0(!1),h=a();return u0(d),my(e,je(),r,h),h}finally{qi(s)}}function I$(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function O(t,i,e){let n=t+Sn,r=je(),a=F1(r,n);return ou(r,n)?Ex(r,Xs(),i,a.transform,e,a):a.transform(e)}function Kr(t,i,e,n){let r=t+Sn,a=je(),o=F1(a,r);return ou(a,r)?Ox(a,Xs(),i,o.transform,e,n,o):o.transform(e,n)}function gme(t,i,e,n,r){let a=t+Sn,o=je(),s=F1(o,a);return ou(o,a)?E$(o,Xs(),i,s.transform,e,n,r,s):s.transform(e,n,r)}function ig(t,i,e,n,r,a){let o=t+Sn,s=je(),d=F1(s,o);return ou(s,o)?O$(s,Xs(),i,d.transform,e,n,r,a,d):d.transform(e,n,r,a)}function ou(t,i){return t[lt].data[i].pure}function nr(t,i){return Q0(t,i)}var Y3=null;function P$(t){Y3!==null&&(t.defaultEncapsulation!==Y3.defaultEncapsulation||t.preserveWhitespaces!==Y3.preserveWhitespaces)||(Y3=t)}var Zs=class{full;major;minor;patch;constructor(i){this.full=i;let e=i.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},rg=new Zs("19.2.14"),W6=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},Ix=(()=>{class t{compileModuleSync(e){return new x0(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),r=Xb(e),a=gC(r.declarations).reduce((o,s)=>{let d=jo(s);return d&&o.push(new Qs(d)),o},[]);return new W6(n,a)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),T$=new A("");function A$(t,i,e){let n=new x0(e);return Promise.resolve(n)}function Pb(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var V$=(()=>{class t{zone=u(se);changeDetectionScheduler=u(Ys);applicationRef=u(bi);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function L$({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new se(Be(q({},Px()),{scheduleInRootZone:e})),[{provide:se,useFactory:t},{provide:_l,multi:!0,useFactory:()=>{let n=u(V$,{optional:!0});return()=>n.initialize()}},{provide:_l,multi:!0,useFactory:()=>{let n=u(R$);return()=>{n.initialize()}}},i===!0?{provide:Hy,useValue:!0}:[],{provide:Ny,useValue:e??zy}]}function Px(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var R$=(()=>{class t{subscription=new Me;initialized=!1;zone=u(se);pendingTasks=u(mo);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var z$=(()=>{class t{appRef=u(bi);taskService=u(mo);ngZone=u(se);zonelessEnabled=u(C8);tracing=u(Vl,{optional:!0});disableScheduling=u(Hy,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Me;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(f0):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(Ny,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof h0||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let n=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,n=!0;break}case 12:{this.appRef.dirtyFlags|=16,n=!0;break}case 13:{this.appRef.dirtyFlags|=2,n=!0;break}case 11:{n=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(n))return;let r=this.useMicrotaskScheduler?eb:Fy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(f0+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){throw this.taskService.remove(e),n}finally{this.cleanup()}this.useMicrotaskScheduler=!0,eb(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function H$(){return typeof $localize<"u"&&$localize.locale||k0}var Oa=new A("",{providedIn:"root",factory:()=>u(Oa,ft.Optional|ft.SkipSelf)||H$()}),Tx=new A("",{providedIn:"root",factory:()=>f$});var E0=new A(""),N$=new A("");function w1(t){return!t.moduleRef}function F$(t){let i=w1(t)?t.r3Injector:t.moduleRef.injector,e=i.get(se);return e.run(()=>{w1(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Vi,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:a=>{n.handleError(a)}})}),w1(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(()=>{J3(t.allPlatformModules,t.moduleRef),r.unsubscribe(),o.delete(a)})}return j$(n,e,()=>{let a=i.get(ux);return a.runInitializers(),a.donePromise.then(()=>{let o=i.get(Oa,k0);if(g$(o||k0),!i.get(N$,!0))return w1(t)?i.get(bi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(w1(t)){let d=i.get(bi);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return B$(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function B$(t,i){let e=t.injector.get(bi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new Ce(-403,!1);i.push(t)}function j$(t,i,e){try{let n=e();return Qo(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}var Ax=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let r=n?.scheduleInRootZone,a=()=>bF(n?.ngZone,Be(q({},Px({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:r})),o=n?.ignoreChangesOutsideZone,s=[L$({ngZoneFactory:a,ignoreChangesOutsideZone:o}),{provide:Ys,useExisting:z$}],d=hU(e.moduleType,this.injector,s);return F$({moduleRef:d,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let r=mx({},n);return A$(this.injector,r,e).then(a=>this.bootstrapModuleFactory(a,r))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ce(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(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)(ae(Te))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),O1=null,Vx=new A("");function U$(t){if(O1&&!O1.get(Vx,!1))throw new Ce(400,!1);LU(),O1=t;let i=t.get(Ax);return W$(t),i}function ag(t,i,e=[]){let n=`Platform: ${i}`,r=new A(n);return(a=[])=>{let o=Lx();if(!o||o.injector.get(Vx,!1)){let s=[...e,...a,{provide:r,useValue:!0}];t?t(s):U$($$(s,n))}return G$(r)}}function $$(t=[],i){return Te.create({name:i,providers:[{provide:A0,useValue:"platform"},{provide:E0,useValue:new Set([()=>O1=null])},...t]})}function G$(t){let i=Lx();if(!i)throw new Ce(401,!1);return i}function Lx(){return O1?.get(Ax)??null}function W$(t){let i=t.get(w8,null);Ki(t,()=>{i?.forEach(e=>e())})}var be=(()=>{class t{static __NG_ELEMENT_ID__=q$}return t})();function q$(t){return Y$(yi(),je(),(t&16)===16)}function Y$(t,i,e){if(El(t)&&!e){let n=Ma(t.index,i);return new L1(n,n)}else if(t.type&175){let n=i[pr];return new L1(n,i)}return null}var q6=class{constructor(){}supports(i){return ox(i)}create(i){return new Y6(i)}},Q$=(t,i)=>i,Y6=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||Q$}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,a=null;for(;e||n;){let o=!n||e&&e.currentIndex{o=this._trackByFn(r,s),e===null||!Object.is(e.trackById,o)?(e=this._mismatch(e,s,o,r),n=!0):(n&&(e=this._verifyReinsertion(e,s,o,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let a;return i===null?a=this._itTail:(a=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,a,r)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,r),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,a,r)):i=this._addAfter(new Q6(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}},Q6=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}},K6=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 K6,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,r=this.map.get(n);return r?r.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Tb(t,i,e){let n=t.previousIndex;if(n===null)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let a=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,a)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let r=this._records.get(i);this._maybeAddToChanges(r,e);let a=r._prev,o=r._next;return a&&(a._next=o),o&&(o._prev=a),r._next=null,r._prev=null,r}let n=new J6(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))}},J6=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function Ab(){return new gr([new q6])}var gr=(()=>{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:Ab});constructor(e){this.factories=e}static create(e,n){if(n!=null){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ab()),deps:[[t,new Yr,new hr]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n!=null)return n;throw new Ce(901,!1)}}return t})();function Vb(){return new su([new Z6])}var su=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:Vb});factories;constructor(e){this.factories=e}static create(e,n){if(n){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Vb()),deps:[[t,new Yr,new hr]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n)return n;throw new Ce(901,!1)}}return t})();var Rx=ag(null,"core",[]),zx=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(ae(bi))};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();function B(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ot(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}function ir(t){return fh(t)}function Zr(t,i){return m3(t,i?.equal)}var e8=class{[Gi];constructor(i){this[Gi]=i}destroy(){this[Gi].destroy()}};function X1(t,i){!i?.injector&&o8(X1);let e=i?.injector??u(Te),n=i?.manualCleanup!==!0?e.get(Go):null,r,a=e.get(S8,null,{optional:!0}),o=e.get(Ys);return a!==null&&!i?.forceRoot?(r=X$(a.view,o,t),n instanceof p0&&n._lView===a.view&&(n=null)):r=J$(t,e.get(lx),o),r.injector=e,n!==null&&(r.onDestroyFn=n.onDestroy(()=>r.destroy())),new e8(r)}var Hx=Be(q({},Qc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:A1,run(){if(this.dirty=!1,this.hasRun&&!l3(this))return;this.hasRun=!0;let t=n=>(this.cleanupFns??=[]).push(n),i=h1(this),e=c0(!1);try{this.maybeCleanup(),this.fn(t)}finally{c0(e),c3(this,i)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),K$=Be(q({},Hx),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){g1(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),Z$=Be(q({},Hx),{consumerMarkedDirty(){this.view[et]|=8192,Il(this.view),this.notifier.notify(13)},destroy(){g1(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Us]?.delete(this)}});function X$(t,i,e){let n=Object.create(Z$);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=e,t[Us]??=new Set,t[Us].add(n),n.consumerMarkedDirty(n),n}function J$(t,i,e){let n=Object.create(K$);return n.fn=t,n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.schedule(n),n.notifier.notify(12),n}function cu(t,i){let e=jo(t),n=i.elementInjector||V0();return new Qs(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector)}function Nx(t){let i=jo(t);if(!i)return null;let e=new Qs(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var De=new A("");var jx=null;function _r(){return jx}function og(t){jx??=t}var J1=class{},ed=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>u(Ux),providedIn:"platform"})}return t})(),sg=new A(""),Ux=(()=>{class t extends ed{_location;_history;_doc=u(De);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,r){this._history.pushState(e,n,r)}replaceState(e,n,r){this._history.replaceState(e,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function lu(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function Fx(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Xr(t){return t&&t[0]!=="?"?`?${t}`:t}var Jr=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>u(uu),providedIn:"root"})}return t})(),du=new A(""),uu=(()=>{class t extends Jr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??u(De).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return lu(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Xr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a));this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ae(ed),ae(du,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tr=(()=>{class t{_subject=new N;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=nG(Fx(Bx(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Xr(n))}normalize(e){return t.stripTrailingSlash(tG(this._basePath,Bx(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Xr(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Xr(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=Xr;static joinWithSlash=lu;static stripTrailingSlash=Fx;static \u0275fac=function(n){return new(n||t)(ae(Jr))};static \u0275prov=R({token:t,factory:()=>eG(),providedIn:"root"})}return t})();function eG(){return new Tr(ae(Jr))}function tG(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function Bx(t){return t.replace(/\/index.html$/,"")}function nG(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var gg=(()=>{class t extends Jr{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=lu(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ae(ed),ae(du,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Zx={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},xu=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(xu||{});var Ci=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ci||{}),Gt=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Gt||{}),rr=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(rr||{}),ui={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Xx(t){return er(t)[on.LocaleId]}function Jx(t,i,e){let n=er(t),r=[n[on.DayPeriodsFormat],n[on.DayPeriodsStandalone]],a=Ar(r,i);return Ar(a,e)}function eM(t,i,e){let n=er(t),r=[n[on.DaysFormat],n[on.DaysStandalone]],a=Ar(r,i);return Ar(a,e)}function tM(t,i,e){let n=er(t),r=[n[on.MonthsFormat],n[on.MonthsStandalone]],a=Ar(r,i);return Ar(a,e)}function nM(t,i){let n=er(t)[on.Eras];return Ar(n,i)}function td(t,i){let e=er(t);return Ar(e[on.DateFormat],i)}function nd(t,i){let e=er(t);return Ar(e[on.TimeFormat],i)}function id(t,i){let n=er(t)[on.DateTimeFormat];return Ar(n,i)}function ta(t,i){let e=er(t),n=e[on.NumberSymbols][i];if(typeof n>"u"){if(i===ui.CurrencyDecimal)return e[on.NumberSymbols][ui.Decimal];if(i===ui.CurrencyGroup)return e[on.NumberSymbols][ui.Group]}return n}function _g(t,i){return er(t)[on.NumberFormats][i]}function iG(t){return er(t)[on.Currencies]}function iM(t){if(!t[on.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[on.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function rM(t){let i=er(t);return iM(i),(i[on.ExtraData][2]||[]).map(n=>typeof n=="string"?cg(n):[cg(n[0]),cg(n[1])])}function aM(t,i,e){let n=er(t);iM(n);let r=[n[on.ExtraData][0],n[on.ExtraData][1]],a=Ar(r,i)||[];return Ar(a,e)||[]}function Ar(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function cg(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}function oM(t,i,e="en"){let n=iG(e)[t]||Zx[t]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||t}var rG=2;function sM(t){let i,e=Zx[t];return e&&(i=e[2]),typeof i=="number"?i:rG}var aG=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,mu={},oG=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function cM(t,i,e,n){let r=hG(t);i=_o(e,i)||i;let o=[],s;for(;i;)if(s=oG.exec(i),s){o=o.concat(s.slice(1));let v=o.pop();if(!v)break;i=v}else{o.push(i);break}let d=r.getTimezoneOffset();n&&(d=dM(n,d),r=fG(r,n));let h="";return o.forEach(v=>{let C=mG(v);h+=C?C(r,e,d):v==="''"?"'":v.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}function _u(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function _o(t,i){let e=Xx(t);if(mu[e]??={},mu[e][i])return mu[e][i];let n="";switch(i){case"shortDate":n=td(t,rr.Short);break;case"mediumDate":n=td(t,rr.Medium);break;case"longDate":n=td(t,rr.Long);break;case"fullDate":n=td(t,rr.Full);break;case"shortTime":n=nd(t,rr.Short);break;case"mediumTime":n=nd(t,rr.Medium);break;case"longTime":n=nd(t,rr.Long);break;case"fullTime":n=nd(t,rr.Full);break;case"short":let r=_o(t,"shortTime"),a=_o(t,"shortDate");n=pu(id(t,rr.Short),[r,a]);break;case"medium":let o=_o(t,"mediumTime"),s=_o(t,"mediumDate");n=pu(id(t,rr.Medium),[o,s]);break;case"long":let d=_o(t,"longTime"),h=_o(t,"longDate");n=pu(id(t,rr.Long),[d,h]);break;case"full":let v=_o(t,"fullTime"),C=_o(t,"fullDate");n=pu(id(t,rr.Full),[v,C]);break}return n&&(mu[e][i]=n),n}function pu(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e})),t}function ea(t,i,e="-",n,r){let a="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,a=e));let o=String(t);for(;o.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return sG(s,i);let d=ta(o,ui.MinusSign);return ea(s,i,d,n,r)}}function cG(t,i){switch(t){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Zt(t,i,e=Ci.Format,n=!1){return function(r,a){return lG(r,a,t,i,e,n)}}function lG(t,i,e,n,r,a){switch(e){case 2:return tM(i,r,n)[t.getMonth()];case 1:return eM(i,r,n)[t.getDay()];case 0:let o=t.getHours(),s=t.getMinutes();if(a){let h=rM(i),v=aM(i,r,n),C=h.findIndex(S=>{if(Array.isArray(S)){let[D,L]=S,ne=o>=D.hours&&s>=D.minutes,oe=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+ea(o,2,a)+ea(Math.abs(r%60),2,a);case 1:return"GMT"+(r>=0?"+":"")+ea(o,1,a);case 2:return"GMT"+(r>=0?"+":"")+ea(o,2,a)+":"+ea(Math.abs(r%60),2,a);case 3:return n===0?"Z":(r>=0?"+":"")+ea(o,2,a)+":"+ea(Math.abs(r%60),2,a);default:throw new Error(`Unknown zone width "${t}"`)}}}var dG=0,gu=4;function uG(t){let i=_u(t,dG,1).getDay();return _u(t,0,1+(i<=gu?gu:gu+7)-i)}function lM(t){let i=t.getDay(),e=i===0?-3:gu-i;return _u(t.getFullYear(),t.getMonth(),t.getDate()+e)}function lg(t,i=!1){return function(e,n){let r;if(i){let a=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+a)/7)}else{let a=lM(e),o=uG(a.getFullYear()),s=a.getTime()-o.getTime();r=1+Math.round(s/6048e5)}return ea(r,t,ta(n,ui.MinusSign))}}function hu(t,i=!1){return function(e,n){let a=lM(e).getFullYear();return ea(a,t,ta(n,ui.MinusSign),i)}}var dg={};function mG(t){if(dg[t])return dg[t];let i;switch(t){case"G":case"GG":case"GGG":i=Zt(3,Gt.Abbreviated);break;case"GGGG":i=Zt(3,Gt.Wide);break;case"GGGGG":i=Zt(3,Gt.Narrow);break;case"y":i=Nn(0,1,0,!1,!0);break;case"yy":i=Nn(0,2,0,!0,!0);break;case"yyy":i=Nn(0,3,0,!1,!0);break;case"yyyy":i=Nn(0,4,0,!1,!0);break;case"Y":i=hu(1);break;case"YY":i=hu(2,!0);break;case"YYY":i=hu(3);break;case"YYYY":i=hu(4);break;case"M":case"L":i=Nn(1,1,1);break;case"MM":case"LL":i=Nn(1,2,1);break;case"MMM":i=Zt(2,Gt.Abbreviated);break;case"MMMM":i=Zt(2,Gt.Wide);break;case"MMMMM":i=Zt(2,Gt.Narrow);break;case"LLL":i=Zt(2,Gt.Abbreviated,Ci.Standalone);break;case"LLLL":i=Zt(2,Gt.Wide,Ci.Standalone);break;case"LLLLL":i=Zt(2,Gt.Narrow,Ci.Standalone);break;case"w":i=lg(1);break;case"ww":i=lg(2);break;case"W":i=lg(1,!0);break;case"d":i=Nn(2,1);break;case"dd":i=Nn(2,2);break;case"c":case"cc":i=Nn(7,1);break;case"ccc":i=Zt(1,Gt.Abbreviated,Ci.Standalone);break;case"cccc":i=Zt(1,Gt.Wide,Ci.Standalone);break;case"ccccc":i=Zt(1,Gt.Narrow,Ci.Standalone);break;case"cccccc":i=Zt(1,Gt.Short,Ci.Standalone);break;case"E":case"EE":case"EEE":i=Zt(1,Gt.Abbreviated);break;case"EEEE":i=Zt(1,Gt.Wide);break;case"EEEEE":i=Zt(1,Gt.Narrow);break;case"EEEEEE":i=Zt(1,Gt.Short);break;case"a":case"aa":case"aaa":i=Zt(0,Gt.Abbreviated);break;case"aaaa":i=Zt(0,Gt.Wide);break;case"aaaaa":i=Zt(0,Gt.Narrow);break;case"b":case"bb":case"bbb":i=Zt(0,Gt.Abbreviated,Ci.Standalone,!0);break;case"bbbb":i=Zt(0,Gt.Wide,Ci.Standalone,!0);break;case"bbbbb":i=Zt(0,Gt.Narrow,Ci.Standalone,!0);break;case"B":case"BB":case"BBB":i=Zt(0,Gt.Abbreviated,Ci.Format,!0);break;case"BBBB":i=Zt(0,Gt.Wide,Ci.Format,!0);break;case"BBBBB":i=Zt(0,Gt.Narrow,Ci.Format,!0);break;case"h":i=Nn(3,1,-12);break;case"hh":i=Nn(3,2,-12);break;case"H":i=Nn(3,1);break;case"HH":i=Nn(3,2);break;case"m":i=Nn(4,1);break;case"mm":i=Nn(4,2);break;case"s":i=Nn(5,1);break;case"ss":i=Nn(5,2);break;case"S":i=Nn(6,1);break;case"SS":i=Nn(6,2);break;case"SSS":i=Nn(6,3);break;case"Z":case"ZZ":case"ZZZ":i=fu(0);break;case"ZZZZZ":i=fu(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=fu(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=fu(2);break;default:return null}return dg[t]=i,i}function dM(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function pG(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function fG(t,i,e){let r=t.getTimezoneOffset(),a=dM(i,r);return pG(t,-1*(a-r))}function hG(t){if($x(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,a=1,o=1]=t.split("-").map(s=>+s);return _u(r,a-1,o)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(aG))return gG(n)}let i=new Date(t);if(!$x(i))throw new Error(`Unable to convert "${t}" into a date`);return i}function gG(t){let i=new Date(0),e=0,n=0,r=t[8]?i.setUTCFullYear:i.setFullYear,a=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));let o=Number(t[4]||0)-e,s=Number(t[5]||0)-n,d=Number(t[6]||0),h=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return a.call(i,o,s,d,h),i}function $x(t){return t instanceof Date&&!isNaN(t.valueOf())}var _G=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Gx=22,vu=".",rd="0",vG=";",bG=",",ug="#",Wx="\xA4";function uM(t,i,e,n,r,a,o=!1){let s="",d=!1;if(!isFinite(t))s=ta(e,ui.Infinity);else{let h=CG(t);o&&(h=yG(h));let v=i.minInt,C=i.minFrac,S=i.maxFrac;if(a){let qe=a.match(_G);if(qe===null)throw new Error(`${a} is not a valid digit info`);let nt=qe[1],An=qe[3],zn=qe[5];nt!=null&&(v=mg(nt)),An!=null&&(C=mg(An)),zn!=null?S=mg(zn):An!=null&&C>S&&(S=C)}xG(h,C,S);let D=h.digits,L=h.integerLen,ne=h.exponent,oe=[];for(d=D.every(qe=>!qe);L0?oe=D.splice(L,D.length):(oe=D,D=[0]);let ye=[];for(D.length>=i.lgSize&&ye.unshift(D.splice(-i.lgSize,D.length).join(""));D.length>i.gSize;)ye.unshift(D.splice(-i.gSize,D.length).join(""));D.length&&ye.unshift(D.join("")),s=ye.join(ta(e,n)),oe.length&&(s+=ta(e,r)+oe.join("")),ne&&(s+=ta(e,ui.Exponential)+"+"+ne)}return t<0&&!d?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function Mu(t,i,e,n,r){let a=_g(i,xu.Currency),o=pM(a,ta(i,ui.MinusSign));return o.minFrac=sM(n),o.maxFrac=o.minFrac,uM(t,o,i,ui.CurrencyGroup,ui.CurrencyDecimal,r).replace(Wx,e).replace(Wx,"").trim()}function mM(t,i,e){let n=_g(i,xu.Decimal),r=pM(n,ta(i,ui.MinusSign));return uM(t,r,i,ui.Group,ui.Decimal,e)}function pM(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(vG),r=n[0],a=n[1],o=r.indexOf(vu)!==-1?r.split(vu):[r.substring(0,r.lastIndexOf(rd)+1),r.substring(r.lastIndexOf(rd)+1)],s=o[0],d=o[1]||"";e.posPre=s.substring(0,s.indexOf(ug));for(let v=0;v-1&&(i=i.replace(vu,"")),(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)===rd;a++);if(a===(s=i.length))n=[0],r=1;else{for(s--;i.charAt(s)===rd;)s--;for(r-=a,n=[],o=0;a<=s;a++,o++)n[o]=Number(i.charAt(a))}return r>Gx&&(n=n.splice(0,Gx-1),e=r-1,r=1),{digits:n,exponent:e,integerLen:r}}function xG(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${e}).`);let n=t.digits,r=n.length-t.integerLen,a=Math.min(Math.max(i,r),e),o=a+t.integerLen,s=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let C=o;C=5)if(o-1<0){for(let C=0;C>o;C--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r=h?L.pop():d=!1),S>=10?1:0},0);v&&(n.unshift(v),t.integerLen++)}function mg(t){let i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+t);return i}var pg=/\s+/,qx=[],yn=(()=>{class t{_ngEl;_renderer;initialClasses=qx;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(pg):qx}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(pg):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(pg).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||t)(E(Y),E(Ke))};static \u0275dir=V({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var bu=class{$implicit;ngForOf;index;count;constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ht=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((r,a,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new bu(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(a===null?void 0:a);else if(a!==null){let s=n.get(a);n.move(s,o),Yx(s,r)}});for(let r=0,a=n.length;r{let a=n.get(r.currentIndex);Yx(a,r)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(E(rt),E(Qe),E(gr))};static \u0275dir=V({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function Yx(t,i){t.context.$implicit=i.item}var Ae=(()=>{class t{_viewContainer;_context=new yu;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Qx(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Qx(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(E(rt),E(Qe))};static \u0275dir=V({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),yu=class{$implicit=null;ngIf=null};function Qx(t,i){if(t&&!t.createEmbeddedView)throw new Ce(2020,!1)}var Cu=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()}},ad=(()=>{class t{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(e){this._ngSwitch=e,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){let n=e===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(let n of this._defaultViews)n.enforceState(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return t})(),vg=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new Cu(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||t)(E(rt),E(Qe),E(ad,9))};static \u0275dir=V({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})(),bg=(()=>{class t{constructor(e,n,r){r._addDefault(new Cu(e,n))}static \u0275fac=function(n){return new(n||t)(E(rt),E(Qe),E(ad,9))};static \u0275dir=V({type:t,selectors:[["","ngSwitchDefault",""]]})}return t})();var yg=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,r){this._ngEl=e,this._differs=n,this._renderer=r}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[r,a]=e.split("."),o=r.indexOf("-")===-1?void 0:Da.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(su),E(Ke))};static \u0275dir=V({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Zo=(()=>{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(rt))};static \u0275dir=V({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Pe]})}return t})();function zl(t,i){return new Ce(2100,!1)}var fg=class{createSubscription(i,e){return ir(()=>i.subscribe({next:e,error:n=>{throw n}}))}dispose(i){ir(()=>i.unsubscribe())}},hg=class{createSubscription(i,e){return i.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(i){i.unsubscribe()}},MG=new hg,wG=new fg,od=(()=>{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(Qo(e))return MG;if(X8(e))return wG;throw zl(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(be,16))};static \u0275pipe=_t({name:"async",type:t,pure:!1})}return t})(),DG=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw zl(t,e);return e.toLowerCase()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"lowercase",type:t,pure:!0})}return t})(),SG=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,kG=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw zl(t,e);return e.replace(SG,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"titlecase",type:t,pure:!0})}return t})();var EG="mediumDate",fM=new A(""),hM=new A(""),nc=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,a){if(e==null||e===""||e!==e)return null;try{let o=n??this.defaultOptions?.dateFormat??EG,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return cM(e,o,a||this.locale,s)}catch(o){throw zl(t,o.message)}}static \u0275fac=function(n){return new(n||t)(E(Oa,16),E(fM,24),E(hM,24))};static \u0275pipe=_t({name:"date",type:t,pure:!0})}return t})();var OG=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"json",type:t,pure:!1})}return t})();function IG(t,i){return{key:t,value:i}}var PG=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=Kx;transform(e,n=Kx){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let r=this.differ.diff(e),a=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(IG(o.key,o.currentValue))})),(r||a)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(E(su,16))};static \u0275pipe=_t({name:"keyvalue",type:t,pure:!1})}return t})();function Kx(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{_locale;constructor(e){this._locale=e}transform(e,n,r){if(!gM(e))return null;r||=this._locale;try{let a=_M(e);return mM(a,r,n)}catch(a){throw zl(t,a.message)}}static \u0275fac=function(n){return new(n||t)(E(Oa,16))};static \u0275pipe=_t({name:"number",type:t,pure:!0})}return t})();var Cg=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,r="symbol",a,o){if(!gM(e))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=n||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=oM(s,r==="symbol"?"wide":"narrow",o):s=r);try{let d=_M(e);return Mu(d,o,s,n,a)}catch(d){throw zl(t,d.message)}}static \u0275fac=function(n){return new(n||t)(E(Oa,16),E(Tx,16))};static \u0275pipe=_t({name:"currency",type:t,pure:!0})}return t})();function gM(t){return!(t==null||t===""||t!==t)}function _M(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var fe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();function cd(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 wu="browser",vM="server";function xg(t){return t===wu}function Du(t){return t===vM}var ic=class{};function Cpe(t,i,e){return Mx(t,i,e)}var bM=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new Mg(u(De),window)})}return t})(),Mg=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let e=TG(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],r-a[1])}};function TG(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let a=r.shadowRoot;if(a){let o=a.getElementById(i)||a.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var Eu=new A(""),kg=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r,a){return this._findPluginFor(n).addEventListener(e,n,r,a)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(a=>a.supports(e)),!n)throw new Ce(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(ae(Eu),ae(se))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),ld=class{_doc;constructor(i){this._doc=i}manager},Su="ng-app-id";function yM(t){for(let i of t)i.remove()}function CM(t,i){let e=i.createElement("style");return e.textContent=t,e}function AG(t,i,e,n){let r=t.head?.querySelectorAll(`style[${Su}="${i}"],link[${Su}="${i}"]`);if(r)for(let a of r)a.removeAttribute(Su),a instanceof HTMLLinkElement?n.set(a.href.slice(a.href.lastIndexOf("/")+1),{usage:0,elements:[a]}):a.textContent&&e.set(a.textContent,{usage:0,elements:[a]})}function Dg(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Eg=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,r,a={}){this.doc=e,this.appId=n,this.nonce=r,this.isServer=Du(a),AG(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let r of e)this.addUsage(r,this.inline,CM);n?.forEach(r=>this.addUsage(r,this.external,Dg))}removeStyles(e,n){for(let r of e)this.removeUsage(r,this.inline);n?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,n,r){let a=n.get(e);a?a.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,r(e,this.doc)))})}removeUsage(e,n){let r=n.get(e);r&&(r.usage--,r.usage<=0&&(yM(r.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])yM(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:r}]of this.inline)r.push(this.addElement(e,CM(n,this.doc)));for(let[n,{elements:r}]of this.external)r.push(this.addElement(e,Dg(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Su,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(ae(De),ae(ec),ae(j1,8),ae(qo))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),wg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Og=/%COMP%/g;var MM="%COMP%",VG=`_nghost-${MM}`,LG=`_ngcontent-${MM}`,RG=!0,zG=new A("",{providedIn:"root",factory:()=>RG});function HG(t){return LG.replace(Og,t)}function NG(t){return VG.replace(Og,t)}function wM(t,i){return i.map(e=>e.replace(Og,t))}var Ig=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,r,a,o,s,d,h=null,v=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=s,this.ngZone=d,this.nonce=h,this.tracingService=v,this.platformIsServer=Du(s),this.defaultRenderer=new dd(e,o,d,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===wa.ShadowDom&&(n=Be(q({},n),{encapsulation:wa.Emulated}));let r=this.getOrCreateRenderer(e,n);return r instanceof ku?r.applyToHost(e):r instanceof ud&&r.applyStyles(),r}getOrCreateRenderer(e,n){let r=this.rendererByCompId,a=r.get(n.id);if(!a){let o=this.doc,s=this.ngZone,d=this.eventManager,h=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,C=this.platformIsServer,S=this.tracingService;switch(n.encapsulation){case wa.Emulated:a=new ku(d,h,n,this.appId,v,o,s,C,S);break;case wa.ShadowDom:return new Sg(d,h,e,n,o,s,this.nonce,C,S);default:a=new ud(d,h,n,v,o,s,C,S);break}r.set(n.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(ae(kg),ae(Eg),ae(ec),ae(zG),ae(De),ae(qo),ae(se),ae(j1),ae(Vl,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),dd=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,r,a){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=a}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(wg[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(xM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(xM(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new Ce(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;let a=wg[r];a?i.setAttributeNS(a,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let r=wg[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(Da.DashCase|Da.Important)?i.style.setProperty(e,n,r&Da.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Da.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,r){if(typeof i=="string"&&(i=_r().getGlobalEventTarget(this.doc,i),!i))throw new Ce(5102,!1);let a=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(a=this.tracingService.wrapEventListener(i,e,a)),this.eventManager.addEventListener(i,e,a,r)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function xM(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Sg=class extends dd{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,r,a,o,s,d,h){super(i,a,o,d,h),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let v=r.styles;v=wM(r.id,v);for(let S of v){let D=document.createElement("style");s&&D.setAttribute("nonce",s),D.textContent=S,this.shadowRoot.appendChild(D)}let C=r.getExternalStyles?.();if(C)for(let S of C){let D=Dg(S,a);s&&D.setAttribute("nonce",s),this.shadowRoot.appendChild(D)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ud=class extends dd{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,r,a,o,s,d,h){super(i,a,o,s,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let v=n.styles;this.styles=h?wM(h,v):v,this.styleUrls=n.getExternalStyles?.(h)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ku=class extends ud{contentAttr;hostAttr;constructor(i,e,n,r,a,o,s,d,h){let v=r+"-"+n.id;super(i,e,n,a,o,s,d,h,v),this.contentAttr=HG(v),this.hostAttr=NG(v)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var Ou=class t extends J1{supportsDOMEvents=!0;static makeCurrent(){og(new t)}onAndCancel(i,e,n,r){return i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=FG();return e==null?null:BG(e)}resetBaseElement(){md=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return cd(document.cookie,i)}},md=null;function FG(){return md=md||document.head.querySelector("base"),md?md.getAttribute("href"):null}function BG(t){return new URL(t,document.baseURI).pathname}var Iu=class{addToWindow(i){ii.getAngularTestability=(n,r=!0)=>{let a=i.findTestabilityInTree(n,r);if(a==null)throw new Ce(5103,!1);return a},ii.getAllAngularTestabilities=()=>i.getAllTestabilities(),ii.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let r=ii.getAllAngularTestabilities(),a=r.length,o=function(){a--,a==0&&n()};r.forEach(s=>{s.whenStable(o)})};ii.frameworkStabilizers||(ii.frameworkStabilizers=[]),ii.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let r=i.getTestability(e);return r??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},jG=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),SM=(()=>{class t extends ld{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r,a){return e.addEventListener(n,r,a),()=>this.removeEventListener(e,n,r,a)}removeEventListener(e,n,r,a){return e.removeEventListener(n,r,a)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),DM=["alt","control","meta","shift"],UG={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$G={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},kM=(()=>{class t extends ld{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,r,a){let o=t.parseEventName(n),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,o.domEventName,s,a))}static parseEventName(e){let n=e.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(n.pop()),o="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),o="code."),DM.forEach(h=>{let v=n.indexOf(h);v>-1&&(n.splice(v,1),o+=h+".")}),o+=a,n.length!=0||a.length===0)return null;let d={};return d.domEventName=r,d.fullKey=o,d}static matchEventFullKeyCode(e,n){let r=UG[e.key]||e.key,a="";return n.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),DM.forEach(o=>{if(o!==r){let s=$G[o];s(e)&&(a+=o+".")}}),a+=r,a===n)}static eventCallback(e,n,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>n(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function GG(){Ou.makeCurrent()}function WG(){return new Vi}function qG(){return Zy(document),document}var YG=[{provide:qo,useValue:wu},{provide:w8,useValue:GG,multi:!0},{provide:De,useFactory:qG}],QG=ag(Rx,"browser",YG);var KG=[{provide:Q1,useClass:Iu},{provide:K8,useClass:X0,deps:[se,J0,Q1]},{provide:X0,useClass:X0,deps:[se,J0,Q1]}],ZG=[{provide:A0,useValue:"root"},{provide:Vi,useFactory:WG},{provide:Eu,useClass:SM,multi:!0,deps:[De]},{provide:Eu,useClass:kM,multi:!0,deps:[De]},Ig,Eg,kg,{provide:En,useExisting:Ig},{provide:ic,useClass:jG},[]],XG=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({providers:[...ZG,...KG],imports:[fe,zx]})}return t})();var Nl=class{},pd=class{},vr=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),a=e.slice(n+1).trim();this.addHeaderEntry(r,a)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let a=i.value;if(!a)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(s=>a.indexOf(s)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Tu=class{encodeKey(i){return EM(i)}encodeValue(i){return EM(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function JG(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let a=r.indexOf("="),[o,s]=a==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,a)),i.decodeValue(r.slice(a+1))],d=e.get(o)||[];d.push(s),e.set(o,d)}),e}var eW=/%(\d[a-f0-9])/gi,tW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function EM(t){return encodeURIComponent(t).replace(eW,(i,e)=>tW[e]??i)}function Pu(t){return`${t}`}var Z=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Tu,i.fromString){if(i.fromObject)throw new Ce(2805,!1);this.map=JG(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(Pu):[Pu(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(Pu(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(Pu(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 Au=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function nW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function OM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function IM(t){return typeof Blob<"u"&&t instanceof Blob}function PM(t){return typeof FormData<"u"&&t instanceof FormData}function iW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var TM="Content-Type",AM="Accept",LM="X-Request-URL",RM="text/plain",zM="application/json",rW=`${zM}, ${RM}, */*`,Hl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let a;if(nW(this.method)||r?(this.body=n!==void 0?n:null,a=r):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new vr,this.context??=new Au,!this.params)this.params=new Z,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),d=s===-1?"?":sS.set(D,i.setHeaders[D]),h)),i.setParams&&(v=Object.keys(i.setParams).reduce((S,D)=>S.set(D,i.setParams[D]),v)),new t(e,n,o,{params:v,headers:h,context:C,reportProgress:d,responseType:r,withCredentials:s,transferCache:a})}},rc=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}(rc||{}),Fl=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new vr,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Vu=class t extends Fl{constructor(i={}){super(i)}type=rc.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})}},fd=class t extends Fl{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=rc.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})}},hd=class extends Fl{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},aW=200,oW=204;function Pg(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var On=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let a;if(e instanceof Hl)a=e;else{let d;r.headers instanceof vr?d=r.headers:d=new vr(r.headers);let h;r.params&&(r.params instanceof Z?h=r.params:h=new Z({fromObject:r.params})),a=new Hl(e,n,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let o=ie(a).pipe(Ti(d=>this.handler.handle(d)));if(e instanceof Hl||r.observe==="events")return o;let s=o.pipe(Ve(d=>d instanceof fd));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return s.pipe(me(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Ce(2806,!1);return d.body}));case"blob":return s.pipe(me(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Ce(2807,!1);return d.body}));case"text":return s.pipe(me(d=>{if(d.body!==null&&typeof d.body!="string")throw new Ce(2808,!1);return d.body}));case"json":default:return s.pipe(me(d=>d.body))}case"response":return s;default:throw new Ce(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Z().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Pg(r,n))}post(e,n,r={}){return this.request("POST",e,Pg(r,n))}put(e,n,r={}){return this.request("PUT",e,Pg(r,n))}static \u0275fac=function(n){return new(n||t)(ae(Nl))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var sW=new A("");function HM(t,i){return i(t)}function cW(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function lW(t,i,e){return(n,r)=>Ki(e,()=>i(n,a=>t(a,r)))}var NM=new A(""),Ag=new A(""),FM=new A(""),Vg=new A("",{providedIn:"root",factory:()=>!0});function dW(){let t=null;return(i,e)=>{t===null&&(t=(u(NM,{optional:!0})??[]).reduceRight(cW,HM));let n=u(mo);if(u(Vg)){let a=n.add();return t(i,e).pipe(_a(()=>n.remove(a)))}else return t(i,e)}}var Lu=(()=>{class t extends Nl{backend;injector;chain=null;pendingTasks=u(mo);contributeToStability=u(Vg);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Ag),...this.injector.get(FM,[])]));this.chain=n.reduceRight((r,a)=>lW(r,a,this.injector),HM)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(_a(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(ae(pd),ae(fn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var uW=/^\)\]\}',?\n/,mW=RegExp(`^${LM}:`,"m");function pW(t){return"responseURL"in t&&t.responseURL?t.responseURL:mW.test(t.getAllResponseHeaders())?t.getResponseHeader(LM):null}var Tg=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Ce(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?jt(n.\u0275loadImpl()):ie(null)).pipe(ct(()=>new Ue(a=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((ne,oe)=>o.setRequestHeader(ne,oe.join(","))),e.headers.has(AM)||o.setRequestHeader(AM,rW),!e.headers.has(TM)){let ne=e.detectContentTypeHeader();ne!==null&&o.setRequestHeader(TM,ne)}if(e.responseType){let ne=e.responseType.toLowerCase();o.responseType=ne!=="json"?ne:"text"}let s=e.serializeBody(),d=null,h=()=>{if(d!==null)return d;let ne=o.statusText||"OK",oe=new vr(o.getAllResponseHeaders()),ye=pW(o)||e.url;return d=new Vu({headers:oe,status:o.status,statusText:ne,url:ye}),d},v=()=>{let{headers:ne,status:oe,statusText:ye,url:qe}=h(),nt=null;oe!==oW&&(nt=typeof o.response>"u"?o.responseText:o.response),oe===0&&(oe=nt?aW:0);let An=oe>=200&&oe<300;if(e.responseType==="json"&&typeof nt=="string"){let zn=nt;nt=nt.replace(uW,"");try{nt=nt!==""?JSON.parse(nt):null}catch(Ei){nt=zn,An&&(An=!1,nt={error:Ei,text:nt})}}An?(a.next(new fd({body:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0})),a.complete()):a.error(new hd({error:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0}))},C=ne=>{let{url:oe}=h(),ye=new hd({error:ne,status:o.status||0,statusText:o.statusText||"Unknown Error",url:oe||void 0});a.error(ye)},S=!1,D=ne=>{S||(a.next(h()),S=!0);let oe={type:rc.DownloadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),e.responseType==="text"&&o.responseText&&(oe.partialText=o.responseText),a.next(oe)},L=ne=>{let oe={type:rc.UploadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),a.next(oe)};return o.addEventListener("load",v),o.addEventListener("error",C),o.addEventListener("timeout",C),o.addEventListener("abort",C),e.reportProgress&&(o.addEventListener("progress",D),s!==null&&o.upload&&o.upload.addEventListener("progress",L)),o.send(s),a.next({type:rc.Sent}),()=>{o.removeEventListener("error",C),o.removeEventListener("abort",C),o.removeEventListener("load",v),o.removeEventListener("timeout",C),e.reportProgress&&(o.removeEventListener("progress",D),s!==null&&o.upload&&o.upload.removeEventListener("progress",L)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(ae(ic))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),BM=new A(""),fW="XSRF-TOKEN",hW=new A("",{providedIn:"root",factory:()=>fW}),gW="X-XSRF-TOKEN",_W=new A("",{providedIn:"root",factory:()=>gW}),gd=class{},vW=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=cd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(ae(De),ae(hW))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function bW(t,i){let e=t.url.toLowerCase();if(!u(BM)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=u(gd).getToken(),r=u(_W);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var Lg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lg||{});function yW(t,i){return{\u0275kind:t,\u0275providers:i}}function CW(...t){let i=[On,Tg,Lu,{provide:Nl,useExisting:Lu},{provide:pd,useFactory:()=>u(sW,{optional:!0})??u(Tg)},{provide:Ag,useValue:bW,multi:!0},{provide:BM,useValue:!0},{provide:gd,useClass:vW}];for(let e of t)i.push(...e.\u0275providers);return Sl(i)}var VM=new A("");function xW(){return yW(Lg.LegacyInterceptors,[{provide:VM,useFactory:dW},{provide:Ag,useExisting:VM,multi:!0}])}var jM=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=ae(MW),r},providedIn:"root"})}return t})(),MW=(()=>{class t extends vo{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ln.NONE:return n;case Ln.HTML:return po(n,"HTML")?Pr(n):E8(this._doc,String(n)).toString();case Ln.STYLE:return po(n,"Style")?Pr(n):n;case Ln.SCRIPT:if(po(n,"Script"))return Pr(n);throw new Ce(5200,!1);case Ln.URL:return po(n,"URL")?Pr(n):U0(String(n));case Ln.RESOURCE_URL:if(po(n,"ResourceURL"))return Pr(n);throw new Ce(5201,!1);default:throw new Ce(5202,!1)}}bypassSecurityTrustHtml(e){return aC(e)}bypassSecurityTrustStyle(e){return oC(e)}bypassSecurityTrustScript(e){return sC(e)}bypassSecurityTrustUrl(e){return cC(e)}bypassSecurityTrustResourceUrl(e){return lC(e)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bl=class{},UM=(()=>{class t extends Bl{getTranslation(e){return ie({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),bd=class{},$M=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function zu(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{Cd(i[n])?n in t?e[n]=Rg(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):Rg({},i)}function zg(t,i){let e=i.split(".");i="";do i+=e.shift(),Xo(t)&&Xo(t[i])&&(Cd(t[i])||jg(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function DW(t,i,e){let n=i.split("."),r=t;for(let a=0;a{class t extends jl{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(Ug(e))return this.interpolateString(e,n);if(wW(e))return this.interpolateFunction(e,n)}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(r,a)=>{let o=zg(n,a);return Xo(o)?o:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Ul=class{},WM=(()=>{class t extends Ul{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),yd=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},Hg=new A("ISOLATE_TRANSLATE_SERVICE"),Ng=new A("USE_DEFAULT_LANG"),Fg=new A("DEFAULT_LANGUAGE"),Bg=new A("USE_EXTEND"),vd=t=>Wn(t)?t:ie(t),br=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,n,r,a,o,s=!0,d=!1,h=!1,v){this.store=e,this.currentLoader=n,this.compiler=r,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.extend=h,d&&(this.store=new yd),v&&this.setDefaultLang(v)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(Le(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return ie(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return Wn(n)?(n.pipe(Le(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),ie(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(No(1),Le(1));return this.loadingTranslations=n.pipe(me(r=>this.compiler.compileTranslations(r,e)),No(1),Le(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?q(q({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(e,n,r=!1){let a=this.compiler.compileTranslations(n,e);(r||this.extend)&&this.translations[e]?this.translations[e]=Rg(this.translations[e],a):this.translations[e]=a,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let n=e.filter(r=>!this.langs.includes(r));n.length>0&&(this.langs=[...this.langs,...n])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,n,r){let a;if(e&&(a=this.runInterpolation(zg(e,n),r)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(zg(this.translations[this.defaultLang],n),r)),a===void 0){let o={key:n,translateService:this};typeof r<"u"&&(o.interpolateParams=r),a=this.missingTranslationHandler.handle(o)}return a!==void 0?a:n}runInterpolation(e,n){if(jg(e))return e.map(r=>this.runInterpolation(r,n));if(Cd(e)){let r={};for(let a in e){let o=this.runInterpolation(e[a],n);o!==void 0&&(r[a]=o)}return r}else return this.parser.interpolate(e,n)}getParsedResult(e,n,r){if(n instanceof Array){let a={},o=!1;for(let d of n)a[d]=this.getParsedResultForKey(e,d,r),o=o||Wn(a[d]);if(!o)return a;let s=n.map(d=>vd(a[d]));return io(s).pipe(me(d=>{let h={};return d.forEach((v,C)=>{h[n[C]]=v}),h}))}return this.getParsedResultForKey(e,n,r)}get(e,n){if(!Xo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ti(r=>vd(this.getParsedResult(r,e,n)))):vd(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Xo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return gi(Pi(()=>this.get(e,n)),this.onTranslationChange.pipe(ct(r=>{let a=this.getParsedResult(r.translations,e,n);return vd(a)})))}stream(e,n){if(!Xo(e)||!e.length)throw new Error('Parameter "key" required');return gi(Pi(()=>this.get(e,n)),this.onLangChange.pipe(ct(r=>{let a=this.getParsedResult(r.translations,e,n);return vd(a)})))}instant(e,n){if(!Xo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,n);return Wn(r)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:r}set(e,n,r=this.currentLang){DW(this.translations[r],e,Ug(n)?this.compiler.compile(n,r):this.compiler.compileTranslations(n,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(n){return new(n||t)(ae(yd),ae(Bl),ae(Ul),ae(jl),ae(bd),ae(Ng),ae(Hg),ae(Bg),ae(Fg))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ee=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,r){let a=o=>{this.value=o!==void 0?o:e,this.lastKey=e,this._ref.markForCheck()};if(r){let o=this.translate.getParsedResult(r,e,n);Wn(o)?o.subscribe(a):a(o)}this.translate.get(e,n).subscribe(a)}transform(e,...n){if(!e||!e.length)return e;if(zu(e,this.lastKey)&&zu(n,this.lastParams))return this.value;let r;if(Xo(n[0])&&n.length)if(Ug(n[0])&&n[0].length){let a=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(a)}catch(o){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else Cd(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(br,16),E(be,16))};static \u0275pipe=_t({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var $g=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Bl,useClass:UM},e.compiler||{provide:Ul,useClass:WM},e.parser||{provide:jl,useClass:GM},e.missingTranslationHandler||{provide:bd,useClass:$M},yd,{provide:Hg,useValue:e.isolate},{provide:Ng,useValue:e.useDefaultLang},{provide:Bg,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},br]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Bl,useClass:UM},e.compiler||{provide:Ul,useClass:WM},e.parser||{provide:jl,useClass:GM},e.missingTranslationHandler||{provide:bd,useClass:$M},{provide:Hg,useValue:e.isolate},{provide:Ng,useValue:e.useDefaultLang},{provide:Bg,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},br]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();var Gg={mifos_x:{version:"251202",hash:"dd0a019"},allow_switching_backend_instance:!0};var Xt=window.env||{},mt={production:!0,version:Gg.mifos_x.version,hash:Gg.mifos_x.hash,fineractPlatformTenantId:Xt.fineractPlatformTenantId||"default",fineractPlatformTenantIds:Xt.fineractPlatformTenantIds||"default",baseApiUrls:Xt.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:Xt.fineractApiUrl||(Xt.fineractApiUrls?.length>0?Xt.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:Xt.oauthServerUrl||Xt.fineractApiUrl+Xt.apiProvider,allowServerSwitch:Xt.allowServerSwitch||"true",apiProvider:Xt.apiProvider||"/fineract-provider/api",apiVersion:Xt.apiVersion||"/v1",serverUrl:"",oauth:{enabled:Xt.oauthServerEnabled||!1,serverUrl:Xt.oauthServerUrl||"",appId:Xt.oauthAppId||""},enableRememberMe:!1,warningDialog:{title:"Warning",content:"This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.",buttonText:"Close"},defaultLanguage:Xt.defaultLanguage||"en-US",supportedLanguages:Xt.supportedLanguages||"cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW",preloadClients:Xt.preloadClients||!0,defaultCharDelimiter:Xt.defaultCharDelimiter||",",displayBackEndInfo:Xt.displayBackEndInfo||"true",displayTenantSelector:Xt.displayTenantSelector||"true",waitTimeForNotifications:Xt.waitTimeForNotifications||60,waitTimeForCOBCatchUp:Xt.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:Xt.sessionIdleTimeout||3e5}},httpCacheEnabled:Xt.httpCacheEnabled||!1,vNextApiUrl:window.env.vNextApiUrl||"https://apis.mifos.community",vNextApiProvider:window.env.vNextApiProvider||"/vnext1",vNextApiVersion:window.env.vNextApiVersion||"/v1.0",interbankTransfers:window.env.interbankTransfers||!1,minPasswordLength:Xt.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};mt.serverUrl=`${mt.baseApiUrl}${mt.apiProvider}${mt.apiVersion}`;var qM=(()=>{class t{transform(e,n,r,a){if(e){if(n==="loan"&&(r==="closed"?e=e.filter(o=>o.status.code==="loanStatusType.closed.written.off"||o.status.code==="loanStatusType.closed.obligations.met"||o.status.code==="loanStatusType.closed.reschedule.outstanding.amount"||o.status.code==="loanStatusType.withdrawn.by.client"||o.status.code==="loanStatusType.rejected"):e=e.filter(o=>o.status.code!=="loanStatusType.closed.written.off"&&o.status.code!=="loanStatusType.closed.obligations.met"&&o.status.code!=="loanStatusType.closed.reschedule.outstanding.amount"&&o.status.code!=="loanStatusType.withdrawn.by.client"&&o.status.code!=="loanStatusType.rejected")),n==="saving"&&(a==="isFixed"?e=e.filter(o=>o.depositType.value==="Fixed Deposit"):a==="isRecurring"?e=e.filter(o=>o.depositType.value==="Recurring Deposit"):a==="isSavings"&&(e=e.filter(o=>o.depositType.value==="Savings")),r==="closed"?e=e.filter(o=>o.status.code==="savingsAccountStatusType.withdrawn.by.applicant"||o.status.code==="savingsAccountStatusType.closed"||o.status.code==="savingsAccountStatusType.pre.mature.closure"||o.status.code==="savingsAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="savingsAccountStatusType.withdrawn.by.applicant"&&o.status.code!=="savingsAccountStatusType.closed"&&o.status.code!=="savingsAccountStatusType.pre.mature.closure"&&o.status.code!=="savingsAccountStatusType.rejected")),n==="share"&&(r==="closed"?e=e.filter(o=>o.status.code==="shareAccountStatusType.closed"||o.status.code==="shareAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="shareAccountStatusType.closed"&&o.status.code!=="shareAccountStatusType.rejected")),n==="guarantor")if(r===!1)e=e.filter(o=>o.status===!0);else return e;return n==="clientApproval"&&(e=e.filter(o=>o.active===!1&&o.status.value==="Pending")),e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"accountsFilter",type:t,pure:!0})}}return t})();var YM=(()=>{class t{transform(e,n,r,a){return e&&(e=e.filter(o=>!(o.currency.code!==r||a&&o.chargeTimeType.id===12||n.filter(s=>s.id===o.id).length))),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesFilter",type:t,pure:!0})}}return t})();var QM=(()=>{class t{transform(e,n){return e&&(e=e.filter(r=>r.penalty===n)),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Jo=(()=>{class t{constructor(){this.alertEvent=new j}alert(e){this.alertEvent.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gl=a3(Nu());var Li=(()=>{class t{static{this.DEFAULT_DATEFORMAT="yyyy-MM-dd"}static{this.DEFAULT_DATETIMEFORMAT="yyyy-MM-dd HH:mm"}constructor(e){this.datePipe=e}getDate(e){return this.datePipe.transform(e,"YYYY-MM-DD")}formatDate(e,n){return new nc(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,Gl.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,Gl.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,Gl.default)(e).toDate()}parseDatetime(e){return(0,Gl.default)(e).toDate()}convertToDate(e,n){return(0,Gl.default)(e).toDate()}get language(){return localStorage.getItem("mifosXLanguage")?JSON.parse(localStorage.getItem("mifosXLanguage")):"en"}calculateDiff(e,n){return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/(1e3*60*60*24))}static{this.\u0275fac=function(n){return new(n||t)(ae(nc))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nt=(()=>{class t{static{this.businessDateFormat="yyyy-MM-dd"}static{this.businessDateConfigName="enable-business-date"}static{this.businessDateType="BUSINESS_DATE"}static{this.cobDateType="COB_DATE"}constructor(e,n){this.alertService=e,this.dateUtils=n,this.minAllowedDate=new Date(1950,0,1),this.maxAllowedDate=new Date(2100,0,1)}setDateFormat(e){localStorage.setItem("mifosXDateFormat",JSON.stringify(e))}setLanguage(e){localStorage.setItem("mifosXLanguage",JSON.stringify(e))}setDecimalToDisplay(e){localStorage.setItem("mifosXDecimalsToDisplay",e)}setDefaultLanguage(){let e=mt.defaultLanguage?mt.defaultLanguage:"en-US";this.setLanguage({name:e,code:e.substring(0,2)})}setServer(e){localStorage.setItem("mifosXServerURL",e)}setServers(e){localStorage.setItem("mifosXServers",JSON.stringify(e))}setTenantIdentifiers(e){localStorage.setItem("mifosXTenantIdentifiers",JSON.stringify(e))}setTenantIdentifier(e){localStorage.setItem("mifosXTenantIdentifier",e)}setBusinessDate(e){localStorage.setItem("mifosXServerDate",e)}setBusinessDateConfig(e){localStorage.setItem("mifosXServerBusinessDateEnabled",e)}get dateFormat(){return JSON.parse(localStorage.getItem("mifosXDateFormat"))}get language(){return localStorage.getItem("mifosXLanguage")||this.setDefaultLanguage(),JSON.parse(localStorage.getItem("mifosXLanguage"))}get languageCode(){let e=this.language.code;return e==="es"?"es-MX":e==="en"?"en-US":e+"-"+e.toUpperCase()}get decimals(){return localStorage.getItem("mifosXDecimalsToDisplay")?localStorage.getItem("mifosXDecimalsToDisplay"):"2"}get servers(){return JSON.parse(localStorage.getItem("mifosXServers"))}get server(){return localStorage.getItem("mifosXServerURL")?localStorage.getItem("mifosXServerURL"):mt.baseApiUrl&&mt.baseApiUrl!==""?mt.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+mt.apiProvider}get serverUrl(){return this.server+mt.apiProvider+mt.apiVersion}get serverHost(){return this.server}get businessDate(){return this.dateUtils.convertToDate(localStorage.getItem("mifosXServerDate"),t.businessDateFormat)}get businessDateConfig(){return localStorage.getItem("mifosXServerBusinessDateEnabled")}get minPastDate(){return this.minAllowedDate}get maxFutureDate(){return this.maxAllowedDate}get tenantIdentifiers(){return JSON.parse(localStorage.getItem("mifosXTenantIdentifiers"))}get tenantIdentifier(){return localStorage.getItem("mifosXTenantIdentifier")}validateBusinessDateStatus(e){e.some(n=>{if(n.name===t.businessDateConfigName)return n.enabled})}getBusinessDates(e,n){e.some(r=>{if(r.type===n){let a=new Date(r.date);this.setBusinessDate(this.dateUtils.formatDate(a,t.businessDateFormat)),this.alertService.alert({type:n+" Set",message:this.dateUtils.formatDate(a,this.dateFormat)});return}})}setThemeDarkEnabled(e){localStorage.setItem("mifosXThemeDarkEnabled",JSON.stringify(e))}get themeDarkEnabled(){return JSON.parse(localStorage.getItem("mifosXThemeDarkEnabled"))}static{this.\u0275fac=function(n){return new(n||t)(ae(Jo),ae(Li))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Fu=a3(Nu());var yr=(()=>{class t{constructor(e){this.settingsService=e}transform(e,n){let r=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let a;return Fu.default.locale(this.settingsService.language.code),e instanceof Array?a=(0,Fu.default)(e.join("-"),"YYYY-MM-DD"):a=(0,Fu.default)(e),n==null?a.format(r):a.format(n)}static{this.\u0275fac=function(n){return new(n||t)(E(Nt,16))}}static{this.\u0275pipe=_t({name:"dateFormat",type:t,pure:!0})}}return t})();var Md=a3(Nu());var Pa=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let r;if(Array.isArray(e)){let[o,s,d,h,v,C]=e;h!=null?r=(0,Md.default)({year:o,month:(s??1)-1,date:d,hour:h,minute:v??0,second:C??0}):r=(0,Md.default)({year:o,month:(s??1)-1,date:d})}else typeof e=="number"&&e<1e12?r=Md.default.unix(e):r=(0,Md.default)(e);let a=n??"YYYY-MM-DDTHH:mm:ssZ";return r.format(a)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"datetimeFormat",type:t,pure:!0})}}return t})();var Bu=(()=>{class t{transform(e){if(e){if(/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(e))return e.split("-")[4];{let a=e.length;return a>20?e.substring(a-20,a):e}}else return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"externalIdentifier",type:t,pure:!0})}}return t})();var KM=new WeakMap,ZM=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n,r,a){if(!n||!r||e===null||e===void 0)return"";let o=KM.get(n);o||(o=new Map,KM.set(n,o));let s=o.get(r);if(!s){if(s=new Map,Array.isArray(n))for(let v of n)v&&v[r]!==void 0&&v[r]!==null&&s.set(v[r],v);o.set(r,s)}let d=s.get(e),h=d?d[a]??"":"";return typeof h=="string"?this.sanitizer.sanitize(Ln.HTML,h)||"":String(h||"")}static{this.\u0275fac=function(n){return new(n||t)(E(vo,16))}}static{this.\u0275pipe=_t({name:"find",type:t,pure:!0})}}return t})();var es=(()=>{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(sd,16),E(Nt,16))}}static{this.\u0275pipe=_t({name:"formatNumber",type:t,pure:!0})}}return t})();var ew=a3(JM());var Uu=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return ew.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"prettyPrint",type:t,pure:!0})}}return t})();var tw=(()=>{class t{transform(e){return{true:"status-active",false:"status-deleted",Active:"status-active",Block:"status-block","charges.StatusType.active.true":"status-active","loanStatusType.submitted.and.pending.approval":"status-pending","loanStatusType.approved":"status-approved","loanStatusType.active":"status-active","loanStatusType.overpaid":"status-overpaid","loanStatusType.chargeoff":"status-chargeoff","loanStatusType.activeOverdue":"status-active-overdue","loanSubStatusType.contractTermination":"subStatus-contract-termination","savingsAccountStatusType.submitted.and.pending.approval":"status-pending","savingsAccountStatusType.approved":"status-approved","savingsAccountStatusType.active":"status-active","savingsAccountStatusType.activeInactive":"status-active-overdue","savingsAccountStatusType.activeDormant":"status-active-overdue","savingsAccountStatusType.matured":"status-matured","shareAccountStatusType.submitted.and.pending.approval":"status-pending","shareAccountStatusType.approved":"status-approved","shareAccountStatusType.active":"status-active","shareAccountStatusType.rejected":"status-rejected","loanProduct.active":"status-active","loanProduct.inActive":"status-inactive","clientStatusType.pending":"status-pending","clientStatusType.closed":"status-closed","clientStatusType.rejected":"status-rejected","clientStatusType.withdraw":"status-withdraw","clientStatusType.active":"status-active","clientStatusType.submitted.and.pending.approval":"status-pending","clientStatusTYpe.approved":"status-approved","clientStatusType.transfer.in.progress":"status-transfer-progress","clientStatusType.transfer.on.hold":"status-transfer-hold","groupingStatusType.active":"status-active","groupingStatusType.pending":"status-pending","groupingStatusType.submitted.and.pending.approval":"status-pending","groupingStatusType.approved":"status-approved","smsCampaignStatus.active":"status-active","smsCampaignStatus.pending":"status-pending","smsCampaignStatus.closed":"status-closed","purchasedSharesStatusType.applied":"status-pending"}[e]??"status-unknown"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"statusLookup",type:t,pure:!0})}}return t})();var ac=(()=>{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(br,16))}}static{this.\u0275pipe=_t({name:"translateKey",type:t,pure:!0})}}return t})();var $u=(()=>{class t{transform(e,n){if(e.length<=40)return e;let r=e.substring(0,30);return n&&(r=e.substring(0,n)),r}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"truncateText",type:t,pure:!0})}}return t})();var iw=(()=>{class t{transform(e){e=decodeURIComponent(e);let n=e.slice(1).split("/");if(e.includes("?")){let a=n.pop(),o=a.slice(0,a.indexOf("?"));n.push(o)}return n.map(a=>a.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")).join(" | ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"urlToString",type:t,pure:!0})}}return t})();var Gu=(()=>{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(br,16))}}static{this.\u0275pipe=_t({name:"yesNo",type:t,pure:!0})}}return t})();var rw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({providers:[tw,qM,YM,QM,ZM,iw,yr,Pa,Bu,es,Gu,Uu,ac,$u],imports:[fe]})}}return t})();var yo={headers:{"Fineract-Platform-TenantId":mt.fineractPlatformTenantId}},Wu="Authorization",OW="Fineract-Platform-TenantId",aw="Fineract-Platform-TFA-Token",ow=(()=>{class t{constructor(e){this.settingsService=e}intercept(e,n){return this.settingsService.tenantIdentifier&&(yo.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:yo.headers}),n.handle(e)}setAuthorizationToken(e){mt.oauth.enabled?yo.headers[Wu]=`Bearer ${e}`:yo.headers[Wu]=`Basic ${e}`}setTwoFactorAccessToken(e){yo.headers[aw]=e}removeAuthorization(){delete yo.headers[Wu]}removeAuthorizationTenant(){delete yo.headers[Wu],delete yo.headers[OW]}removeTwoFactorAuthorization(){delete yo.headers[aw]}static{this.\u0275fac=function(n){return new(n||t)(ae(Nt))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var qu=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(e,n,r){this.http=e,this.alertService=n,this.authenticationInterceptor=r,this.userLoggedIn$=new Je(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.dialogShown=!1,this.credentialsStorageKey="mifosXCredentials",this.oAuthTokenDetailsStorageKey="mifosXOAuthTokenDetails",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken",this.userLoggedIn=!1,this.rememberMe=!1,this.storage=sessionStorage;let a=JSON.parse(sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey));if(a){a.rememberMe&&(this.rememberMe=!0,this.storage=localStorage);let o=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));mt.oauth.enabled?this.refreshOAuthAccessToken():r.setAuthorizationToken(a.base64EncodedAuthenticationKey),o&&r.setTwoFactorAccessToken(o.token),this.userLoggedIn=!0,this.userLoggedIn$.next(!0)}}login(e){this.alertService.alert({type:"Authentication Start",message:"Please wait..."});let n=mt.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,mt.oauth.enabled){let r=new Z;r=r.set("username",e.username),r=r.set("password",e.password),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("grant_type","password"),r=r.set("remember_me",this.rememberMe?"true":"false");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).pipe(me(o=>(this.getUserDetails(o),ie(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(me(r=>(this.onLoginSuccess(r),ie(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new vr;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${mt.serverUrl}/userdetails`,{headers:n}).subscribe(r=>{this.onLoginSuccess(r),r.shouldRenewPassword||this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(e))})}refreshTokenOnExpiry(e){setTimeout(()=>this.refreshOAuthAccessToken(),e*1e3)}refreshOAuthAccessToken(){var e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey));if(e==null)return;e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,this.authenticationInterceptor.removeAuthorization();let n=JSON.parse(this.storage.getItem(this.credentialsStorageKey)),r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e),r=r.set("grant_type","refresh_token");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).subscribe(o=>{this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(o)),this.authenticationInterceptor.setAuthorizationToken(o.access_token),this.refreshTokenOnExpiry(o.expires_in);let s=JSON.parse(this.storage.getItem(this.credentialsStorageKey));s.accessToken=o.access_token,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(s))})}onLoginSuccess(e){this.userLoggedIn=!0,this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,mt.oauth.enabled?this.authenticationInterceptor.setAuthorizationToken(e.accessToken):this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey),e.isTwoFactorAuthenticationRequired?(this.credentials=e,this.alertService.alert({type:"Two Factor Authentication Required",message:"Two Factor Authentication Required"})):e.shouldRenewPassword?(this.credentials=e,this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"})):(this.setCredentials(e),this.alertService.alert({type:"Authentication Success",message:`${e.username} successfully logged in!`}),delete this.credentials)}logoutAuthSession(){let e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,n=JSON.parse(this.storage.getItem(this.credentialsStorageKey));this.authenticationInterceptor.removeAuthorizationTenant();let r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e);let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/logout`,r.toString(),{headers:a}).subscribe()}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey))&&this.logoutAuthSession(),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn=!1,this.userLoggedIn$.next(!1),ie(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){this.onOTPValidateSuccess(r)}))}onOTPValidateSuccess(e){this.authenticationInterceptor.setTwoFactorAccessToken(e.token),this.credentials.shouldRenewPassword?this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"}):(this.setCredentials(this.credentials),this.alertService.alert({type:"Authentication Success",message:`${this.credentials.username} successfully logged in!`}),delete this.credentials,this.storage.setItem(this.twoFactorAuthenticationTokenStorageKey,JSON.stringify(e)))}resetPassword(e){return this.http.put(`/users/${this.credentials.userId}`,e).pipe(me(()=>{this.alertService.alert({type:"Password Reset Success",message:"Your password was sucessfully reset!"}),this.authenticationInterceptor.removeAuthorization(),this.authenticationInterceptor.removeTwoFactorAuthorization();let n={username:this.credentials.username,password:e.password,remember:this.rememberMe};this.login(n).subscribe()}))}getUserLoggedIn(){return this.userLoggedIn}static{this.\u0275fac=function(n){return new(n||t)(ae(On),ae(Jo),ae(ow))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var ts=(()=>{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(Qe),E(rt),E(qu))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var hw=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(E(Ke),E(Y))};static \u0275dir=V({type:t})}return t})(),gw=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,features:[ce]})}return t})(),Qn=new A("");var PW={provide:Qn,useExisting:wt(()=>ai),multi:!0};function TW(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var AW=new A(""),ai=(()=>{class t extends hw{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!TW())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(E(Ke),E(Y),E(AW,8))};static \u0275dir=V({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},standalone:!1,features:[ue([PW]),ce]})}return t})();function Kg(t){return t==null||Zg(t)===0}function Zg(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var oi=new A(""),sc=new A(""),VW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vn=class{static min(i){return _w(i)}static max(i){return vw(i)}static required(i){return bw(i)}static requiredTrue(i){return LW(i)}static email(i){return RW(i)}static minLength(i){return yw(i)}static maxLength(i){return Cw(i)}static pattern(i){return zW(i)}static nullValidator(i){return Qu()}static compose(i){return kw(i)}static composeAsync(i){return Ew(i)}};function _w(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function bw(t){return Kg(t.value)?{required:!0}:null}function LW(t){return t.value===!0?null:{required:!0}}function RW(t){return Kg(t.value)||VW.test(t.value)?null:{email:!0}}function yw(t){return i=>{let e=i.value?.length??Zg(i.value);return e===null||e===0?null:e{let e=i.value?.length??Zg(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function zW(t){if(!t)return Qu;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Kg(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Qu(t){return null}function xw(t){return t!=null}function Mw(t){return Qo(t)?jt(t):t}function ww(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function Dw(t,i){return i.map(e=>e(t))}function HW(t){return!t.validate}function Sw(t){return t.map(i=>HW(i)?i:e=>i.validate(e))}function kw(t){if(!t)return null;let i=t.filter(xw);return i.length==0?null:function(e){return ww(Dw(e,i))}}function Xg(t){return t!=null?kw(Sw(t)):null}function Ew(t){if(!t)return null;let i=t.filter(xw);return i.length==0?null:function(e){let n=Dw(e,i).map(Mw);return io(n).pipe(me(ww))}}function Jg(t){return t!=null?Ew(Sw(t)):null}function cw(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Ow(t){return t._rawValidators}function Iw(t){return t._rawAsyncValidators}function qg(t){return t?Array.isArray(t)?t:[t]:[]}function Ku(t,i){return Array.isArray(t)?t.includes(i):t===i}function lw(t,i){let e=qg(i);return qg(t).forEach(r=>{Ku(e,r)||e.push(r)}),e}function dw(t,i){return qg(i).filter(e=>!Ku(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=Xg(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Jg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},ri=class extends Zu{name;get formDirective(){return null}get path(){return null}},Fn=class extends Zu{_parent=null;name=null;valueAccessor=null},Xu=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},NW={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},f6e=Be(q({},NW),{"[class.ng-submitted]":"isSubmitted"}),Jt=(()=>{class t extends Xu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E(Fn,2))};static \u0275dir=V({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[ce]})}return t})(),Lr=(()=>{class t extends Xu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E(ri,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[ce]})}return t})();var wd="VALID",Yu="INVALID",ql="PENDING",Dd="DISABLED",is=class{},Ju=class extends is{value;source;constructor(i,e){super(),this.value=i,this.source=e}},kd=class extends is{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Ed=class extends is{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Yl=class extends is{status;source;constructor(i,e){super(),this.status=i,this.source=e}},em=class extends is{source;constructor(i){super(),this.source=i}},tm=class extends is{source;constructor(i){super(),this.source=i}};function e5(t){return(am(t)?t.validators:t)||null}function FW(t){return Array.isArray(t)?Xg(t):t||null}function t5(t,i){return(am(i)?i.asyncValidators:t)||null}function BW(t){return Array.isArray(t)?Jg(t):t||null}function am(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Pw(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Ce(1e3,"");if(!n[e])throw new Ce(1001,"")}function Tw(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Ce(1002,"")})}var Ql=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return ir(this.statusReactive)}set status(i){ir(()=>this.statusReactive.set(i))}_status=Zr(()=>this.statusReactive());statusReactive=Hn(void 0);get valid(){return this.status===wd}get invalid(){return this.status===Yu}get pending(){return this.status==ql}get disabled(){return this.status===Dd}get enabled(){return this.status!==Dd}errors;get pristine(){return ir(this.pristineReactive)}set pristine(i){ir(()=>this.pristineReactive.set(i))}_pristine=Zr(()=>this.pristineReactive());pristineReactive=Hn(!0);get dirty(){return!this.pristine}get touched(){return ir(this.touchedReactive)}set touched(i){ir(()=>this.touchedReactive.set(i))}_touched=Zr(()=>this.touchedReactive());touchedReactive=Hn(!1);get untouched(){return!this.touched}_events=new N;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(lw(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(lw(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(dw(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(dw(i,this._rawAsyncValidators))}hasValidator(i){return Ku(this._rawValidators,i)}hasAsyncValidator(i){return Ku(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Ed(!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 Ed(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new kd(!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 kd(!0,n))}markAsPending(i={}){this.status=ql;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Yl(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Be(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Dd,this.errors=null,this._forEachChild(r=>{r.disable(Be(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Ju(this.value,n)),this._events.next(new Yl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=wd,this._forEachChild(n=>{n.enable(Be(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wd||this.status===ql)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Ju(this.value,e)),this._events.next(new Yl(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Be(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Dd:wd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=ql,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Mw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new Yl(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?Dd:this.errors?Yu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ql)?ql:this._anyControlsHaveStatus(Yu)?Yu:wd}_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 kd(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Ed(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){am(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=FW(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=BW(this._rawAsyncValidators)}},oc=class extends Ql{constructor(i,e,n){super(e5(e),t5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){Tw(this,!0,i),Object.keys(i).forEach(n=>{Pw(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,a)=>{n=e(n,r,a)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Aw=oc;var Yg=class extends oc{};var Kl=new A("",{providedIn:"root",factory:()=>om}),om="always";function sm(t,i){return[...i.path,t]}function Od(t,i,e=om){n5(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),UW(t,i),GW(t,i),$W(t,i),jW(t,i)}function nm(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),rm(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function im(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function jW(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function n5(t,i){let e=Ow(t);i.validator!==null?t.setValidators(cw(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Iw(t);i.asyncValidator!==null?t.setAsyncValidators(cw(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();im(i._rawValidators,r),im(i._rawAsyncValidators,r)}function rm(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=Ow(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.validator);a.length!==r.length&&(e=!0,t.setValidators(a))}}if(i.asyncValidator!==null){let r=Iw(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.asyncValidator);a.length!==r.length&&(e=!0,t.setAsyncValidators(a))}}}let n=()=>{};return im(i._rawValidators,n),im(i._rawAsyncValidators,n),e}function UW(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Vw(t,i)})}function $W(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Vw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Vw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function GW(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Lw(t,i){t==null,n5(t,i)}function WW(t,i){return rm(t,i)}function i5(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function qW(t){return Object.getPrototypeOf(t.constructor)===gw}function Rw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r5(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(a=>{a.constructor===ai?e=a:qW(a)?n=a:r=a}),r||n||e||null}function YW(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var QW={provide:ri,useExisting:wt(()=>Zl)},Sd=Promise.resolve(),Zl=(()=>{class t extends ri{callSetDisabledState;get submitted(){return ir(this.submittedReactive)}_submitted=Zr(()=>this.submittedReactive());submittedReactive=Hn(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new oc({},Xg(e),Jg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Sd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Od(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Sd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Sd.then(()=>{let n=this._findContainer(e.path),r=new oc({});Lw(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Sd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Sd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Rw(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new em(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 tm(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(oi,10),E(sc,10),E(Kl,8))};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([QW]),ce]})}return t})();function uw(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function mw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var ns=class extends Ql{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(e5(e),t5(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),am(e)&&(e.nonNullable||e.initialValueIsDefault)&&(mw(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){uw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){uw(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){mw(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},xi=ns,KW=t=>t instanceof ns,ZW=(()=>{class t extends ri{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return sm(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,standalone:!1,features:[ce]})}return t})();var XW={provide:Fn,useExisting:wt(()=>JW)},pw=Promise.resolve(),JW=(()=>{class t extends Fn{_changeDetectorRef;callSetDisabledState;control=new ns;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new j;constructor(e,n,r,a,o,s){super(),this._changeDetectorRef=o,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=r5(this,a)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i5(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Od(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){pw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&B(n);pw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?sm(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(E(ri,9),E(oi,10),E(sc,10),E(Qn,10),E(be,8),E(Kl,8))};static \u0275dir=V({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ue([XW]),ce,Pe]})}return t})();var rs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),eq={provide:Qn,useExisting:wt(()=>tq),multi:!0},tq=(()=>{class t extends gw{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[ue([eq]),ce]})}return t})();var a5=new A(""),nq={provide:Fn,useExisting:wt(()=>mi)},mi=(()=>{class t extends Fn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r5(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&nm(n,this,!1),Od(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i5(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&nm(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(oi,10),E(sc,10),E(Qn,10),E(a5,8),E(Kl,8))};static \u0275dir=V({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ue([nq]),ce,Pe]})}return t})(),iq={provide:ri,useExisting:wt(()=>Kn)},Kn=(()=>{class t extends ri{callSetDisabledState;get submitted(){return ir(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zr(()=>this._submittedReactive());_submittedReactive=Hn(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new j;constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(rm(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 Od(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){nm(e.control||null,e,!1),YW(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Rw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new em(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 tm(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(nm(n||null,e),KW(r)&&(Od(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Lw(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&WW(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){n5(this.form,this),this._oldForm&&rm(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(E(oi,10),E(sc,10),E(Kl,8))};static \u0275dir=V({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([iq]),ce,Pe]})}return t})(),rq={provide:ri,useExisting:wt(()=>zw)},zw=(()=>{class t extends ZW{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Nw(this._parent)}static \u0275fac=function(n){return new(n||t)(E(ri,13),E(oi,10),E(sc,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ue([rq]),ce]})}return t})(),aq={provide:ri,useExisting:wt(()=>Hw)},Hw=(()=>{class t extends ri{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Nw(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return sm(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(E(ri,13),E(oi,10),E(sc,10))};static \u0275dir=V({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ue([aq]),ce]})}return t})();function Nw(t){return!(t instanceof zw)&&!(t instanceof Kn)&&!(t instanceof Hw)}var oq={provide:Fn,useExisting:wt(()=>Cr)},Cr=(()=>{class t extends Fn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=r5(this,a)}ngOnChanges(e){this._added||this._setUpControl(),i5(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return sm(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(ri,13),E(oi,10),E(sc,10),E(Qn,10),E(a5,8))};static \u0275dir=V({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ue([oq]),ce,Pe]})}return t})();function Fw(t){return typeof t=="number"?t:parseInt(t,10)}function Bw(t){return typeof t=="number"?t:parseFloat(t)}var Id=(()=>{class t{_validator=Qu;_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):Qu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,features:[Pe]})}return t})(),sq={provide:oi,useExisting:wt(()=>cq),multi:!0},cq=(()=>{class t extends Id{max;inputName="max";normalizeInput=e=>Bw(e);createValidator=e=>vw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[ue([sq]),ce]})}return t})(),lq={provide:oi,useExisting:wt(()=>dq),multi:!0},dq=(()=>{class t extends Id{min;inputName="min";normalizeInput=e=>Bw(e);createValidator=e=>_w(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[ue([lq]),ce]})}return t})(),uq={provide:oi,useExisting:wt(()=>na),multi:!0};var na=(()=>{class t extends Id{required;inputName="required";normalizeInput=B;createValidator=e=>bw;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ee("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ue([uq]),ce]})}return t})();var mq={provide:oi,useExisting:wt(()=>pq),multi:!0},pq=(()=>{class t extends Id{minlength;inputName="minlength";normalizeInput=e=>Fw(e);createValidator=e=>yw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ue([mq]),ce]})}return t})(),fq={provide:oi,useExisting:wt(()=>hq),multi:!0},hq=(()=>{class t extends Id{maxlength;inputName="maxlength";normalizeInput=e=>Fw(e);createValidator=e=>Cw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ue([fq]),ce]})}return t})();var jw=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})(),Qg=class extends Ql{constructor(i,e,n){super(e5(e),t5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){Tw(this,!1,i),i.forEach((n,r)=>{Pw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function fw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var gq=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),a={};return fw(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new oc(r,a)}record(e,n=null){let r=this._reduceControls(e);return new Yg(r,n)}control(e,n,r){let a={};return this.useNonNullable?(fw(n)?a=n:(a.validators=n,a.asyncValidators=r),new ns(e,Be(q({},a),{nonNullable:!0}))):new ns(e,n,r)}array(e,n,r){let a=e.map(o=>this._createControl(o));return new Qg(a,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof ns)return e;if(e instanceof Ql)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(n,r,a)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var as=(()=>{class t extends gq{group(e,n=null){return super.group(e,n)}control(e,n,r){return super.control(e,n,r)}array(e,n,r){return super.array(e,n,r)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Uw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Kl,useValue:e.callSetDisabledState??om}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[jw]})}return t})(),_e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a5,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Kl,useValue:e.callSetDisabledState??om}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[jw]})}return t})();var $w=(()=>{class t{set _(e){let n=e.split(":");this.currencyCode=n[0],this.displaySymbol=n.length>1?n[1]:"$",this.digitsInfo=n.length>2?n[2]:"1.2-2"}blur(e){e.value=this.parse(e.value)}focus(e){typeof this.control.value>"u"?e.value="":e.value=this.control.value}ngOnInit(){setTimeout(()=>{this.el.nativeElement.value=this.parse(this.el.nativeElement.value)})}constructor(e,n,r){this.locale=e,this.el=n,this.control=r,this.format="N0",this.digitsInfo="1.0-0",this.sufix=""}parse(e){return e==""?""+this.sufix:Mu(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)(E(Oa),E(Y),E(Fn))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,r){n&1&&z("blur",function(o){return r.blur(o.target)})("focus",function(o){return r.focus(o.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var y6e=(()=>{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(Fn),E(Y))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,r){n&1&&z("focus",function(){return r.onFocus()})}})}}return t})();var Gw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({imports:[fe]})}}return t})();var Rr=class{constructor(i={}){this.controlType=i.controlType||"",this.controlName=i.controlName||"",this.label=i.label||"",this.value=i.value===void 0?"":i.value,this.required=!!i.required,this.order=i.order===void 0?1:i.order,this.validators=i.validators===void 0?[]:i.validators,this.min=i.min===void 0?null:i.min,this.max=i.max===void 0?null:i.max}};function Co(t){return t.buttons===0||t.detail===0}function xo(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var o5;function Ww(){if(o5==null){let t=typeof document<"u"?document.head:null;o5=!!(t&&(t.createShadowRoot||t.attachShadow))}return o5}function cc(t){if(Ww()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Ri(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function In(t){return t.composedPath?t.composedPath()[0]:t.target}function Dt(t,i,e,n,r){let a=parseInt(rg.major),o=parseInt(rg.minor);return a>19||a===19&&o>0||a===0&&o===0?t.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)})}var s5;try{s5=typeof Intl<"u"&&Intl.v8BreakIterator}catch{s5=!1}var He=(()=>{class t{_platformId=u(qo);isBrowser=this._platformId?xg(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||s5)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pd;function qw(){if(Pd==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Pd=!0}))}finally{Pd=Pd||!1}return Pd}function os(t){return qw()?t:!!t.capture}function sn(t,i=0){return cm(t)?Number(t):arguments.length===2?i:0}function cm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Cn(t){return t instanceof Y?t.nativeElement:t}var Yw=new A("cdk-input-modality-detector-options"),Qw={ignoreKeys:[18,17,224,91,16]},Kw=650,c5={passive:!0,capture:!0},Zw=(()=>{class t{_platform=u(He);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Je(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=In(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(xo(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=In(e)};constructor(){let e=u(se),n=u(De),r=u(Yw,{optional:!0});if(this._options=q(q({},Qw),r),this.modalityDetected=this._modality.pipe(zs(1)),this.modalityChanged=this.modalityDetected.pipe(ll()),this._platform.isBrowser){let a=u(En).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[Dt(a,n,"keydown",this._onKeydown,c5),Dt(a,n,"mousedown",this._onMousedown,c5),Dt(a,n,"touchstart",this._onTouchstart,c5)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Td=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Td||{}),Xw=new A("cdk-focus-monitor-default-options"),lm=os({passive:!0,capture:!0}),qt=(()=>{class t{_ngZone=u(se);_platform=u(He);_inputModalityDetector=u(Zw);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=u(De,{optional:!0});_stopInputModalityDetector=new N;constructor(){let e=u(Xw,{optional:!0});this._detectionMode=e?.detectionMode||Td.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=In(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,n=!1){let r=Cn(e);if(!this._platform.isBrowser||r.nodeType!==1)return ie();let a=cc(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return n&&(o.checkChildren=!0),o.subject;let s={checkChildren:n,subject:new N,rootNode:a};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Cn(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let a=Cn(e),o=this._getDocument().activeElement;a===o?this._getClosestElementsInfo(a).forEach(([s,d])=>this._originChanged(s,n,d)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Td.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===Td.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Kw:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),a=In(e);!r||!r.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,lm),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,lm)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ve(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,lm),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,lm),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&n.push([a,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let o=0;o{class t{_elementRef=u(Y);_focusMonitor=u(qt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var dm=new WeakMap,Ze=(()=>{class t{_appRef;_injector=u(Te);_environmentInjector=u(fn);load(e){let n=this._appRef=this._appRef||this._injector.get(bi),r=dm.get(n);r||(r={loaders:new Set,refs:[]},dm.set(n,r),n.onDestroy(()=>{dm.get(n)?.refs.forEach(a=>a.destroy()),dm.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(cu(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ar=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),a=e.slice(n+1).trim();this.addHeaderEntry(r,a)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let a=i.value;if(!a)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(s=>a.indexOf(s)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Tu=class{encodeKey(i){return EM(i)}encodeValue(i){return EM(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function JG(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let a=r.indexOf("="),[o,s]=a==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,a)),i.decodeValue(r.slice(a+1))],d=e.get(o)||[];d.push(s),e.set(o,d)}),e}var eW=/%(\d[a-f0-9])/gi,tW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function EM(t){return encodeURIComponent(t).replace(eW,(i,e)=>tW[e]??i)}function Pu(t){return`${t}`}var Z=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Tu,i.fromString){if(i.fromObject)throw new Ce(2805,!1);this.map=JG(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(Pu):[Pu(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(Pu(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(Pu(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 Au=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function nW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function OM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function IM(t){return typeof Blob<"u"&&t instanceof Blob}function PM(t){return typeof FormData<"u"&&t instanceof FormData}function iW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var TM="Content-Type",AM="Accept",LM="X-Request-URL",RM="text/plain",zM="application/json",rW=`${zM}, ${RM}, */*`,Hl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let a;if(nW(this.method)||r?(this.body=n!==void 0?n:null,a=r):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new vr,this.context??=new Au,!this.params)this.params=new Z,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),d=s===-1?"?":sS.set(D,i.setHeaders[D]),h)),i.setParams&&(v=Object.keys(i.setParams).reduce((S,D)=>S.set(D,i.setParams[D]),v)),new t(e,n,o,{params:v,headers:h,context:C,reportProgress:d,responseType:r,withCredentials:s,transferCache:a})}},rc=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}(rc||{}),Fl=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new vr,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Vu=class t extends Fl{constructor(i={}){super(i)}type=rc.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})}},fd=class t extends Fl{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=rc.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})}},hd=class extends Fl{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},aW=200,oW=204;function Pg(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var On=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let a;if(e instanceof Hl)a=e;else{let d;r.headers instanceof vr?d=r.headers:d=new vr(r.headers);let h;r.params&&(r.params instanceof Z?h=r.params:h=new Z({fromObject:r.params})),a=new Hl(e,n,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let o=ie(a).pipe(Ti(d=>this.handler.handle(d)));if(e instanceof Hl||r.observe==="events")return o;let s=o.pipe(Ve(d=>d instanceof fd));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return s.pipe(me(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Ce(2806,!1);return d.body}));case"blob":return s.pipe(me(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Ce(2807,!1);return d.body}));case"text":return s.pipe(me(d=>{if(d.body!==null&&typeof d.body!="string")throw new Ce(2808,!1);return d.body}));case"json":default:return s.pipe(me(d=>d.body))}case"response":return s;default:throw new Ce(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Z().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Pg(r,n))}post(e,n,r={}){return this.request("POST",e,Pg(r,n))}put(e,n,r={}){return this.request("PUT",e,Pg(r,n))}static \u0275fac=function(n){return new(n||t)(ae(Nl))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var sW=new A("");function HM(t,i){return i(t)}function cW(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function lW(t,i,e){return(n,r)=>Ki(e,()=>i(n,a=>t(a,r)))}var NM=new A(""),Ag=new A(""),FM=new A(""),Vg=new A("",{providedIn:"root",factory:()=>!0});function dW(){let t=null;return(i,e)=>{t===null&&(t=(u(NM,{optional:!0})??[]).reduceRight(cW,HM));let n=u(mo);if(u(Vg)){let a=n.add();return t(i,e).pipe(_a(()=>n.remove(a)))}else return t(i,e)}}var Lu=(()=>{class t extends Nl{backend;injector;chain=null;pendingTasks=u(mo);contributeToStability=u(Vg);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Ag),...this.injector.get(FM,[])]));this.chain=n.reduceRight((r,a)=>lW(r,a,this.injector),HM)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(_a(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(ae(pd),ae(fn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var uW=/^\)\]\}',?\n/,mW=RegExp(`^${LM}:`,"m");function pW(t){return"responseURL"in t&&t.responseURL?t.responseURL:mW.test(t.getAllResponseHeaders())?t.getResponseHeader(LM):null}var Tg=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Ce(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?jt(n.\u0275loadImpl()):ie(null)).pipe(ct(()=>new Ue(a=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((ne,oe)=>o.setRequestHeader(ne,oe.join(","))),e.headers.has(AM)||o.setRequestHeader(AM,rW),!e.headers.has(TM)){let ne=e.detectContentTypeHeader();ne!==null&&o.setRequestHeader(TM,ne)}if(e.responseType){let ne=e.responseType.toLowerCase();o.responseType=ne!=="json"?ne:"text"}let s=e.serializeBody(),d=null,h=()=>{if(d!==null)return d;let ne=o.statusText||"OK",oe=new vr(o.getAllResponseHeaders()),ye=pW(o)||e.url;return d=new Vu({headers:oe,status:o.status,statusText:ne,url:ye}),d},v=()=>{let{headers:ne,status:oe,statusText:ye,url:qe}=h(),nt=null;oe!==oW&&(nt=typeof o.response>"u"?o.responseText:o.response),oe===0&&(oe=nt?aW:0);let An=oe>=200&&oe<300;if(e.responseType==="json"&&typeof nt=="string"){let zn=nt;nt=nt.replace(uW,"");try{nt=nt!==""?JSON.parse(nt):null}catch(Ei){nt=zn,An&&(An=!1,nt={error:Ei,text:nt})}}An?(a.next(new fd({body:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0})),a.complete()):a.error(new hd({error:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0}))},C=ne=>{let{url:oe}=h(),ye=new hd({error:ne,status:o.status||0,statusText:o.statusText||"Unknown Error",url:oe||void 0});a.error(ye)},S=!1,D=ne=>{S||(a.next(h()),S=!0);let oe={type:rc.DownloadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),e.responseType==="text"&&o.responseText&&(oe.partialText=o.responseText),a.next(oe)},L=ne=>{let oe={type:rc.UploadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),a.next(oe)};return o.addEventListener("load",v),o.addEventListener("error",C),o.addEventListener("timeout",C),o.addEventListener("abort",C),e.reportProgress&&(o.addEventListener("progress",D),s!==null&&o.upload&&o.upload.addEventListener("progress",L)),o.send(s),a.next({type:rc.Sent}),()=>{o.removeEventListener("error",C),o.removeEventListener("abort",C),o.removeEventListener("load",v),o.removeEventListener("timeout",C),e.reportProgress&&(o.removeEventListener("progress",D),s!==null&&o.upload&&o.upload.removeEventListener("progress",L)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(ae(ic))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),BM=new A(""),fW="XSRF-TOKEN",hW=new A("",{providedIn:"root",factory:()=>fW}),gW="X-XSRF-TOKEN",_W=new A("",{providedIn:"root",factory:()=>gW}),gd=class{},vW=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=cd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(ae(De),ae(hW))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function bW(t,i){let e=t.url.toLowerCase();if(!u(BM)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=u(gd).getToken(),r=u(_W);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var Lg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lg||{});function yW(t,i){return{\u0275kind:t,\u0275providers:i}}function CW(...t){let i=[On,Tg,Lu,{provide:Nl,useExisting:Lu},{provide:pd,useFactory:()=>u(sW,{optional:!0})??u(Tg)},{provide:Ag,useValue:bW,multi:!0},{provide:BM,useValue:!0},{provide:gd,useClass:vW}];for(let e of t)i.push(...e.\u0275providers);return Sl(i)}var VM=new A("");function xW(){return yW(Lg.LegacyInterceptors,[{provide:VM,useFactory:dW},{provide:Ag,useExisting:VM,multi:!0}])}var jM=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=ae(MW),r},providedIn:"root"})}return t})(),MW=(()=>{class t extends vo{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ln.NONE:return n;case Ln.HTML:return po(n,"HTML")?Pr(n):E8(this._doc,String(n)).toString();case Ln.STYLE:return po(n,"Style")?Pr(n):n;case Ln.SCRIPT:if(po(n,"Script"))return Pr(n);throw new Ce(5200,!1);case Ln.URL:return po(n,"URL")?Pr(n):U0(String(n));case Ln.RESOURCE_URL:if(po(n,"ResourceURL"))return Pr(n);throw new Ce(5201,!1);default:throw new Ce(5202,!1)}}bypassSecurityTrustHtml(e){return aC(e)}bypassSecurityTrustStyle(e){return oC(e)}bypassSecurityTrustScript(e){return sC(e)}bypassSecurityTrustUrl(e){return cC(e)}bypassSecurityTrustResourceUrl(e){return lC(e)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bl=class{},UM=(()=>{class t extends Bl{getTranslation(e){return ie({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),bd=class{},$M=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function zu(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{Cd(i[n])?n in t?e[n]=Rg(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):Rg({},i)}function zg(t,i){let e=i.split(".");i="";do i+=e.shift(),Xo(t)&&Xo(t[i])&&(Cd(t[i])||jg(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function DW(t,i,e){let n=i.split("."),r=t;for(let a=0;a{class t extends jl{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(Ug(e))return this.interpolateString(e,n);if(wW(e))return this.interpolateFunction(e,n)}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(r,a)=>{let o=zg(n,a);return Xo(o)?o:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Ul=class{},WM=(()=>{class t extends Ul{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),yd=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},Hg=new A("ISOLATE_TRANSLATE_SERVICE"),Ng=new A("USE_DEFAULT_LANG"),Fg=new A("DEFAULT_LANGUAGE"),Bg=new A("USE_EXTEND"),vd=t=>Wn(t)?t:ie(t),br=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,n,r,a,o,s=!0,d=!1,h=!1,v){this.store=e,this.currentLoader=n,this.compiler=r,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.extend=h,d&&(this.store=new yd),v&&this.setDefaultLang(v)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(Le(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return ie(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return Wn(n)?(n.pipe(Le(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),ie(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(No(1),Le(1));return this.loadingTranslations=n.pipe(me(r=>this.compiler.compileTranslations(r,e)),No(1),Le(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?q(q({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(e,n,r=!1){let a=this.compiler.compileTranslations(n,e);(r||this.extend)&&this.translations[e]?this.translations[e]=Rg(this.translations[e],a):this.translations[e]=a,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let n=e.filter(r=>!this.langs.includes(r));n.length>0&&(this.langs=[...this.langs,...n])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,n,r){let a;if(e&&(a=this.runInterpolation(zg(e,n),r)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(zg(this.translations[this.defaultLang],n),r)),a===void 0){let o={key:n,translateService:this};typeof r<"u"&&(o.interpolateParams=r),a=this.missingTranslationHandler.handle(o)}return a!==void 0?a:n}runInterpolation(e,n){if(jg(e))return e.map(r=>this.runInterpolation(r,n));if(Cd(e)){let r={};for(let a in e){let o=this.runInterpolation(e[a],n);o!==void 0&&(r[a]=o)}return r}else return this.parser.interpolate(e,n)}getParsedResult(e,n,r){if(n instanceof Array){let a={},o=!1;for(let d of n)a[d]=this.getParsedResultForKey(e,d,r),o=o||Wn(a[d]);if(!o)return a;let s=n.map(d=>vd(a[d]));return io(s).pipe(me(d=>{let h={};return d.forEach((v,C)=>{h[n[C]]=v}),h}))}return this.getParsedResultForKey(e,n,r)}get(e,n){if(!Xo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ti(r=>vd(this.getParsedResult(r,e,n)))):vd(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Xo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return gi(Pi(()=>this.get(e,n)),this.onTranslationChange.pipe(ct(r=>{let a=this.getParsedResult(r.translations,e,n);return vd(a)})))}stream(e,n){if(!Xo(e)||!e.length)throw new Error('Parameter "key" required');return gi(Pi(()=>this.get(e,n)),this.onLangChange.pipe(ct(r=>{let a=this.getParsedResult(r.translations,e,n);return vd(a)})))}instant(e,n){if(!Xo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,n);return Wn(r)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:r}set(e,n,r=this.currentLang){DW(this.translations[r],e,Ug(n)?this.compiler.compile(n,r):this.compiler.compileTranslations(n,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(n){return new(n||t)(ae(yd),ae(Bl),ae(Ul),ae(jl),ae(bd),ae(Ng),ae(Hg),ae(Bg),ae(Fg))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ee=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,r){let a=o=>{this.value=o!==void 0?o:e,this.lastKey=e,this._ref.markForCheck()};if(r){let o=this.translate.getParsedResult(r,e,n);Wn(o)?o.subscribe(a):a(o)}this.translate.get(e,n).subscribe(a)}transform(e,...n){if(!e||!e.length)return e;if(zu(e,this.lastKey)&&zu(n,this.lastParams))return this.value;let r;if(Xo(n[0])&&n.length)if(Ug(n[0])&&n[0].length){let a=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(a)}catch(o){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else Cd(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(br,16),E(be,16))};static \u0275pipe=_t({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var $g=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Bl,useClass:UM},e.compiler||{provide:Ul,useClass:WM},e.parser||{provide:jl,useClass:GM},e.missingTranslationHandler||{provide:bd,useClass:$M},yd,{provide:Hg,useValue:e.isolate},{provide:Ng,useValue:e.useDefaultLang},{provide:Bg,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},br]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Bl,useClass:UM},e.compiler||{provide:Ul,useClass:WM},e.parser||{provide:jl,useClass:GM},e.missingTranslationHandler||{provide:bd,useClass:$M},{provide:Hg,useValue:e.isolate},{provide:Ng,useValue:e.useDefaultLang},{provide:Bg,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},br]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();var Gg={mifos_x:{version:"251202",hash:"2746699"},allow_switching_backend_instance:!0};var Xt=window.env||{},mt={production:!0,version:Gg.mifos_x.version,hash:Gg.mifos_x.hash,fineractPlatformTenantId:Xt.fineractPlatformTenantId||"default",fineractPlatformTenantIds:Xt.fineractPlatformTenantIds||"default",baseApiUrls:Xt.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:Xt.fineractApiUrl||(Xt.fineractApiUrls?.length>0?Xt.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:Xt.oauthServerUrl||Xt.fineractApiUrl+Xt.apiProvider,allowServerSwitch:Xt.allowServerSwitch||"true",apiProvider:Xt.apiProvider||"/fineract-provider/api",apiVersion:Xt.apiVersion||"/v1",serverUrl:"",oauth:{enabled:Xt.oauthServerEnabled||!1,serverUrl:Xt.oauthServerUrl||"",appId:Xt.oauthAppId||""},enableRememberMe:!1,warningDialog:{title:"Warning",content:"This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.",buttonText:"Close"},defaultLanguage:Xt.defaultLanguage||"en-US",supportedLanguages:Xt.supportedLanguages||"cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW",preloadClients:Xt.preloadClients||!0,defaultCharDelimiter:Xt.defaultCharDelimiter||",",displayBackEndInfo:Xt.displayBackEndInfo||"true",displayTenantSelector:Xt.displayTenantSelector||"true",waitTimeForNotifications:Xt.waitTimeForNotifications||60,waitTimeForCOBCatchUp:Xt.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:Xt.sessionIdleTimeout||3e5}},httpCacheEnabled:Xt.httpCacheEnabled||!1,vNextApiUrl:window.env.vNextApiUrl||"https://apis.mifos.community",vNextApiProvider:window.env.vNextApiProvider||"/vnext1",vNextApiVersion:window.env.vNextApiVersion||"/v1.0",interbankTransfers:window.env.interbankTransfers||!1,minPasswordLength:Xt.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};mt.serverUrl=`${mt.baseApiUrl}${mt.apiProvider}${mt.apiVersion}`;var qM=(()=>{class t{transform(e,n,r,a){if(e){if(n==="loan"&&(r==="closed"?e=e.filter(o=>o.status.code==="loanStatusType.closed.written.off"||o.status.code==="loanStatusType.closed.obligations.met"||o.status.code==="loanStatusType.closed.reschedule.outstanding.amount"||o.status.code==="loanStatusType.withdrawn.by.client"||o.status.code==="loanStatusType.rejected"):e=e.filter(o=>o.status.code!=="loanStatusType.closed.written.off"&&o.status.code!=="loanStatusType.closed.obligations.met"&&o.status.code!=="loanStatusType.closed.reschedule.outstanding.amount"&&o.status.code!=="loanStatusType.withdrawn.by.client"&&o.status.code!=="loanStatusType.rejected")),n==="saving"&&(a==="isFixed"?e=e.filter(o=>o.depositType.value==="Fixed Deposit"):a==="isRecurring"?e=e.filter(o=>o.depositType.value==="Recurring Deposit"):a==="isSavings"&&(e=e.filter(o=>o.depositType.value==="Savings")),r==="closed"?e=e.filter(o=>o.status.code==="savingsAccountStatusType.withdrawn.by.applicant"||o.status.code==="savingsAccountStatusType.closed"||o.status.code==="savingsAccountStatusType.pre.mature.closure"||o.status.code==="savingsAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="savingsAccountStatusType.withdrawn.by.applicant"&&o.status.code!=="savingsAccountStatusType.closed"&&o.status.code!=="savingsAccountStatusType.pre.mature.closure"&&o.status.code!=="savingsAccountStatusType.rejected")),n==="share"&&(r==="closed"?e=e.filter(o=>o.status.code==="shareAccountStatusType.closed"||o.status.code==="shareAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="shareAccountStatusType.closed"&&o.status.code!=="shareAccountStatusType.rejected")),n==="guarantor")if(r===!1)e=e.filter(o=>o.status===!0);else return e;return n==="clientApproval"&&(e=e.filter(o=>o.active===!1&&o.status.value==="Pending")),e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"accountsFilter",type:t,pure:!0})}}return t})();var YM=(()=>{class t{transform(e,n,r,a){return e&&(e=e.filter(o=>!(o.currency.code!==r||a&&o.chargeTimeType.id===12||n.filter(s=>s.id===o.id).length))),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesFilter",type:t,pure:!0})}}return t})();var QM=(()=>{class t{transform(e,n){return e&&(e=e.filter(r=>r.penalty===n)),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Jo=(()=>{class t{constructor(){this.alertEvent=new j}alert(e){this.alertEvent.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gl=a3(Nu());var Li=(()=>{class t{static{this.DEFAULT_DATEFORMAT="yyyy-MM-dd"}static{this.DEFAULT_DATETIMEFORMAT="yyyy-MM-dd HH:mm"}constructor(e){this.datePipe=e}getDate(e){return this.datePipe.transform(e,"YYYY-MM-DD")}formatDate(e,n){return new nc(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,Gl.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,Gl.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,Gl.default)(e).toDate()}parseDatetime(e){return(0,Gl.default)(e).toDate()}convertToDate(e,n){return(0,Gl.default)(e).toDate()}get language(){return localStorage.getItem("mifosXLanguage")?JSON.parse(localStorage.getItem("mifosXLanguage")):"en"}calculateDiff(e,n){return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/(1e3*60*60*24))}static{this.\u0275fac=function(n){return new(n||t)(ae(nc))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nt=(()=>{class t{static{this.businessDateFormat="yyyy-MM-dd"}static{this.businessDateConfigName="enable-business-date"}static{this.businessDateType="BUSINESS_DATE"}static{this.cobDateType="COB_DATE"}constructor(e,n){this.alertService=e,this.dateUtils=n,this.minAllowedDate=new Date(1950,0,1),this.maxAllowedDate=new Date(2100,0,1)}setDateFormat(e){localStorage.setItem("mifosXDateFormat",JSON.stringify(e))}setLanguage(e){localStorage.setItem("mifosXLanguage",JSON.stringify(e))}setDecimalToDisplay(e){localStorage.setItem("mifosXDecimalsToDisplay",e)}setDefaultLanguage(){let e=mt.defaultLanguage?mt.defaultLanguage:"en-US";this.setLanguage({name:e,code:e.substring(0,2)})}setServer(e){localStorage.setItem("mifosXServerURL",e)}setServers(e){localStorage.setItem("mifosXServers",JSON.stringify(e))}setTenantIdentifiers(e){localStorage.setItem("mifosXTenantIdentifiers",JSON.stringify(e))}setTenantIdentifier(e){localStorage.setItem("mifosXTenantIdentifier",e)}setBusinessDate(e){localStorage.setItem("mifosXServerDate",e)}setBusinessDateConfig(e){localStorage.setItem("mifosXServerBusinessDateEnabled",e)}get dateFormat(){return JSON.parse(localStorage.getItem("mifosXDateFormat"))}get language(){return localStorage.getItem("mifosXLanguage")||this.setDefaultLanguage(),JSON.parse(localStorage.getItem("mifosXLanguage"))}get languageCode(){let e=this.language.code;return e==="es"?"es-MX":e==="en"?"en-US":e+"-"+e.toUpperCase()}get decimals(){return localStorage.getItem("mifosXDecimalsToDisplay")?localStorage.getItem("mifosXDecimalsToDisplay"):"2"}get servers(){return JSON.parse(localStorage.getItem("mifosXServers"))}get server(){return localStorage.getItem("mifosXServerURL")?localStorage.getItem("mifosXServerURL"):mt.baseApiUrl&&mt.baseApiUrl!==""?mt.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+mt.apiProvider}get serverUrl(){return this.server+mt.apiProvider+mt.apiVersion}get serverHost(){return this.server}get businessDate(){return this.dateUtils.convertToDate(localStorage.getItem("mifosXServerDate"),t.businessDateFormat)}get businessDateConfig(){return localStorage.getItem("mifosXServerBusinessDateEnabled")}get minPastDate(){return this.minAllowedDate}get maxFutureDate(){return this.maxAllowedDate}get tenantIdentifiers(){return JSON.parse(localStorage.getItem("mifosXTenantIdentifiers"))}get tenantIdentifier(){return localStorage.getItem("mifosXTenantIdentifier")}validateBusinessDateStatus(e){e.some(n=>{if(n.name===t.businessDateConfigName)return n.enabled})}getBusinessDates(e,n){e.some(r=>{if(r.type===n){let a=new Date(r.date);this.setBusinessDate(this.dateUtils.formatDate(a,t.businessDateFormat)),this.alertService.alert({type:n+" Set",message:this.dateUtils.formatDate(a,this.dateFormat)});return}})}setThemeDarkEnabled(e){localStorage.setItem("mifosXThemeDarkEnabled",JSON.stringify(e))}get themeDarkEnabled(){return JSON.parse(localStorage.getItem("mifosXThemeDarkEnabled"))}static{this.\u0275fac=function(n){return new(n||t)(ae(Jo),ae(Li))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Fu=a3(Nu());var yr=(()=>{class t{constructor(e){this.settingsService=e}transform(e,n){let r=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let a;return Fu.default.locale(this.settingsService.language.code),e instanceof Array?a=(0,Fu.default)(e.join("-"),"YYYY-MM-DD"):a=(0,Fu.default)(e),n==null?a.format(r):a.format(n)}static{this.\u0275fac=function(n){return new(n||t)(E(Nt,16))}}static{this.\u0275pipe=_t({name:"dateFormat",type:t,pure:!0})}}return t})();var Md=a3(Nu());var Pa=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let r;if(Array.isArray(e)){let[o,s,d,h,v,C]=e;h!=null?r=(0,Md.default)({year:o,month:(s??1)-1,date:d,hour:h,minute:v??0,second:C??0}):r=(0,Md.default)({year:o,month:(s??1)-1,date:d})}else typeof e=="number"&&e<1e12?r=Md.default.unix(e):r=(0,Md.default)(e);let a=n??"YYYY-MM-DDTHH:mm:ssZ";return r.format(a)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"datetimeFormat",type:t,pure:!0})}}return t})();var Bu=(()=>{class t{transform(e){if(e){if(/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(e))return e.split("-")[4];{let a=e.length;return a>20?e.substring(a-20,a):e}}else return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"externalIdentifier",type:t,pure:!0})}}return t})();var KM=new WeakMap,ZM=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n,r,a){if(!n||!r||e===null||e===void 0)return"";let o=KM.get(n);o||(o=new Map,KM.set(n,o));let s=o.get(r);if(!s){if(s=new Map,Array.isArray(n))for(let v of n)v&&v[r]!==void 0&&v[r]!==null&&s.set(v[r],v);o.set(r,s)}let d=s.get(e),h=d?d[a]??"":"";return typeof h=="string"?this.sanitizer.sanitize(Ln.HTML,h)||"":String(h||"")}static{this.\u0275fac=function(n){return new(n||t)(E(vo,16))}}static{this.\u0275pipe=_t({name:"find",type:t,pure:!0})}}return t})();var es=(()=>{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(sd,16),E(Nt,16))}}static{this.\u0275pipe=_t({name:"formatNumber",type:t,pure:!0})}}return t})();var ew=a3(JM());var Uu=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return ew.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"prettyPrint",type:t,pure:!0})}}return t})();var tw=(()=>{class t{transform(e){return{true:"status-active",false:"status-deleted",Active:"status-active",Block:"status-block","charges.StatusType.active.true":"status-active","loanStatusType.submitted.and.pending.approval":"status-pending","loanStatusType.approved":"status-approved","loanStatusType.active":"status-active","loanStatusType.overpaid":"status-overpaid","loanStatusType.chargeoff":"status-chargeoff","loanStatusType.activeOverdue":"status-active-overdue","loanSubStatusType.contractTermination":"subStatus-contract-termination","savingsAccountStatusType.submitted.and.pending.approval":"status-pending","savingsAccountStatusType.approved":"status-approved","savingsAccountStatusType.active":"status-active","savingsAccountStatusType.activeInactive":"status-active-overdue","savingsAccountStatusType.activeDormant":"status-active-overdue","savingsAccountStatusType.matured":"status-matured","shareAccountStatusType.submitted.and.pending.approval":"status-pending","shareAccountStatusType.approved":"status-approved","shareAccountStatusType.active":"status-active","shareAccountStatusType.rejected":"status-rejected","loanProduct.active":"status-active","loanProduct.inActive":"status-inactive","clientStatusType.pending":"status-pending","clientStatusType.closed":"status-closed","clientStatusType.rejected":"status-rejected","clientStatusType.withdraw":"status-withdraw","clientStatusType.active":"status-active","clientStatusType.submitted.and.pending.approval":"status-pending","clientStatusTYpe.approved":"status-approved","clientStatusType.transfer.in.progress":"status-transfer-progress","clientStatusType.transfer.on.hold":"status-transfer-hold","groupingStatusType.active":"status-active","groupingStatusType.pending":"status-pending","groupingStatusType.submitted.and.pending.approval":"status-pending","groupingStatusType.approved":"status-approved","smsCampaignStatus.active":"status-active","smsCampaignStatus.pending":"status-pending","smsCampaignStatus.closed":"status-closed","purchasedSharesStatusType.applied":"status-pending"}[e]??"status-unknown"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"statusLookup",type:t,pure:!0})}}return t})();var ac=(()=>{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(br,16))}}static{this.\u0275pipe=_t({name:"translateKey",type:t,pure:!0})}}return t})();var $u=(()=>{class t{transform(e,n){if(e.length<=40)return e;let r=e.substring(0,30);return n&&(r=e.substring(0,n)),r}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"truncateText",type:t,pure:!0})}}return t})();var iw=(()=>{class t{transform(e){e=decodeURIComponent(e);let n=e.slice(1).split("/");if(e.includes("?")){let a=n.pop(),o=a.slice(0,a.indexOf("?"));n.push(o)}return n.map(a=>a.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")).join(" | ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"urlToString",type:t,pure:!0})}}return t})();var Gu=(()=>{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(br,16))}}static{this.\u0275pipe=_t({name:"yesNo",type:t,pure:!0})}}return t})();var rw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({providers:[tw,qM,YM,QM,ZM,iw,yr,Pa,Bu,es,Gu,Uu,ac,$u],imports:[fe]})}}return t})();var yo={headers:{"Fineract-Platform-TenantId":mt.fineractPlatformTenantId}},Wu="Authorization",OW="Fineract-Platform-TenantId",aw="Fineract-Platform-TFA-Token",ow=(()=>{class t{constructor(e){this.settingsService=e}intercept(e,n){return this.settingsService.tenantIdentifier&&(yo.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:yo.headers}),n.handle(e)}setAuthorizationToken(e){mt.oauth.enabled?yo.headers[Wu]=`Bearer ${e}`:yo.headers[Wu]=`Basic ${e}`}setTwoFactorAccessToken(e){yo.headers[aw]=e}removeAuthorization(){delete yo.headers[Wu]}removeAuthorizationTenant(){delete yo.headers[Wu],delete yo.headers[OW]}removeTwoFactorAuthorization(){delete yo.headers[aw]}static{this.\u0275fac=function(n){return new(n||t)(ae(Nt))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var qu=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(e,n,r){this.http=e,this.alertService=n,this.authenticationInterceptor=r,this.userLoggedIn$=new Je(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.dialogShown=!1,this.credentialsStorageKey="mifosXCredentials",this.oAuthTokenDetailsStorageKey="mifosXOAuthTokenDetails",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken",this.userLoggedIn=!1,this.rememberMe=!1,this.storage=sessionStorage;let a=JSON.parse(sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey));if(a){a.rememberMe&&(this.rememberMe=!0,this.storage=localStorage);let o=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));mt.oauth.enabled?this.refreshOAuthAccessToken():r.setAuthorizationToken(a.base64EncodedAuthenticationKey),o&&r.setTwoFactorAccessToken(o.token),this.userLoggedIn=!0,this.userLoggedIn$.next(!0)}}login(e){this.alertService.alert({type:"Authentication Start",message:"Please wait..."});let n=mt.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,mt.oauth.enabled){let r=new Z;r=r.set("username",e.username),r=r.set("password",e.password),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("grant_type","password"),r=r.set("remember_me",this.rememberMe?"true":"false");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).pipe(me(o=>(this.getUserDetails(o),ie(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(me(r=>(this.onLoginSuccess(r),ie(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new vr;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${mt.serverUrl}/userdetails`,{headers:n}).subscribe(r=>{this.onLoginSuccess(r),r.shouldRenewPassword||this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(e))})}refreshTokenOnExpiry(e){setTimeout(()=>this.refreshOAuthAccessToken(),e*1e3)}refreshOAuthAccessToken(){var e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey));if(e==null)return;e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,this.authenticationInterceptor.removeAuthorization();let n=JSON.parse(this.storage.getItem(this.credentialsStorageKey)),r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e),r=r.set("grant_type","refresh_token");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).subscribe(o=>{this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(o)),this.authenticationInterceptor.setAuthorizationToken(o.access_token),this.refreshTokenOnExpiry(o.expires_in);let s=JSON.parse(this.storage.getItem(this.credentialsStorageKey));s.accessToken=o.access_token,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(s))})}onLoginSuccess(e){this.userLoggedIn=!0,this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,mt.oauth.enabled?this.authenticationInterceptor.setAuthorizationToken(e.accessToken):this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey),e.isTwoFactorAuthenticationRequired?(this.credentials=e,this.alertService.alert({type:"Two Factor Authentication Required",message:"Two Factor Authentication Required"})):e.shouldRenewPassword?(this.credentials=e,this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"})):(this.setCredentials(e),this.alertService.alert({type:"Authentication Success",message:`${e.username} successfully logged in!`}),delete this.credentials)}logoutAuthSession(){let e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,n=JSON.parse(this.storage.getItem(this.credentialsStorageKey));this.authenticationInterceptor.removeAuthorizationTenant();let r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e);let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/logout`,r.toString(),{headers:a}).subscribe()}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey))&&this.logoutAuthSession(),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn=!1,this.userLoggedIn$.next(!1),ie(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){this.onOTPValidateSuccess(r)}))}onOTPValidateSuccess(e){this.authenticationInterceptor.setTwoFactorAccessToken(e.token),this.credentials.shouldRenewPassword?this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"}):(this.setCredentials(this.credentials),this.alertService.alert({type:"Authentication Success",message:`${this.credentials.username} successfully logged in!`}),delete this.credentials,this.storage.setItem(this.twoFactorAuthenticationTokenStorageKey,JSON.stringify(e)))}resetPassword(e){return this.http.put(`/users/${this.credentials.userId}`,e).pipe(me(()=>{this.alertService.alert({type:"Password Reset Success",message:"Your password was sucessfully reset!"}),this.authenticationInterceptor.removeAuthorization(),this.authenticationInterceptor.removeTwoFactorAuthorization();let n={username:this.credentials.username,password:e.password,remember:this.rememberMe};this.login(n).subscribe()}))}getUserLoggedIn(){return this.userLoggedIn}static{this.\u0275fac=function(n){return new(n||t)(ae(On),ae(Jo),ae(ow))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var ts=(()=>{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(Qe),E(rt),E(qu))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var hw=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(E(Ke),E(Y))};static \u0275dir=V({type:t})}return t})(),gw=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,features:[ce]})}return t})(),Qn=new A("");var PW={provide:Qn,useExisting:wt(()=>ai),multi:!0};function TW(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var AW=new A(""),ai=(()=>{class t extends hw{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!TW())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(E(Ke),E(Y),E(AW,8))};static \u0275dir=V({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},standalone:!1,features:[ue([PW]),ce]})}return t})();function Kg(t){return t==null||Zg(t)===0}function Zg(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var oi=new A(""),sc=new A(""),VW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vn=class{static min(i){return _w(i)}static max(i){return vw(i)}static required(i){return bw(i)}static requiredTrue(i){return LW(i)}static email(i){return RW(i)}static minLength(i){return yw(i)}static maxLength(i){return Cw(i)}static pattern(i){return zW(i)}static nullValidator(i){return Qu()}static compose(i){return kw(i)}static composeAsync(i){return Ew(i)}};function _w(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function bw(t){return Kg(t.value)?{required:!0}:null}function LW(t){return t.value===!0?null:{required:!0}}function RW(t){return Kg(t.value)||VW.test(t.value)?null:{email:!0}}function yw(t){return i=>{let e=i.value?.length??Zg(i.value);return e===null||e===0?null:e{let e=i.value?.length??Zg(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function zW(t){if(!t)return Qu;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Kg(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Qu(t){return null}function xw(t){return t!=null}function Mw(t){return Qo(t)?jt(t):t}function ww(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function Dw(t,i){return i.map(e=>e(t))}function HW(t){return!t.validate}function Sw(t){return t.map(i=>HW(i)?i:e=>i.validate(e))}function kw(t){if(!t)return null;let i=t.filter(xw);return i.length==0?null:function(e){return ww(Dw(e,i))}}function Xg(t){return t!=null?kw(Sw(t)):null}function Ew(t){if(!t)return null;let i=t.filter(xw);return i.length==0?null:function(e){let n=Dw(e,i).map(Mw);return io(n).pipe(me(ww))}}function Jg(t){return t!=null?Ew(Sw(t)):null}function cw(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Ow(t){return t._rawValidators}function Iw(t){return t._rawAsyncValidators}function qg(t){return t?Array.isArray(t)?t:[t]:[]}function Ku(t,i){return Array.isArray(t)?t.includes(i):t===i}function lw(t,i){let e=qg(i);return qg(t).forEach(r=>{Ku(e,r)||e.push(r)}),e}function dw(t,i){return qg(i).filter(e=>!Ku(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=Xg(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Jg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},ri=class extends Zu{name;get formDirective(){return null}get path(){return null}},Fn=class extends Zu{_parent=null;name=null;valueAccessor=null},Xu=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},NW={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},f6e=Be(q({},NW),{"[class.ng-submitted]":"isSubmitted"}),Jt=(()=>{class t extends Xu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E(Fn,2))};static \u0275dir=V({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[ce]})}return t})(),Lr=(()=>{class t extends Xu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E(ri,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[ce]})}return t})();var wd="VALID",Yu="INVALID",ql="PENDING",Dd="DISABLED",is=class{},Ju=class extends is{value;source;constructor(i,e){super(),this.value=i,this.source=e}},kd=class extends is{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Ed=class extends is{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Yl=class extends is{status;source;constructor(i,e){super(),this.status=i,this.source=e}},em=class extends is{source;constructor(i){super(),this.source=i}},tm=class extends is{source;constructor(i){super(),this.source=i}};function e5(t){return(am(t)?t.validators:t)||null}function FW(t){return Array.isArray(t)?Xg(t):t||null}function t5(t,i){return(am(i)?i.asyncValidators:t)||null}function BW(t){return Array.isArray(t)?Jg(t):t||null}function am(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Pw(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Ce(1e3,"");if(!n[e])throw new Ce(1001,"")}function Tw(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Ce(1002,"")})}var Ql=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return ir(this.statusReactive)}set status(i){ir(()=>this.statusReactive.set(i))}_status=Zr(()=>this.statusReactive());statusReactive=Hn(void 0);get valid(){return this.status===wd}get invalid(){return this.status===Yu}get pending(){return this.status==ql}get disabled(){return this.status===Dd}get enabled(){return this.status!==Dd}errors;get pristine(){return ir(this.pristineReactive)}set pristine(i){ir(()=>this.pristineReactive.set(i))}_pristine=Zr(()=>this.pristineReactive());pristineReactive=Hn(!0);get dirty(){return!this.pristine}get touched(){return ir(this.touchedReactive)}set touched(i){ir(()=>this.touchedReactive.set(i))}_touched=Zr(()=>this.touchedReactive());touchedReactive=Hn(!1);get untouched(){return!this.touched}_events=new N;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(lw(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(lw(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(dw(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(dw(i,this._rawAsyncValidators))}hasValidator(i){return Ku(this._rawValidators,i)}hasAsyncValidator(i){return Ku(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Ed(!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 Ed(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new kd(!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 kd(!0,n))}markAsPending(i={}){this.status=ql;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Yl(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Be(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Dd,this.errors=null,this._forEachChild(r=>{r.disable(Be(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Ju(this.value,n)),this._events.next(new Yl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=wd,this._forEachChild(n=>{n.enable(Be(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wd||this.status===ql)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Ju(this.value,e)),this._events.next(new Yl(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Be(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Dd:wd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=ql,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Mw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new Yl(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?Dd:this.errors?Yu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ql)?ql:this._anyControlsHaveStatus(Yu)?Yu:wd}_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 kd(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Ed(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){am(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=FW(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=BW(this._rawAsyncValidators)}},oc=class extends Ql{constructor(i,e,n){super(e5(e),t5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){Tw(this,!0,i),Object.keys(i).forEach(n=>{Pw(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,a)=>{n=e(n,r,a)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Aw=oc;var Yg=class extends oc{};var Kl=new A("",{providedIn:"root",factory:()=>om}),om="always";function sm(t,i){return[...i.path,t]}function Od(t,i,e=om){n5(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),UW(t,i),GW(t,i),$W(t,i),jW(t,i)}function nm(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),rm(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function im(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function jW(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function n5(t,i){let e=Ow(t);i.validator!==null?t.setValidators(cw(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Iw(t);i.asyncValidator!==null?t.setAsyncValidators(cw(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();im(i._rawValidators,r),im(i._rawAsyncValidators,r)}function rm(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=Ow(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.validator);a.length!==r.length&&(e=!0,t.setValidators(a))}}if(i.asyncValidator!==null){let r=Iw(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.asyncValidator);a.length!==r.length&&(e=!0,t.setAsyncValidators(a))}}}let n=()=>{};return im(i._rawValidators,n),im(i._rawAsyncValidators,n),e}function UW(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Vw(t,i)})}function $W(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Vw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Vw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function GW(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Lw(t,i){t==null,n5(t,i)}function WW(t,i){return rm(t,i)}function i5(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function qW(t){return Object.getPrototypeOf(t.constructor)===gw}function Rw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r5(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(a=>{a.constructor===ai?e=a:qW(a)?n=a:r=a}),r||n||e||null}function YW(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var QW={provide:ri,useExisting:wt(()=>Zl)},Sd=Promise.resolve(),Zl=(()=>{class t extends ri{callSetDisabledState;get submitted(){return ir(this.submittedReactive)}_submitted=Zr(()=>this.submittedReactive());submittedReactive=Hn(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new oc({},Xg(e),Jg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Sd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Od(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Sd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Sd.then(()=>{let n=this._findContainer(e.path),r=new oc({});Lw(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Sd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Sd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Rw(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new em(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 tm(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(oi,10),E(sc,10),E(Kl,8))};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([QW]),ce]})}return t})();function uw(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function mw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var ns=class extends Ql{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(e5(e),t5(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),am(e)&&(e.nonNullable||e.initialValueIsDefault)&&(mw(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){uw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){uw(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){mw(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},xi=ns,KW=t=>t instanceof ns,ZW=(()=>{class t extends ri{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return sm(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,standalone:!1,features:[ce]})}return t})();var XW={provide:Fn,useExisting:wt(()=>JW)},pw=Promise.resolve(),JW=(()=>{class t extends Fn{_changeDetectorRef;callSetDisabledState;control=new ns;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new j;constructor(e,n,r,a,o,s){super(),this._changeDetectorRef=o,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=r5(this,a)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i5(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Od(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){pw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&B(n);pw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?sm(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(E(ri,9),E(oi,10),E(sc,10),E(Qn,10),E(be,8),E(Kl,8))};static \u0275dir=V({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ue([XW]),ce,Pe]})}return t})();var rs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),eq={provide:Qn,useExisting:wt(()=>tq),multi:!0},tq=(()=>{class t extends gw{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[ue([eq]),ce]})}return t})();var a5=new A(""),nq={provide:Fn,useExisting:wt(()=>mi)},mi=(()=>{class t extends Fn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r5(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&nm(n,this,!1),Od(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i5(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&nm(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(oi,10),E(sc,10),E(Qn,10),E(a5,8),E(Kl,8))};static \u0275dir=V({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ue([nq]),ce,Pe]})}return t})(),iq={provide:ri,useExisting:wt(()=>Kn)},Kn=(()=>{class t extends ri{callSetDisabledState;get submitted(){return ir(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zr(()=>this._submittedReactive());_submittedReactive=Hn(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new j;constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(rm(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 Od(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){nm(e.control||null,e,!1),YW(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Rw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new em(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 tm(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(nm(n||null,e),KW(r)&&(Od(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Lw(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&WW(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){n5(this.form,this),this._oldForm&&rm(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(E(oi,10),E(sc,10),E(Kl,8))};static \u0275dir=V({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([iq]),ce,Pe]})}return t})(),rq={provide:ri,useExisting:wt(()=>zw)},zw=(()=>{class t extends ZW{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Nw(this._parent)}static \u0275fac=function(n){return new(n||t)(E(ri,13),E(oi,10),E(sc,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ue([rq]),ce]})}return t})(),aq={provide:ri,useExisting:wt(()=>Hw)},Hw=(()=>{class t extends ri{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Nw(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return sm(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(E(ri,13),E(oi,10),E(sc,10))};static \u0275dir=V({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ue([aq]),ce]})}return t})();function Nw(t){return!(t instanceof zw)&&!(t instanceof Kn)&&!(t instanceof Hw)}var oq={provide:Fn,useExisting:wt(()=>Cr)},Cr=(()=>{class t extends Fn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=r5(this,a)}ngOnChanges(e){this._added||this._setUpControl(),i5(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return sm(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(ri,13),E(oi,10),E(sc,10),E(Qn,10),E(a5,8))};static \u0275dir=V({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ue([oq]),ce,Pe]})}return t})();function Fw(t){return typeof t=="number"?t:parseInt(t,10)}function Bw(t){return typeof t=="number"?t:parseFloat(t)}var Id=(()=>{class t{_validator=Qu;_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):Qu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,features:[Pe]})}return t})(),sq={provide:oi,useExisting:wt(()=>cq),multi:!0},cq=(()=>{class t extends Id{max;inputName="max";normalizeInput=e=>Bw(e);createValidator=e=>vw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[ue([sq]),ce]})}return t})(),lq={provide:oi,useExisting:wt(()=>dq),multi:!0},dq=(()=>{class t extends Id{min;inputName="min";normalizeInput=e=>Bw(e);createValidator=e=>_w(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[ue([lq]),ce]})}return t})(),uq={provide:oi,useExisting:wt(()=>na),multi:!0};var na=(()=>{class t extends Id{required;inputName="required";normalizeInput=B;createValidator=e=>bw;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ee("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ue([uq]),ce]})}return t})();var mq={provide:oi,useExisting:wt(()=>pq),multi:!0},pq=(()=>{class t extends Id{minlength;inputName="minlength";normalizeInput=e=>Fw(e);createValidator=e=>yw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ue([mq]),ce]})}return t})(),fq={provide:oi,useExisting:wt(()=>hq),multi:!0},hq=(()=>{class t extends Id{maxlength;inputName="maxlength";normalizeInput=e=>Fw(e);createValidator=e=>Cw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ue([fq]),ce]})}return t})();var jw=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})(),Qg=class extends Ql{constructor(i,e,n){super(e5(e),t5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){Tw(this,!1,i),i.forEach((n,r)=>{Pw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function fw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var gq=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),a={};return fw(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new oc(r,a)}record(e,n=null){let r=this._reduceControls(e);return new Yg(r,n)}control(e,n,r){let a={};return this.useNonNullable?(fw(n)?a=n:(a.validators=n,a.asyncValidators=r),new ns(e,Be(q({},a),{nonNullable:!0}))):new ns(e,n,r)}array(e,n,r){let a=e.map(o=>this._createControl(o));return new Qg(a,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof ns)return e;if(e instanceof Ql)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(n,r,a)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var as=(()=>{class t extends gq{group(e,n=null){return super.group(e,n)}control(e,n,r){return super.control(e,n,r)}array(e,n,r){return super.array(e,n,r)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Uw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Kl,useValue:e.callSetDisabledState??om}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[jw]})}return t})(),_e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a5,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Kl,useValue:e.callSetDisabledState??om}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[jw]})}return t})();var $w=(()=>{class t{set _(e){let n=e.split(":");this.currencyCode=n[0],this.displaySymbol=n.length>1?n[1]:"$",this.digitsInfo=n.length>2?n[2]:"1.2-2"}blur(e){e.value=this.parse(e.value)}focus(e){typeof this.control.value>"u"?e.value="":e.value=this.control.value}ngOnInit(){setTimeout(()=>{this.el.nativeElement.value=this.parse(this.el.nativeElement.value)})}constructor(e,n,r){this.locale=e,this.el=n,this.control=r,this.format="N0",this.digitsInfo="1.0-0",this.sufix=""}parse(e){return e==""?""+this.sufix:Mu(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)(E(Oa),E(Y),E(Fn))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,r){n&1&&z("blur",function(o){return r.blur(o.target)})("focus",function(o){return r.focus(o.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var y6e=(()=>{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(Fn),E(Y))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,r){n&1&&z("focus",function(){return r.onFocus()})}})}}return t})();var Gw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({imports:[fe]})}}return t})();var Rr=class{constructor(i={}){this.controlType=i.controlType||"",this.controlName=i.controlName||"",this.label=i.label||"",this.value=i.value===void 0?"":i.value,this.required=!!i.required,this.order=i.order===void 0?1:i.order,this.validators=i.validators===void 0?[]:i.validators,this.min=i.min===void 0?null:i.min,this.max=i.max===void 0?null:i.max}};function Co(t){return t.buttons===0||t.detail===0}function xo(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var o5;function Ww(){if(o5==null){let t=typeof document<"u"?document.head:null;o5=!!(t&&(t.createShadowRoot||t.attachShadow))}return o5}function cc(t){if(Ww()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Ri(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function In(t){return t.composedPath?t.composedPath()[0]:t.target}function Dt(t,i,e,n,r){let a=parseInt(rg.major),o=parseInt(rg.minor);return a>19||a===19&&o>0||a===0&&o===0?t.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)})}var s5;try{s5=typeof Intl<"u"&&Intl.v8BreakIterator}catch{s5=!1}var He=(()=>{class t{_platformId=u(qo);isBrowser=this._platformId?xg(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||s5)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pd;function qw(){if(Pd==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Pd=!0}))}finally{Pd=Pd||!1}return Pd}function os(t){return qw()?t:!!t.capture}function sn(t,i=0){return cm(t)?Number(t):arguments.length===2?i:0}function cm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Cn(t){return t instanceof Y?t.nativeElement:t}var Yw=new A("cdk-input-modality-detector-options"),Qw={ignoreKeys:[18,17,224,91,16]},Kw=650,c5={passive:!0,capture:!0},Zw=(()=>{class t{_platform=u(He);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Je(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=In(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(xo(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=In(e)};constructor(){let e=u(se),n=u(De),r=u(Yw,{optional:!0});if(this._options=q(q({},Qw),r),this.modalityDetected=this._modality.pipe(zs(1)),this.modalityChanged=this.modalityDetected.pipe(ll()),this._platform.isBrowser){let a=u(En).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[Dt(a,n,"keydown",this._onKeydown,c5),Dt(a,n,"mousedown",this._onMousedown,c5),Dt(a,n,"touchstart",this._onTouchstart,c5)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Td=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Td||{}),Xw=new A("cdk-focus-monitor-default-options"),lm=os({passive:!0,capture:!0}),qt=(()=>{class t{_ngZone=u(se);_platform=u(He);_inputModalityDetector=u(Zw);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=u(De,{optional:!0});_stopInputModalityDetector=new N;constructor(){let e=u(Xw,{optional:!0});this._detectionMode=e?.detectionMode||Td.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=In(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,n=!1){let r=Cn(e);if(!this._platform.isBrowser||r.nodeType!==1)return ie();let a=cc(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return n&&(o.checkChildren=!0),o.subject;let s={checkChildren:n,subject:new N,rootNode:a};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Cn(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let a=Cn(e),o=this._getDocument().activeElement;a===o?this._getClosestElementsInfo(a).forEach(([s,d])=>this._originChanged(s,n,d)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Td.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===Td.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Kw:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),a=In(e);!r||!r.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,lm),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,lm)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ve(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,lm),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,lm),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&n.push([a,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let o=0;o{class t{_elementRef=u(Y);_focusMonitor=u(qt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var dm=new WeakMap,Ze=(()=>{class t{_appRef;_injector=u(Te);_environmentInjector=u(fn);load(e){let n=this._appRef=this._appRef||this._injector.get(bi),r=dm.get(n);r||(r={loaders:new Set,refs:[]},dm.set(n,r),n.onDestroy(()=>{dm.get(n)?.refs.forEach(a=>a.destroy()),dm.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(cu(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ar=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} `],encapsulation:2,changeDetection:0})}return t})();function ss(t){return Array.isArray(t)?t:[t]}var Jw=new Set,lc,tD=(()=>{class t{_platform=u(He);_nonce=u(j1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&_q(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _q(t,i){if(!Jw.has(t))try{lc||(lc=document.createElement("style"),i&&lc.setAttribute("nonce",i),lc.setAttribute("type","text/css"),document.head.appendChild(lc)),lc.sheet&&(lc.sheet.insertRule(`@media ${t} {body{ }}`,0),Jw.add(t))}catch(e){console.error(e)}}function vq(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var dc=(()=>{class t{_mediaMatcher=u(tD);_zone=u(se);_queries=new Map;_destroySubject=new N;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return eD(ss(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=eD(ss(e)).map(o=>this._registerQuery(o).observable),a=ni(r);return a=gi(a.pipe(Le(1)),a.pipe(zs(1),$r(0))),a.pipe(me(o=>{let s={matches:!1,breakpoints:{}};return o.forEach(({matches:d,query:h})=>{s.matches=s.matches||d,s.breakpoints[h]=d}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),a={observable:new Ue(o=>{let s=d=>this._zone.run(()=>o.next(d));return n.addListener(s),()=>{n.removeListener(s)}}).pipe($e(n),me(({matches:o})=>({query:e,matches:o})),ve(this._destroySubject)),mql:n};return this._queries.set(e,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eD(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function bq(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iD=(()=>{class t{_mutationObserverFactory=u(nD);_observedElements=new Map;_ngZone=u(se);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Cn(e);return new Ue(r=>{let o=this._observeElement(n).pipe(me(s=>s.filter(d=>!bq(d))),Ve(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{o.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new N,r=this._mutationObserverFactory.create(a=>n.next(a));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vd=(()=>{class t{_contentObserver=u(iD);_elementRef=u(Y);event=new j;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=sn(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe($r(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",B],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Xl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({providers:[nD]})}return t})();var ls=(()=>{class t{_platform=u(He);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Cq(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=yq(Oq(e));if(n&&(rD(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),a=rD(e);return e.hasAttribute("contenteditable")?a!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!kq(e)?!1:r==="audio"?e.hasAttribute("controls")?a!==-1:!1:r==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return Eq(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yq(t){try{return t.frameElement}catch{return null}}function Cq(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function xq(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function Mq(t){return Dq(t)&&t.type=="hidden"}function wq(t){return Sq(t)&&t.hasAttribute("href")}function Dq(t){return t.nodeName.toLowerCase()=="input"}function Sq(t){return t.nodeName.toLowerCase()=="a"}function sD(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function rD(t){if(!sD(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function kq(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function Eq(t){return Mq(t)?!1:xq(t)||wq(t)||t.hasAttribute("contenteditable")||sD(t)}function Oq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var um=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,r,a=!1,o){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._injector=o,a||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?kt(i,{injector:this._injector}):setTimeout(i)}},Jl=(()=>{class t{_checker=u(ls);_ngZone=u(se);_document=u(De);_injector=u(Te);constructor(){u(Ze).load(ar)}create(e,n=!1){return new um(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),d5=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(Jl);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(He).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Ri(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",B],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",B]},exportAs:["cdkTrapFocus"],features:[Pe]})}return t})(),cD=new A("liveAnnouncerElement",{providedIn:"root",factory:lD});function lD(){return null}var dD=new A("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Iq=0,Ld=(()=>{class t{_ngZone=u(se);_defaultOptions=u(dD,{optional:!0});_liveElement;_document=u(De);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(cD,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let r=this._defaultOptions,a,o;return n.length===1&&typeof n[0]=="number"?o=n[0]:[a,o]=n,this.clear(),clearTimeout(this._previousTimeout),a||(a=r&&r.politeness?r.politeness:"polite"),o==null&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof o=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(He);_hasCheckedHighContrastMode;_document=u(De);_breakpointSubscription;constructor(){this._breakpointSubscription=u(dc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return cs.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 cs.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return cs.BLACK_ON_WHITE}return cs.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(l5,aD,oD),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===cs.BLACK_ON_WHITE?e.add(l5,aD):n===cs.WHITE_ON_BLACK&&e.add(l5,oD)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mo=(()=>{class t{constructor(){u(mm)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[Xl]})}return t})();var u5={},Fe=(()=>{class t{_appId=u(ec);getId(e){return this._appId!=="ng"&&(e+=this._appId),u5.hasOwnProperty(e)||(u5[e]=0),`${e}${u5[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pq=200,e2=class{_letterKeyStream=new N;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new N;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:Pq;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Mt(e=>this._pressedLetters.push(e)),$r(i),Ve(()=>this._pressedLetters.length>0),me(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;nt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var t2=class{_items;_activeItemIndex=-1;_activeItem=Hn(null);_wrap=!1;_typeaheadSubscription=Me.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof kn?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):Wo(i)&&(this._effectRef=X1(()=>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 e2(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 uc=class extends t2{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var aa=class extends t2{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function mc(t){return Wn(t)?t:ie(t)}var m5=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=i=>!1;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=Me.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let i=0;for(let n=0;n{this._items=n.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):Wn(i)?i.subscribe(n=>{this._items=n,this._typeahead?.setItems(n),this._updateActiveItemIndex(n),this._initializeFocus()}):(this._items=i,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new N;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(i){switch(i.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(i.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(i,e={}){e.emitChangeEvent??=!0;let n=typeof i=="number"?i:this._items.findIndex(o=>this._trackByFn(o)===this._trackByFn(i));if(n<0||n>=this._items.length)return;let r=this._items[n];if(this._activeItem!==null&&this._trackByFn(r)===this._trackByFn(this._activeItem))return;let a=this._activeItem;this._activeItem=r??null,this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n),this._activeItem?.focus(),a?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(i){let e=this._activeItem;if(!e)return;let n=i.findIndex(r=>this._trackByFn(r)===this._trackByFn(e));n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}_setTypeAhead(i){this._typeahead=new e2(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()?mc(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=mc(i.getChildren()):e=ie(this._items.filter(n=>n.getParent()===null)),e.pipe(Le(1)).subscribe(n=>{for(let r of n)r.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function Tq(){return(t,i)=>new m5(t,i)}var pD=new A("tree-key-manager",{providedIn:"root",factory:Tq});var hD=" ";function n2(t,i,e){let n=gm(t,i);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(hD)))}function ds(t,i,e){let n=gm(t,i);e=e.trim();let r=n.filter(a=>a!==e);r.length?t.setAttribute(i,r.join(hD)):t.removeAttribute(i)}function gm(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var gD="cdk-describedby-message",hm="cdk-describedby-host",f5=0,i2=(()=>{class t{_platform=u(He);_document=u(De);_messageRegistry=new Map;_messagesContainer=null;_id=`${f5++}`;constructor(){u(Ze).load(ar),this._id=u(ec)+"-"+f5++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;let a=p5(n,r);typeof n!="string"?(fD(n,this._id),this._messageRegistry.set(a,{messageElement:n,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,a)||this._addMessageReference(e,a)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;let a=p5(n,r);if(this._isElementDescribedByMessage(e,a)&&this._removeMessageReference(e,a),typeof n=="string"){let o=this._messageRegistry.get(a);o&&o.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${hm}="${this._id}"]`);for(let n=0;nr.indexOf(gD)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let r=this._messageRegistry.get(n);n2(e,"aria-describedby",r.messageElement.id),e.setAttribute(hm,this._id),r.referenceCount++}_removeMessageReference(e,n){let r=this._messageRegistry.get(n);r.referenceCount--,ds(e,"aria-describedby",r.messageElement.id),e.removeAttribute(hm)}_isElementDescribedByMessage(e,n){let r=gm(e,"aria-describedby"),a=this._messageRegistry.get(n),o=a&&a.messageElement.id;return!!o&&r.indexOf(o)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let r=n==null?"":`${n}`.trim(),a=e.getAttribute("aria-label");return r?!a||a.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function p5(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function fD(t,i){t.id||(t.id=`${gD}-${i}-${f5++}`)}var Aq=["mat-internal-form-field",""],Vq=["*"],r2=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){n&2&&te("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:Aq,ngContentSelectors:Vq,decls:1,vars:0,template:function(n,r){n&1&&(xe(),re(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} `],encapsulation:2,changeDetection:0})}return t})();var Yt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} `],encapsulation:2,changeDetection:0})}return t})();var oa=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(oa||{}),_m,pc;function vm(){if(pc==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return pc=!1,pc;if("scrollBehavior"in document.documentElement.style)pc=!0;else{let t=Element.prototype.scrollTo;t?pc=!/\{\s*\[native code\]\s*\}/.test(t.toString()):pc=!1}}return pc}function a2(){if(typeof document!="object"||!document)return oa.NORMAL;if(_m==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),_m=oa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,_m=t.scrollLeft===0?oa.NEGATED:oa.INVERTED),t.remove()}return _m}function h5(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var o2,_D=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function g5(){if(o2)return o2;if(typeof document!="object"||!document)return o2=new Set(_D),o2;let t=document.createElement("input");return o2=new Set(_D.filter(i=>(t.setAttribute("type",i),t.type===i))),o2}function en(t){return t!=null&&`${t}`!="false"}function Rn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function vD(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let r of n){let a=`${r}`.trim();a&&e.push(a)}}return e}var zr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(zr||{}),_5=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=zr.HIDDEN;constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},bD=os({passive:!0,capture:!0}),v5=class{_events=new Map;addHandler(i,e,n,r){let a=this._events.get(e);if(a){let o=a.get(n);o?o.add(r):a.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,bD)})}removeHandler(i,e,n){let r=this._events.get(i);if(!r)return;let a=r.get(e);a&&(a.delete(n),a.size===0&&r.delete(e),r.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,bD)))}_delegateEventHandler=i=>{let e=In(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(a=>a.handleEvent(i))})}},Hd={enterDuration:225,exitDuration:150},Lq=800,yD=os({passive:!0,capture:!0}),CD=["mousedown","touchstart"],xD=["mouseup","mouseleave","touchend","touchcancel"],Rq=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} diff --git a/browser/chunk-K5WRCHK2.js b/browser/chunk-TO6SHLEP.js similarity index 99% rename from browser/chunk-K5WRCHK2.js rename to browser/chunk-TO6SHLEP.js index 2fa8e7754..c9b321f62 100644 --- a/browser/chunk-K5WRCHK2.js +++ b/browser/chunk-TO6SHLEP.js @@ -1 +1 @@ -import{Cc as f,Fb as r,G as o,Ib as u,J as p,Jc as c}from"./chunk-JAKZ4STC.js";import{a as g,b as d}from"./chunk-PHUH23IY.js";var E=(()=>{class a{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||a)(p(f))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac})}}return a})();var T=(()=>{class a{static{this.LOAN_SCHEDULE_TYPE_CUMULATIVE="CUMULATIVE"}static{this.LOAN_SCHEDULE_TYPE_PROGRESSIVE="PROGRESSIVE"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL="HORIZONTAL"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_VERTICAL="VERTICAL"}static{this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY="advanced-payment-allocation-strategy"}static{this.DAYS_BEFORE_REPAYMENT_IS_DUE="days-before-repayment-is-due"}static{this.DAYS_AFTER_REPAYMENT_IS_OVERDUE="days-after-repayment-is-overdue"}static isAdvancedPaymentAllocationStrategy(t){return t===this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY}constructor(t){this.settingsService=t,this.globalConfigurations=[a.DAYS_BEFORE_REPAYMENT_IS_DUE,a.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(s=>{this.globalConfigurations.includes(s.name)&&e.push(s)}),e}updateLoanProductDefaults(t,e){return t.itemsByDefault.forEach(n=>{let i=this.resolvePropertyName(n.name);i!==""&&(e?(!t[i]||t[i]==="")&&(t[i]=n.value):t[i]=n.value)}),t}buildPayload(t,e){let s=this.settingsService.dateFormat,n=this.settingsService.language.code,i=d(g({},t),{charges:t.charges.map(h=>({id:h.id})),dateFormat:s,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(h=>{let l=this.resolvePropertyName(h.name);l!==""&&(!i[l]||i[l]==="")&&(i[l]=h.value)}),i}isItemByDefault(t){return this.propertyNames.includes(t)}isGlobalConfigurations(t){return this.globalConfigurations.includes(t)}resolvePropertyName(t){if(this.globalConfigurations.includes(t)){let e=this.globalConfigurations.indexOf(t);if(e>-1)return this.propertyNames[e]}return""}static{this.\u0275fac=function(e){return new(e||a)(p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var b=(()=>{class a{constructor(t){this.http=t,this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers/active-transfer`,{params:e})}retrieveExternalAssetOwnerTransferJournalEntries(t){return this.http.get(`${this.basePath}/transfers/${t}/journal-entries`)}searchExternalAssetOwnerTransfer(t){return this.http.post(`${this.basePath}/search`,t)}static{this.\u0275fac=function(e){return new(e||a)(p(u))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var F=(()=>{class a{constructor(t,e){this.http=t,this.settingsService=e}getProvisioningCriterias(){return this.http.get("/provisioningcriteria")}getProvisioningCriteriaTemplate(){return this.http.get("/provisioningcriteria/template")}getProvisioningCriteria(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:s})}createProvisioningCriteria(t){return this.http.post("/provisioningcriteria",t)}updateProvisioningCriteria(t,e){return this.http.put(`/provisioningcriteria/${t}`,e)}deleteProvisioningCriteria(t){return this.http.delete(`/provisioningcriteria/${t}`)}getOffices(){return this.http.get("/offices")}getOfficeTemplate(t){let e=new r().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let s=new r().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:s})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:s})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new r().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let s=new r().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:s})}addOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,s,{params:n})}editOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,s,{params:n})}deleteDatatableContent(t,e){let s=new r().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:s})}getEmployees(){let t=new r().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let s=new r().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:s})}getCurrencies(){return this.http.get("/currencies")}updateCurrencies(t){return this.http.put("/currencies",{currencies:t})}getSmsCampaigns(){return this.http.get("/smscampaigns")}getSmsCampaign(t){return this.http.get(`/smscampaigns/${t}`)}createSmsCampaign(t){return this.http.post("/smscampaigns",t)}updateSmsCampaign(t,e){return this.http.put(`/smscampaigns/${e}`,t)}deleteSmsCampaign(t){return this.http.delete(`/smscampaigns/${t}`)}getSmsCampaignTemplate(){return this.http.get("/smscampaigns/template")}executeSmsCampaignCommand(t,e,s){let n=new r().set("command",s.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new r().set("status",t.status.toString()).set("locale",t.locale).set("dateFormat",t.dateFormat);return e=t.fromDate?e.set("fromDate",t.fromDate):e,e=t.toDate?e.set("toDate",t.toDate):e,this.http.get(`/sms/${t.id}/messageByStatus`,{params:e})}getAdhocQueries(){return this.http.get("/adhocquery")}getAdhocQuery(t){return this.http.get(`/adhocquery/${t}`)}getAdhocQueryTemplate(){return this.http.get("/adhocquery/template")}getAdhocQueryAndTemplate(t){let e=new r().set("template","true");return this.http.get(`/adhocquery/${t}`,{params:e})}createAdhocQuery(t){return this.http.post("/adhocquery",t)}updateAdhocQuery(t,e){return this.http.put(`/adhocquery/${t}`,e)}deleteAdhocQuery(t){return this.http.delete(`/adhocquery/${t}`)}getTellers(){return this.http.get("/tellers")}getTeller(t){return this.http.get(`/tellers/${t}`)}getCashiers(t){return this.http.get(`/tellers/${t}/cashiers`)}getCashier(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}`)}getCashierSummaryAndTransactions(t,e,s){let n=new r().set("currencyCode",s);return this.http.get(`/tellers/${t}/cashiers/${e}/summaryandtransactions`,{params:n})}getCashierTransactionTemplate(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}/transactions/template`)}createCashier(t,e){return this.http.post(`/tellers/${t}/cashiers`,e)}deleteCashier(t,e){return this.http.delete(`/tellers/${t}/cashiers/${e}`)}settleCash(t,e,s){let n=new r().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,s,{params:n})}allocateCash(t,e,s){let n=new r().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,s,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,s){return this.http.put(`/tellers/${t}/cashiers/${e}`,s)}deleteTeller(t){return this.http.delete(`/tellers/${t}`)}createTeller(t){return this.http.post("/tellers",t)}getPaymentTypes(){return this.http.get("/paymenttypes")}getPaymentTypesWithCode(){return this.http.get("/paymenttypes?onlyWithCode=true")}createPaymentType(t){return this.http.post("/paymenttypes",t)}deletePaymentType(t){return this.http.delete(`/paymenttypes/${t}`)}getPaymentType(t){return this.http.get(`/paymenttypes/${t}`)}updatePaymentType(t,e){return this.http.put(`/paymenttypes/${t}`,e)}getPasswordPreferencesTemplate(){return this.http.get("/passwordpreferences/template")}updatePasswordPreferences(t){return this.http.put("/passwordpreferences",t)}getEntityDataTableChecks(t=0,e=-1){let s=new r().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:s})}getEntityDataTableChecksTemplate(){return this.http.get("/entityDatatableChecks/template")}createEntityDataTableChecks(t){return this.http.post("/entityDatatableChecks",t)}deleteEntityDataTableCheck(t){return this.http.delete(`/entityDatatableChecks/${t}`)}getWorkingDays(){return this.http.get("/workingdays")}updateWorkingDays(t){return this.http.put("/workingdays",t)}getHolidays(t){let e=new r().set("officeId",t.toString());return this.http.get("/holidays",{params:e})}getHoliday(t){return this.http.get(`/holidays/${t}`)}getHolidayTemplate(){return this.http.get("/holidays/template")}createHoliday(t){return this.http.post("/holidays",t)}updateHoliday(t,e){return this.http.put(`/holidays/${t}`,e)}deleteHoliday(t){return this.http.delete(`/holidays/${t}`)}activateHoliday(t){let e=new r().set("command","activate");return this.http.post(`/holidays/${t}`,null,{params:e})}updateEmployee(t,e){return this.http.put(`/staff/${t}`,e)}updateTeller(t,e){return this.http.put(`/tellers/${t}`,e)}getFunds(){return this.http.get("/funds")}getFund(t){return this.http.get(`/funds/${t}`)}createFund(t){return this.http.post("/funds",t)}editFund(t,e){return this.http.put(`/funds/${t}`,e)}getStaffs(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new r().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new r().set("entityType",t);return this.http.get("/imports",{params:e})}getAdvanceSearchTemplate(){return this.http.get("/search/template")}retrieveAdvanceSearchResults(t){return this.http.post("/search/advance",t)}getStandingInstructionTemplate(){return this.http.get("/standinginstructions/template")}getStandingInstructions(t){let e=new r;for(let s in t)t[s]!==""&&t[s]!==null&&(e=e.set(s,t[s]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,s,n){let i=new r().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),s&&(i=i.set("staffId",s.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new r().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,s){let n=new r;s.length&&(n=n.set("legalFormType",s));let i=new FormData;return i.append("file",t),i.append("locale",this.settingsService.language.code),i.append("dateFormat",this.settingsService.dateFormat),this.http.post(`${e}/uploadtemplate`,i,{params:n})}static{this.\u0275fac=function(e){return new(e||a)(p(u),p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var k=(()=>{class a{constructor(){this.defaultDate="9999-12-31"}validateStatus(t,e){return t!=null?t.status===e:!1}itemCurrentStatus(t){return this.isBuyBackPending(t)?t.status+" PENDING":t.status}itemStatus(t){return"status-"+t.toLowerCase()}isPending(t){return t.status==="PENDING"}isPendingOrCanceled(t){return t.status==="PENDING"||t.status==="CANCELLED"||this.isBuyBackPending(t)}isBuyBackPending(t){return t.status==="BUYBACK"&&t.effectiveTo===this.defaultDate}canBeCancelled(t){return this.validateStatus(t,"PENDING")}canBeSold(t){return t==null?!0:["","CANCELLED"].includes(t.status)||t.status==="BUYBACK"&&t.effectiveTo!==this.defaultDate}canBeBuyed(t){return this.validateStatus(t,"ACTIVE")}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{E as a,T as b,b as c,F as d,k as e}; +import{Cc as f,Fb as r,G as o,Ib as u,J as p,Jc as c}from"./chunk-QRALQUVB.js";import{a as g,b as d}from"./chunk-PHUH23IY.js";var E=(()=>{class a{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||a)(p(f))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac})}}return a})();var T=(()=>{class a{static{this.LOAN_SCHEDULE_TYPE_CUMULATIVE="CUMULATIVE"}static{this.LOAN_SCHEDULE_TYPE_PROGRESSIVE="PROGRESSIVE"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL="HORIZONTAL"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_VERTICAL="VERTICAL"}static{this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY="advanced-payment-allocation-strategy"}static{this.DAYS_BEFORE_REPAYMENT_IS_DUE="days-before-repayment-is-due"}static{this.DAYS_AFTER_REPAYMENT_IS_OVERDUE="days-after-repayment-is-overdue"}static isAdvancedPaymentAllocationStrategy(t){return t===this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY}constructor(t){this.settingsService=t,this.globalConfigurations=[a.DAYS_BEFORE_REPAYMENT_IS_DUE,a.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(s=>{this.globalConfigurations.includes(s.name)&&e.push(s)}),e}updateLoanProductDefaults(t,e){return t.itemsByDefault.forEach(n=>{let i=this.resolvePropertyName(n.name);i!==""&&(e?(!t[i]||t[i]==="")&&(t[i]=n.value):t[i]=n.value)}),t}buildPayload(t,e){let s=this.settingsService.dateFormat,n=this.settingsService.language.code,i=d(g({},t),{charges:t.charges.map(h=>({id:h.id})),dateFormat:s,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(h=>{let l=this.resolvePropertyName(h.name);l!==""&&(!i[l]||i[l]==="")&&(i[l]=h.value)}),i}isItemByDefault(t){return this.propertyNames.includes(t)}isGlobalConfigurations(t){return this.globalConfigurations.includes(t)}resolvePropertyName(t){if(this.globalConfigurations.includes(t)){let e=this.globalConfigurations.indexOf(t);if(e>-1)return this.propertyNames[e]}return""}static{this.\u0275fac=function(e){return new(e||a)(p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var b=(()=>{class a{constructor(t){this.http=t,this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers/active-transfer`,{params:e})}retrieveExternalAssetOwnerTransferJournalEntries(t){return this.http.get(`${this.basePath}/transfers/${t}/journal-entries`)}searchExternalAssetOwnerTransfer(t){return this.http.post(`${this.basePath}/search`,t)}static{this.\u0275fac=function(e){return new(e||a)(p(u))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var F=(()=>{class a{constructor(t,e){this.http=t,this.settingsService=e}getProvisioningCriterias(){return this.http.get("/provisioningcriteria")}getProvisioningCriteriaTemplate(){return this.http.get("/provisioningcriteria/template")}getProvisioningCriteria(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:s})}createProvisioningCriteria(t){return this.http.post("/provisioningcriteria",t)}updateProvisioningCriteria(t,e){return this.http.put(`/provisioningcriteria/${t}`,e)}deleteProvisioningCriteria(t){return this.http.delete(`/provisioningcriteria/${t}`)}getOffices(){return this.http.get("/offices")}getOfficeTemplate(t){let e=new r().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let s=new r().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:s})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:s})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new r().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let s=new r().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:s})}addOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,s,{params:n})}editOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,s,{params:n})}deleteDatatableContent(t,e){let s=new r().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:s})}getEmployees(){let t=new r().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let s=new r().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:s})}getCurrencies(){return this.http.get("/currencies")}updateCurrencies(t){return this.http.put("/currencies",{currencies:t})}getSmsCampaigns(){return this.http.get("/smscampaigns")}getSmsCampaign(t){return this.http.get(`/smscampaigns/${t}`)}createSmsCampaign(t){return this.http.post("/smscampaigns",t)}updateSmsCampaign(t,e){return this.http.put(`/smscampaigns/${e}`,t)}deleteSmsCampaign(t){return this.http.delete(`/smscampaigns/${t}`)}getSmsCampaignTemplate(){return this.http.get("/smscampaigns/template")}executeSmsCampaignCommand(t,e,s){let n=new r().set("command",s.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new r().set("status",t.status.toString()).set("locale",t.locale).set("dateFormat",t.dateFormat);return e=t.fromDate?e.set("fromDate",t.fromDate):e,e=t.toDate?e.set("toDate",t.toDate):e,this.http.get(`/sms/${t.id}/messageByStatus`,{params:e})}getAdhocQueries(){return this.http.get("/adhocquery")}getAdhocQuery(t){return this.http.get(`/adhocquery/${t}`)}getAdhocQueryTemplate(){return this.http.get("/adhocquery/template")}getAdhocQueryAndTemplate(t){let e=new r().set("template","true");return this.http.get(`/adhocquery/${t}`,{params:e})}createAdhocQuery(t){return this.http.post("/adhocquery",t)}updateAdhocQuery(t,e){return this.http.put(`/adhocquery/${t}`,e)}deleteAdhocQuery(t){return this.http.delete(`/adhocquery/${t}`)}getTellers(){return this.http.get("/tellers")}getTeller(t){return this.http.get(`/tellers/${t}`)}getCashiers(t){return this.http.get(`/tellers/${t}/cashiers`)}getCashier(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}`)}getCashierSummaryAndTransactions(t,e,s){let n=new r().set("currencyCode",s);return this.http.get(`/tellers/${t}/cashiers/${e}/summaryandtransactions`,{params:n})}getCashierTransactionTemplate(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}/transactions/template`)}createCashier(t,e){return this.http.post(`/tellers/${t}/cashiers`,e)}deleteCashier(t,e){return this.http.delete(`/tellers/${t}/cashiers/${e}`)}settleCash(t,e,s){let n=new r().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,s,{params:n})}allocateCash(t,e,s){let n=new r().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,s,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,s){return this.http.put(`/tellers/${t}/cashiers/${e}`,s)}deleteTeller(t){return this.http.delete(`/tellers/${t}`)}createTeller(t){return this.http.post("/tellers",t)}getPaymentTypes(){return this.http.get("/paymenttypes")}getPaymentTypesWithCode(){return this.http.get("/paymenttypes?onlyWithCode=true")}createPaymentType(t){return this.http.post("/paymenttypes",t)}deletePaymentType(t){return this.http.delete(`/paymenttypes/${t}`)}getPaymentType(t){return this.http.get(`/paymenttypes/${t}`)}updatePaymentType(t,e){return this.http.put(`/paymenttypes/${t}`,e)}getPasswordPreferencesTemplate(){return this.http.get("/passwordpreferences/template")}updatePasswordPreferences(t){return this.http.put("/passwordpreferences",t)}getEntityDataTableChecks(t=0,e=-1){let s=new r().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:s})}getEntityDataTableChecksTemplate(){return this.http.get("/entityDatatableChecks/template")}createEntityDataTableChecks(t){return this.http.post("/entityDatatableChecks",t)}deleteEntityDataTableCheck(t){return this.http.delete(`/entityDatatableChecks/${t}`)}getWorkingDays(){return this.http.get("/workingdays")}updateWorkingDays(t){return this.http.put("/workingdays",t)}getHolidays(t){let e=new r().set("officeId",t.toString());return this.http.get("/holidays",{params:e})}getHoliday(t){return this.http.get(`/holidays/${t}`)}getHolidayTemplate(){return this.http.get("/holidays/template")}createHoliday(t){return this.http.post("/holidays",t)}updateHoliday(t,e){return this.http.put(`/holidays/${t}`,e)}deleteHoliday(t){return this.http.delete(`/holidays/${t}`)}activateHoliday(t){let e=new r().set("command","activate");return this.http.post(`/holidays/${t}`,null,{params:e})}updateEmployee(t,e){return this.http.put(`/staff/${t}`,e)}updateTeller(t,e){return this.http.put(`/tellers/${t}`,e)}getFunds(){return this.http.get("/funds")}getFund(t){return this.http.get(`/funds/${t}`)}createFund(t){return this.http.post("/funds",t)}editFund(t,e){return this.http.put(`/funds/${t}`,e)}getStaffs(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new r().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new r().set("entityType",t);return this.http.get("/imports",{params:e})}getAdvanceSearchTemplate(){return this.http.get("/search/template")}retrieveAdvanceSearchResults(t){return this.http.post("/search/advance",t)}getStandingInstructionTemplate(){return this.http.get("/standinginstructions/template")}getStandingInstructions(t){let e=new r;for(let s in t)t[s]!==""&&t[s]!==null&&(e=e.set(s,t[s]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,s,n){let i=new r().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),s&&(i=i.set("staffId",s.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new r().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,s){let n=new r;s.length&&(n=n.set("legalFormType",s));let i=new FormData;return i.append("file",t),i.append("locale",this.settingsService.language.code),i.append("dateFormat",this.settingsService.dateFormat),this.http.post(`${e}/uploadtemplate`,i,{params:n})}static{this.\u0275fac=function(e){return new(e||a)(p(u),p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var k=(()=>{class a{constructor(){this.defaultDate="9999-12-31"}validateStatus(t,e){return t!=null?t.status===e:!1}itemCurrentStatus(t){return this.isBuyBackPending(t)?t.status+" PENDING":t.status}itemStatus(t){return"status-"+t.toLowerCase()}isPending(t){return t.status==="PENDING"}isPendingOrCanceled(t){return t.status==="PENDING"||t.status==="CANCELLED"||this.isBuyBackPending(t)}isBuyBackPending(t){return t.status==="BUYBACK"&&t.effectiveTo===this.defaultDate}canBeCancelled(t){return this.validateStatus(t,"PENDING")}canBeSold(t){return t==null?!0:["","CANCELLED"].includes(t.status)||t.status==="BUYBACK"&&t.effectiveTo!==this.defaultDate}canBeBuyed(t){return this.validateStatus(t,"ACTIVE")}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{E as a,T as b,b as c,F as d,k as e}; diff --git a/browser/chunk-DF5NHKR4.js b/browser/chunk-VCV3Q6QU.js similarity index 97% rename from browser/chunk-DF5NHKR4.js rename to browser/chunk-VCV3Q6QU.js index 5b599b525..89ab904f5 100644 --- a/browser/chunk-DF5NHKR4.js +++ b/browser/chunk-VCV3Q6QU.js @@ -1 +1 @@ -import{Fb as c,G as i,Ib as d,J as p,Wf as n,k as u}from"./chunk-JAKZ4STC.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-QRALQUVB.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/collaterals.module-IY4Y2XYM.js b/browser/collaterals.module-IJ26RR63.js similarity index 99% rename from browser/collaterals.module-IY4Y2XYM.js rename to browser/collaterals.module-IJ26RR63.js index 80c54be71..ae568c797 100644 --- a/browser/collaterals.module-IY4Y2XYM.js +++ b/browser/collaterals.module-IJ26RR63.js @@ -1,4 +1,4 @@ -import{$c as rt,$e as gt,Aa as T,Ba as K,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,bg as Tt,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,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,wg as Bt,xa as I,xd as ut,za as J,zd as Ct}from"./chunk-JAKZ4STC.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,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,bg as Tt,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,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,wg as Bt,xa as I,xd as ut,za as J,zd as Ct}from"./chunk-QRALQUVB.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-QWAQTFGX.js b/browser/fixed-deposits.module-747ILHNJ.js similarity index 99% rename from browser/fixed-deposits.module-QWAQTFGX.js rename to browser/fixed-deposits.module-747ILHNJ.js index d11c1ed5c..b08bccd33 100644 --- a/browser/fixed-deposits.module-QWAQTFGX.js +++ b/browser/fixed-deposits.module-747ILHNJ.js @@ -1,4 +1,4 @@ -import{a as di}from"./chunk-NKNH55Z3.js";import{a as Fn,b as wn}from"./chunk-QASQQR43.js";import{a as mi}from"./chunk-EYEHKXQV.js";import{$b as zn,$c as pt,$d as xe,$e as Bt,Aa as b,Ad as At,Ba as C,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 $,bg as ri,cc as Y,cd as dt,cf as kt,cg as nn,dc as $n,df as Nt,dg as Ve,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 pi,hb as vt,hc as B,ia as _,ib as w,id as y,if as jt,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 ci,md as ut,na as m,ng as li,oa as Ae,od as Dt,of as be,pa as d,pd as Wn,qb as Ie,rd as Kn,sc as ee,sd as Z,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,vg as an,wa as v,wb as O,wc as ie,wd as bt,wg as si,xa as D,xc as ae,xd as tt,yc as oe,yd as Ft,za as I,zd as lt}from"./chunk-JAKZ4STC.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-KU2DV3OF.js";import{a as Fn,b as wn}from"./chunk-HTRAKYZW.js";import{a as mi}from"./chunk-KFAN3QJB.js";import{$b as zn,$c as pt,$d as xe,$e as Bt,Aa as b,Ad as At,Ba as C,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 $,bg as ri,cc as Y,cd as dt,cf as kt,cg as nn,dc as $n,df as Nt,dg as Ve,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 pi,hb as vt,hc as B,ia as _,ib as w,id as y,if as jt,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 ci,md as ut,na as m,ng as li,oa as Ae,od as Dt,of as be,pa as d,pd as Wn,qb as Ie,rd as Kn,sc as ee,sd as Z,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,vg as an,wa as v,wb as O,wc as ie,wd as bt,wg as si,xa as D,xc as ae,xd as tt,yc as oe,yd as Ft,za as I,zd as lt}from"./chunk-QRALQUVB.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-NKNH55Z3.js";import{a as Fn,b as wn}from"./chunk-QAS `,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-QNHSWPSE.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-OK4HEU3M.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 62f543aca..9ea4d8308 100644 --- a/browser/index.html +++ b/browser/index.html @@ -57,5 +57,5 @@
- + diff --git a/browser/loans.module-23WM4WIA.js b/browser/loans.module-6EEDVQ6H.js similarity index 99% rename from browser/loans.module-23WM4WIA.js rename to browser/loans.module-6EEDVQ6H.js index e444dbf92..6e298de3d 100644 --- a/browser/loans.module-23WM4WIA.js +++ b/browser/loans.module-6EEDVQ6H.js @@ -1,4 +1,4 @@ -import{a as v1}from"./chunk-Q4M4U6WO.js";import{a as Jf,b as jr,c as qr,d as Nc,e as kc}from"./chunk-K5WRCHK2.js";import{a as Fc,b as dd,c as b1,d as C1}from"./chunk-DF5NHKR4.js";import{a as hi}from"./chunk-FK6H3RFT.js";import{a as _1}from"./chunk-EYEHKXQV.js";import{$a as kf,$b as jf,$c as Oe,$d as Ii,$e as hn,$f as m1,Aa as nt,Ad as In,Ba as I,C as hc,Cc as ma,Cd as An,Dc as Pt,Ea as le,Ec as zf,Ed as Ze,Fa as Ff,Fc as Vf,Fd as Ke,G as an,Gd as Je,H as gc,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 o1,K as xc,Ka as Et,Kd as Se,Kf as r1,La as e,Lc as Uf,Lf as Va,M as Ef,Ma as C,Mf as l1,N as Lr,Na as y,Nb as Zl,Nc as be,Nd as cn,O as ct,Oa as $t,Oc as Gt,P as pt,Pa as Qs,Pc as me,Pd as Xf,Pf as s1,Qa as t0,Qc as Ie,Qd as fi,Qe as mo,Qf as Mc,Ra as e0,Rd as la,Re as Do,Rf as pn,Sa as n0,Sd as Qf,Se as Pc,Sf as Ec,Ta as i0,Tc as se,Tf as ns,U as _c,Uc as Hf,Ud as Cc,Ue as Xl,Uf as c1,V as Yl,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 yc,Ye as uo,Za as u,Zd as Sc,Ze as za,Zf as p1,_ as Lf,_a as ze,_b as Ot,_d as Dc,_e as fn,aa as pd,ab as Ue,ad as Gf,af as gn,b as fc,ba as vc,bc as oe,bd as Wf,bf as Tc,bg as d1,c as Mf,cc as te,cd as ke,cf as xn,cg as sa,dc as qf,df as _n,dg as Pi,e as cd,ea as s,ec as md,ee as wc,ef as Ic,eg as a0,ff as vn,gb as pa,gc as ja,gd as Ce,gf as bn,gg as u1,ha as Nf,hb as on,hc as Wt,hd as $f,hf as Ac,hg as f1,ia as O,ib as Vt,id as Dt,ie as da,if as Cn,ja as yt,jd as fe,jf as yn,ka as bc,kd as Yf,kf as Oc,ld as Zf,lf as Sn,lg as h1,md as we,na as g,ng as g1,oa as ra,ob as Rf,od as Re,of as Mi,pa as h,pd as Kf,sc as Nr,sd as de,ta as r,tc as Fr,td as Be,tf as n1,ua as l,ub as Bf,uc as Wn,ue as t1,uf as i1,ug as Lc,va as P,vb as Da,vc as Kl,ve as e1,vf as a1,vg as ki,wa as V,wb as St,wc as kr,wd as $e,wg as x1,xa as U,xc as Rr,xd as ue,yc as Br,yd as Vn,za as vt,zd as ye}from"./chunk-JAKZ4STC.js";import{a as ne,b as ve,d as Of}from"./chunk-PHUH23IY.js";var Rc=class{constructor(i,n){this.setOptions(i,n),this.setButtons(i)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}get optionsPayment(){return this.optionPaymentArray}setButtons(i){switch(i){case"Active":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Foreclosure",icon:"heart-broken",taskPermissionName:"FORECLOSURE_LOAN"},{name:"Make Repayment",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"},{name:"Undo Disbursal",icon:"undo",taskPermissionName:"DISBURSALUNDO_LOAN"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_LOAN"},{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_LOAN"},{name:"Reject",icon:"times",taskPermissionName:"REJECT_LOAN"}];break;case"Approved":this.buttonsArray=[{name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"},{name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"},{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_LOAN"}];break;case"Overpaid":this.buttonsArray=[{name:"Transfer Funds",icon:"exchange",taskPermissionName:"CREATE_ACCOUNTTRANSFER"},{name:"Credit Balance Refund",icon:"coins",taskPermissionName:"CREATE_CREDIT_BALANCE_REFUND"}];break;case"Closed (written off)":this.buttonsArray=[{name:"Recovery Payment",icon:"briefcase",taskPermissionName:"RECOVERYPAYMENT_LOAN"},{name:"Undo Write-off",icon:"undo",taskPermissionName:"UNDOWRITEOFF_LOAN"}];break;case"Closed (obligations met)":this.buttonsArray=[{name:"Goodwill Credit",icon:"coins",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",icon:"coins",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",icon:"coins",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",icon:"coins",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;default:this.buttonsArray=[]}}setOptions(i,n){switch(i){case"Active":this.optionArray=[{name:"Waive Interest",taskPermissionName:"WAIVEINTERESTPORTION_LOAN"},{name:"Reschedule",taskPermissionName:"CREATE_RESCHEDULELOAN"},{name:"Write Off",taskPermissionName:"WRITEOFF_LOAN"},{name:"Close (as Rescheduled)",taskPermissionName:"CLOSEASRESCHEDULED_LOAN"},{name:"Close",taskPermissionName:"CLOSE_LOAN"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Recover From Guarantor",taskPermissionName:"RECOVERGUARANTEES_LOAN"},{name:"Sell Loan",taskPermissionName:"SALE_LOAN"}],this.isContractTermination(n)||this.optionArray.push({name:"Contract Termination",taskPermissionName:"CONTRACT_TERMINATION_LOAN"}),this.optionPaymentArray=[{name:"Goodwill Credit",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_LOAN"},{name:"Delete",taskPermissionName:"DELETE_LOAN"},{name:"Add Collateral",taskPermissionName:"CREATE_COLLATERAL"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Reports",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;case"Approved":this.optionArray=[{name:"Add Loan Charge",taskPermissionName:"CREATE_LOANCHARGE"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;default:this.optionArray=[],this.optionPaymentArray=[]}}addOption(i){this.optionArray.push(i)}addButton(i){this.buttonsArray.push(i)}isContractTermination(i){return i==null?!1:i.code==="loanSubStatus.loanSubStatusType.contractTermination"}};var gx=()=>["./general"],xx=()=>["./accountdetail"],_x=()=>["./repayment-schedule"],vx=()=>["./loan-documents"],bx=()=>["./original-schedule"],Cx=()=>["./transactions"],yx=()=>["./deferred-income"],Sx=()=>["./buy-down-fees"],Dx=()=>["./delinquencytags"],wx=()=>["./loan-collateral"],Px=()=>["./loan-tranche-details"],Tx=()=>["./term-variations"],Ix=()=>["./overdue-charges"],Ax=()=>["./floating-interest-rates"],Ox=()=>["./charges"],Mx=()=>["./loan-reschedules"],Ex=()=>["./notes"],Lx=()=>["./standing-instruction"],Nx=()=>["./external-asset-owner"],Fx=t=>["./datatables",t];function kx(t,i){if(t&1&&(r(0,"tr"),e(1,` +import{a as v1}from"./chunk-3ECYXF3K.js";import{a as Jf,b as jr,c as qr,d as Nc,e as kc}from"./chunk-TO6SHLEP.js";import{a as Fc,b as dd,c as b1,d as C1}from"./chunk-VCV3Q6QU.js";import{a as hi}from"./chunk-FK6H3RFT.js";import{a as _1}from"./chunk-KFAN3QJB.js";import{$a as kf,$b as jf,$c as Oe,$d as Ii,$e as hn,$f as m1,Aa as nt,Ad as In,Ba as I,C as hc,Cc as ma,Cd as An,Dc as Pt,Ea as le,Ec as zf,Ed as Ze,Fa as Ff,Fc as Vf,Fd as Ke,G as an,Gd as Je,H as gc,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 o1,K as xc,Ka as Et,Kd as Se,Kf as r1,La as e,Lc as Uf,Lf as Va,M as Ef,Ma as C,Mf as l1,N as Lr,Na as y,Nb as Zl,Nc as be,Nd as cn,O as ct,Oa as $t,Oc as Gt,P as pt,Pa as Qs,Pc as me,Pd as Xf,Pf as s1,Qa as t0,Qc as Ie,Qd as fi,Qe as mo,Qf as Mc,Ra as e0,Rd as la,Re as Do,Rf as pn,Sa as n0,Sd as Qf,Se as Pc,Sf as Ec,Ta as i0,Tc as se,Tf as ns,U as _c,Uc as Hf,Ud as Cc,Ue as Xl,Uf as c1,V as Yl,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 yc,Ye as uo,Za as u,Zd as Sc,Ze as za,Zf as p1,_ as Lf,_a as ze,_b as Ot,_d as Dc,_e as fn,aa as pd,ab as Ue,ad as Gf,af as gn,b as fc,ba as vc,bc as oe,bd as Wf,bf as Tc,bg as d1,c as Mf,cc as te,cd as ke,cf as xn,cg as sa,dc as qf,df as _n,dg as Pi,e as cd,ea as s,ec as md,ee as wc,ef as Ic,eg as a0,ff as vn,gb as pa,gc as ja,gd as Ce,gf as bn,gg as u1,ha as Nf,hb as on,hc as Wt,hd as $f,hf as Ac,hg as f1,ia as O,ib as Vt,id as Dt,ie as da,if as Cn,ja as yt,jd as fe,jf as yn,ka as bc,kd as Yf,kf as Oc,ld as Zf,lf as Sn,lg as h1,md as we,na as g,ng as g1,oa as ra,ob as Rf,od as Re,of as Mi,pa as h,pd as Kf,sc as Nr,sd as de,ta as r,tc as Fr,td as Be,tf as n1,ua as l,ub as Bf,uc as Wn,ue as t1,uf as i1,ug as Lc,va as P,vb as Da,vc as Kl,ve as e1,vf as a1,vg as ki,wa as V,wb as St,wc as kr,wd as $e,wg as x1,xa as U,xc as Rr,xd as ue,yc as Br,yd as Vn,za as vt,zd as ye}from"./chunk-QRALQUVB.js";import{a as ne,b as ve,d as Of}from"./chunk-PHUH23IY.js";var Rc=class{constructor(i,n){this.setOptions(i,n),this.setButtons(i)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}get optionsPayment(){return this.optionPaymentArray}setButtons(i){switch(i){case"Active":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Foreclosure",icon:"heart-broken",taskPermissionName:"FORECLOSURE_LOAN"},{name:"Make Repayment",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"},{name:"Undo Disbursal",icon:"undo",taskPermissionName:"DISBURSALUNDO_LOAN"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_LOAN"},{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_LOAN"},{name:"Reject",icon:"times",taskPermissionName:"REJECT_LOAN"}];break;case"Approved":this.buttonsArray=[{name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"},{name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"},{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_LOAN"}];break;case"Overpaid":this.buttonsArray=[{name:"Transfer Funds",icon:"exchange",taskPermissionName:"CREATE_ACCOUNTTRANSFER"},{name:"Credit Balance Refund",icon:"coins",taskPermissionName:"CREATE_CREDIT_BALANCE_REFUND"}];break;case"Closed (written off)":this.buttonsArray=[{name:"Recovery Payment",icon:"briefcase",taskPermissionName:"RECOVERYPAYMENT_LOAN"},{name:"Undo Write-off",icon:"undo",taskPermissionName:"UNDOWRITEOFF_LOAN"}];break;case"Closed (obligations met)":this.buttonsArray=[{name:"Goodwill Credit",icon:"coins",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",icon:"coins",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",icon:"coins",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",icon:"coins",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;default:this.buttonsArray=[]}}setOptions(i,n){switch(i){case"Active":this.optionArray=[{name:"Waive Interest",taskPermissionName:"WAIVEINTERESTPORTION_LOAN"},{name:"Reschedule",taskPermissionName:"CREATE_RESCHEDULELOAN"},{name:"Write Off",taskPermissionName:"WRITEOFF_LOAN"},{name:"Close (as Rescheduled)",taskPermissionName:"CLOSEASRESCHEDULED_LOAN"},{name:"Close",taskPermissionName:"CLOSE_LOAN"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Recover From Guarantor",taskPermissionName:"RECOVERGUARANTEES_LOAN"},{name:"Sell Loan",taskPermissionName:"SALE_LOAN"}],this.isContractTermination(n)||this.optionArray.push({name:"Contract Termination",taskPermissionName:"CONTRACT_TERMINATION_LOAN"}),this.optionPaymentArray=[{name:"Goodwill Credit",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_LOAN"},{name:"Delete",taskPermissionName:"DELETE_LOAN"},{name:"Add Collateral",taskPermissionName:"CREATE_COLLATERAL"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Reports",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;case"Approved":this.optionArray=[{name:"Add Loan Charge",taskPermissionName:"CREATE_LOANCHARGE"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;default:this.optionArray=[],this.optionPaymentArray=[]}}addOption(i){this.optionArray.push(i)}addButton(i){this.buttonsArray.push(i)}isContractTermination(i){return i==null?!1:i.code==="loanSubStatus.loanSubStatusType.contractTermination"}};var gx=()=>["./general"],xx=()=>["./accountdetail"],_x=()=>["./repayment-schedule"],vx=()=>["./loan-documents"],bx=()=>["./original-schedule"],Cx=()=>["./transactions"],yx=()=>["./deferred-income"],Sx=()=>["./buy-down-fees"],Dx=()=>["./delinquencytags"],wx=()=>["./loan-collateral"],Px=()=>["./loan-tranche-details"],Tx=()=>["./term-variations"],Ix=()=>["./overdue-charges"],Ax=()=>["./floating-interest-rates"],Ox=()=>["./charges"],Mx=()=>["./loan-reschedules"],Ex=()=>["./notes"],Lx=()=>["./standing-instruction"],Nx=()=>["./external-asset-owner"],Fx=t=>["./datatables",t];function kx(t,i){if(t&1&&(r(0,"tr"),e(1,` `),r(2,"td"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"td"),e(7,` `),r(8,"span",49),P(9,"i",50),l(),e(10),l(),e(11,` @@ -6189,7 +6189,7 @@ end`};i.events.push(["putFont",function(c){(function(d){var m=d.font,x=d.out,v=d `),g(7,nF,34,3,"table",1),e(8,` `),l(),e(9,` -`)),a&2&&(s(3),$t("",u(4,3,"labels.inputs.Deferred income")," - ",u(5,5,"labels.menus.Capitalized Income"),""),s(4),h("ngIf",o.capitalizedIncomeData.length>0))},dependencies:[St,Vt,Dt,Pt,fn,xn,gn,_n,hn,vn,bn,yn,Cn,Sn,pn],encapsulation:2})}}return t})();var Uu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return this.loansService.getDeferredIncomeData(a)}static{this.\u0275fac=function(a){return new(a||t)(sn(Tt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var Hu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return a?this.loansService.getBuyDownFeeData(a):(console.error("LoanBuyDownFeesDataResolver: Could not find loanId in route parameters"),new fc(o=>{o.next([]),o.complete()}))}static{this.\u0275fac=function(a){return new(a||t)(sn(Tt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var iF=[{path:"",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Loans Account",breadcrumb:"Create Loans Account"},component:dm,resolve:{loansAccountTemplate:Eu}},{path:":loanId",data:{title:"Loan View",routeParamBreadcrumb:"loanId"},component:Bc,resolve:{loanDetailsData:Jr,loanDatatables:ym,loanArrearsDelinquencyConfig:Pg},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:jc,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Jr,loanDatatables:ym}},{path:"accountdetail",component:qc,data:{title:"Account Detail",breadcrumb:"Account Detail",routeParamBreadcrumb:!1}},{path:"original-schedule",component:Tp,data:{title:"Original Schedule",breadcrumb:"Original Schedule",routeParamBreadcrumb:!1}},{path:"repayment-schedule",component:Yo,data:{title:"Repayment Schedule",breadcrumb:"Repayment Schedule",routeParamBreadcrumb:!1}},{path:"transactions",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Pp},{path:"export",component:vm}]},{path:"deferred-income",data:{title:"Loans Deferred Income",breadcrumb:"Deferred income",routeParamBreadcrumb:!1},resolve:{loanDeferredIncomeData:Uu},children:[{path:"",component:Og}]},{path:"delinquencytags",data:{title:"Loans Delinquency Tags",breadcrumb:"Delinquency Tags",routeParamBreadcrumb:!1},resolve:{loanDelinquencyTagsData:ju,loanDelinquencyData:zu,loanDelinquencyActions:Ag},children:[{path:"",component:Pm}]},{path:"loan-reschedules",data:{},resolve:{loanRescheduleData:wg},children:[{path:"",component:Tm}]},{path:"loan-collateral",component:pm,data:{title:"Loan Collateral Details",breadcrumb:"Loan Collateral Details",routeParamBreadcrumb:!1},resolve:{loanCollaterals:Ig}},{path:"term-variations",component:Om,data:{title:"Loan Term Variations",breadcrumb:"Loan Term Variations",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Jr,interestPausesData:Vu}},{path:"loan-tranche-details",component:cm,data:{title:"Loan Tranche Details",breadcrumb:"Loan Tranche Details",routeParamBreadcrumb:!1}},{path:"overdue-charges",component:Ip,data:{title:"Overdue Charges",breadcrumb:"Overdue Charges",routeParamBreadcrumb:!1}},{path:"floating-interest-rates",component:sm,data:{title:"Floating Interest Rates",breadcrumb:"Floating Interest Rates",routeParamBreadcrumb:!1}},{path:"charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},component:Ap},{path:"loan-documents",component:um,data:{title:"Loan Documents",breadcrumb:"Loan Documents",routeParamBreadcrumb:!1},resolve:{loanDocuments:Lu}},{path:"notes",component:zc,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{loanNotes:Au}},{path:"standing-instruction",component:fm,data:{title:"Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"external-asset-owner",component:Am,data:{title:"External Asset Owner",breadcrumb:"External Asset Owner",routeParamBreadcrumb:!1},resolve:{activeTransferData:Tg,loanTransfersData:qu}},{path:"datatables",children:[{path:":datatableName",component:Op,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanDatatable:Ou}}]},{path:"buy-down-fees",component:Dg,data:{title:"Buy Down Fees",breadcrumb:"Buy Down Fees",routeParamBreadcrumb:!1},resolve:{loanBuyDownFeesData:Hu}}]},{path:":loanId/transactions/:id",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},resolve:{loanDetailsAssociationData:Jr},children:[{path:"",data:{routeParamBreadcrumb:"id"},component:gm,resolve:{loansAccountTransaction:Nu}},{path:"edit",component:xm,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loansAccountTransactionTemplate:ku}},{path:"reciept",component:_m,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{loansTransactionReciept:Fu}}]},{path:":loanId/edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:Sm}},{path:":loanId/charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:hm,resolve:{loansAccountCharge:Dm,loanDetailsData:Jr}},{path:":id/adjustment",data:{routeParamBreadcrumb:"id",breadcrumb:"Adjustment"},component:Im,resolve:{loansAccountCharge:Dm,loanDetailsData:Jr}}]},{path:":loanId/actions/:action",component:lm,data:{title:"Loan Account Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},resolve:{actionButtonData:Mu}},{path:":loanId/transfer-funds",loadChildren:()=>import("./account-transfers.module-QNHSWPSE.js").then(t=>t.AccountTransfersModule)},{path:"edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:Sm}}]},{path:"glim-account",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create GLIM Application",breadcrumb:"Create GLIM Application",routeParamBreadcrumb:!1},component:Cm,resolve:{loansAccountTemplate:Bu,groupsData:C1}},{path:":glimId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},component:bm,resolve:{glimData:Ru,groupsData:dd}}]}],Mg=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=bc({type:t})}static{this.\u0275inj=gc({providers:[Jr,Au,ym,Ou,ju,Mu,Eu,Lu,Sm,Dm,Nu,ku,Fu,v1,dd,Ru,b1,Bu,qu,zu,Vu,Uu,Hu],imports:[md.forChild(iF),md]})}}return t})();var Eg=(()=>{class t{constructor(n){this.externalAssetOwner=n}itemStatus(n){return this.externalAssetOwner.itemStatus(n)}static{this.\u0275fac=function(a){return new(a||t)(O(kc))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-external-asset-transfer"]],inputs:{transferData:"transferData"},decls:167,vars:60,consts:[[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"]],template:function(a,o){a&1&&(r(0,"table"),e(1,` +`)),a&2&&(s(3),$t("",u(4,3,"labels.inputs.Deferred income")," - ",u(5,5,"labels.menus.Capitalized Income"),""),s(4),h("ngIf",o.capitalizedIncomeData.length>0))},dependencies:[St,Vt,Dt,Pt,fn,xn,gn,_n,hn,vn,bn,yn,Cn,Sn,pn],encapsulation:2})}}return t})();var Uu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return this.loansService.getDeferredIncomeData(a)}static{this.\u0275fac=function(a){return new(a||t)(sn(Tt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var Hu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return a?this.loansService.getBuyDownFeeData(a):(console.error("LoanBuyDownFeesDataResolver: Could not find loanId in route parameters"),new fc(o=>{o.next([]),o.complete()}))}static{this.\u0275fac=function(a){return new(a||t)(sn(Tt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var iF=[{path:"",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Loans Account",breadcrumb:"Create Loans Account"},component:dm,resolve:{loansAccountTemplate:Eu}},{path:":loanId",data:{title:"Loan View",routeParamBreadcrumb:"loanId"},component:Bc,resolve:{loanDetailsData:Jr,loanDatatables:ym,loanArrearsDelinquencyConfig:Pg},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:jc,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Jr,loanDatatables:ym}},{path:"accountdetail",component:qc,data:{title:"Account Detail",breadcrumb:"Account Detail",routeParamBreadcrumb:!1}},{path:"original-schedule",component:Tp,data:{title:"Original Schedule",breadcrumb:"Original Schedule",routeParamBreadcrumb:!1}},{path:"repayment-schedule",component:Yo,data:{title:"Repayment Schedule",breadcrumb:"Repayment Schedule",routeParamBreadcrumb:!1}},{path:"transactions",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Pp},{path:"export",component:vm}]},{path:"deferred-income",data:{title:"Loans Deferred Income",breadcrumb:"Deferred income",routeParamBreadcrumb:!1},resolve:{loanDeferredIncomeData:Uu},children:[{path:"",component:Og}]},{path:"delinquencytags",data:{title:"Loans Delinquency Tags",breadcrumb:"Delinquency Tags",routeParamBreadcrumb:!1},resolve:{loanDelinquencyTagsData:ju,loanDelinquencyData:zu,loanDelinquencyActions:Ag},children:[{path:"",component:Pm}]},{path:"loan-reschedules",data:{},resolve:{loanRescheduleData:wg},children:[{path:"",component:Tm}]},{path:"loan-collateral",component:pm,data:{title:"Loan Collateral Details",breadcrumb:"Loan Collateral Details",routeParamBreadcrumb:!1},resolve:{loanCollaterals:Ig}},{path:"term-variations",component:Om,data:{title:"Loan Term Variations",breadcrumb:"Loan Term Variations",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Jr,interestPausesData:Vu}},{path:"loan-tranche-details",component:cm,data:{title:"Loan Tranche Details",breadcrumb:"Loan Tranche Details",routeParamBreadcrumb:!1}},{path:"overdue-charges",component:Ip,data:{title:"Overdue Charges",breadcrumb:"Overdue Charges",routeParamBreadcrumb:!1}},{path:"floating-interest-rates",component:sm,data:{title:"Floating Interest Rates",breadcrumb:"Floating Interest Rates",routeParamBreadcrumb:!1}},{path:"charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},component:Ap},{path:"loan-documents",component:um,data:{title:"Loan Documents",breadcrumb:"Loan Documents",routeParamBreadcrumb:!1},resolve:{loanDocuments:Lu}},{path:"notes",component:zc,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{loanNotes:Au}},{path:"standing-instruction",component:fm,data:{title:"Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"external-asset-owner",component:Am,data:{title:"External Asset Owner",breadcrumb:"External Asset Owner",routeParamBreadcrumb:!1},resolve:{activeTransferData:Tg,loanTransfersData:qu}},{path:"datatables",children:[{path:":datatableName",component:Op,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanDatatable:Ou}}]},{path:"buy-down-fees",component:Dg,data:{title:"Buy Down Fees",breadcrumb:"Buy Down Fees",routeParamBreadcrumb:!1},resolve:{loanBuyDownFeesData:Hu}}]},{path:":loanId/transactions/:id",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},resolve:{loanDetailsAssociationData:Jr},children:[{path:"",data:{routeParamBreadcrumb:"id"},component:gm,resolve:{loansAccountTransaction:Nu}},{path:"edit",component:xm,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loansAccountTransactionTemplate:ku}},{path:"reciept",component:_m,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{loansTransactionReciept:Fu}}]},{path:":loanId/edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:Sm}},{path:":loanId/charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:hm,resolve:{loansAccountCharge:Dm,loanDetailsData:Jr}},{path:":id/adjustment",data:{routeParamBreadcrumb:"id",breadcrumb:"Adjustment"},component:Im,resolve:{loansAccountCharge:Dm,loanDetailsData:Jr}}]},{path:":loanId/actions/:action",component:lm,data:{title:"Loan Account Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},resolve:{actionButtonData:Mu}},{path:":loanId/transfer-funds",loadChildren:()=>import("./account-transfers.module-OK4HEU3M.js").then(t=>t.AccountTransfersModule)},{path:"edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:Sm}}]},{path:"glim-account",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create GLIM Application",breadcrumb:"Create GLIM Application",routeParamBreadcrumb:!1},component:Cm,resolve:{loansAccountTemplate:Bu,groupsData:C1}},{path:":glimId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},component:bm,resolve:{glimData:Ru,groupsData:dd}}]}],Mg=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=bc({type:t})}static{this.\u0275inj=gc({providers:[Jr,Au,ym,Ou,ju,Mu,Eu,Lu,Sm,Dm,Nu,ku,Fu,v1,dd,Ru,b1,Bu,qu,zu,Vu,Uu,Hu],imports:[md.forChild(iF),md]})}}return t})();var Eg=(()=>{class t{constructor(n){this.externalAssetOwner=n}itemStatus(n){return this.externalAssetOwner.itemStatus(n)}static{this.\u0275fac=function(a){return new(a||t)(O(kc))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-external-asset-transfer"]],inputs:{transferData:"transferData"},decls:167,vars:60,consts:[[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"]],template:function(a,o){a&1&&(r(0,"table"),e(1,` `),r(2,"tbody"),e(3,` `),r(4,"tr"),e(5,` `),r(6,"td",0),e(7,` diff --git a/browser/main.js b/browser/main.js index 23f0b12ca..6655054ca 100644 --- a/browser/main.js +++ b/browser/main.js @@ -1,32 +1,32 @@ -import{a as pA,b as yr,c as cg,d as ri,e as UA}from"./chunk-K5WRCHK2.js";import{a as go,b as Yw,c as Jw,d as Sf}from"./chunk-DF5NHKR4.js";import{$ as T9,$a as Oo,$b as ur,$c as Xt,$d as oi,$e as ge,$f as qA,A as El,Aa as k,Ab as G9,Ac as eA,Ad as ue,Ae as f0,Af as Nd,B as vf,Ba as P,Bb as Bx,Bc as iA,Bd as Eo,Be as Bo,Bf as tg,C as Ul,Ca as F9,Cb as Nx,Cc as bi,Cd as he,Ce as No,Cf as kA,D as Ba,Da as k9,Db as U9,Dc as ut,Dd as lr,De as al,Df as eg,E as ja,Ea as Rt,Ec as kp,Ed as si,Ee as La,Ef as Ld,F as S9,Fa as Op,Fb as cn,Fc as gn,Fd as pi,Fe as jp,Ff as Vd,G as At,Ga as Td,Gb as $w,Gc as nA,Gd as ci,Ge as xr,Gf as RA,H as zi,Ha as wt,Hb as $9,Hc as il,Hd as di,He as Ae,Hf as BA,I as Ed,Ia as Ct,Ib as za,Ic as Ke,Id as wi,Ie as SA,If as ig,J as Ft,Ja as yt,Jb as Fp,Jc as Me,Jd as ki,Je as Rd,Jf as NA,Ka as gt,Kb as W9,Kc as yf,Kd as Yt,Ke as hs,Kf as LA,L as w9,La as t,Lb as Q9,Lc as tr,Ld as sA,Le as co,Lf as Lr,Ma as g,Mb as Y9,Mc as aA,Md as cA,Me as mo,Mf as xs,N as Za,Na as b,Nb as p0,Nc as oe,Nd as Dt,Ne as wA,Nf as h0,O as N,Oa as rt,Ob as Oa,Oc as lt,Od as Qx,Oe as PA,Of as ng,P as L,Pa as or,Pb as js,Pc as zt,Pe as EA,Pf as ol,Q as cr,Qa as R9,Qb as Ao,Qc as Jt,Qd as an,Qe as zp,Qf as Xn,R as P9,Ra as U0,Rb as wo,Rc as zs,Rd as gi,Re as Te,Rf as kn,S as Ix,Sa as $0,Sb as J9,Sd as Fd,Se as ai,Sf as Sa,T as G0,Ta as W0,Tb as $a,Tc as ee,Td as Bp,Te as IA,Tf as _a,Ua as Ax,Ub as io,Uc as Rp,Ud as ti,Ue as gr,Uf as Cr,V as vi,Va as it,Vb as Po,Vc as Zt,Vd as Bi,Ve as _r,Vf as Oi,W as Sm,Wa as Re,Wb as Pm,Wc as ln,Wd as Yx,We as vr,Wf as Rn,X as bf,Xa as oo,Xb as Lx,Xc as yn,Xd as Jx,Xe as br,Xf as VA,Y as E9,Ya as c,Yb as Cf,Yc as Kt,Yd as m0,Ye as Ki,Z as Uw,Za as m,Zb as Vx,Zc as fr,Zd as d0,Ze as qi,Zf as ag,_ as I9,_a as Oe,_b as Pt,_c as Qr,_d as u0,_e as xe,_f as rg,a as xf,aa as Tx,ab as $e,ac as qx,ad as rA,ae as mA,af as _e,ag as og,b as gf,ba as Mx,bb as Ze,bc as Lt,bd as fs,be as dA,bg as Lo,c as Uo,ca as M9,cb as ds,cc as It,cd as me,ce as uA,cf as ve,cg as xo,d as $r,da as Id,db as B9,dc as Wr,dd as Wx,de as kd,df as be,dg as _n,e as d9,ea as s,eb as N9,ec as Cn,ed as Yr,ee as ir,eg as Gi,f as u9,fa as D9,fb as Md,fc as jx,fd as oA,fe as Kx,ff as Ce,fg as jA,g as f9,ga as O9,gb as ga,gc as Si,gd as te,ge as fA,gf as ye,gg as Vo,h as _f,ha as Dx,hb as Ut,hc as _t,hd as c0,he as hA,i as Cm,ia as O,ib as Et,ic as zx,id as dt,ie as Fo,if as Se,ig as zA,j as h9,ja as pt,jb as Br,jc as Ww,jd as Ht,je as Xx,jf as we,jg as $i,k as An,ka as Hi,kb as Nr,kc as K9,kd as er,ke as xA,kg as lg,l as x9,la as wm,lb as L9,lc as X9,ld as nl,le as gA,lf as Pe,lg as x0,m as g9,ma as Ox,mb as us,mc as Qw,md as Qt,me as _A,mf as TA,mg as HA,n as Pd,na as h,nb as V9,nc as Hx,nd as Tl,ne as vA,nf as MA,o as ym,oa as jn,ob as lo,oc as Gx,od as Ie,oe as bA,of as Ge,og as sg,p as _9,pa as f,pb as Fx,pc as Z9,pd as hr,pe as CA,pf as DA,pg as sr,q as Pl,qa as Dp,qb as Dd,qc as tA,qd as lA,qe as Hs,qf as OA,qg as gs,r as H0,ra as ms,rb as kx,rc as Ux,rd as Od,re as Np,rf as rl,rg as Fa,s as Ex,sa as A9,sb as q9,sc as ra,sd as Ot,se as Lp,sf as $o,sg as _s,t as Va,ta as o,tb as Rx,tc as Aa,td as de,te as yA,tf as uo,tg as pg,u as v9,ua as l,ub as Ap,uc as Ve,ud as Jr,ue as so,uf as fo,ug as GA,v as qa,va as y,vb as j9,vc as Jn,vd as Ad,ve as po,vf as ho,w as s0,wa as $,wb as mt,wc as Kn,wd as ni,we as Vp,wf as AA,wg as pa,x as b9,xa as W,xb as z9,xc as ya,xd as Mt,xe as qp,xf as FA,y as C9,ya as Il,yb as $l,yc as zn,yd as Hn,ye as ko,yf as Zx,z as y9,za as Y,zb as H9,zc as $x,zd as Nt,ze as Ro,zf as Bd}from"./chunk-JAKZ4STC.js";import{a as ae,b as Le,c as Vs,d as c9,e as pe,f as Hw,g as qs,h as Zn,i as Gw,j as m9,k as Px}from"./chunk-PHUH23IY.js";var Am=pe((Ud,Af)=>{(function(){var e,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",n="Expected a function",p="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,x="__lodash_placeholder__",_=1,v=2,C=4,S=1,E=2,w=1,I=2,T=4,A=8,V=16,G=32,J=64,at=128,X=256,nt=512,ot=30,ht="...",ct=800,z=16,U=1,st=2,M=3,F=1/0,B=9007199254740991,R=17976931348623157e292,j=NaN,H=4294967295,et=H-1,vt=H>>>1,bt=[["ary",at],["bind",w],["bindKey",I],["curry",A],["curryRight",V],["flip",nt],["partial",G],["partialRight",J],["rearg",X]],kt="[object Arguments]",Z="[object Array]",Tt="[object AsyncFunction]",K="[object Boolean]",Q="[object Date]",xt="[object DOMException]",Bt="[object Error]",ce="[object Function]",Wt="[object GeneratorFunction]",ne="[object Map]",Ue="[object Number]",qe="[object Null]",$t="[object Object]",Ne="[object Promise]",Fe="[object Proxy]",He="[object RegExp]",Qe="[object Set]",Xe="[object String]",ei="[object Symbol]",Mi="[object Undefined]",Ai="[object WeakMap]",Ni="[object WeakSet]",un="[object ArrayBuffer]",Ui="[object DataView]",Zi="[object Float32Array]",na="[object Float64Array]",vn="[object Int8Array]",nn="[object Int16Array]",bn="[object Int32Array]",ji="[object Uint8Array]",Li="[object Uint8ClampedArray]",ta="[object Uint16Array]",dn="[object Uint32Array]",En=/\b__p \+= '';/g,Ll=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mn=/&(?:amp|lt|gt|quot|#39);/g,qr=/[&<>"']/g,Un=RegExp(Mn.source),$n=RegExp(qr.source),cl=/<%-([\s\S]+?)%>/g,Fn=/<%([\s\S]+?)%>/g,Dn=/<%=([\s\S]+?)%>/g,vo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gn=/^\w*$/,On=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ml=/[\\^$.*+?()[\]{}|]/g,Wn=RegExp(ml.source),ke=/^\s+/,mi=/\s/,hi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ma=/,? & /,Ji=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mn=/[()=,{}\[\]\/\s]/,Wa=/\\(\\)?/g,In=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sn=/\w*$/,Ga=/^[-+]0x[0-9a-f]+$/i,fa=/^0b[01]+$/i,ha=/^\[object .+?Constructor\]$/,Ja=/^0o[0-7]+$/i,Fr=/^(?:0|[1-9]\d*)$/,ao=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bo=/($^)/,Zr=/['\n\r\u2028\u2029\\]/g,ro="\\ud800-\\udfff",fe="\\u0300-\\u036f",ii="\\ufe20-\\ufe2f",Ei="\\u20d0-\\u20ff",_i=fe+ii+Ei,Vi="\\u2700-\\u27bf",fn="a-z\\xdf-\\xf6\\xf8-\\xff",xn="\\xac\\xb1\\xd7\\xf7",va="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qn="\\u2000-\\u206f",Bn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yn="A-Z\\xc0-\\xd6\\xd8-\\xde",Er="\\ufe0e\\ufe0f",kr=xn+va+Qn+Bn,ka="['\u2019]",Ka="["+ro+"]",Co="["+kr+"]",Ho="["+_i+"]",dl="\\d+",es="["+Vi+"]",i0="["+fn+"]",sm="[^"+ro+kr+dl+Vi+fn+Yn+"]",n0="\\ud83c[\\udffb-\\udfff]",Na="(?:"+Ho+"|"+n0+")",Ua="[^"+ro+"]",pm="(?:\\ud83c[\\udde6-\\uddff]){2}",As="[\\ud800-\\udbff][\\udc00-\\udfff]",Fs="["+Yn+"]",Zo="\\u200d",is="(?:"+i0+"|"+sm+")",a0="(?:"+Fs+"|"+sm+")",vp="(?:"+ka+"(?:d|ll|m|re|s|t|ve))?",cm="(?:"+ka+"(?:D|LL|M|RE|S|T|VE))?",F0=Na+"?",ks="["+Er+"]?",Lh="(?:"+Zo+"(?:"+[Ua,pm,As].join("|")+")"+ks+F0+")*",pd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mm=ks+F0+Lh,cd="(?:"+[es,pm,As].join("|")+")"+mm,Vh="(?:"+[Ua+Ho+"?",Ho,pm,As,Ka].join("|")+")",md=RegExp(ka,"g"),dd=RegExp(Ho,"g"),N5=RegExp(n0+"(?="+n0+")|"+Vh+mm,"g"),FZ=RegExp([Fs+"?"+i0+"+"+vp+"(?="+[Co,Fs,"$"].join("|")+")",a0+"+"+cm+"(?="+[Co,Fs+is,"$"].join("|")+")",Fs+"?"+is+"+"+vp,Fs+"+"+cm,Zu,pd,dl,cd].join("|"),"g"),kZ=RegExp("["+Zo+ro+_i+Er+"]"),RZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,BZ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],NZ=-1,Ir={};Ir[Zi]=Ir[na]=Ir[vn]=Ir[nn]=Ir[bn]=Ir[ji]=Ir[Li]=Ir[ta]=Ir[dn]=!0,Ir[kt]=Ir[Z]=Ir[un]=Ir[K]=Ir[Ui]=Ir[Q]=Ir[Bt]=Ir[ce]=Ir[ne]=Ir[Ue]=Ir[$t]=Ir[He]=Ir[Qe]=Ir[Xe]=Ir[Ai]=!1;var dr={};dr[kt]=dr[Z]=dr[un]=dr[Ui]=dr[K]=dr[Q]=dr[Zi]=dr[na]=dr[vn]=dr[nn]=dr[bn]=dr[ne]=dr[Ue]=dr[$t]=dr[He]=dr[Qe]=dr[Xe]=dr[ei]=dr[ji]=dr[Li]=dr[ta]=dr[dn]=!0,dr[Bt]=dr[ce]=dr[Ai]=!1;var LZ={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},VZ={"&":"&","<":"<",">":">",'"':""","'":"'"},qZ={"&":"&","<":"<",">":">",""":'"',"'":"'"},jZ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zZ=parseFloat,HZ=parseInt,n8=typeof global=="object"&&global&&global.Object===Object&&global,GZ=typeof self=="object"&&self&&self.Object===Object&&self,Mo=n8||GZ||Function("return this")(),L5=typeof Ud=="object"&&Ud&&!Ud.nodeType&&Ud,dm=L5&&typeof Af=="object"&&Af&&!Af.nodeType&&Af,a8=dm&&dm.exports===L5,V5=a8&&n8.process,ns=function(){try{var We=dm&&dm.require&&dm.require("util").types;return We||V5&&V5.binding&&V5.binding("util")}catch{}}(),r8=ns&&ns.isArrayBuffer,o8=ns&&ns.isDate,l8=ns&&ns.isMap,s8=ns&&ns.isRegExp,p8=ns&&ns.isSet,c8=ns&&ns.isTypedArray;function Vl(We,yi,ui){switch(ui.length){case 0:return We.call(yi);case 1:return We.call(yi,ui[0]);case 2:return We.call(yi,ui[0],ui[1]);case 3:return We.call(yi,ui[0],ui[1],ui[2])}return We.apply(yi,ui)}function UZ(We,yi,ui,hn){for(var aa=-1,Qa=We==null?0:We.length;++aa-1}function q5(We,yi,ui){for(var hn=-1,aa=We==null?0:We.length;++hn-1;);return ui}function _8(We,yi){for(var ui=We.length;ui--&&ud(yi,We[ui],0)>-1;);return ui}function ttt(We,yi){for(var ui=We.length,hn=0;ui--;)We[ui]===yi&&++hn;return hn}var ett=G5(LZ),itt=G5(VZ);function ntt(We){return"\\"+jZ[We]}function att(We,yi){return We==null?e:We[yi]}function fd(We){return kZ.test(We)}function rtt(We){return RZ.test(We)}function ott(We){for(var yi,ui=[];!(yi=We.next()).done;)ui.push(yi.value);return ui}function Q5(We){var yi=-1,ui=Array(We.size);return We.forEach(function(hn,aa){ui[++yi]=[aa,hn]}),ui}function v8(We,yi){return function(ui){return We(yi(ui))}}function yp(We,yi){for(var ui=-1,hn=We.length,aa=0,Qa=[];++ui-1}function Wtt(D,q){var tt=this.__data__,St=nx(tt,D);return St<0?(++this.size,tt.push([D,q])):tt[St][1]=q,this}k0.prototype.clear=Htt,k0.prototype.delete=Gtt,k0.prototype.get=Utt,k0.prototype.has=$tt,k0.prototype.set=Wtt;function R0(D){var q=-1,tt=D==null?0:D.length;for(this.clear();++q=q?D:q)),D}function ls(D,q,tt,St,Vt,le){var De,ze=q&_,Je=q&v,Ii=q&C;if(tt&&(De=Vt?tt(D,St,Vt,le):tt(D)),De!==e)return De;if(!jr(D))return D;var Di=sa(D);if(Di){if(De=Zet(D),!ze)return Cl(D,De)}else{var Ri=el(D),rn=Ri==ce||Ri==Wt;if(Mp(D))return eO(D,ze);if(Ri==$t||Ri==kt||rn&&!Vt){if(De=Je||rn?{}:bO(D),!ze)return Je?zet(D,cet(De,D)):jet(D,O8(De,D))}else{if(!dr[Ri])return Vt?D:{};De=tit(D,Ri,ze)}}le||(le=new Bs);var Sn=le.get(D);if(Sn)return Sn;le.set(D,De),YO(D)?D.forEach(function(qn){De.add(ls(qn,q,tt,qn,D,le))}):WO(D)&&D.forEach(function(qn,Ia){De.set(Ia,ls(qn,q,tt,Ia,D,le))});var Vn=Ii?Je?bw:vw:Je?Sl:Do,xa=Di?e:Vn(D);return as(xa||D,function(qn,Ia){xa&&(Ia=qn,qn=D[Ia]),lf(De,Ia,ls(qn,q,tt,Ia,D,le))}),De}function met(D){var q=Do(D);return function(tt){return A8(tt,D,q)}}function A8(D,q,tt){var St=tt.length;if(D==null)return!St;for(D=pr(D);St--;){var Vt=tt[St],le=q[Vt],De=D[Vt];if(De===e&&!(Vt in D)||!le(De))return!1}return!0}function F8(D,q,tt){if(typeof D!="function")throw new rs(n);return ff(function(){D.apply(e,tt)},q)}function sf(D,q,tt,St){var Vt=-1,le=qh,De=!0,ze=D.length,Je=[],Ii=q.length;if(!ze)return Je;tt&&(q=Rr(q,ql(tt))),St?(le=q5,De=!1):q.length>=i&&(le=tf,De=!1,q=new hm(q));t:for(;++VtVt?0:Vt+tt),St=St===e||St>Vt?Vt:ua(St),St<0&&(St+=Vt),St=tt>St?0:KO(St);tt0&&tt(ze)?q>1?Go(ze,q-1,tt,St,Vt):Cp(Vt,ze):St||(Vt[Vt.length]=ze)}return Vt}var ew=lO(),B8=lO(!0);function r0(D,q){return D&&ew(D,q,Do)}function iw(D,q){return D&&B8(D,q,Do)}function rx(D,q){return bp(q,function(tt){return q0(D[tt])})}function gm(D,q){q=Ip(q,D);for(var tt=0,St=q.length;D!=null&&ttq}function fet(D,q){return D!=null&&rr.call(D,q)}function het(D,q){return D!=null&&q in pr(D)}function xet(D,q,tt){return D>=tl(q,tt)&&D=120&&Di.length>=120)?new hm(De&&Di):e}Di=D[0];var Ri=-1,rn=ze[0];t:for(;++Ri-1;)ze!==D&&Jh.call(ze,Je,1),Jh.call(D,Je,1);return D}function W8(D,q){for(var tt=D?q.length:0,St=tt-1;tt--;){var Vt=q[tt];if(tt==St||Vt!==le){var le=Vt;V0(Vt)?Jh.call(D,Vt,1):dw(D,Vt)}}return D}function pw(D,q){return D+Zh(I8()*(q-D+1))}function Det(D,q,tt,St){for(var Vt=-1,le=So(Xh((q-D)/(tt||1)),0),De=ui(le);le--;)De[St?le:++Vt]=D,D+=tt;return De}function cw(D,q){var tt="";if(!D||q<1||q>B)return tt;do q%2&&(tt+=D),q=Zh(q/2),q&&(D+=D);while(q);return tt}function ba(D,q){return Iw(SO(D,q,wl),D+"")}function Oet(D){return D8(wd(D))}function Aet(D,q){var tt=wd(D);return xx(tt,xm(q,0,tt.length))}function mf(D,q,tt,St){if(!jr(D))return D;q=Ip(q,D);for(var Vt=-1,le=q.length,De=le-1,ze=D;ze!=null&&++VtVt?0:Vt+q),tt=tt>Vt?Vt:tt,tt<0&&(tt+=Vt),Vt=q>tt?0:tt-q>>>0,q>>>=0;for(var le=ui(Vt);++St>>1,De=D[le];De!==null&&!zl(De)&&(tt?De<=q:De=i){var Ii=q?null:$et(D);if(Ii)return zh(Ii);De=!1,Vt=tf,Je=new hm}else Je=q?[]:ze;t:for(;++St=St?D:ss(D,q,tt)}var tO=Ctt||function(D){return Mo.clearTimeout(D)};function eO(D,q){if(q)return D.slice();var tt=D.length,St=y8?y8(tt):new D.constructor(tt);return D.copy(St),St}function xw(D){var q=new D.constructor(D.byteLength);return new Qh(q).set(new Qh(D)),q}function Net(D,q){var tt=q?xw(D.buffer):D.buffer;return new D.constructor(tt,D.byteOffset,D.byteLength)}function Let(D){var q=new D.constructor(D.source,sn.exec(D));return q.lastIndex=D.lastIndex,q}function Vet(D){return of?pr(of.call(D)):{}}function iO(D,q){var tt=q?xw(D.buffer):D.buffer;return new D.constructor(tt,D.byteOffset,D.length)}function nO(D,q){if(D!==q){var tt=D!==e,St=D===null,Vt=D===D,le=zl(D),De=q!==e,ze=q===null,Je=q===q,Ii=zl(q);if(!ze&&!Ii&&!le&&D>q||le&&De&&Je&&!ze&&!Ii||St&&De&&Je||!tt&&Je||!Vt)return 1;if(!St&&!le&&!Ii&&D=ze)return Je;var Ii=tt[St];return Je*(Ii=="desc"?-1:1)}}return D.index-q.index}function aO(D,q,tt,St){for(var Vt=-1,le=D.length,De=tt.length,ze=-1,Je=q.length,Ii=So(le-De,0),Di=ui(Je+Ii),Ri=!St;++ze1?tt[Vt-1]:e,De=Vt>2?tt[2]:e;for(le=D.length>3&&typeof le=="function"?(Vt--,le):e,De&&fl(tt[0],tt[1],De)&&(le=Vt<3?e:le,Vt=1),q=pr(q);++St-1?Vt[le?q[De]:De]:e}}function cO(D){return L0(function(q){var tt=q.length,St=tt,Vt=os.prototype.thru;for(D&&q.reverse();St--;){var le=q[St];if(typeof le!="function")throw new rs(n);if(Vt&&!De&&fx(le)=="wrapper")var De=new os([],!0)}for(St=De?St:tt;++St1&&Ra.reverse(),Di&&Jeze))return!1;var Ii=le.get(D),Di=le.get(q);if(Ii&&Di)return Ii==q&&Di==D;var Ri=-1,rn=!0,Sn=tt&E?new hm:e;for(le.set(D,q),le.set(q,D);++Ri1?"& ":"")+q[St],q=q.join(tt>2?", ":" "),D.replace(hi,`{ +import{a as pA,b as yr,c as cg,d as ri,e as UA}from"./chunk-TO6SHLEP.js";import{a as go,b as Yw,c as Jw,d as Sf}from"./chunk-VCV3Q6QU.js";import{$ as T9,$a as Oo,$b as ur,$c as Xt,$d as oi,$e as ge,$f as qA,A as El,Aa as k,Ab as G9,Ac as eA,Ad as ue,Ae as f0,Af as Nd,B as vf,Ba as P,Bb as Bx,Bc as iA,Bd as Eo,Be as Bo,Bf as tg,C as $l,Ca as F9,Cb as Nx,Cc as bi,Cd as he,Ce as No,Cf as kA,D as Ba,Da as k9,Db as U9,Dc as ut,Dd as lr,De as al,Df as eg,E as ja,Ea as Rt,Ec as kp,Ed as si,Ee as La,Ef as Ld,F as S9,Fa as Op,Fb as cn,Fc as gn,Fd as pi,Fe as jp,Ff as Vd,G as At,Ga as Td,Gb as $w,Gc as nA,Gd as ci,Ge as xr,Gf as RA,H as zi,Ha as wt,Hb as $9,Hc as il,Hd as di,He as Ae,Hf as BA,I as Ed,Ia as Ct,Ib as za,Ic as Ke,Id as wi,Ie as SA,If as ig,J as Ft,Ja as yt,Jb as Fp,Jc as Me,Jd as ki,Je as Rd,Jf as NA,Ka as gt,Kb as W9,Kc as yf,Kd as Yt,Ke as hs,Kf as LA,L as w9,La as t,Lb as Q9,Lc as tr,Ld as sA,Le as co,Lf as Lr,Ma as g,Mb as Y9,Mc as aA,Md as cA,Me as mo,Mf as xs,N as Za,Na as b,Nb as p0,Nc as oe,Nd as Dt,Ne as wA,Nf as h0,O as N,Oa as rt,Ob as Oa,Oc as lt,Od as Qx,Oe as PA,Of as ng,P as L,Pa as or,Pb as js,Pc as zt,Pe as EA,Pf as ol,Q as cr,Qa as R9,Qb as Ao,Qc as Jt,Qd as an,Qe as zp,Qf as Xn,R as P9,Ra as U0,Rb as wo,Rc as zs,Rd as gi,Re as Te,Rf as kn,S as Ix,Sa as $0,Sb as J9,Sd as Fd,Se as ai,Sf as Sa,T as G0,Ta as W0,Tb as $a,Tc as ee,Td as Bp,Te as IA,Tf as _a,Ua as Ax,Ub as io,Uc as Rp,Ud as ti,Ue as gr,Uf as Cr,V as vi,Va as it,Vb as Po,Vc as Zt,Vd as Bi,Ve as _r,Vf as Oi,W as Sm,Wa as Re,Wb as Pm,Wc as ln,Wd as Yx,We as vr,Wf as Rn,X as bf,Xa as oo,Xb as Lx,Xc as yn,Xd as Jx,Xe as br,Xf as VA,Y as E9,Ya as c,Yb as Cf,Yc as Kt,Yd as m0,Ye as Ki,Z as Uw,Za as m,Zb as Vx,Zc as fr,Zd as d0,Ze as qi,Zf as ag,_ as I9,_a as Oe,_b as Pt,_c as Qr,_d as u0,_e as xe,_f as rg,a as xf,aa as Tx,ab as $e,ac as qx,ad as rA,ae as mA,af as _e,ag as og,b as gf,ba as Mx,bb as Ze,bc as Lt,bd as Tl,be as dA,bg as Lo,c as Uo,ca as M9,cb as us,cc as It,cd as me,ce as uA,cf as ve,cg as xo,d as $r,da as Id,db as B9,dc as Wr,dd as Wx,de as kd,df as be,dg as _n,e as d9,ea as s,eb as N9,ec as Cn,ed as Yr,ee as ir,eg as Gi,f as u9,fa as D9,fb as Md,fc as jx,fd as oA,fe as Kx,ff as Ce,fg as jA,g as f9,ga as O9,gb as ga,gc as Si,gd as te,ge as fA,gf as ye,gg as Vo,h as _f,ha as Dx,hb as Ut,hc as _t,hd as c0,he as hA,i as Cm,ia as O,ib as Et,ic as zx,id as dt,ie as Fo,if as Se,ig as zA,j as h9,ja as pt,jb as Br,jc as Ww,jd as Ht,je as Xx,jf as we,jg as $i,k as An,ka as Hi,kb as Nr,kc as K9,kd as er,ke as xA,kg as lg,l as x9,la as wm,lb as L9,lc as X9,ld as nl,le as gA,lf as Pe,lg as x0,m as g9,ma as Ox,mb as fs,mc as Qw,md as Qt,me as _A,mf as TA,mg as HA,n as Pd,na as h,nb as V9,nc as Hx,nd as Ml,ne as vA,nf as MA,o as ym,oa as jn,ob as lo,oc as Gx,od as Ie,oe as bA,of as Ge,og as sg,p as _9,pa as f,pb as Fx,pc as Z9,pd as hr,pe as CA,pf as DA,pg as sr,q as Pl,qa as Dp,qb as Dd,qc as tA,qd as lA,qe as Hs,qf as OA,qg as gs,r as H0,ra as ds,rb as kx,rc as Ux,rd as Od,re as Np,rf as rl,rg as Fa,s as Ex,sa as A9,sb as q9,sc as ra,sd as Ot,se as Lp,sf as $o,sg as _s,t as Va,ta as o,tb as Rx,tc as Aa,td as de,te as yA,tf as uo,tg as pg,u as v9,ua as l,ub as Ap,uc as Ve,ud as Jr,ue as so,uf as fo,ug as GA,v as qa,va as y,vb as j9,vc as Jn,vd as Ad,ve as po,vf as ho,w as s0,wa as $,wb as mt,wc as Kn,wd as ni,we as Vp,wf as AA,wg as pa,x as b9,xa as W,xb as z9,xc as ya,xd as Mt,xe as qp,xf as FA,y as C9,ya as Il,yb as Wl,yc as zn,yd as Hn,ye as ko,yf as Zx,z as y9,za as Y,zb as H9,zc as $x,zd as Nt,ze as Ro,zf as Bd}from"./chunk-QRALQUVB.js";import{a as ae,b as Le,c as Vs,d as c9,e as pe,f as Hw,g as qs,h as Zn,i as Gw,j as m9,k as Px}from"./chunk-PHUH23IY.js";var Am=pe((Ud,Af)=>{(function(){var e,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",n="Expected a function",p="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,x="__lodash_placeholder__",_=1,v=2,C=4,S=1,E=2,w=1,I=2,T=4,A=8,V=16,G=32,J=64,at=128,X=256,nt=512,ot=30,ht="...",ct=800,z=16,U=1,st=2,M=3,F=1/0,B=9007199254740991,R=17976931348623157e292,j=NaN,H=4294967295,et=H-1,vt=H>>>1,bt=[["ary",at],["bind",w],["bindKey",I],["curry",A],["curryRight",V],["flip",nt],["partial",G],["partialRight",J],["rearg",X]],kt="[object Arguments]",Z="[object Array]",Tt="[object AsyncFunction]",K="[object Boolean]",Q="[object Date]",xt="[object DOMException]",Bt="[object Error]",ce="[object Function]",Wt="[object GeneratorFunction]",ne="[object Map]",Ue="[object Number]",qe="[object Null]",$t="[object Object]",Ne="[object Promise]",Fe="[object Proxy]",He="[object RegExp]",Qe="[object Set]",Xe="[object String]",ei="[object Symbol]",Mi="[object Undefined]",Ai="[object WeakMap]",Ni="[object WeakSet]",un="[object ArrayBuffer]",Ui="[object DataView]",Zi="[object Float32Array]",na="[object Float64Array]",vn="[object Int8Array]",nn="[object Int16Array]",bn="[object Int32Array]",ji="[object Uint8Array]",Li="[object Uint8ClampedArray]",ta="[object Uint16Array]",dn="[object Uint32Array]",En=/\b__p \+= '';/g,Vl=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mn=/&(?:amp|lt|gt|quot|#39);/g,qr=/[&<>"']/g,Un=RegExp(Mn.source),$n=RegExp(qr.source),cl=/<%-([\s\S]+?)%>/g,Fn=/<%([\s\S]+?)%>/g,Dn=/<%=([\s\S]+?)%>/g,vo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gn=/^\w*$/,On=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ml=/[\\^$.*+?()[\]{}|]/g,Wn=RegExp(ml.source),ke=/^\s+/,mi=/\s/,hi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ma=/,? & /,Ji=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mn=/[()=,{}\[\]\/\s]/,Wa=/\\(\\)?/g,In=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sn=/\w*$/,Ga=/^[-+]0x[0-9a-f]+$/i,fa=/^0b[01]+$/i,ha=/^\[object .+?Constructor\]$/,Ja=/^0o[0-7]+$/i,Fr=/^(?:0|[1-9]\d*)$/,ao=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bo=/($^)/,Zr=/['\n\r\u2028\u2029\\]/g,ro="\\ud800-\\udfff",fe="\\u0300-\\u036f",ii="\\ufe20-\\ufe2f",Ei="\\u20d0-\\u20ff",_i=fe+ii+Ei,Vi="\\u2700-\\u27bf",fn="a-z\\xdf-\\xf6\\xf8-\\xff",xn="\\xac\\xb1\\xd7\\xf7",va="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qn="\\u2000-\\u206f",Bn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yn="A-Z\\xc0-\\xd6\\xd8-\\xde",Er="\\ufe0e\\ufe0f",kr=xn+va+Qn+Bn,ka="['\u2019]",Ka="["+ro+"]",Co="["+kr+"]",Ho="["+_i+"]",dl="\\d+",is="["+Vi+"]",i0="["+fn+"]",sm="[^"+ro+kr+dl+Vi+fn+Yn+"]",n0="\\ud83c[\\udffb-\\udfff]",Na="(?:"+Ho+"|"+n0+")",Ua="[^"+ro+"]",pm="(?:\\ud83c[\\udde6-\\uddff]){2}",As="[\\ud800-\\udbff][\\udc00-\\udfff]",Fs="["+Yn+"]",Zo="\\u200d",ns="(?:"+i0+"|"+sm+")",a0="(?:"+Fs+"|"+sm+")",vp="(?:"+ka+"(?:d|ll|m|re|s|t|ve))?",cm="(?:"+ka+"(?:D|LL|M|RE|S|T|VE))?",F0=Na+"?",ks="["+Er+"]?",Lh="(?:"+Zo+"(?:"+[Ua,pm,As].join("|")+")"+ks+F0+")*",pd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mm=ks+F0+Lh,cd="(?:"+[is,pm,As].join("|")+")"+mm,Vh="(?:"+[Ua+Ho+"?",Ho,pm,As,Ka].join("|")+")",md=RegExp(ka,"g"),dd=RegExp(Ho,"g"),N5=RegExp(n0+"(?="+n0+")|"+Vh+mm,"g"),FZ=RegExp([Fs+"?"+i0+"+"+vp+"(?="+[Co,Fs,"$"].join("|")+")",a0+"+"+cm+"(?="+[Co,Fs+ns,"$"].join("|")+")",Fs+"?"+ns+"+"+vp,Fs+"+"+cm,Zu,pd,dl,cd].join("|"),"g"),kZ=RegExp("["+Zo+ro+_i+Er+"]"),RZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,BZ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],NZ=-1,Ir={};Ir[Zi]=Ir[na]=Ir[vn]=Ir[nn]=Ir[bn]=Ir[ji]=Ir[Li]=Ir[ta]=Ir[dn]=!0,Ir[kt]=Ir[Z]=Ir[un]=Ir[K]=Ir[Ui]=Ir[Q]=Ir[Bt]=Ir[ce]=Ir[ne]=Ir[Ue]=Ir[$t]=Ir[He]=Ir[Qe]=Ir[Xe]=Ir[Ai]=!1;var dr={};dr[kt]=dr[Z]=dr[un]=dr[Ui]=dr[K]=dr[Q]=dr[Zi]=dr[na]=dr[vn]=dr[nn]=dr[bn]=dr[ne]=dr[Ue]=dr[$t]=dr[He]=dr[Qe]=dr[Xe]=dr[ei]=dr[ji]=dr[Li]=dr[ta]=dr[dn]=!0,dr[Bt]=dr[ce]=dr[Ai]=!1;var LZ={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},VZ={"&":"&","<":"<",">":">",'"':""","'":"'"},qZ={"&":"&","<":"<",">":">",""":'"',"'":"'"},jZ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zZ=parseFloat,HZ=parseInt,n8=typeof global=="object"&&global&&global.Object===Object&&global,GZ=typeof self=="object"&&self&&self.Object===Object&&self,Mo=n8||GZ||Function("return this")(),L5=typeof Ud=="object"&&Ud&&!Ud.nodeType&&Ud,dm=L5&&typeof Af=="object"&&Af&&!Af.nodeType&&Af,a8=dm&&dm.exports===L5,V5=a8&&n8.process,as=function(){try{var We=dm&&dm.require&&dm.require("util").types;return We||V5&&V5.binding&&V5.binding("util")}catch{}}(),r8=as&&as.isArrayBuffer,o8=as&&as.isDate,l8=as&&as.isMap,s8=as&&as.isRegExp,p8=as&&as.isSet,c8=as&&as.isTypedArray;function ql(We,yi,ui){switch(ui.length){case 0:return We.call(yi);case 1:return We.call(yi,ui[0]);case 2:return We.call(yi,ui[0],ui[1]);case 3:return We.call(yi,ui[0],ui[1],ui[2])}return We.apply(yi,ui)}function UZ(We,yi,ui,hn){for(var aa=-1,Qa=We==null?0:We.length;++aa-1}function q5(We,yi,ui){for(var hn=-1,aa=We==null?0:We.length;++hn-1;);return ui}function _8(We,yi){for(var ui=We.length;ui--&&ud(yi,We[ui],0)>-1;);return ui}function ttt(We,yi){for(var ui=We.length,hn=0;ui--;)We[ui]===yi&&++hn;return hn}var ett=G5(LZ),itt=G5(VZ);function ntt(We){return"\\"+jZ[We]}function att(We,yi){return We==null?e:We[yi]}function fd(We){return kZ.test(We)}function rtt(We){return RZ.test(We)}function ott(We){for(var yi,ui=[];!(yi=We.next()).done;)ui.push(yi.value);return ui}function Q5(We){var yi=-1,ui=Array(We.size);return We.forEach(function(hn,aa){ui[++yi]=[aa,hn]}),ui}function v8(We,yi){return function(ui){return We(yi(ui))}}function yp(We,yi){for(var ui=-1,hn=We.length,aa=0,Qa=[];++ui-1}function Wtt(D,q){var tt=this.__data__,St=nx(tt,D);return St<0?(++this.size,tt.push([D,q])):tt[St][1]=q,this}k0.prototype.clear=Htt,k0.prototype.delete=Gtt,k0.prototype.get=Utt,k0.prototype.has=$tt,k0.prototype.set=Wtt;function R0(D){var q=-1,tt=D==null?0:D.length;for(this.clear();++q=q?D:q)),D}function ss(D,q,tt,St,Vt,le){var De,ze=q&_,Je=q&v,Ii=q&C;if(tt&&(De=Vt?tt(D,St,Vt,le):tt(D)),De!==e)return De;if(!jr(D))return D;var Di=sa(D);if(Di){if(De=Zet(D),!ze)return Cl(D,De)}else{var Ri=el(D),rn=Ri==ce||Ri==Wt;if(Mp(D))return eO(D,ze);if(Ri==$t||Ri==kt||rn&&!Vt){if(De=Je||rn?{}:bO(D),!ze)return Je?zet(D,cet(De,D)):jet(D,O8(De,D))}else{if(!dr[Ri])return Vt?D:{};De=tit(D,Ri,ze)}}le||(le=new Bs);var Sn=le.get(D);if(Sn)return Sn;le.set(D,De),YO(D)?D.forEach(function(qn){De.add(ss(qn,q,tt,qn,D,le))}):WO(D)&&D.forEach(function(qn,Ia){De.set(Ia,ss(qn,q,tt,Ia,D,le))});var Vn=Ii?Je?bw:vw:Je?Sl:Do,xa=Di?e:Vn(D);return rs(xa||D,function(qn,Ia){xa&&(Ia=qn,qn=D[Ia]),lf(De,Ia,ss(qn,q,tt,Ia,D,le))}),De}function met(D){var q=Do(D);return function(tt){return A8(tt,D,q)}}function A8(D,q,tt){var St=tt.length;if(D==null)return!St;for(D=pr(D);St--;){var Vt=tt[St],le=q[Vt],De=D[Vt];if(De===e&&!(Vt in D)||!le(De))return!1}return!0}function F8(D,q,tt){if(typeof D!="function")throw new os(n);return ff(function(){D.apply(e,tt)},q)}function sf(D,q,tt,St){var Vt=-1,le=qh,De=!0,ze=D.length,Je=[],Ii=q.length;if(!ze)return Je;tt&&(q=Rr(q,jl(tt))),St?(le=q5,De=!1):q.length>=i&&(le=tf,De=!1,q=new hm(q));t:for(;++VtVt?0:Vt+tt),St=St===e||St>Vt?Vt:ua(St),St<0&&(St+=Vt),St=tt>St?0:KO(St);tt0&&tt(ze)?q>1?Go(ze,q-1,tt,St,Vt):Cp(Vt,ze):St||(Vt[Vt.length]=ze)}return Vt}var ew=lO(),B8=lO(!0);function r0(D,q){return D&&ew(D,q,Do)}function iw(D,q){return D&&B8(D,q,Do)}function rx(D,q){return bp(q,function(tt){return q0(D[tt])})}function gm(D,q){q=Ip(q,D);for(var tt=0,St=q.length;D!=null&&ttq}function fet(D,q){return D!=null&&rr.call(D,q)}function het(D,q){return D!=null&&q in pr(D)}function xet(D,q,tt){return D>=tl(q,tt)&&D=120&&Di.length>=120)?new hm(De&&Di):e}Di=D[0];var Ri=-1,rn=ze[0];t:for(;++Ri-1;)ze!==D&&Jh.call(ze,Je,1),Jh.call(D,Je,1);return D}function W8(D,q){for(var tt=D?q.length:0,St=tt-1;tt--;){var Vt=q[tt];if(tt==St||Vt!==le){var le=Vt;V0(Vt)?Jh.call(D,Vt,1):dw(D,Vt)}}return D}function pw(D,q){return D+Zh(I8()*(q-D+1))}function Det(D,q,tt,St){for(var Vt=-1,le=So(Xh((q-D)/(tt||1)),0),De=ui(le);le--;)De[St?le:++Vt]=D,D+=tt;return De}function cw(D,q){var tt="";if(!D||q<1||q>B)return tt;do q%2&&(tt+=D),q=Zh(q/2),q&&(D+=D);while(q);return tt}function ba(D,q){return Iw(SO(D,q,wl),D+"")}function Oet(D){return D8(wd(D))}function Aet(D,q){var tt=wd(D);return xx(tt,xm(q,0,tt.length))}function mf(D,q,tt,St){if(!jr(D))return D;q=Ip(q,D);for(var Vt=-1,le=q.length,De=le-1,ze=D;ze!=null&&++VtVt?0:Vt+q),tt=tt>Vt?Vt:tt,tt<0&&(tt+=Vt),Vt=q>tt?0:tt-q>>>0,q>>>=0;for(var le=ui(Vt);++St>>1,De=D[le];De!==null&&!Hl(De)&&(tt?De<=q:De=i){var Ii=q?null:$et(D);if(Ii)return zh(Ii);De=!1,Vt=tf,Je=new hm}else Je=q?[]:ze;t:for(;++St=St?D:ps(D,q,tt)}var tO=Ctt||function(D){return Mo.clearTimeout(D)};function eO(D,q){if(q)return D.slice();var tt=D.length,St=y8?y8(tt):new D.constructor(tt);return D.copy(St),St}function xw(D){var q=new D.constructor(D.byteLength);return new Qh(q).set(new Qh(D)),q}function Net(D,q){var tt=q?xw(D.buffer):D.buffer;return new D.constructor(tt,D.byteOffset,D.byteLength)}function Let(D){var q=new D.constructor(D.source,sn.exec(D));return q.lastIndex=D.lastIndex,q}function Vet(D){return of?pr(of.call(D)):{}}function iO(D,q){var tt=q?xw(D.buffer):D.buffer;return new D.constructor(tt,D.byteOffset,D.length)}function nO(D,q){if(D!==q){var tt=D!==e,St=D===null,Vt=D===D,le=Hl(D),De=q!==e,ze=q===null,Je=q===q,Ii=Hl(q);if(!ze&&!Ii&&!le&&D>q||le&&De&&Je&&!ze&&!Ii||St&&De&&Je||!tt&&Je||!Vt)return 1;if(!St&&!le&&!Ii&&D=ze)return Je;var Ii=tt[St];return Je*(Ii=="desc"?-1:1)}}return D.index-q.index}function aO(D,q,tt,St){for(var Vt=-1,le=D.length,De=tt.length,ze=-1,Je=q.length,Ii=So(le-De,0),Di=ui(Je+Ii),Ri=!St;++ze1?tt[Vt-1]:e,De=Vt>2?tt[2]:e;for(le=D.length>3&&typeof le=="function"?(Vt--,le):e,De&&fl(tt[0],tt[1],De)&&(le=Vt<3?e:le,Vt=1),q=pr(q);++St-1?Vt[le?q[De]:De]:e}}function cO(D){return L0(function(q){var tt=q.length,St=tt,Vt=ls.prototype.thru;for(D&&q.reverse();St--;){var le=q[St];if(typeof le!="function")throw new os(n);if(Vt&&!De&&fx(le)=="wrapper")var De=new ls([],!0)}for(St=De?St:tt;++St1&&Ra.reverse(),Di&&Jeze))return!1;var Ii=le.get(D),Di=le.get(q);if(Ii&&Di)return Ii==q&&Di==D;var Ri=-1,rn=!0,Sn=tt&E?new hm:e;for(le.set(D,q),le.set(q,D);++Ri1?"& ":"")+q[St],q=q.join(tt>2?", ":" "),D.replace(hi,`{ /* [wrapped with `+q+`] */ -`)}function iit(D){return sa(D)||bm(D)||!!(P8&&D&&D[P8])}function V0(D,q){var tt=typeof D;return q=q??B,!!q&&(tt=="number"||tt!="symbol"&&Fr.test(D))&&D>-1&&D%1==0&&D0){if(++q>=ct)return arguments[0]}else q=0;return D.apply(e,arguments)}}function xx(D,q){var tt=-1,St=D.length,Vt=St-1;for(q=q===e?St:q;++tt1?D[q-1]:e;return tt=typeof tt=="function"?(D.pop(),tt):e,RO(D,tt)});function BO(D){var q=ie(D);return q.__chain__=!0,q}function unt(D,q){return q(D),D}function gx(D,q){return q(D)}var fnt=L0(function(D){var q=D.length,tt=q?D[0]:0,St=this.__wrapped__,Vt=function(le){return tw(le,D)};return q>1||this.__actions__.length||!(St instanceof Da)||!V0(tt)?this.thru(Vt):(St=St.slice(tt,+tt+(q?1:0)),St.__actions__.push({func:gx,args:[Vt],thisArg:e}),new os(St,this.__chain__).thru(function(le){return q&&!le.length&&le.push(e),le}))});function hnt(){return BO(this)}function xnt(){return new os(this.value(),this.__chain__)}function gnt(){this.__values__===e&&(this.__values__=JO(this.value()));var D=this.__index__>=this.__values__.length,q=D?e:this.__values__[this.__index__++];return{done:D,value:q}}function _nt(){return this}function vnt(D){for(var q,tt=this;tt instanceof ix;){var St=MO(tt);St.__index__=0,St.__values__=e,q?Vt.__wrapped__=St:q=St;var Vt=St;tt=tt.__wrapped__}return Vt.__wrapped__=D,q}function bnt(){var D=this.__wrapped__;if(D instanceof Da){var q=D;return this.__actions__.length&&(q=new Da(this)),q=q.reverse(),q.__actions__.push({func:gx,args:[Tw],thisArg:e}),new os(q,this.__chain__)}return this.thru(Tw)}function Cnt(){return X8(this.__wrapped__,this.__actions__)}var ynt=px(function(D,q,tt){rr.call(D,tt)?++D[tt]:B0(D,tt,1)});function Snt(D,q,tt){var St=sa(D)?m8:det;return tt&&fl(D,q,tt)&&(q=e),St(D,Nn(q,3))}function wnt(D,q){var tt=sa(D)?bp:R8;return tt(D,Nn(q,3))}var Pnt=pO(DO),Ent=pO(OO);function Int(D,q){return Go(_x(D,q),1)}function Tnt(D,q){return Go(_x(D,q),F)}function Mnt(D,q,tt){return tt=tt===e?1:ua(tt),Go(_x(D,q),tt)}function NO(D,q){var tt=sa(D)?as:Pp;return tt(D,Nn(q,3))}function LO(D,q){var tt=sa(D)?$Z:k8;return tt(D,Nn(q,3))}var Dnt=px(function(D,q,tt){rr.call(D,tt)?D[tt].push(q):B0(D,tt,[q])});function Ont(D,q,tt,St){D=yl(D)?D:wd(D),tt=tt&&!St?ua(tt):0;var Vt=D.length;return tt<0&&(tt=So(Vt+tt,0)),Sx(D)?tt<=Vt&&D.indexOf(q,tt)>-1:!!Vt&&ud(D,q,tt)>-1}var Ant=ba(function(D,q,tt){var St=-1,Vt=typeof q=="function",le=yl(D)?ui(D.length):[];return Pp(D,function(De){le[++St]=Vt?Vl(q,De,tt):pf(De,q,tt)}),le}),Fnt=px(function(D,q,tt){B0(D,tt,q)});function _x(D,q){var tt=sa(D)?Rr:j8;return tt(D,Nn(q,3))}function knt(D,q,tt,St){return D==null?[]:(sa(q)||(q=q==null?[]:[q]),tt=St?e:tt,sa(tt)||(tt=tt==null?[]:[tt]),U8(D,q,tt))}var Rnt=px(function(D,q,tt){D[tt?0:1].push(q)},function(){return[[],[]]});function Bnt(D,q,tt){var St=sa(D)?j5:h8,Vt=arguments.length<3;return St(D,Nn(q,4),tt,Vt,Pp)}function Nnt(D,q,tt){var St=sa(D)?WZ:h8,Vt=arguments.length<3;return St(D,Nn(q,4),tt,Vt,k8)}function Lnt(D,q){var tt=sa(D)?bp:R8;return tt(D,Cx(Nn(q,3)))}function Vnt(D){var q=sa(D)?D8:Oet;return q(D)}function qnt(D,q,tt){(tt?fl(D,q,tt):q===e)?q=1:q=ua(q);var St=sa(D)?oet:Aet;return St(D,q)}function jnt(D){var q=sa(D)?set:ket;return q(D)}function znt(D){if(D==null)return 0;if(yl(D))return Sx(D)?hd(D):D.length;var q=el(D);return q==ne||q==Qe?D.size:ow(D).length}function Hnt(D,q,tt){var St=sa(D)?z5:Ret;return tt&&fl(D,q,tt)&&(q=e),St(D,Nn(q,3))}var Gnt=ba(function(D,q){if(D==null)return[];var tt=q.length;return tt>1&&fl(D,q[0],q[1])?q=[]:tt>2&&fl(q[0],q[1],q[2])&&(q=[q[0]]),U8(D,Go(q,1),[])}),vx=ytt||function(){return Mo.Date.now()};function Unt(D,q){if(typeof q!="function")throw new rs(n);return D=ua(D),function(){if(--D<1)return q.apply(this,arguments)}}function VO(D,q,tt){return q=tt?e:q,q=D&&q==null?D.length:q,N0(D,at,e,e,e,e,q)}function qO(D,q){var tt;if(typeof q!="function")throw new rs(n);return D=ua(D),function(){return--D>0&&(tt=q.apply(this,arguments)),D<=1&&(q=e),tt}}var Dw=ba(function(D,q,tt){var St=w;if(tt.length){var Vt=yp(tt,yd(Dw));St|=G}return N0(D,St,q,tt,Vt)}),jO=ba(function(D,q,tt){var St=w|I;if(tt.length){var Vt=yp(tt,yd(jO));St|=G}return N0(q,St,D,tt,Vt)});function zO(D,q,tt){q=tt?e:q;var St=N0(D,A,e,e,e,e,e,q);return St.placeholder=zO.placeholder,St}function HO(D,q,tt){q=tt?e:q;var St=N0(D,V,e,e,e,e,e,q);return St.placeholder=HO.placeholder,St}function GO(D,q,tt){var St,Vt,le,De,ze,Je,Ii=0,Di=!1,Ri=!1,rn=!0;if(typeof D!="function")throw new rs(n);q=cs(q)||0,jr(tt)&&(Di=!!tt.leading,Ri="maxWait"in tt,le=Ri?So(cs(tt.maxWait)||0,q):le,rn="trailing"in tt?!!tt.trailing:rn);function Sn(eo){var Ls=St,z0=Vt;return St=Vt=e,Ii=eo,De=D.apply(z0,Ls),De}function Vn(eo){return Ii=eo,ze=ff(Ia,q),Di?Sn(eo):De}function xa(eo){var Ls=eo-Je,z0=eo-Ii,p9=q-Ls;return Ri?tl(p9,le-z0):p9}function qn(eo){var Ls=eo-Je,z0=eo-Ii;return Je===e||Ls>=q||Ls<0||Ri&&z0>=le}function Ia(){var eo=vx();if(qn(eo))return Ra(eo);ze=ff(Ia,xa(eo))}function Ra(eo){return ze=e,rn&&St?Sn(eo):(St=Vt=e,De)}function Hl(){ze!==e&&tO(ze),Ii=0,St=Je=Vt=ze=e}function hl(){return ze===e?De:Ra(vx())}function Gl(){var eo=vx(),Ls=qn(eo);if(St=arguments,Vt=this,Je=eo,Ls){if(ze===e)return Vn(Je);if(Ri)return tO(ze),ze=ff(Ia,q),Sn(Je)}return ze===e&&(ze=ff(Ia,q)),De}return Gl.cancel=Hl,Gl.flush=hl,Gl}var $nt=ba(function(D,q){return F8(D,1,q)}),Wnt=ba(function(D,q,tt){return F8(D,cs(q)||0,tt)});function Qnt(D){return N0(D,nt)}function bx(D,q){if(typeof D!="function"||q!=null&&typeof q!="function")throw new rs(n);var tt=function(){var St=arguments,Vt=q?q.apply(this,St):St[0],le=tt.cache;if(le.has(Vt))return le.get(Vt);var De=D.apply(this,St);return tt.cache=le.set(Vt,De)||le,De};return tt.cache=new(bx.Cache||R0),tt}bx.Cache=R0;function Cx(D){if(typeof D!="function")throw new rs(n);return function(){var q=arguments;switch(q.length){case 0:return!D.call(this);case 1:return!D.call(this,q[0]);case 2:return!D.call(this,q[0],q[1]);case 3:return!D.call(this,q[0],q[1],q[2])}return!D.apply(this,q)}}function Ynt(D){return qO(2,D)}var Jnt=Bet(function(D,q){q=q.length==1&&sa(q[0])?Rr(q[0],ql(Nn())):Rr(Go(q,1),ql(Nn()));var tt=q.length;return ba(function(St){for(var Vt=-1,le=tl(St.length,tt);++Vt=q}),bm=L8(function(){return arguments}())?L8:function(D){return Ur(D)&&rr.call(D,"callee")&&!w8.call(D,"callee")},sa=ui.isArray,mat=r8?ql(r8):_et;function yl(D){return D!=null&&yx(D.length)&&!q0(D)}function to(D){return Ur(D)&&yl(D)}function dat(D){return D===!0||D===!1||Ur(D)&&ul(D)==K}var Mp=wtt||zw,uat=o8?ql(o8):vet;function fat(D){return Ur(D)&&D.nodeType===1&&!hf(D)}function hat(D){if(D==null)return!0;if(yl(D)&&(sa(D)||typeof D=="string"||typeof D.splice=="function"||Mp(D)||Sd(D)||bm(D)))return!D.length;var q=el(D);if(q==ne||q==Qe)return!D.size;if(uf(D))return!ow(D).length;for(var tt in D)if(rr.call(D,tt))return!1;return!0}function xat(D,q){return cf(D,q)}function gat(D,q,tt){tt=typeof tt=="function"?tt:e;var St=tt?tt(D,q):e;return St===e?cf(D,q,e,tt):!!St}function Aw(D){if(!Ur(D))return!1;var q=ul(D);return q==Bt||q==xt||typeof D.message=="string"&&typeof D.name=="string"&&!hf(D)}function _at(D){return typeof D=="number"&&E8(D)}function q0(D){if(!jr(D))return!1;var q=ul(D);return q==ce||q==Wt||q==Tt||q==Fe}function $O(D){return typeof D=="number"&&D==ua(D)}function yx(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=B}function jr(D){var q=typeof D;return D!=null&&(q=="object"||q=="function")}function Ur(D){return D!=null&&typeof D=="object"}var WO=l8?ql(l8):Cet;function vat(D,q){return D===q||rw(D,q,yw(q))}function bat(D,q,tt){return tt=typeof tt=="function"?tt:e,rw(D,q,yw(q),tt)}function Cat(D){return QO(D)&&D!=+D}function yat(D){if(rit(D))throw new aa(a);return V8(D)}function Sat(D){return D===null}function wat(D){return D==null}function QO(D){return typeof D=="number"||Ur(D)&&ul(D)==Ue}function hf(D){if(!Ur(D)||ul(D)!=$t)return!1;var q=Yh(D);if(q===null)return!0;var tt=rr.call(q,"constructor")&&q.constructor;return typeof tt=="function"&&tt instanceof tt&&Uh.call(tt)==_tt}var Fw=s8?ql(s8):yet;function Pat(D){return $O(D)&&D>=-B&&D<=B}var YO=p8?ql(p8):wet;function Sx(D){return typeof D=="string"||!sa(D)&&Ur(D)&&ul(D)==Xe}function zl(D){return typeof D=="symbol"||Ur(D)&&ul(D)==ei}var Sd=c8?ql(c8):Pet;function Eat(D){return D===e}function Iat(D){return Ur(D)&&el(D)==Ai}function Tat(D){return Ur(D)&&ul(D)==Ni}var Mat=ux(lw),Dat=ux(function(D,q){return D<=q});function JO(D){if(!D)return[];if(yl(D))return Sx(D)?Rs(D):Cl(D);if(ef&&D[ef])return ott(D[ef]());var q=el(D),tt=q==ne?Q5:q==Qe?zh:wd;return tt(D)}function j0(D){if(!D)return D===0?D:0;if(D=cs(D),D===F||D===-F){var q=D<0?-1:1;return q*R}return D===D?D:0}function ua(D){var q=j0(D),tt=q%1;return q===q?tt?q-tt:q:0}function KO(D){return D?xm(ua(D),0,H):0}function cs(D){if(typeof D=="number")return D;if(zl(D))return j;if(jr(D)){var q=typeof D.valueOf=="function"?D.valueOf():D;D=jr(q)?q+"":q}if(typeof D!="string")return D===0?D:+D;D=x8(D);var tt=fa.test(D);return tt||Ja.test(D)?HZ(D.slice(2),tt?2:8):Ga.test(D)?j:+D}function XO(D){return o0(D,Sl(D))}function Oat(D){return D?xm(ua(D),-B,B):D===0?D:0}function Xa(D){return D==null?"":jl(D)}var Aat=bd(function(D,q){if(uf(q)||yl(q)){o0(q,Do(q),D);return}for(var tt in q)rr.call(q,tt)&&lf(D,tt,q[tt])}),ZO=bd(function(D,q){o0(q,Sl(q),D)}),wx=bd(function(D,q,tt,St){o0(q,Sl(q),D,St)}),Fat=bd(function(D,q,tt,St){o0(q,Do(q),D,St)}),kat=L0(tw);function Rat(D,q){var tt=vd(D);return q==null?tt:O8(tt,q)}var Bat=ba(function(D,q){D=pr(D);var tt=-1,St=q.length,Vt=St>2?q[2]:e;for(Vt&&fl(q[0],q[1],Vt)&&(St=1);++tt1),le}),o0(D,bw(D),tt),St&&(tt=ls(tt,_|v|C,Wet));for(var Vt=q.length;Vt--;)dw(tt,q[Vt]);return tt});function trt(D,q){return e9(D,Cx(Nn(q)))}var ert=L0(function(D,q){return D==null?{}:Tet(D,q)});function e9(D,q){if(D==null)return{};var tt=Rr(bw(D),function(St){return[St]});return q=Nn(q),$8(D,tt,function(St,Vt){return q(St,Vt[0])})}function irt(D,q,tt){q=Ip(q,D);var St=-1,Vt=q.length;for(Vt||(Vt=1,D=e);++Stq){var St=D;D=q,q=St}if(tt||D%1||q%1){var Vt=I8();return tl(D+Vt*(q-D+zZ("1e-"+((Vt+"").length-1))),q)}return pw(D,q)}var urt=Cd(function(D,q,tt){return q=q.toLowerCase(),D+(tt?a9(q):q)});function a9(D){return Bw(Xa(D).toLowerCase())}function r9(D){return D=Xa(D),D&&D.replace(ao,ett).replace(dd,"")}function frt(D,q,tt){D=Xa(D),q=jl(q);var St=D.length;tt=tt===e?St:xm(ua(tt),0,St);var Vt=tt;return tt-=q.length,tt>=0&&D.slice(tt,Vt)==q}function hrt(D){return D=Xa(D),D&&$n.test(D)?D.replace(qr,itt):D}function xrt(D){return D=Xa(D),D&&Wn.test(D)?D.replace(ml,"\\$&"):D}var grt=Cd(function(D,q,tt){return D+(tt?"-":"")+q.toLowerCase()}),_rt=Cd(function(D,q,tt){return D+(tt?" ":"")+q.toLowerCase()}),vrt=sO("toLowerCase");function brt(D,q,tt){D=Xa(D),q=ua(q);var St=q?hd(D):0;if(!q||St>=q)return D;var Vt=(q-St)/2;return dx(Zh(Vt),tt)+D+dx(Xh(Vt),tt)}function Crt(D,q,tt){D=Xa(D),q=ua(q);var St=q?hd(D):0;return q&&St>>0,tt?(D=Xa(D),D&&(typeof q=="string"||q!=null&&!Fw(q))&&(q=jl(q),!q&&fd(D))?Tp(Rs(D),0,tt):D.split(q,tt)):[]}var Trt=Cd(function(D,q,tt){return D+(tt?" ":"")+Bw(q)});function Mrt(D,q,tt){return D=Xa(D),tt=tt==null?0:xm(ua(tt),0,D.length),q=jl(q),D.slice(tt,tt+q.length)==q}function Drt(D,q,tt){var St=ie.templateSettings;tt&&fl(D,q,tt)&&(q=e),D=Xa(D),q=wx({},q,St,hO);var Vt=wx({},q.imports,St.imports,hO),le=Do(Vt),De=W5(Vt,le),ze,Je,Ii=0,Di=q.interpolate||bo,Ri="__p += '",rn=Y5((q.escape||bo).source+"|"+Di.source+"|"+(Di===Dn?In:bo).source+"|"+(q.evaluate||bo).source+"|$","g"),Sn="//# sourceURL="+(rr.call(q,"sourceURL")?(q.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++NZ+"]")+` -`;D.replace(rn,function(qn,Ia,Ra,Hl,hl,Gl){return Ra||(Ra=Hl),Ri+=D.slice(Ii,Gl).replace(Zr,ntt),Ia&&(ze=!0,Ri+=`' + +`)}function iit(D){return sa(D)||bm(D)||!!(P8&&D&&D[P8])}function V0(D,q){var tt=typeof D;return q=q??B,!!q&&(tt=="number"||tt!="symbol"&&Fr.test(D))&&D>-1&&D%1==0&&D0){if(++q>=ct)return arguments[0]}else q=0;return D.apply(e,arguments)}}function xx(D,q){var tt=-1,St=D.length,Vt=St-1;for(q=q===e?St:q;++tt1?D[q-1]:e;return tt=typeof tt=="function"?(D.pop(),tt):e,RO(D,tt)});function BO(D){var q=ie(D);return q.__chain__=!0,q}function unt(D,q){return q(D),D}function gx(D,q){return q(D)}var fnt=L0(function(D){var q=D.length,tt=q?D[0]:0,St=this.__wrapped__,Vt=function(le){return tw(le,D)};return q>1||this.__actions__.length||!(St instanceof Da)||!V0(tt)?this.thru(Vt):(St=St.slice(tt,+tt+(q?1:0)),St.__actions__.push({func:gx,args:[Vt],thisArg:e}),new ls(St,this.__chain__).thru(function(le){return q&&!le.length&&le.push(e),le}))});function hnt(){return BO(this)}function xnt(){return new ls(this.value(),this.__chain__)}function gnt(){this.__values__===e&&(this.__values__=JO(this.value()));var D=this.__index__>=this.__values__.length,q=D?e:this.__values__[this.__index__++];return{done:D,value:q}}function _nt(){return this}function vnt(D){for(var q,tt=this;tt instanceof ix;){var St=MO(tt);St.__index__=0,St.__values__=e,q?Vt.__wrapped__=St:q=St;var Vt=St;tt=tt.__wrapped__}return Vt.__wrapped__=D,q}function bnt(){var D=this.__wrapped__;if(D instanceof Da){var q=D;return this.__actions__.length&&(q=new Da(this)),q=q.reverse(),q.__actions__.push({func:gx,args:[Tw],thisArg:e}),new ls(q,this.__chain__)}return this.thru(Tw)}function Cnt(){return X8(this.__wrapped__,this.__actions__)}var ynt=px(function(D,q,tt){rr.call(D,tt)?++D[tt]:B0(D,tt,1)});function Snt(D,q,tt){var St=sa(D)?m8:det;return tt&&fl(D,q,tt)&&(q=e),St(D,Nn(q,3))}function wnt(D,q){var tt=sa(D)?bp:R8;return tt(D,Nn(q,3))}var Pnt=pO(DO),Ent=pO(OO);function Int(D,q){return Go(_x(D,q),1)}function Tnt(D,q){return Go(_x(D,q),F)}function Mnt(D,q,tt){return tt=tt===e?1:ua(tt),Go(_x(D,q),tt)}function NO(D,q){var tt=sa(D)?rs:Pp;return tt(D,Nn(q,3))}function LO(D,q){var tt=sa(D)?$Z:k8;return tt(D,Nn(q,3))}var Dnt=px(function(D,q,tt){rr.call(D,tt)?D[tt].push(q):B0(D,tt,[q])});function Ont(D,q,tt,St){D=yl(D)?D:wd(D),tt=tt&&!St?ua(tt):0;var Vt=D.length;return tt<0&&(tt=So(Vt+tt,0)),Sx(D)?tt<=Vt&&D.indexOf(q,tt)>-1:!!Vt&&ud(D,q,tt)>-1}var Ant=ba(function(D,q,tt){var St=-1,Vt=typeof q=="function",le=yl(D)?ui(D.length):[];return Pp(D,function(De){le[++St]=Vt?ql(q,De,tt):pf(De,q,tt)}),le}),Fnt=px(function(D,q,tt){B0(D,tt,q)});function _x(D,q){var tt=sa(D)?Rr:j8;return tt(D,Nn(q,3))}function knt(D,q,tt,St){return D==null?[]:(sa(q)||(q=q==null?[]:[q]),tt=St?e:tt,sa(tt)||(tt=tt==null?[]:[tt]),U8(D,q,tt))}var Rnt=px(function(D,q,tt){D[tt?0:1].push(q)},function(){return[[],[]]});function Bnt(D,q,tt){var St=sa(D)?j5:h8,Vt=arguments.length<3;return St(D,Nn(q,4),tt,Vt,Pp)}function Nnt(D,q,tt){var St=sa(D)?WZ:h8,Vt=arguments.length<3;return St(D,Nn(q,4),tt,Vt,k8)}function Lnt(D,q){var tt=sa(D)?bp:R8;return tt(D,Cx(Nn(q,3)))}function Vnt(D){var q=sa(D)?D8:Oet;return q(D)}function qnt(D,q,tt){(tt?fl(D,q,tt):q===e)?q=1:q=ua(q);var St=sa(D)?oet:Aet;return St(D,q)}function jnt(D){var q=sa(D)?set:ket;return q(D)}function znt(D){if(D==null)return 0;if(yl(D))return Sx(D)?hd(D):D.length;var q=el(D);return q==ne||q==Qe?D.size:ow(D).length}function Hnt(D,q,tt){var St=sa(D)?z5:Ret;return tt&&fl(D,q,tt)&&(q=e),St(D,Nn(q,3))}var Gnt=ba(function(D,q){if(D==null)return[];var tt=q.length;return tt>1&&fl(D,q[0],q[1])?q=[]:tt>2&&fl(q[0],q[1],q[2])&&(q=[q[0]]),U8(D,Go(q,1),[])}),vx=ytt||function(){return Mo.Date.now()};function Unt(D,q){if(typeof q!="function")throw new os(n);return D=ua(D),function(){if(--D<1)return q.apply(this,arguments)}}function VO(D,q,tt){return q=tt?e:q,q=D&&q==null?D.length:q,N0(D,at,e,e,e,e,q)}function qO(D,q){var tt;if(typeof q!="function")throw new os(n);return D=ua(D),function(){return--D>0&&(tt=q.apply(this,arguments)),D<=1&&(q=e),tt}}var Dw=ba(function(D,q,tt){var St=w;if(tt.length){var Vt=yp(tt,yd(Dw));St|=G}return N0(D,St,q,tt,Vt)}),jO=ba(function(D,q,tt){var St=w|I;if(tt.length){var Vt=yp(tt,yd(jO));St|=G}return N0(q,St,D,tt,Vt)});function zO(D,q,tt){q=tt?e:q;var St=N0(D,A,e,e,e,e,e,q);return St.placeholder=zO.placeholder,St}function HO(D,q,tt){q=tt?e:q;var St=N0(D,V,e,e,e,e,e,q);return St.placeholder=HO.placeholder,St}function GO(D,q,tt){var St,Vt,le,De,ze,Je,Ii=0,Di=!1,Ri=!1,rn=!0;if(typeof D!="function")throw new os(n);q=ms(q)||0,jr(tt)&&(Di=!!tt.leading,Ri="maxWait"in tt,le=Ri?So(ms(tt.maxWait)||0,q):le,rn="trailing"in tt?!!tt.trailing:rn);function Sn(eo){var Ls=St,z0=Vt;return St=Vt=e,Ii=eo,De=D.apply(z0,Ls),De}function Vn(eo){return Ii=eo,ze=ff(Ia,q),Di?Sn(eo):De}function xa(eo){var Ls=eo-Je,z0=eo-Ii,p9=q-Ls;return Ri?tl(p9,le-z0):p9}function qn(eo){var Ls=eo-Je,z0=eo-Ii;return Je===e||Ls>=q||Ls<0||Ri&&z0>=le}function Ia(){var eo=vx();if(qn(eo))return Ra(eo);ze=ff(Ia,xa(eo))}function Ra(eo){return ze=e,rn&&St?Sn(eo):(St=Vt=e,De)}function Gl(){ze!==e&&tO(ze),Ii=0,St=Je=Vt=ze=e}function hl(){return ze===e?De:Ra(vx())}function Ul(){var eo=vx(),Ls=qn(eo);if(St=arguments,Vt=this,Je=eo,Ls){if(ze===e)return Vn(Je);if(Ri)return tO(ze),ze=ff(Ia,q),Sn(Je)}return ze===e&&(ze=ff(Ia,q)),De}return Ul.cancel=Gl,Ul.flush=hl,Ul}var $nt=ba(function(D,q){return F8(D,1,q)}),Wnt=ba(function(D,q,tt){return F8(D,ms(q)||0,tt)});function Qnt(D){return N0(D,nt)}function bx(D,q){if(typeof D!="function"||q!=null&&typeof q!="function")throw new os(n);var tt=function(){var St=arguments,Vt=q?q.apply(this,St):St[0],le=tt.cache;if(le.has(Vt))return le.get(Vt);var De=D.apply(this,St);return tt.cache=le.set(Vt,De)||le,De};return tt.cache=new(bx.Cache||R0),tt}bx.Cache=R0;function Cx(D){if(typeof D!="function")throw new os(n);return function(){var q=arguments;switch(q.length){case 0:return!D.call(this);case 1:return!D.call(this,q[0]);case 2:return!D.call(this,q[0],q[1]);case 3:return!D.call(this,q[0],q[1],q[2])}return!D.apply(this,q)}}function Ynt(D){return qO(2,D)}var Jnt=Bet(function(D,q){q=q.length==1&&sa(q[0])?Rr(q[0],jl(Nn())):Rr(Go(q,1),jl(Nn()));var tt=q.length;return ba(function(St){for(var Vt=-1,le=tl(St.length,tt);++Vt=q}),bm=L8(function(){return arguments}())?L8:function(D){return Ur(D)&&rr.call(D,"callee")&&!w8.call(D,"callee")},sa=ui.isArray,mat=r8?jl(r8):_et;function yl(D){return D!=null&&yx(D.length)&&!q0(D)}function to(D){return Ur(D)&&yl(D)}function dat(D){return D===!0||D===!1||Ur(D)&&ul(D)==K}var Mp=wtt||zw,uat=o8?jl(o8):vet;function fat(D){return Ur(D)&&D.nodeType===1&&!hf(D)}function hat(D){if(D==null)return!0;if(yl(D)&&(sa(D)||typeof D=="string"||typeof D.splice=="function"||Mp(D)||Sd(D)||bm(D)))return!D.length;var q=el(D);if(q==ne||q==Qe)return!D.size;if(uf(D))return!ow(D).length;for(var tt in D)if(rr.call(D,tt))return!1;return!0}function xat(D,q){return cf(D,q)}function gat(D,q,tt){tt=typeof tt=="function"?tt:e;var St=tt?tt(D,q):e;return St===e?cf(D,q,e,tt):!!St}function Aw(D){if(!Ur(D))return!1;var q=ul(D);return q==Bt||q==xt||typeof D.message=="string"&&typeof D.name=="string"&&!hf(D)}function _at(D){return typeof D=="number"&&E8(D)}function q0(D){if(!jr(D))return!1;var q=ul(D);return q==ce||q==Wt||q==Tt||q==Fe}function $O(D){return typeof D=="number"&&D==ua(D)}function yx(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=B}function jr(D){var q=typeof D;return D!=null&&(q=="object"||q=="function")}function Ur(D){return D!=null&&typeof D=="object"}var WO=l8?jl(l8):Cet;function vat(D,q){return D===q||rw(D,q,yw(q))}function bat(D,q,tt){return tt=typeof tt=="function"?tt:e,rw(D,q,yw(q),tt)}function Cat(D){return QO(D)&&D!=+D}function yat(D){if(rit(D))throw new aa(a);return V8(D)}function Sat(D){return D===null}function wat(D){return D==null}function QO(D){return typeof D=="number"||Ur(D)&&ul(D)==Ue}function hf(D){if(!Ur(D)||ul(D)!=$t)return!1;var q=Yh(D);if(q===null)return!0;var tt=rr.call(q,"constructor")&&q.constructor;return typeof tt=="function"&&tt instanceof tt&&Uh.call(tt)==_tt}var Fw=s8?jl(s8):yet;function Pat(D){return $O(D)&&D>=-B&&D<=B}var YO=p8?jl(p8):wet;function Sx(D){return typeof D=="string"||!sa(D)&&Ur(D)&&ul(D)==Xe}function Hl(D){return typeof D=="symbol"||Ur(D)&&ul(D)==ei}var Sd=c8?jl(c8):Pet;function Eat(D){return D===e}function Iat(D){return Ur(D)&&el(D)==Ai}function Tat(D){return Ur(D)&&ul(D)==Ni}var Mat=ux(lw),Dat=ux(function(D,q){return D<=q});function JO(D){if(!D)return[];if(yl(D))return Sx(D)?Rs(D):Cl(D);if(ef&&D[ef])return ott(D[ef]());var q=el(D),tt=q==ne?Q5:q==Qe?zh:wd;return tt(D)}function j0(D){if(!D)return D===0?D:0;if(D=ms(D),D===F||D===-F){var q=D<0?-1:1;return q*R}return D===D?D:0}function ua(D){var q=j0(D),tt=q%1;return q===q?tt?q-tt:q:0}function KO(D){return D?xm(ua(D),0,H):0}function ms(D){if(typeof D=="number")return D;if(Hl(D))return j;if(jr(D)){var q=typeof D.valueOf=="function"?D.valueOf():D;D=jr(q)?q+"":q}if(typeof D!="string")return D===0?D:+D;D=x8(D);var tt=fa.test(D);return tt||Ja.test(D)?HZ(D.slice(2),tt?2:8):Ga.test(D)?j:+D}function XO(D){return o0(D,Sl(D))}function Oat(D){return D?xm(ua(D),-B,B):D===0?D:0}function Xa(D){return D==null?"":zl(D)}var Aat=bd(function(D,q){if(uf(q)||yl(q)){o0(q,Do(q),D);return}for(var tt in q)rr.call(q,tt)&&lf(D,tt,q[tt])}),ZO=bd(function(D,q){o0(q,Sl(q),D)}),wx=bd(function(D,q,tt,St){o0(q,Sl(q),D,St)}),Fat=bd(function(D,q,tt,St){o0(q,Do(q),D,St)}),kat=L0(tw);function Rat(D,q){var tt=vd(D);return q==null?tt:O8(tt,q)}var Bat=ba(function(D,q){D=pr(D);var tt=-1,St=q.length,Vt=St>2?q[2]:e;for(Vt&&fl(q[0],q[1],Vt)&&(St=1);++tt1),le}),o0(D,bw(D),tt),St&&(tt=ss(tt,_|v|C,Wet));for(var Vt=q.length;Vt--;)dw(tt,q[Vt]);return tt});function trt(D,q){return e9(D,Cx(Nn(q)))}var ert=L0(function(D,q){return D==null?{}:Tet(D,q)});function e9(D,q){if(D==null)return{};var tt=Rr(bw(D),function(St){return[St]});return q=Nn(q),$8(D,tt,function(St,Vt){return q(St,Vt[0])})}function irt(D,q,tt){q=Ip(q,D);var St=-1,Vt=q.length;for(Vt||(Vt=1,D=e);++Stq){var St=D;D=q,q=St}if(tt||D%1||q%1){var Vt=I8();return tl(D+Vt*(q-D+zZ("1e-"+((Vt+"").length-1))),q)}return pw(D,q)}var urt=Cd(function(D,q,tt){return q=q.toLowerCase(),D+(tt?a9(q):q)});function a9(D){return Bw(Xa(D).toLowerCase())}function r9(D){return D=Xa(D),D&&D.replace(ao,ett).replace(dd,"")}function frt(D,q,tt){D=Xa(D),q=zl(q);var St=D.length;tt=tt===e?St:xm(ua(tt),0,St);var Vt=tt;return tt-=q.length,tt>=0&&D.slice(tt,Vt)==q}function hrt(D){return D=Xa(D),D&&$n.test(D)?D.replace(qr,itt):D}function xrt(D){return D=Xa(D),D&&Wn.test(D)?D.replace(ml,"\\$&"):D}var grt=Cd(function(D,q,tt){return D+(tt?"-":"")+q.toLowerCase()}),_rt=Cd(function(D,q,tt){return D+(tt?" ":"")+q.toLowerCase()}),vrt=sO("toLowerCase");function brt(D,q,tt){D=Xa(D),q=ua(q);var St=q?hd(D):0;if(!q||St>=q)return D;var Vt=(q-St)/2;return dx(Zh(Vt),tt)+D+dx(Xh(Vt),tt)}function Crt(D,q,tt){D=Xa(D),q=ua(q);var St=q?hd(D):0;return q&&St>>0,tt?(D=Xa(D),D&&(typeof q=="string"||q!=null&&!Fw(q))&&(q=zl(q),!q&&fd(D))?Tp(Rs(D),0,tt):D.split(q,tt)):[]}var Trt=Cd(function(D,q,tt){return D+(tt?" ":"")+Bw(q)});function Mrt(D,q,tt){return D=Xa(D),tt=tt==null?0:xm(ua(tt),0,D.length),q=zl(q),D.slice(tt,tt+q.length)==q}function Drt(D,q,tt){var St=ie.templateSettings;tt&&fl(D,q,tt)&&(q=e),D=Xa(D),q=wx({},q,St,hO);var Vt=wx({},q.imports,St.imports,hO),le=Do(Vt),De=W5(Vt,le),ze,Je,Ii=0,Di=q.interpolate||bo,Ri="__p += '",rn=Y5((q.escape||bo).source+"|"+Di.source+"|"+(Di===Dn?In:bo).source+"|"+(q.evaluate||bo).source+"|$","g"),Sn="//# sourceURL="+(rr.call(q,"sourceURL")?(q.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++NZ+"]")+` +`;D.replace(rn,function(qn,Ia,Ra,Gl,hl,Ul){return Ra||(Ra=Gl),Ri+=D.slice(Ii,Ul).replace(Zr,ntt),Ia&&(ze=!0,Ri+=`' + __e(`+Ia+`) + '`),hl&&(Je=!0,Ri+=`'; `+hl+`; __p += '`),Ra&&(Ri+=`' + ((__t = (`+Ra+`)) == null ? '' : __t) + -'`),Ii=Gl+qn.length,qn}),Ri+=`'; +'`),Ii=Ul+qn.length,qn}),Ri+=`'; `;var Vn=rr.call(q,"variable")&&q.variable;if(!Vn)Ri=`with (obj) { `+Ri+` } -`;else if(mn.test(Vn))throw new aa(p);Ri=(Je?Ri.replace(En,""):Ri).replace(Ll,"$1").replace(wn,"$1;"),Ri="function("+(Vn||"obj")+`) { +`;else if(mn.test(Vn))throw new aa(p);Ri=(Je?Ri.replace(En,""):Ri).replace(Vl,"$1").replace(wn,"$1;"),Ri="function("+(Vn||"obj")+`) { `+(Vn?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(ze?", __e = _.escape":"")+(Je?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ri+`return __p -}`;var xa=l9(function(){return Qa(le,Sn+"return "+Ri).apply(e,De)});if(xa.source=Ri,Aw(xa))throw xa;return xa}function Ort(D){return Xa(D).toLowerCase()}function Art(D){return Xa(D).toUpperCase()}function Frt(D,q,tt){if(D=Xa(D),D&&(tt||q===e))return x8(D);if(!D||!(q=jl(q)))return D;var St=Rs(D),Vt=Rs(q),le=g8(St,Vt),De=_8(St,Vt)+1;return Tp(St,le,De).join("")}function krt(D,q,tt){if(D=Xa(D),D&&(tt||q===e))return D.slice(0,b8(D)+1);if(!D||!(q=jl(q)))return D;var St=Rs(D),Vt=_8(St,Rs(q))+1;return Tp(St,0,Vt).join("")}function Rrt(D,q,tt){if(D=Xa(D),D&&(tt||q===e))return D.replace(ke,"");if(!D||!(q=jl(q)))return D;var St=Rs(D),Vt=g8(St,Rs(q));return Tp(St,Vt).join("")}function Brt(D,q){var tt=ot,St=ht;if(jr(q)){var Vt="separator"in q?q.separator:Vt;tt="length"in q?ua(q.length):tt,St="omission"in q?jl(q.omission):St}D=Xa(D);var le=D.length;if(fd(D)){var De=Rs(D);le=De.length}if(tt>=le)return D;var ze=tt-hd(St);if(ze<1)return St;var Je=De?Tp(De,0,ze).join(""):D.slice(0,ze);if(Vt===e)return Je+St;if(De&&(ze+=Je.length-ze),Fw(Vt)){if(D.slice(ze).search(Vt)){var Ii,Di=Je;for(Vt.global||(Vt=Y5(Vt.source,Xa(sn.exec(Vt))+"g")),Vt.lastIndex=0;Ii=Vt.exec(Di);)var Ri=Ii.index;Je=Je.slice(0,Ri===e?ze:Ri)}}else if(D.indexOf(jl(Vt),ze)!=ze){var rn=Je.lastIndexOf(Vt);rn>-1&&(Je=Je.slice(0,rn))}return Je+St}function Nrt(D){return D=Xa(D),D&&Un.test(D)?D.replace(Mn,ctt):D}var Lrt=Cd(function(D,q,tt){return D+(tt?" ":"")+q.toUpperCase()}),Bw=sO("toUpperCase");function o9(D,q,tt){return D=Xa(D),q=tt?e:q,q===e?rtt(D)?utt(D):JZ(D):D.match(q)||[]}var l9=ba(function(D,q){try{return Vl(D,e,q)}catch(tt){return Aw(tt)?tt:new aa(tt)}}),Vrt=L0(function(D,q){return as(q,function(tt){tt=l0(tt),B0(D,tt,Dw(D[tt],D))}),D});function qrt(D){var q=D==null?0:D.length,tt=Nn();return D=q?Rr(D,function(St){if(typeof St[1]!="function")throw new rs(n);return[tt(St[0]),St[1]]}):[],ba(function(St){for(var Vt=-1;++VtB)return[];var tt=H,St=tl(D,H);q=Nn(q),D-=H;for(var Vt=$5(St,q);++tt0||q<0)?new Da(tt):(D<0?tt=tt.takeRight(-D):D&&(tt=tt.drop(D)),q!==e&&(q=ua(q),tt=q<0?tt.dropRight(-q):tt.take(q-D)),tt)},Da.prototype.takeRightWhile=function(D){return this.reverse().takeWhile(D).reverse()},Da.prototype.toArray=function(){return this.take(H)},r0(Da.prototype,function(D,q){var tt=/^(?:filter|find|map|reject)|While$/.test(q),St=/^(?:head|last)$/.test(q),Vt=ie[St?"take"+(q=="last"?"Right":""):q],le=St||/^find/.test(q);Vt&&(ie.prototype[q]=function(){var De=this.__wrapped__,ze=St?[1]:arguments,Je=De instanceof Da,Ii=ze[0],Di=Je||sa(De),Ri=function(Ia){var Ra=Vt.apply(ie,Cp([Ia],ze));return St&&rn?Ra[0]:Ra};Di&&tt&&typeof Ii=="function"&&Ii.length!=1&&(Je=Di=!1);var rn=this.__chain__,Sn=!!this.__actions__.length,Vn=le&&!rn,xa=Je&&!Sn;if(!le&&Di){De=xa?De:new Da(this);var qn=D.apply(De,ze);return qn.__actions__.push({func:gx,args:[Ri],thisArg:e}),new os(qn,rn)}return Vn&&xa?D.apply(this,ze):(qn=this.thru(Ri),Vn?St?qn.value()[0]:qn.value():qn)})}),as(["pop","push","shift","sort","splice","unshift"],function(D){var q=Hh[D],tt=/^(?:push|sort|unshift)$/.test(D)?"tap":"thru",St=/^(?:pop|shift)$/.test(D);ie.prototype[D]=function(){var Vt=arguments;if(St&&!this.__chain__){var le=this.value();return q.apply(sa(le)?le:[],Vt)}return this[tt](function(De){return q.apply(sa(De)?De:[],Vt)})}}),r0(Da.prototype,function(D,q){var tt=ie[q];if(tt){var St=tt.name+"";rr.call(_d,St)||(_d[St]=[]),_d[St].push({name:q,func:tt})}}),_d[cx(e,I).name]=[{name:"wrapper",func:e}],Da.prototype.clone=Rtt,Da.prototype.reverse=Btt,Da.prototype.value=Ntt,ie.prototype.at=fnt,ie.prototype.chain=hnt,ie.prototype.commit=xnt,ie.prototype.next=gnt,ie.prototype.plant=vnt,ie.prototype.reverse=bnt,ie.prototype.toJSON=ie.prototype.valueOf=ie.prototype.value=Cnt,ie.prototype.first=ie.prototype.head,ef&&(ie.prototype[ef]=_nt),ie},Sp=ftt();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Mo._=Sp,define(function(){return Sp})):dm?((dm.exports=Sp)._=Sp,L5._=Sp):Mo._=Sp}).call(Ud)});var qB=pe($_=>{"use strict";$_.byteLength=Mht;$_.toByteArray=Oht;$_.fromByteArray=kht;var P0=[],Ss=[],Tht=typeof Uint8Array<"u"?Uint8Array:Array,QE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(jm=0,LB=QE.length;jm0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");i===-1&&(i=r);var a=i===r?0:4-i%4;return[i,a]}function Mht(e){var r=VB(e),i=r[0],a=r[1];return(i+a)*3/4-a}function Dht(e,r,i){return(r+i)*3/4-i}function Oht(e){var r,i=VB(e),a=i[0],n=i[1],p=new Tht(Dht(e,a,n)),d=0,u=n>0?a-4:a,x;for(x=0;x>16&255,p[d++]=r>>8&255,p[d++]=r&255;return n===2&&(r=Ss[e.charCodeAt(x)]<<2|Ss[e.charCodeAt(x+1)]>>4,p[d++]=r&255),n===1&&(r=Ss[e.charCodeAt(x)]<<10|Ss[e.charCodeAt(x+1)]<<4|Ss[e.charCodeAt(x+2)]>>2,p[d++]=r>>8&255,p[d++]=r&255),p}function Aht(e){return P0[e>>18&63]+P0[e>>12&63]+P0[e>>6&63]+P0[e&63]}function Fht(e,r,i){for(var a,n=[],p=r;pu?u:d+p));return a===1?(r=e[i-1],n.push(P0[r>>2]+P0[r<<4&63]+"==")):a===2&&(r=(e[i-2]<<8)+e[i-1],n.push(P0[r>>10]+P0[r>>4&63]+P0[r<<2&63]+"=")),n.join("")}});var jB=pe(YE=>{YE.read=function(e,r,i,a,n){var p,d,u=n*8-a-1,x=(1<>1,v=-7,C=i?n-1:0,S=i?-1:1,E=e[r+C];for(C+=S,p=E&(1<<-v)-1,E>>=-v,v+=u;v>0;p=p*256+e[r+C],C+=S,v-=8);for(d=p&(1<<-v)-1,p>>=-v,v+=a;v>0;d=d*256+e[r+C],C+=S,v-=8);if(p===0)p=1-_;else{if(p===x)return d?NaN:(E?-1:1)*(1/0);d=d+Math.pow(2,a),p=p-_}return(E?-1:1)*d*Math.pow(2,p-a)};YE.write=function(e,r,i,a,n,p){var d,u,x,_=p*8-n-1,v=(1<<_)-1,C=v>>1,S=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=a?0:p-1,w=a?1:-1,I=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,d=v):(d=Math.floor(Math.log(r)/Math.LN2),r*(x=Math.pow(2,-d))<1&&(d--,x*=2),d+C>=1?r+=S/x:r+=S*Math.pow(2,1-C),r*x>=2&&(d++,x/=2),d+C>=v?(u=0,d=v):d+C>=1?(u=(r*x-1)*Math.pow(2,n),d=d+C):(u=r*Math.pow(2,C-1)*Math.pow(2,n),d=0));n>=8;e[i+E]=u&255,E+=w,u/=256,n-=8);for(d=d<0;e[i+E]=d&255,E+=w,d/=256,_-=8);e[i+E-w]|=I*128}});var tN=pe(su=>{"use strict";var JE=qB(),lu=jB(),zB=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;su.Buffer=Pi;su.SlowBuffer=qht;su.INSPECT_MAX_BYTES=50;var W_=2147483647;su.kMaxLength=W_;Pi.TYPED_ARRAY_SUPPORT=Rht();!Pi.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Rht(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(Pi.prototype,"parent",{enumerable:!0,get:function(){if(Pi.isBuffer(this))return this.buffer}});Object.defineProperty(Pi.prototype,"offset",{enumerable:!0,get:function(){if(Pi.isBuffer(this))return this.byteOffset}});function ap(e){if(e>W_)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,Pi.prototype),r}function Pi(e,r,i){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return tI(e)}return UB(e,r,i)}Pi.poolSize=8192;function UB(e,r,i){if(typeof e=="string")return Nht(e,r);if(ArrayBuffer.isView(e))return Lht(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(E0(e,ArrayBuffer)||e&&E0(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(E0(e,SharedArrayBuffer)||e&&E0(e.buffer,SharedArrayBuffer)))return XE(e,r,i);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return Pi.from(a,r,i);var n=Vht(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Pi.from(e[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Pi.from=function(e,r,i){return UB(e,r,i)};Object.setPrototypeOf(Pi.prototype,Uint8Array.prototype);Object.setPrototypeOf(Pi,Uint8Array);function $B(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Bht(e,r,i){return $B(e),e<=0?ap(e):r!==void 0?typeof i=="string"?ap(e).fill(r,i):ap(e).fill(r):ap(e)}Pi.alloc=function(e,r,i){return Bht(e,r,i)};function tI(e){return $B(e),ap(e<0?0:eI(e)|0)}Pi.allocUnsafe=function(e){return tI(e)};Pi.allocUnsafeSlow=function(e){return tI(e)};function Nht(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Pi.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=WB(e,r)|0,a=ap(i),n=a.write(e,r);return n!==i&&(a=a.slice(0,n)),a}function KE(e){for(var r=e.length<0?0:eI(e.length)|0,i=ap(r),a=0;a=W_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W_.toString(16)+" bytes");return e|0}function qht(e){return+e!=e&&(e=0),Pi.alloc(+e)}Pi.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Pi.prototype};Pi.compare=function(r,i){if(E0(r,Uint8Array)&&(r=Pi.from(r,r.offset,r.byteLength)),E0(i,Uint8Array)&&(i=Pi.from(i,i.offset,i.byteLength)),!Pi.isBuffer(r)||!Pi.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;for(var a=r.length,n=i.length,p=0,d=Math.min(a,n);pn.length?Pi.from(d).copy(n,p):Uint8Array.prototype.set.call(n,d,p);else if(Pi.isBuffer(d))d.copy(n,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=d.length}return n};function WB(e,r){if(Pi.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||E0(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&i===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return ZE(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return ZB(e).length;default:if(n)return a?-1:ZE(e).length;r=(""+r).toLowerCase(),n=!0}}Pi.byteLength=WB;function jht(e,r,i){var a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Kht(this,r,i);case"utf8":case"utf-8":return YB(this,r,i);case"ascii":return Yht(this,r,i);case"latin1":case"binary":return Jht(this,r,i);case"base64":return Wht(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xht(this,r,i);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Pi.prototype._isBuffer=!0;function zm(e,r,i){var a=e[r];e[r]=e[i],e[i]=a}Pi.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;ii&&(r+=" ... "),""};zB&&(Pi.prototype[zB]=Pi.prototype.inspect);Pi.prototype.compare=function(r,i,a,n,p){if(E0(r,Uint8Array)&&(r=Pi.from(r,r.offset,r.byteLength)),!Pi.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),p===void 0&&(p=this.length),i<0||a>r.length||n<0||p>this.length)throw new RangeError("out of range index");if(n>=p&&i>=a)return 0;if(n>=p)return-1;if(i>=a)return 1;if(i>>>=0,a>>>=0,n>>>=0,p>>>=0,this===r)return 0;for(var d=p-n,u=a-i,x=Math.min(d,u),_=this.slice(n,p),v=r.slice(i,a),C=0;C2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,iI(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0)if(n)i=0;else return-1;if(typeof r=="string"&&(r=Pi.from(r,a)),Pi.isBuffer(r))return r.length===0?-1:HB(e,r,i,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,i):Uint8Array.prototype.lastIndexOf.call(e,r,i):HB(e,[r],i,a,n);throw new TypeError("val must be string, number or Buffer")}function HB(e,r,i,a,n){var p=1,d=e.length,u=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;p=2,d/=2,u/=2,i/=2}function x(E,w){return p===1?E[w]:E.readUInt16BE(w*p)}var _;if(n){var v=-1;for(_=i;_d&&(i=d-u),_=i;_>=0;_--){for(var C=!0,S=0;Sn&&(a=n)):a=n;var p=r.length;a>p/2&&(a=p/2);for(var d=0;d>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-i;if((a===void 0||a>p)&&(a=p),r.length>0&&(a<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return zht(this,r,i,a);case"utf8":case"utf-8":return Hht(this,r,i,a);case"ascii":case"latin1":case"binary":return Ght(this,r,i,a);case"base64":return Uht(this,r,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $ht(this,r,i,a);default:if(d)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}};Pi.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Wht(e,r,i){return r===0&&i===e.length?JE.fromByteArray(e):JE.fromByteArray(e.slice(r,i))}function YB(e,r,i){i=Math.min(e.length,i);for(var a=[],n=r;n239?4:p>223?3:p>191?2:1;if(n+u<=i){var x,_,v,C;switch(u){case 1:p<128&&(d=p);break;case 2:x=e[n+1],(x&192)===128&&(C=(p&31)<<6|x&63,C>127&&(d=C));break;case 3:x=e[n+1],_=e[n+2],(x&192)===128&&(_&192)===128&&(C=(p&15)<<12|(x&63)<<6|_&63,C>2047&&(C<55296||C>57343)&&(d=C));break;case 4:x=e[n+1],_=e[n+2],v=e[n+3],(x&192)===128&&(_&192)===128&&(v&192)===128&&(C=(p&15)<<18|(x&63)<<12|(_&63)<<6|v&63,C>65535&&C<1114112&&(d=C))}}d===null?(d=65533,u=1):d>65535&&(d-=65536,a.push(d>>>10&1023|55296),d=56320|d&1023),a.push(d),n+=u}return Qht(a)}var GB=4096;function Qht(e){var r=e.length;if(r<=GB)return String.fromCharCode.apply(String,e);for(var i="",a=0;aa)&&(i=a);for(var n="",p=r;pa&&(r=a),i<0?(i+=a,i<0&&(i=0)):i>a&&(i=a),ii)throw new RangeError("Trying to access beyond buffer length")}Pi.prototype.readUintLE=Pi.prototype.readUIntLE=function(r,i,a){r=r>>>0,i=i>>>0,a||qo(r,i,this.length);for(var n=this[r],p=1,d=0;++d>>0,i=i>>>0,a||qo(r,i,this.length);for(var n=this[r+--i],p=1;i>0&&(p*=256);)n+=this[r+--i]*p;return n};Pi.prototype.readUint8=Pi.prototype.readUInt8=function(r,i){return r=r>>>0,i||qo(r,1,this.length),this[r]};Pi.prototype.readUint16LE=Pi.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||qo(r,2,this.length),this[r]|this[r+1]<<8};Pi.prototype.readUint16BE=Pi.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||qo(r,2,this.length),this[r]<<8|this[r+1]};Pi.prototype.readUint32LE=Pi.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Pi.prototype.readUint32BE=Pi.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Pi.prototype.readIntLE=function(r,i,a){r=r>>>0,i=i>>>0,a||qo(r,i,this.length);for(var n=this[r],p=1,d=0;++d=p&&(n-=Math.pow(2,8*i)),n};Pi.prototype.readIntBE=function(r,i,a){r=r>>>0,i=i>>>0,a||qo(r,i,this.length);for(var n=i,p=1,d=this[r+--n];n>0&&(p*=256);)d+=this[r+--n]*p;return p*=128,d>=p&&(d-=Math.pow(2,8*i)),d};Pi.prototype.readInt8=function(r,i){return r=r>>>0,i||qo(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Pi.prototype.readInt16LE=function(r,i){r=r>>>0,i||qo(r,2,this.length);var a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Pi.prototype.readInt16BE=function(r,i){r=r>>>0,i||qo(r,2,this.length);var a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Pi.prototype.readInt32LE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Pi.prototype.readInt32BE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Pi.prototype.readFloatLE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),lu.read(this,r,!0,23,4)};Pi.prototype.readFloatBE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),lu.read(this,r,!1,23,4)};Pi.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||qo(r,8,this.length),lu.read(this,r,!0,52,8)};Pi.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||qo(r,8,this.length),lu.read(this,r,!1,52,8)};function Rl(e,r,i,a,n,p){if(!Pi.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Pi.prototype.writeUintLE=Pi.prototype.writeUIntLE=function(r,i,a,n){if(r=+r,i=i>>>0,a=a>>>0,!n){var p=Math.pow(2,8*a)-1;Rl(this,r,i,a,p,0)}var d=1,u=0;for(this[i]=r&255;++u>>0,a=a>>>0,!n){var p=Math.pow(2,8*a)-1;Rl(this,r,i,a,p,0)}var d=a-1,u=1;for(this[i+d]=r&255;--d>=0&&(u*=256);)this[i+d]=r/u&255;return i+a};Pi.prototype.writeUint8=Pi.prototype.writeUInt8=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,1,255,0),this[i]=r&255,i+1};Pi.prototype.writeUint16LE=Pi.prototype.writeUInt16LE=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2};Pi.prototype.writeUint16BE=Pi.prototype.writeUInt16BE=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2};Pi.prototype.writeUint32LE=Pi.prototype.writeUInt32LE=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4};Pi.prototype.writeUint32BE=Pi.prototype.writeUInt32BE=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};Pi.prototype.writeIntLE=function(r,i,a,n){if(r=+r,i=i>>>0,!n){var p=Math.pow(2,8*a-1);Rl(this,r,i,a,p-1,-p)}var d=0,u=1,x=0;for(this[i]=r&255;++d>0)-x&255;return i+a};Pi.prototype.writeIntBE=function(r,i,a,n){if(r=+r,i=i>>>0,!n){var p=Math.pow(2,8*a-1);Rl(this,r,i,a,p-1,-p)}var d=a-1,u=1,x=0;for(this[i+d]=r&255;--d>=0&&(u*=256);)r<0&&x===0&&this[i+d+1]!==0&&(x=1),this[i+d]=(r/u>>0)-x&255;return i+a};Pi.prototype.writeInt8=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1};Pi.prototype.writeInt16LE=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2};Pi.prototype.writeInt16BE=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2};Pi.prototype.writeInt32LE=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4};Pi.prototype.writeInt32BE=function(r,i,a){return r=+r,i=i>>>0,a||Rl(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function JB(e,r,i,a,n,p){if(i+a>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function KB(e,r,i,a,n){return r=+r,i=i>>>0,n||JB(e,r,i,4,34028234663852886e22,-34028234663852886e22),lu.write(e,r,i,a,23,4),i+4}Pi.prototype.writeFloatLE=function(r,i,a){return KB(this,r,i,!0,a)};Pi.prototype.writeFloatBE=function(r,i,a){return KB(this,r,i,!1,a)};function XB(e,r,i,a,n){return r=+r,i=i>>>0,n||JB(e,r,i,8,17976931348623157e292,-17976931348623157e292),lu.write(e,r,i,a,52,8),i+8}Pi.prototype.writeDoubleLE=function(r,i,a){return XB(this,r,i,!0,a)};Pi.prototype.writeDoubleBE=function(r,i,a){return XB(this,r,i,!1,a)};Pi.prototype.copy=function(r,i,a,n){if(!Pi.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),i>=r.length&&(i=r.length),i||(i=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-i>>0,a=a===void 0?this.length:a>>>0,r||(r=0);var d;if(typeof r=="number")for(d=i;d55295&&i<57344){if(!n){if(i>56319){(r-=3)>-1&&p.push(239,191,189);continue}else if(d+1===a){(r-=3)>-1&&p.push(239,191,189);continue}n=i;continue}if(i<56320){(r-=3)>-1&&p.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(r-=3)>-1&&p.push(239,191,189);if(n=null,i<128){if((r-=1)<0)break;p.push(i)}else if(i<2048){if((r-=2)<0)break;p.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;p.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;p.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return p}function ext(e){for(var r=[],i=0;i>8,n=i%256,p.push(n),p.push(a);return p}function ZB(e){return JE.toByteArray(txt(e))}function Q_(e,r,i,a){for(var n=0;n=r.length||n>=e.length);++n)r[n+i]=e[n];return n}function E0(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function iI(e){return e!==e}var nxt=function(){for(var e="0123456789abcdef",r=new Array(256),i=0;i<16;++i)for(var a=i*16,n=0;n<16;++n)r[a+n]=e[i]+e[n];return r}()});var zV=pe((G1n,jV)=>{function EKt(){this.__data__=[],this.size=0}jV.exports=EKt});var Xm=pe((U1n,HV)=>{function IKt(e,r){return e===r||e!==e&&r!==r}HV.exports=IKt});var L1=pe(($1n,GV)=>{var TKt=Xm();function MKt(e,r){for(var i=e.length;i--;)if(TKt(e[i][0],r))return i;return-1}GV.exports=MKt});var $V=pe((W1n,UV)=>{var DKt=L1(),OKt=Array.prototype,AKt=OKt.splice;function FKt(e){var r=this.__data__,i=DKt(r,e);if(i<0)return!1;var a=r.length-1;return i==a?r.pop():AKt.call(r,i,1),--this.size,!0}UV.exports=FKt});var QV=pe((Q1n,WV)=>{var kKt=L1();function RKt(e){var r=this.__data__,i=kKt(r,e);return i<0?void 0:r[i][1]}WV.exports=RKt});var JV=pe((Y1n,YV)=>{var BKt=L1();function NKt(e){return BKt(this.__data__,e)>-1}YV.exports=NKt});var XV=pe((J1n,KV)=>{var LKt=L1();function VKt(e,r){var i=this.__data__,a=LKt(i,e);return a<0?(++this.size,i.push([e,r])):i[a][1]=r,this}KV.exports=VKt});var V1=pe((K1n,ZV)=>{var qKt=zV(),jKt=$V(),zKt=QV(),HKt=JV(),GKt=XV();function vu(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var UKt=V1();function $Kt(){this.__data__=new UKt,this.size=0}tq.exports=$Kt});var nq=pe((Z1n,iq)=>{function WKt(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}iq.exports=WKt});var rq=pe((thn,aq)=>{function QKt(e){return this.__data__.get(e)}aq.exports=QKt});var lq=pe((ehn,oq)=>{function YKt(e){return this.__data__.has(e)}oq.exports=YKt});var GT=pe((ihn,sq)=>{var JKt=typeof global=="object"&&global&&global.Object===Object&&global;sq.exports=JKt});var Ps=pe((nhn,pq)=>{var KKt=GT(),XKt=typeof self=="object"&&self&&self.Object===Object&&self,ZKt=KKt||XKt||Function("return this")();pq.exports=ZKt});var Zm=pe((ahn,cq)=>{var tXt=Ps(),eXt=tXt.Symbol;cq.exports=eXt});var fq=pe((rhn,uq)=>{var mq=Zm(),dq=Object.prototype,iXt=dq.hasOwnProperty,nXt=dq.toString,q1=mq?mq.toStringTag:void 0;function aXt(e){var r=iXt.call(e,q1),i=e[q1];try{e[q1]=void 0;var a=!0}catch{}var n=nXt.call(e);return a&&(r?e[q1]=i:delete e[q1]),n}uq.exports=aXt});var xq=pe((ohn,hq)=>{var rXt=Object.prototype,oXt=rXt.toString;function lXt(e){return oXt.call(e)}hq.exports=lXt});var cc=pe((lhn,vq)=>{var gq=Zm(),sXt=fq(),pXt=xq(),cXt="[object Null]",mXt="[object Undefined]",_q=gq?gq.toStringTag:void 0;function dXt(e){return e==null?e===void 0?mXt:cXt:_q&&_q in Object(e)?sXt(e):pXt(e)}vq.exports=dXt});var Yl=pe((shn,bq)=>{function uXt(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}bq.exports=uXt});var bu=pe((phn,Cq)=>{var fXt=cc(),hXt=Yl(),xXt="[object AsyncFunction]",gXt="[object Function]",_Xt="[object GeneratorFunction]",vXt="[object Proxy]";function bXt(e){if(!hXt(e))return!1;var r=fXt(e);return r==gXt||r==_Xt||r==xXt||r==vXt}Cq.exports=bXt});var Sq=pe((chn,yq)=>{var CXt=Ps(),yXt=CXt["__core-js_shared__"];yq.exports=yXt});var Eq=pe((mhn,Pq)=>{var UT=Sq(),wq=function(){var e=/[^.]+$/.exec(UT&&UT.keys&&UT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function SXt(e){return!!wq&&wq in e}Pq.exports=SXt});var $T=pe((dhn,Iq)=>{var wXt=Function.prototype,PXt=wXt.toString;function EXt(e){if(e!=null){try{return PXt.call(e)}catch{}try{return e+""}catch{}}return""}Iq.exports=EXt});var Mq=pe((uhn,Tq)=>{var IXt=bu(),TXt=Eq(),MXt=Yl(),DXt=$T(),OXt=/[\\^$.*+?()[\]{}|]/g,AXt=/^\[object .+?Constructor\]$/,FXt=Function.prototype,kXt=Object.prototype,RXt=FXt.toString,BXt=kXt.hasOwnProperty,NXt=RegExp("^"+RXt.call(BXt).replace(OXt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function LXt(e){if(!MXt(e)||TXt(e))return!1;var r=IXt(e)?NXt:AXt;return r.test(DXt(e))}Tq.exports=LXt});var Oq=pe((fhn,Dq)=>{function VXt(e,r){return e?.[r]}Dq.exports=VXt});var mc=pe((hhn,Aq)=>{var qXt=Mq(),jXt=Oq();function zXt(e,r){var i=jXt(e,r);return qXt(i)?i:void 0}Aq.exports=zXt});var $C=pe((xhn,Fq)=>{var HXt=mc(),GXt=Ps(),UXt=HXt(GXt,"Map");Fq.exports=UXt});var j1=pe((ghn,kq)=>{var $Xt=mc(),WXt=$Xt(Object,"create");kq.exports=WXt});var Nq=pe((_hn,Bq)=>{var Rq=j1();function QXt(){this.__data__=Rq?Rq(null):{},this.size=0}Bq.exports=QXt});var Vq=pe((vhn,Lq)=>{function YXt(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Lq.exports=YXt});var jq=pe((bhn,qq)=>{var JXt=j1(),KXt="__lodash_hash_undefined__",XXt=Object.prototype,ZXt=XXt.hasOwnProperty;function tZt(e){var r=this.__data__;if(JXt){var i=r[e];return i===KXt?void 0:i}return ZXt.call(r,e)?r[e]:void 0}qq.exports=tZt});var Hq=pe((Chn,zq)=>{var eZt=j1(),iZt=Object.prototype,nZt=iZt.hasOwnProperty;function aZt(e){var r=this.__data__;return eZt?r[e]!==void 0:nZt.call(r,e)}zq.exports=aZt});var Uq=pe((yhn,Gq)=>{var rZt=j1(),oZt="__lodash_hash_undefined__";function lZt(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=rZt&&r===void 0?oZt:r,this}Gq.exports=lZt});var Wq=pe((Shn,$q)=>{var sZt=Nq(),pZt=Vq(),cZt=jq(),mZt=Hq(),dZt=Uq();function Cu(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var Qq=Wq(),uZt=V1(),fZt=$C();function hZt(){this.size=0,this.__data__={hash:new Qq,map:new(fZt||uZt),string:new Qq}}Yq.exports=hZt});var Xq=pe((Phn,Kq)=>{function xZt(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Kq.exports=xZt});var z1=pe((Ehn,Zq)=>{var gZt=Xq();function _Zt(e,r){var i=e.__data__;return gZt(r)?i[typeof r=="string"?"string":"hash"]:i.map}Zq.exports=_Zt});var ej=pe((Ihn,tj)=>{var vZt=z1();function bZt(e){var r=vZt(this,e).delete(e);return this.size-=r?1:0,r}tj.exports=bZt});var nj=pe((Thn,ij)=>{var CZt=z1();function yZt(e){return CZt(this,e).get(e)}ij.exports=yZt});var rj=pe((Mhn,aj)=>{var SZt=z1();function wZt(e){return SZt(this,e).has(e)}aj.exports=wZt});var lj=pe((Dhn,oj)=>{var PZt=z1();function EZt(e,r){var i=PZt(this,e),a=i.size;return i.set(e,r),this.size+=i.size==a?0:1,this}oj.exports=EZt});var WC=pe((Ohn,sj)=>{var IZt=Jq(),TZt=ej(),MZt=nj(),DZt=rj(),OZt=lj();function yu(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var AZt=V1(),FZt=$C(),kZt=WC(),RZt=200;function BZt(e,r){var i=this.__data__;if(i instanceof AZt){var a=i.__data__;if(!FZt||a.length{var NZt=V1(),LZt=eq(),VZt=nq(),qZt=rq(),jZt=lq(),zZt=cj();function Su(e){var r=this.__data__=new NZt(e);this.size=r.size}Su.prototype.clear=LZt;Su.prototype.delete=VZt;Su.prototype.get=qZt;Su.prototype.has=jZt;Su.prototype.set=zZt;mj.exports=Su});var QC=pe((khn,dj)=>{function HZt(e,r){for(var i=-1,a=e==null?0:e.length;++i{var GZt=mc(),UZt=function(){try{var e=GZt(Object,"defineProperty");return e({},"",{}),e}catch{}}();uj.exports=UZt});var G1=pe((Bhn,hj)=>{var fj=WT();function $Zt(e,r,i){r=="__proto__"&&fj?fj(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}hj.exports=$Zt});var U1=pe((Nhn,xj)=>{var WZt=G1(),QZt=Xm(),YZt=Object.prototype,JZt=YZt.hasOwnProperty;function KZt(e,r,i){var a=e[r];(!(JZt.call(e,r)&&QZt(a,i))||i===void 0&&!(r in e))&&WZt(e,r,i)}xj.exports=KZt});var wu=pe((Lhn,gj)=>{var XZt=U1(),ZZt=G1();function tte(e,r,i,a){var n=!i;i||(i={});for(var p=-1,d=r.length;++p{function ete(e,r){for(var i=-1,a=Array(e);++i{function ite(e){return e!=null&&typeof e=="object"}bj.exports=ite});var yj=pe((jhn,Cj)=>{var nte=cc(),ate=Zs(),rte="[object Arguments]";function ote(e){return ate(e)&&nte(e)==rte}Cj.exports=ote});var Pu=pe((zhn,Pj)=>{var Sj=yj(),lte=Zs(),wj=Object.prototype,ste=wj.hasOwnProperty,pte=wj.propertyIsEnumerable,cte=Sj(function(){return arguments}())?Sj:function(e){return lte(e)&&ste.call(e,"callee")&&!pte.call(e,"callee")};Pj.exports=cte});var no=pe((Hhn,Ej)=>{var mte=Array.isArray;Ej.exports=mte});var Tj=pe((Ghn,Ij)=>{function dte(){return!1}Ij.exports=dte});var td=pe(($1,Eu)=>{var ute=Ps(),fte=Tj(),Oj=typeof $1=="object"&&$1&&!$1.nodeType&&$1,Mj=Oj&&typeof Eu=="object"&&Eu&&!Eu.nodeType&&Eu,hte=Mj&&Mj.exports===Oj,Dj=hte?ute.Buffer:void 0,xte=Dj?Dj.isBuffer:void 0,gte=xte||fte;Eu.exports=gte});var W1=pe((Uhn,Aj)=>{var _te=9007199254740991,vte=/^(?:0|[1-9]\d*)$/;function bte(e,r){var i=typeof e;return r=r??_te,!!r&&(i=="number"||i!="symbol"&&vte.test(e))&&e>-1&&e%1==0&&e{var Cte=9007199254740991;function yte(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Cte}Fj.exports=yte});var Rj=pe((Whn,kj)=>{var Ste=cc(),wte=YC(),Pte=Zs(),Ete="[object Arguments]",Ite="[object Array]",Tte="[object Boolean]",Mte="[object Date]",Dte="[object Error]",Ote="[object Function]",Ate="[object Map]",Fte="[object Number]",kte="[object Object]",Rte="[object RegExp]",Bte="[object Set]",Nte="[object String]",Lte="[object WeakMap]",Vte="[object ArrayBuffer]",qte="[object DataView]",jte="[object Float32Array]",zte="[object Float64Array]",Hte="[object Int8Array]",Gte="[object Int16Array]",Ute="[object Int32Array]",$te="[object Uint8Array]",Wte="[object Uint8ClampedArray]",Qte="[object Uint16Array]",Yte="[object Uint32Array]",Dr={};Dr[jte]=Dr[zte]=Dr[Hte]=Dr[Gte]=Dr[Ute]=Dr[$te]=Dr[Wte]=Dr[Qte]=Dr[Yte]=!0;Dr[Ete]=Dr[Ite]=Dr[Vte]=Dr[Tte]=Dr[qte]=Dr[Mte]=Dr[Dte]=Dr[Ote]=Dr[Ate]=Dr[Fte]=Dr[kte]=Dr[Rte]=Dr[Bte]=Dr[Nte]=Dr[Lte]=!1;function Jte(e){return Pte(e)&&wte(e.length)&&!!Dr[Ste(e)]}kj.exports=Jte});var Q1=pe((Qhn,Bj)=>{function Kte(e){return function(r){return e(r)}}Bj.exports=Kte});var JC=pe((Y1,Iu)=>{var Xte=GT(),Nj=typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,J1=Nj&&typeof Iu=="object"&&Iu&&!Iu.nodeType&&Iu,Zte=J1&&J1.exports===Nj,QT=Zte&&Xte.process,tee=function(){try{var e=J1&&J1.require&&J1.require("util").types;return e||QT&&QT.binding&&QT.binding("util")}catch{}}();Iu.exports=tee});var Tu=pe((Yhn,qj)=>{var eee=Rj(),iee=Q1(),Lj=JC(),Vj=Lj&&Lj.isTypedArray,nee=Vj?iee(Vj):eee;qj.exports=nee});var YT=pe((Jhn,jj)=>{var aee=vj(),ree=Pu(),oee=no(),lee=td(),see=W1(),pee=Tu(),cee=Object.prototype,mee=cee.hasOwnProperty;function dee(e,r){var i=oee(e),a=!i&&ree(e),n=!i&&!a&&lee(e),p=!i&&!a&&!n&&pee(e),d=i||a||n||p,u=d?aee(e.length,String):[],x=u.length;for(var _ in e)(r||mee.call(e,_))&&!(d&&(_=="length"||n&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||see(_,x)))&&u.push(_);return u}jj.exports=dee});var K1=pe((Khn,zj)=>{var uee=Object.prototype;function fee(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||uee;return e===i}zj.exports=fee});var JT=pe((Xhn,Hj)=>{function hee(e,r){return function(i){return e(r(i))}}Hj.exports=hee});var Uj=pe((Zhn,Gj)=>{var xee=JT(),gee=xee(Object.keys,Object);Gj.exports=gee});var KC=pe((txn,$j)=>{var _ee=K1(),vee=Uj(),bee=Object.prototype,Cee=bee.hasOwnProperty;function yee(e){if(!_ee(e))return vee(e);var r=[];for(var i in Object(e))Cee.call(e,i)&&i!="constructor"&&r.push(i);return r}$j.exports=yee});var M0=pe((exn,Wj)=>{var See=bu(),wee=YC();function Pee(e){return e!=null&&wee(e.length)&&!See(e)}Wj.exports=Pee});var cp=pe((ixn,Qj)=>{var Eee=YT(),Iee=KC(),Tee=M0();function Mee(e){return Tee(e)?Eee(e):Iee(e)}Qj.exports=Mee});var Jj=pe((nxn,Yj)=>{var Dee=wu(),Oee=cp();function Aee(e,r){return e&&Dee(r,Oee(r),e)}Yj.exports=Aee});var Xj=pe((axn,Kj)=>{function Fee(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}Kj.exports=Fee});var tz=pe((rxn,Zj)=>{var kee=Yl(),Ree=K1(),Bee=Xj(),Nee=Object.prototype,Lee=Nee.hasOwnProperty;function Vee(e){if(!kee(e))return Bee(e);var r=Ree(e),i=[];for(var a in e)a=="constructor"&&(r||!Lee.call(e,a))||i.push(a);return i}Zj.exports=Vee});var dc=pe((oxn,ez)=>{var qee=YT(),jee=tz(),zee=M0();function Hee(e){return zee(e)?qee(e,!0):jee(e)}ez.exports=Hee});var nz=pe((lxn,iz)=>{var Gee=wu(),Uee=dc();function $ee(e,r){return e&&Gee(r,Uee(r),e)}iz.exports=$ee});var KT=pe((X1,Mu)=>{var Wee=Ps(),lz=typeof X1=="object"&&X1&&!X1.nodeType&&X1,az=lz&&typeof Mu=="object"&&Mu&&!Mu.nodeType&&Mu,Qee=az&&az.exports===lz,rz=Qee?Wee.Buffer:void 0,oz=rz?rz.allocUnsafe:void 0;function Yee(e,r){if(r)return e.slice();var i=e.length,a=oz?oz(i):new e.constructor(i);return e.copy(a),a}Mu.exports=Yee});var XT=pe((sxn,sz)=>{function Jee(e,r){var i=-1,a=e.length;for(r||(r=Array(a));++i{function Kee(e,r){for(var i=-1,a=e==null?0:e.length,n=0,p=[];++i{function Xee(){return[]}cz.exports=Xee});var XC=pe((mxn,dz)=>{var Zee=ZT(),tie=tM(),eie=Object.prototype,iie=eie.propertyIsEnumerable,mz=Object.getOwnPropertySymbols,nie=mz?function(e){return e==null?[]:(e=Object(e),Zee(mz(e),function(r){return iie.call(e,r)}))}:tie;dz.exports=nie});var fz=pe((dxn,uz)=>{var aie=wu(),rie=XC();function oie(e,r){return aie(e,rie(e),r)}uz.exports=oie});var ZC=pe((uxn,hz)=>{function lie(e,r){for(var i=-1,a=r.length,n=e.length;++i{var sie=JT(),pie=sie(Object.getPrototypeOf,Object);xz.exports=pie});var eM=pe((hxn,gz)=>{var cie=ZC(),mie=Z1(),die=XC(),uie=tM(),fie=Object.getOwnPropertySymbols,hie=fie?function(e){for(var r=[];e;)cie(r,die(e)),e=mie(e);return r}:uie;gz.exports=hie});var vz=pe((xxn,_z)=>{var xie=wu(),gie=eM();function _ie(e,r){return xie(e,gie(e),r)}_z.exports=_ie});var iM=pe((gxn,bz)=>{var vie=ZC(),bie=no();function Cie(e,r,i){var a=r(e);return bie(e)?a:vie(a,i(e))}bz.exports=Cie});var nM=pe((_xn,Cz)=>{var yie=iM(),Sie=XC(),wie=cp();function Pie(e){return yie(e,wie,Sie)}Cz.exports=Pie});var Sz=pe((vxn,yz)=>{var Eie=iM(),Iie=eM(),Tie=dc();function Mie(e){return Eie(e,Tie,Iie)}yz.exports=Mie});var Pz=pe((bxn,wz)=>{var Die=mc(),Oie=Ps(),Aie=Die(Oie,"DataView");wz.exports=Aie});var Iz=pe((Cxn,Ez)=>{var Fie=mc(),kie=Ps(),Rie=Fie(kie,"Promise");Ez.exports=Rie});var aM=pe((yxn,Tz)=>{var Bie=mc(),Nie=Ps(),Lie=Bie(Nie,"Set");Tz.exports=Lie});var Dz=pe((Sxn,Mz)=>{var Vie=mc(),qie=Ps(),jie=Vie(qie,"WeakMap");Mz.exports=jie});var id=pe((wxn,Nz)=>{var rM=Pz(),oM=$C(),lM=Iz(),sM=aM(),pM=Dz(),Bz=cc(),Du=$T(),Oz="[object Map]",zie="[object Object]",Az="[object Promise]",Fz="[object Set]",kz="[object WeakMap]",Rz="[object DataView]",Hie=Du(rM),Gie=Du(oM),Uie=Du(lM),$ie=Du(sM),Wie=Du(pM),ed=Bz;(rM&&ed(new rM(new ArrayBuffer(1)))!=Rz||oM&&ed(new oM)!=Oz||lM&&ed(lM.resolve())!=Az||sM&&ed(new sM)!=Fz||pM&&ed(new pM)!=kz)&&(ed=function(e){var r=Bz(e),i=r==zie?e.constructor:void 0,a=i?Du(i):"";if(a)switch(a){case Hie:return Rz;case Gie:return Oz;case Uie:return Az;case $ie:return Fz;case Wie:return kz}return r});Nz.exports=ed});var Vz=pe((Pxn,Lz)=>{var Qie=Object.prototype,Yie=Qie.hasOwnProperty;function Jie(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&Yie.call(e,"index")&&(i.index=e.index,i.input=e.input),i}Lz.exports=Jie});var cM=pe((Exn,qz)=>{var Kie=Ps(),Xie=Kie.Uint8Array;qz.exports=Xie});var t3=pe((Ixn,zz)=>{var jz=cM();function Zie(e){var r=new e.constructor(e.byteLength);return new jz(r).set(new jz(e)),r}zz.exports=Zie});var Gz=pe((Txn,Hz)=>{var tne=t3();function ene(e,r){var i=r?tne(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}Hz.exports=ene});var $z=pe((Mxn,Uz)=>{var ine=/\w*$/;function nne(e){var r=new e.constructor(e.source,ine.exec(e));return r.lastIndex=e.lastIndex,r}Uz.exports=nne});var Kz=pe((Dxn,Jz)=>{var Wz=Zm(),Qz=Wz?Wz.prototype:void 0,Yz=Qz?Qz.valueOf:void 0;function ane(e){return Yz?Object(Yz.call(e)):{}}Jz.exports=ane});var mM=pe((Oxn,Xz)=>{var rne=t3();function one(e,r){var i=r?rne(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}Xz.exports=one});var tH=pe((Axn,Zz)=>{var lne=t3(),sne=Gz(),pne=$z(),cne=Kz(),mne=mM(),dne="[object Boolean]",une="[object Date]",fne="[object Map]",hne="[object Number]",xne="[object RegExp]",gne="[object Set]",_ne="[object String]",vne="[object Symbol]",bne="[object ArrayBuffer]",Cne="[object DataView]",yne="[object Float32Array]",Sne="[object Float64Array]",wne="[object Int8Array]",Pne="[object Int16Array]",Ene="[object Int32Array]",Ine="[object Uint8Array]",Tne="[object Uint8ClampedArray]",Mne="[object Uint16Array]",Dne="[object Uint32Array]";function One(e,r,i){var a=e.constructor;switch(r){case bne:return lne(e);case dne:case une:return new a(+e);case Cne:return sne(e,i);case yne:case Sne:case wne:case Pne:case Ene:case Ine:case Tne:case Mne:case Dne:return mne(e,i);case fne:return new a;case hne:case _ne:return new a(e);case xne:return pne(e);case gne:return new a;case vne:return cne(e)}}Zz.exports=One});var dM=pe((Fxn,iH)=>{var Ane=Yl(),eH=Object.create,Fne=function(){function e(){}return function(r){if(!Ane(r))return{};if(eH)return eH(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}();iH.exports=Fne});var uM=pe((kxn,nH)=>{var kne=dM(),Rne=Z1(),Bne=K1();function Nne(e){return typeof e.constructor=="function"&&!Bne(e)?kne(Rne(e)):{}}nH.exports=Nne});var rH=pe((Rxn,aH)=>{var Lne=id(),Vne=Zs(),qne="[object Map]";function jne(e){return Vne(e)&&Lne(e)==qne}aH.exports=jne});var pH=pe((Bxn,sH)=>{var zne=rH(),Hne=Q1(),oH=JC(),lH=oH&&oH.isMap,Gne=lH?Hne(lH):zne;sH.exports=Gne});var mH=pe((Nxn,cH)=>{var Une=id(),$ne=Zs(),Wne="[object Set]";function Qne(e){return $ne(e)&&Une(e)==Wne}cH.exports=Qne});var hH=pe((Lxn,fH)=>{var Yne=mH(),Jne=Q1(),dH=JC(),uH=dH&&dH.isSet,Kne=uH?Jne(uH):Yne;fH.exports=Kne});var fM=pe((Vxn,vH)=>{var Xne=H1(),Zne=QC(),tae=U1(),eae=Jj(),iae=nz(),nae=KT(),aae=XT(),rae=fz(),oae=vz(),lae=nM(),sae=Sz(),pae=id(),cae=Vz(),mae=tH(),dae=uM(),uae=no(),fae=td(),hae=pH(),xae=Yl(),gae=hH(),_ae=cp(),vae=dc(),bae=1,Cae=2,yae=4,xH="[object Arguments]",Sae="[object Array]",wae="[object Boolean]",Pae="[object Date]",Eae="[object Error]",gH="[object Function]",Iae="[object GeneratorFunction]",Tae="[object Map]",Mae="[object Number]",_H="[object Object]",Dae="[object RegExp]",Oae="[object Set]",Aae="[object String]",Fae="[object Symbol]",kae="[object WeakMap]",Rae="[object ArrayBuffer]",Bae="[object DataView]",Nae="[object Float32Array]",Lae="[object Float64Array]",Vae="[object Int8Array]",qae="[object Int16Array]",jae="[object Int32Array]",zae="[object Uint8Array]",Hae="[object Uint8ClampedArray]",Gae="[object Uint16Array]",Uae="[object Uint32Array]",Pr={};Pr[xH]=Pr[Sae]=Pr[Rae]=Pr[Bae]=Pr[wae]=Pr[Pae]=Pr[Nae]=Pr[Lae]=Pr[Vae]=Pr[qae]=Pr[jae]=Pr[Tae]=Pr[Mae]=Pr[_H]=Pr[Dae]=Pr[Oae]=Pr[Aae]=Pr[Fae]=Pr[zae]=Pr[Hae]=Pr[Gae]=Pr[Uae]=!0;Pr[Eae]=Pr[gH]=Pr[kae]=!1;function e3(e,r,i,a,n,p){var d,u=r&bae,x=r&Cae,_=r&yae;if(i&&(d=n?i(e,a,n,p):i(e)),d!==void 0)return d;if(!xae(e))return e;var v=uae(e);if(v){if(d=cae(e),!u)return aae(e,d)}else{var C=pae(e),S=C==gH||C==Iae;if(fae(e))return nae(e,u);if(C==_H||C==xH||S&&!n){if(d=x||S?{}:dae(e),!u)return x?oae(e,iae(d,e)):rae(e,eae(d,e))}else{if(!Pr[C])return n?e:{};d=mae(e,C,u)}}p||(p=new Xne);var E=p.get(e);if(E)return E;p.set(e,d),gae(e)?e.forEach(function(T){d.add(e3(T,r,i,T,e,p))}):hae(e)&&e.forEach(function(T,A){d.set(A,e3(T,r,i,A,e,p))});var w=_?x?sae:lae:x?vae:_ae,I=v?void 0:w(e);return Zne(I||e,function(T,A){I&&(A=T,T=e[A]),tae(d,A,e3(T,r,i,A,e,p))}),d}vH.exports=e3});var CH=pe((qxn,bH)=>{var $ae=fM(),Wae=4;function Qae(e){return $ae(e,Wae)}bH.exports=Qae});var i3=pe((jxn,yH)=>{function Yae(e){return function(){return e}}yH.exports=Yae});var wH=pe((zxn,SH)=>{function Jae(e){return function(r,i,a){for(var n=-1,p=Object(r),d=a(r),u=d.length;u--;){var x=d[e?u:++n];if(i(p[x],x,p)===!1)break}return r}}SH.exports=Jae});var n3=pe((Hxn,PH)=>{var Kae=wH(),Xae=Kae();PH.exports=Xae});var a3=pe((Gxn,EH)=>{var Zae=n3(),tre=cp();function ere(e,r){return e&&Zae(e,r,tre)}EH.exports=ere});var TH=pe((Uxn,IH)=>{var ire=M0();function nre(e,r){return function(i,a){if(i==null)return i;if(!ire(i))return e(i,a);for(var n=i.length,p=r?n:-1,d=Object(i);(r?p--:++p{var are=a3(),rre=TH(),ore=rre(are);MH.exports=ore});var uc=pe((Wxn,DH)=>{function lre(e){return e}DH.exports=lre});var hM=pe((Qxn,OH)=>{var sre=uc();function pre(e){return typeof e=="function"?e:sre}OH.exports=pre});var xM=pe((Yxn,AH)=>{var cre=QC(),mre=th(),dre=hM(),ure=no();function fre(e,r){var i=ure(e)?cre:mre;return i(e,dre(r))}AH.exports=fre});var gM=pe((Jxn,FH)=>{FH.exports=xM()});var RH=pe((Kxn,kH)=>{var hre=th();function xre(e,r){var i=[];return hre(e,function(a,n,p){r(a,n,p)&&i.push(a)}),i}kH.exports=xre});var NH=pe((Xxn,BH)=>{var gre="__lodash_hash_undefined__";function _re(e){return this.__data__.set(e,gre),this}BH.exports=_re});var VH=pe((Zxn,LH)=>{function vre(e){return this.__data__.has(e)}LH.exports=vre});var _M=pe((tgn,qH)=>{var bre=WC(),Cre=NH(),yre=VH();function r3(e){var r=-1,i=e==null?0:e.length;for(this.__data__=new bre;++r{function Sre(e,r){for(var i=-1,a=e==null?0:e.length;++i{function wre(e,r){return e.has(r)}HH.exports=wre});var bM=pe((ngn,GH)=>{var Pre=_M(),Ere=zH(),Ire=vM(),Tre=1,Mre=2;function Dre(e,r,i,a,n,p){var d=i&Tre,u=e.length,x=r.length;if(u!=x&&!(d&&x>u))return!1;var _=p.get(e),v=p.get(r);if(_&&v)return _==r&&v==e;var C=-1,S=!0,E=i&Mre?new Pre:void 0;for(p.set(e,r),p.set(r,e);++C{function Ore(e){var r=-1,i=Array(e.size);return e.forEach(function(a,n){i[++r]=[n,a]}),i}UH.exports=Ore});var o3=pe((rgn,WH)=>{function Are(e){var r=-1,i=Array(e.size);return e.forEach(function(a){i[++r]=a}),i}WH.exports=Are});var XH=pe((ogn,KH)=>{var QH=Zm(),YH=cM(),Fre=Xm(),kre=bM(),Rre=$H(),Bre=o3(),Nre=1,Lre=2,Vre="[object Boolean]",qre="[object Date]",jre="[object Error]",zre="[object Map]",Hre="[object Number]",Gre="[object RegExp]",Ure="[object Set]",$re="[object String]",Wre="[object Symbol]",Qre="[object ArrayBuffer]",Yre="[object DataView]",JH=QH?QH.prototype:void 0,CM=JH?JH.valueOf:void 0;function Jre(e,r,i,a,n,p,d){switch(i){case Yre:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Qre:return!(e.byteLength!=r.byteLength||!p(new YH(e),new YH(r)));case Vre:case qre:case Hre:return Fre(+e,+r);case jre:return e.name==r.name&&e.message==r.message;case Gre:case $re:return e==r+"";case zre:var u=Rre;case Ure:var x=a&Nre;if(u||(u=Bre),e.size!=r.size&&!x)return!1;var _=d.get(e);if(_)return _==r;a|=Lre,d.set(e,r);var v=kre(u(e),u(r),a,n,p,d);return d.delete(e),v;case Wre:if(CM)return CM.call(e)==CM.call(r)}return!1}KH.exports=Jre});var eG=pe((lgn,tG)=>{var ZH=nM(),Kre=1,Xre=Object.prototype,Zre=Xre.hasOwnProperty;function toe(e,r,i,a,n,p){var d=i&Kre,u=ZH(e),x=u.length,_=ZH(r),v=_.length;if(x!=v&&!d)return!1;for(var C=x;C--;){var S=u[C];if(!(d?S in r:Zre.call(r,S)))return!1}var E=p.get(e),w=p.get(r);if(E&&w)return E==r&&w==e;var I=!0;p.set(e,r),p.set(r,e);for(var T=d;++C{var yM=H1(),eoe=bM(),ioe=XH(),noe=eG(),iG=id(),nG=no(),aG=td(),aoe=Tu(),roe=1,rG="[object Arguments]",oG="[object Array]",l3="[object Object]",ooe=Object.prototype,lG=ooe.hasOwnProperty;function loe(e,r,i,a,n,p){var d=nG(e),u=nG(r),x=d?oG:iG(e),_=u?oG:iG(r);x=x==rG?l3:x,_=_==rG?l3:_;var v=x==l3,C=_==l3,S=x==_;if(S&&aG(e)){if(!aG(r))return!1;d=!0,v=!1}if(S&&!v)return p||(p=new yM),d||aoe(e)?eoe(e,r,i,a,n,p):ioe(e,r,x,i,a,n,p);if(!(i&roe)){var E=v&&lG.call(e,"__wrapped__"),w=C&&lG.call(r,"__wrapped__");if(E||w){var I=E?e.value():e,T=w?r.value():r;return p||(p=new yM),n(I,T,i,a,p)}}return S?(p||(p=new yM),noe(e,r,i,a,n,p)):!1}sG.exports=loe});var SM=pe((pgn,dG)=>{var soe=pG(),cG=Zs();function mG(e,r,i,a,n){return e===r?!0:e==null||r==null||!cG(e)&&!cG(r)?e!==e&&r!==r:soe(e,r,i,a,mG,n)}dG.exports=mG});var fG=pe((cgn,uG)=>{var poe=H1(),coe=SM(),moe=1,doe=2;function uoe(e,r,i,a){var n=i.length,p=n,d=!a;if(e==null)return!p;for(e=Object(e);n--;){var u=i[n];if(d&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++n{var foe=Yl();function hoe(e){return e===e&&!foe(e)}hG.exports=hoe});var gG=pe((dgn,xG)=>{var xoe=wM(),goe=cp();function _oe(e){for(var r=goe(e),i=r.length;i--;){var a=r[i],n=e[a];r[i]=[a,n,xoe(n)]}return r}xG.exports=_oe});var PM=pe((ugn,_G)=>{function voe(e,r){return function(i){return i==null?!1:i[e]===r&&(r!==void 0||e in Object(i))}}_G.exports=voe});var bG=pe((fgn,vG)=>{var boe=fG(),Coe=gG(),yoe=PM();function Soe(e){var r=Coe(e);return r.length==1&&r[0][2]?yoe(r[0][0],r[0][1]):function(i){return i===e||boe(i,e,r)}}vG.exports=Soe});var nd=pe((hgn,CG)=>{var woe=cc(),Poe=Zs(),Eoe="[object Symbol]";function Ioe(e){return typeof e=="symbol"||Poe(e)&&woe(e)==Eoe}CG.exports=Ioe});var s3=pe((xgn,yG)=>{var Toe=no(),Moe=nd(),Doe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ooe=/^\w*$/;function Aoe(e,r){if(Toe(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Moe(e)?!0:Ooe.test(e)||!Doe.test(e)||r!=null&&e in Object(r)}yG.exports=Aoe});var PG=pe((ggn,wG)=>{var SG=WC(),Foe="Expected a function";function EM(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Foe);var i=function(){var a=arguments,n=r?r.apply(this,a):a[0],p=i.cache;if(p.has(n))return p.get(n);var d=e.apply(this,a);return i.cache=p.set(n,d)||p,d};return i.cache=new(EM.Cache||SG),i}EM.Cache=SG;wG.exports=EM});var IG=pe((_gn,EG)=>{var koe=PG(),Roe=500;function Boe(e){var r=koe(e,function(a){return i.size===Roe&&i.clear(),a}),i=r.cache;return r}EG.exports=Boe});var MG=pe((vgn,TG)=>{var Noe=IG(),Loe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Voe=/\\(\\)?/g,qoe=Noe(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Loe,function(i,a,n,p){r.push(n?p.replace(Voe,"$1"):a||i)}),r});TG.exports=qoe});var eh=pe((bgn,DG)=>{function joe(e,r){for(var i=-1,a=e==null?0:e.length,n=Array(a);++i{var OG=Zm(),zoe=eh(),Hoe=no(),Goe=nd(),Uoe=1/0,AG=OG?OG.prototype:void 0,FG=AG?AG.toString:void 0;function kG(e){if(typeof e=="string")return e;if(Hoe(e))return zoe(e,kG)+"";if(Goe(e))return FG?FG.call(e):"";var r=e+"";return r=="0"&&1/e==-Uoe?"-0":r}RG.exports=kG});var IM=pe((ygn,NG)=>{var $oe=BG();function Woe(e){return e==null?"":$oe(e)}NG.exports=Woe});var ih=pe((Sgn,LG)=>{var Qoe=no(),Yoe=s3(),Joe=MG(),Koe=IM();function Xoe(e,r){return Qoe(e)?e:Yoe(e,r)?[e]:Joe(Koe(e))}LG.exports=Xoe});var Ou=pe((wgn,VG)=>{var Zoe=nd(),tle=1/0;function ele(e){if(typeof e=="string"||Zoe(e))return e;var r=e+"";return r=="0"&&1/e==-tle?"-0":r}VG.exports=ele});var nh=pe((Pgn,qG)=>{var ile=ih(),nle=Ou();function ale(e,r){r=ile(r,e);for(var i=0,a=r.length;e!=null&&i{var rle=nh();function ole(e,r,i){var a=e==null?void 0:rle(e,r);return a===void 0?i:a}jG.exports=ole});var GG=pe((Ign,HG)=>{function lle(e,r){return e!=null&&r in Object(e)}HG.exports=lle});var TM=pe((Tgn,UG)=>{var sle=ih(),ple=Pu(),cle=no(),mle=W1(),dle=YC(),ule=Ou();function fle(e,r,i){r=sle(r,e);for(var a=-1,n=r.length,p=!1;++a{var hle=GG(),xle=TM();function gle(e,r){return e!=null&&xle(e,r,hle)}$G.exports=gle});var QG=pe((Dgn,WG)=>{var _le=SM(),vle=zG(),ble=MM(),Cle=s3(),yle=wM(),Sle=PM(),wle=Ou(),Ple=1,Ele=2;function Ile(e,r){return Cle(e)&&yle(r)?Sle(wle(e),r):function(i){var a=vle(i,e);return a===void 0&&a===r?ble(i,e):_le(r,a,Ple|Ele)}}WG.exports=Ile});var DM=pe((Ogn,YG)=>{function Tle(e){return function(r){return r?.[e]}}YG.exports=Tle});var KG=pe((Agn,JG)=>{var Mle=nh();function Dle(e){return function(r){return Mle(r,e)}}JG.exports=Dle});var ZG=pe((Fgn,XG)=>{var Ole=DM(),Ale=KG(),Fle=s3(),kle=Ou();function Rle(e){return Fle(e)?Ole(kle(e)):Ale(e)}XG.exports=Rle});var D0=pe((kgn,tU)=>{var Ble=bG(),Nle=QG(),Lle=uc(),Vle=no(),qle=ZG();function jle(e){return typeof e=="function"?e:e==null?Lle:typeof e=="object"?Vle(e)?Nle(e[0],e[1]):Ble(e):qle(e)}tU.exports=jle});var OM=pe((Rgn,eU)=>{var zle=ZT(),Hle=RH(),Gle=D0(),Ule=no();function $le(e,r){var i=Ule(e)?zle:Hle;return i(e,Gle(r,3))}eU.exports=$le});var nU=pe((Bgn,iU)=>{var Wle=Object.prototype,Qle=Wle.hasOwnProperty;function Yle(e,r){return e!=null&&Qle.call(e,r)}iU.exports=Yle});var AM=pe((Ngn,aU)=>{var Jle=nU(),Kle=TM();function Xle(e,r){return e!=null&&Kle(e,r,Jle)}aU.exports=Xle});var oU=pe((Lgn,rU)=>{var Zle=KC(),tse=id(),ese=Pu(),ise=no(),nse=M0(),ase=td(),rse=K1(),ose=Tu(),lse="[object Map]",sse="[object Set]",pse=Object.prototype,cse=pse.hasOwnProperty;function mse(e){if(e==null)return!0;if(nse(e)&&(ise(e)||typeof e=="string"||typeof e.splice=="function"||ase(e)||ose(e)||ese(e)))return!e.length;var r=tse(e);if(r==lse||r==sse)return!e.size;if(rse(e))return!Zle(e).length;for(var i in e)if(cse.call(e,i))return!1;return!0}rU.exports=mse});var FM=pe((Vgn,lU)=>{function dse(e){return e===void 0}lU.exports=dse});var kM=pe((qgn,sU)=>{var use=th(),fse=M0();function hse(e,r){var i=-1,a=fse(e)?Array(e.length):[];return use(e,function(n,p,d){a[++i]=r(n,p,d)}),a}sU.exports=hse});var RM=pe((jgn,pU)=>{var xse=eh(),gse=D0(),_se=kM(),vse=no();function bse(e,r){var i=vse(e)?xse:_se;return i(e,gse(r,3))}pU.exports=bse});var mU=pe((zgn,cU)=>{function Cse(e,r,i,a){var n=-1,p=e==null?0:e.length;for(a&&p&&(i=e[++n]);++n{function yse(e,r,i,a,n){return n(e,function(p,d,u){i=a?(a=!1,p):r(i,p,d,u)}),i}dU.exports=yse});var BM=pe((Ggn,fU)=>{var Sse=mU(),wse=th(),Pse=D0(),Ese=uU(),Ise=no();function Tse(e,r,i){var a=Ise(e)?Sse:Ese,n=arguments.length<3;return a(e,Pse(r,4),i,n,wse)}fU.exports=Tse});var xU=pe((Ugn,hU)=>{var Mse=cc(),Dse=no(),Ose=Zs(),Ase="[object String]";function Fse(e){return typeof e=="string"||!Dse(e)&&Ose(e)&&Mse(e)==Ase}hU.exports=Fse});var _U=pe(($gn,gU)=>{var kse=DM(),Rse=kse("length");gU.exports=Rse});var bU=pe((Wgn,vU)=>{var Bse="\\ud800-\\udfff",Nse="\\u0300-\\u036f",Lse="\\ufe20-\\ufe2f",Vse="\\u20d0-\\u20ff",qse=Nse+Lse+Vse,jse="\\ufe0e\\ufe0f",zse="\\u200d",Hse=RegExp("["+zse+Bse+qse+jse+"]");function Gse(e){return Hse.test(e)}vU.exports=Gse});var MU=pe((Qgn,TU)=>{var yU="\\ud800-\\udfff",Use="\\u0300-\\u036f",$se="\\ufe20-\\ufe2f",Wse="\\u20d0-\\u20ff",Qse=Use+$se+Wse,Yse="\\ufe0e\\ufe0f",Jse="["+yU+"]",NM="["+Qse+"]",LM="\\ud83c[\\udffb-\\udfff]",Kse="(?:"+NM+"|"+LM+")",SU="[^"+yU+"]",wU="(?:\\ud83c[\\udde6-\\uddff]){2}",PU="[\\ud800-\\udbff][\\udc00-\\udfff]",Xse="\\u200d",EU=Kse+"?",IU="["+Yse+"]?",Zse="(?:"+Xse+"(?:"+[SU,wU,PU].join("|")+")"+IU+EU+")*",t0e=IU+EU+Zse,e0e="(?:"+[SU+NM+"?",NM,wU,PU,Jse].join("|")+")",CU=RegExp(LM+"(?="+LM+")|"+e0e+t0e,"g");function i0e(e){for(var r=CU.lastIndex=0;CU.test(e);)++r;return r}TU.exports=i0e});var OU=pe((Ygn,DU)=>{var n0e=_U(),a0e=bU(),r0e=MU();function o0e(e){return a0e(e)?r0e(e):n0e(e)}DU.exports=o0e});var FU=pe((Jgn,AU)=>{var l0e=KC(),s0e=id(),p0e=M0(),c0e=xU(),m0e=OU(),d0e="[object Map]",u0e="[object Set]";function f0e(e){if(e==null)return 0;if(p0e(e))return c0e(e)?m0e(e):e.length;var r=s0e(e);return r==d0e||r==u0e?e.size:l0e(e).length}AU.exports=f0e});var RU=pe((Kgn,kU)=>{var h0e=QC(),x0e=dM(),g0e=a3(),_0e=D0(),v0e=Z1(),b0e=no(),C0e=td(),y0e=bu(),S0e=Yl(),w0e=Tu();function P0e(e,r,i){var a=b0e(e),n=a||C0e(e)||w0e(e);if(r=_0e(r,4),i==null){var p=e&&e.constructor;n?i=a?new p:[]:S0e(e)?i=y0e(p)?x0e(v0e(e)):{}:i={}}return(n?h0e:g0e)(e,function(d,u,x){return r(i,d,u,x)}),i}kU.exports=P0e});var VU=pe((Xgn,LU)=>{var BU=Zm(),E0e=Pu(),I0e=no(),NU=BU?BU.isConcatSpreadable:void 0;function T0e(e){return I0e(e)||E0e(e)||!!(NU&&e&&e[NU])}LU.exports=T0e});var p3=pe((Zgn,jU)=>{var M0e=ZC(),D0e=VU();function qU(e,r,i,a,n){var p=-1,d=e.length;for(i||(i=D0e),n||(n=[]);++p0&&i(u)?r>1?qU(u,r-1,i,a,n):M0e(n,u):a||(n[n.length]=u)}return n}jU.exports=qU});var HU=pe((t_n,zU)=>{function O0e(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}zU.exports=O0e});var VM=pe((e_n,UU)=>{var A0e=HU(),GU=Math.max;function F0e(e,r,i){return r=GU(r===void 0?e.length-1:r,0),function(){for(var a=arguments,n=-1,p=GU(a.length-r,0),d=Array(p);++n{var k0e=i3(),$U=WT(),R0e=uc(),B0e=$U?function(e,r){return $U(e,"toString",{configurable:!0,enumerable:!1,value:k0e(r),writable:!0})}:R0e;WU.exports=B0e});var JU=pe((n_n,YU)=>{var N0e=800,L0e=16,V0e=Date.now;function q0e(e){var r=0,i=0;return function(){var a=V0e(),n=L0e-(a-i);if(i=a,n>0){if(++r>=N0e)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}YU.exports=q0e});var qM=pe((a_n,KU)=>{var j0e=QU(),z0e=JU(),H0e=z0e(j0e);KU.exports=H0e});var ah=pe((r_n,XU)=>{var G0e=uc(),U0e=VM(),$0e=qM();function W0e(e,r){return $0e(U0e(e,r,G0e),e+"")}XU.exports=W0e});var jM=pe((o_n,ZU)=>{function Q0e(e,r,i,a){for(var n=e.length,p=i+(a?1:-1);a?p--:++p{function Y0e(e){return e!==e}t$.exports=Y0e});var n$=pe((s_n,i$)=>{function J0e(e,r,i){for(var a=i-1,n=e.length;++a{var K0e=jM(),X0e=e$(),Z0e=n$();function tpe(e,r,i){return r===r?Z0e(e,r,i):K0e(e,X0e,i)}a$.exports=tpe});var l$=pe((c_n,o$)=>{var epe=r$();function ipe(e,r){var i=e==null?0:e.length;return!!i&&epe(e,r,0)>-1}o$.exports=ipe});var p$=pe((m_n,s$)=>{function npe(e,r,i){for(var a=-1,n=e==null?0:e.length;++a{function ape(){}c$.exports=ape});var u$=pe((u_n,d$)=>{var zM=aM(),rpe=m$(),ope=o3(),lpe=1/0,spe=zM&&1/ope(new zM([,-0]))[1]==lpe?function(e){return new zM(e)}:rpe;d$.exports=spe});var h$=pe((f_n,f$)=>{var ppe=_M(),cpe=l$(),mpe=p$(),dpe=vM(),upe=u$(),fpe=o3(),hpe=200;function xpe(e,r,i){var a=-1,n=cpe,p=e.length,d=!0,u=[],x=u;if(i)d=!1,n=mpe;else if(p>=hpe){var _=r?null:upe(e);if(_)return fpe(_);d=!1,n=dpe,x=new ppe}else x=r?[]:u;t:for(;++a{var gpe=M0(),_pe=Zs();function vpe(e){return _pe(e)&&gpe(e)}x$.exports=vpe});var _$=pe((x_n,g$)=>{var bpe=p3(),Cpe=ah(),ype=h$(),Spe=HM(),wpe=Cpe(function(e){return ype(bpe(e,1,Spe,!0))});g$.exports=wpe});var b$=pe((g_n,v$)=>{var Ppe=eh();function Epe(e,r){return Ppe(r,function(i){return e[i]})}v$.exports=Epe});var GM=pe((__n,C$)=>{var Ipe=b$(),Tpe=cp();function Mpe(e){return e==null?[]:Ipe(e,Tpe(e))}C$.exports=Mpe});var Jl=pe((v_n,y$)=>{var c3;if(typeof Vs=="function")try{c3={clone:CH(),constant:i3(),each:gM(),filter:OM(),has:AM(),isArray:no(),isEmpty:oU(),isFunction:bu(),isUndefined:FM(),keys:cp(),map:RM(),reduce:BM(),size:FU(),transform:RU(),union:_$(),values:GM()}}catch{}c3||(c3=window._);y$.exports=c3});var m3=pe((C_n,E$)=>{"use strict";var oa=Jl();E$.exports=Ea;var Dpe="\0",ad="\0",S$="";function Ea(e){this._isDirected=oa.has(e,"directed")?e.directed:!0,this._isMultigraph=oa.has(e,"multigraph")?e.multigraph:!1,this._isCompound=oa.has(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=oa.constant(void 0),this._defaultEdgeLabelFn=oa.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[ad]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}Ea.prototype._nodeCount=0;Ea.prototype._edgeCount=0;Ea.prototype.isDirected=function(){return this._isDirected};Ea.prototype.isMultigraph=function(){return this._isMultigraph};Ea.prototype.isCompound=function(){return this._isCompound};Ea.prototype.setGraph=function(e){return this._label=e,this};Ea.prototype.graph=function(){return this._label};Ea.prototype.setDefaultNodeLabel=function(e){return oa.isFunction(e)||(e=oa.constant(e)),this._defaultNodeLabelFn=e,this};Ea.prototype.nodeCount=function(){return this._nodeCount};Ea.prototype.nodes=function(){return oa.keys(this._nodes)};Ea.prototype.sources=function(){var e=this;return oa.filter(this.nodes(),function(r){return oa.isEmpty(e._in[r])})};Ea.prototype.sinks=function(){var e=this;return oa.filter(this.nodes(),function(r){return oa.isEmpty(e._out[r])})};Ea.prototype.setNodes=function(e,r){var i=arguments,a=this;return oa.each(e,function(n){i.length>1?a.setNode(n,r):a.setNode(n)}),this};Ea.prototype.setNode=function(e,r){return oa.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=ad,this._children[e]={},this._children[ad][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)};Ea.prototype.node=function(e){return this._nodes[e]};Ea.prototype.hasNode=function(e){return oa.has(this._nodes,e)};Ea.prototype.removeNode=function(e){var r=this;if(oa.has(this._nodes,e)){var i=function(a){r.removeEdge(r._edgeObjs[a])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],oa.each(this.children(e),function(a){r.setParent(a)}),delete this._children[e]),oa.each(oa.keys(this._in[e]),i),delete this._in[e],delete this._preds[e],oa.each(oa.keys(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this};Ea.prototype.setParent=function(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(oa.isUndefined(r))r=ad;else{r+="";for(var i=r;!oa.isUndefined(i);i=this.parent(i))if(i===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this};Ea.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]};Ea.prototype.parent=function(e){if(this._isCompound){var r=this._parent[e];if(r!==ad)return r}};Ea.prototype.children=function(e){if(oa.isUndefined(e)&&(e=ad),this._isCompound){var r=this._children[e];if(r)return oa.keys(r)}else{if(e===ad)return this.nodes();if(this.hasNode(e))return[]}};Ea.prototype.predecessors=function(e){var r=this._preds[e];if(r)return oa.keys(r)};Ea.prototype.successors=function(e){var r=this._sucs[e];if(r)return oa.keys(r)};Ea.prototype.neighbors=function(e){var r=this.predecessors(e);if(r)return oa.union(r,this.successors(e))};Ea.prototype.isLeaf=function(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0};Ea.prototype.filterNodes=function(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;oa.each(this._nodes,function(p,d){e(d)&&r.setNode(d,p)}),oa.each(this._edgeObjs,function(p){r.hasNode(p.v)&&r.hasNode(p.w)&&r.setEdge(p,i.edge(p))});var a={};function n(p){var d=i.parent(p);return d===void 0||r.hasNode(d)?(a[p]=d,d):d in a?a[d]:n(d)}return this._isCompound&&oa.each(r.nodes(),function(p){r.setParent(p,n(p))}),r};Ea.prototype.setDefaultEdgeLabel=function(e){return oa.isFunction(e)||(e=oa.constant(e)),this._defaultEdgeLabelFn=e,this};Ea.prototype.edgeCount=function(){return this._edgeCount};Ea.prototype.edges=function(){return oa.values(this._edgeObjs)};Ea.prototype.setPath=function(e,r){var i=this,a=arguments;return oa.reduce(e,function(n,p){return a.length>1?i.setEdge(n,p,r):i.setEdge(n,p),p}),this};Ea.prototype.setEdge=function(){var e,r,i,a,n=!1,p=arguments[0];typeof p=="object"&&p!==null&&"v"in p?(e=p.v,r=p.w,i=p.name,arguments.length===2&&(a=arguments[1],n=!0)):(e=p,r=arguments[1],i=arguments[3],arguments.length>2&&(a=arguments[2],n=!0)),e=""+e,r=""+r,oa.isUndefined(i)||(i=""+i);var d=rh(this._isDirected,e,r,i);if(oa.has(this._edgeLabels,d))return n&&(this._edgeLabels[d]=a),this;if(!oa.isUndefined(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[d]=n?a:this._defaultEdgeLabelFn(e,r,i);var u=Ope(this._isDirected,e,r,i);return e=u.v,r=u.w,Object.freeze(u),this._edgeObjs[d]=u,w$(this._preds[r],e),w$(this._sucs[e],r),this._in[r][d]=u,this._out[e][d]=u,this._edgeCount++,this};Ea.prototype.edge=function(e,r,i){var a=arguments.length===1?UM(this._isDirected,arguments[0]):rh(this._isDirected,e,r,i);return this._edgeLabels[a]};Ea.prototype.hasEdge=function(e,r,i){var a=arguments.length===1?UM(this._isDirected,arguments[0]):rh(this._isDirected,e,r,i);return oa.has(this._edgeLabels,a)};Ea.prototype.removeEdge=function(e,r,i){var a=arguments.length===1?UM(this._isDirected,arguments[0]):rh(this._isDirected,e,r,i),n=this._edgeObjs[a];return n&&(e=n.v,r=n.w,delete this._edgeLabels[a],delete this._edgeObjs[a],P$(this._preds[r],e),P$(this._sucs[e],r),delete this._in[r][a],delete this._out[e][a],this._edgeCount--),this};Ea.prototype.inEdges=function(e,r){var i=this._in[e];if(i){var a=oa.values(i);return r?oa.filter(a,function(n){return n.v===r}):a}};Ea.prototype.outEdges=function(e,r){var i=this._out[e];if(i){var a=oa.values(i);return r?oa.filter(a,function(n){return n.w===r}):a}};Ea.prototype.nodeEdges=function(e,r){var i=this.inEdges(e,r);if(i)return i.concat(this.outEdges(e,r))};function w$(e,r){e[r]?e[r]++:e[r]=1}function P$(e,r){--e[r]||delete e[r]}function rh(e,r,i,a){var n=""+r,p=""+i;if(!e&&n>p){var d=n;n=p,p=d}return n+S$+p+S$+(oa.isUndefined(a)?Dpe:a)}function Ope(e,r,i,a){var n=""+r,p=""+i;if(!e&&n>p){var d=n;n=p,p=d}var u={v:n,w:p};return a&&(u.name=a),u}function UM(e,r){return rh(e,r.v,r.w,r.name)}});var T$=pe((y_n,I$)=>{I$.exports="2.1.8"});var D$=pe((S_n,M$)=>{M$.exports={Graph:m3(),version:T$()}});var A$=pe((w_n,O$)=>{var O0=Jl(),Ape=m3();O$.exports={write:Fpe,read:Bpe};function Fpe(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:kpe(e),edges:Rpe(e)};return O0.isUndefined(e.graph())||(r.value=O0.clone(e.graph())),r}function kpe(e){return O0.map(e.nodes(),function(r){var i=e.node(r),a=e.parent(r),n={v:r};return O0.isUndefined(i)||(n.value=i),O0.isUndefined(a)||(n.parent=a),n})}function Rpe(e){return O0.map(e.edges(),function(r){var i=e.edge(r),a={v:r.v,w:r.w};return O0.isUndefined(r.name)||(a.name=r.name),O0.isUndefined(i)||(a.value=i),a})}function Bpe(e){var r=new Ape(e.options).setGraph(e.value);return O0.each(e.nodes,function(i){r.setNode(i.v,i.value),i.parent&&r.setParent(i.v,i.parent)}),O0.each(e.edges,function(i){r.setEdge({v:i.v,w:i.w,name:i.name},i.value)}),r}});var k$=pe((P_n,F$)=>{var u3=Jl();F$.exports=Npe;function Npe(e){var r={},i=[],a;function n(p){u3.has(r,p)||(r[p]=!0,a.push(p),u3.each(e.successors(p),n),u3.each(e.predecessors(p),n))}return u3.each(e.nodes(),function(p){a=[],n(p),a.length&&i.push(a)}),i}});var $M=pe((E_n,B$)=>{var R$=Jl();B$.exports=Es;function Es(){this._arr=[],this._keyIndices={}}Es.prototype.size=function(){return this._arr.length};Es.prototype.keys=function(){return this._arr.map(function(e){return e.key})};Es.prototype.has=function(e){return R$.has(this._keyIndices,e)};Es.prototype.priority=function(e){var r=this._keyIndices[e];if(r!==void 0)return this._arr[r].priority};Es.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};Es.prototype.add=function(e,r){var i=this._keyIndices;if(e=String(e),!R$.has(i,e)){var a=this._arr,n=a.length;return i[e]=n,a.push({key:e,priority:r}),this._decrease(n),!0}return!1};Es.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key};Es.prototype.decrease=function(e,r){var i=this._keyIndices[e];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)};Es.prototype._heapify=function(e){var r=this._arr,i=2*e,a=i+1,n=e;i>1,!(r[a].priority{var Lpe=Jl(),Vpe=$M();N$.exports=jpe;var qpe=Lpe.constant(1);function jpe(e,r,i,a){return zpe(e,String(r),i||qpe,a||function(n){return e.outEdges(n)})}function zpe(e,r,i,a){var n={},p=new Vpe,d,u,x=function(_){var v=_.v!==d?_.v:_.w,C=n[v],S=i(_),E=u.distance+S;if(S<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+_+" Weight: "+S);E0&&(d=p.removeMin(),u=n[d],u.distance!==Number.POSITIVE_INFINITY);)a(d).forEach(x);return n}});var V$=pe((T_n,L$)=>{var Hpe=WM(),Gpe=Jl();L$.exports=Upe;function Upe(e,r,i){return Gpe.transform(e.nodes(),function(a,n){a[n]=Hpe(e,n,r,i)},{})}});var QM=pe((M_n,j$)=>{var q$=Jl();j$.exports=$pe;function $pe(e){var r=0,i=[],a={},n=[];function p(d){var u=a[d]={onStack:!0,lowlink:r,index:r++};if(i.push(d),e.successors(d).forEach(function(v){q$.has(a,v)?a[v].onStack&&(u.lowlink=Math.min(u.lowlink,a[v].index)):(p(v),u.lowlink=Math.min(u.lowlink,a[v].lowlink))}),u.lowlink===u.index){var x=[],_;do _=i.pop(),a[_].onStack=!1,x.push(_);while(d!==_);n.push(x)}}return e.nodes().forEach(function(d){q$.has(a,d)||p(d)}),n}});var H$=pe((D_n,z$)=>{var Wpe=Jl(),Qpe=QM();z$.exports=Ype;function Ype(e){return Wpe.filter(Qpe(e),function(r){return r.length>1||r.length===1&&e.hasEdge(r[0],r[0])})}});var U$=pe((O_n,G$)=>{var Jpe=Jl();G$.exports=Xpe;var Kpe=Jpe.constant(1);function Xpe(e,r,i){return Zpe(e,r||Kpe,i||function(a){return e.outEdges(a)})}function Zpe(e,r,i){var a={},n=e.nodes();return n.forEach(function(p){a[p]={},a[p][p]={distance:0},n.forEach(function(d){p!==d&&(a[p][d]={distance:Number.POSITIVE_INFINITY})}),i(p).forEach(function(d){var u=d.v===p?d.w:d.v,x=r(d);a[p][u]={distance:x,predecessor:p}})}),n.forEach(function(p){var d=a[p];n.forEach(function(u){var x=a[u];n.forEach(function(_){var v=x[p],C=d[_],S=x[_],E=v.distance+C.distance;E{var oh=Jl();W$.exports=$$;$$.CycleException=f3;function $$(e){var r={},i={},a=[];function n(p){if(oh.has(i,p))throw new f3;oh.has(r,p)||(i[p]=!0,r[p]=!0,oh.each(e.predecessors(p),n),delete i[p],a.push(p))}if(oh.each(e.sinks(),n),oh.size(r)!==e.nodeCount())throw new f3;return a}function f3(){}f3.prototype=new Error});var J$=pe((F_n,Y$)=>{var Q$=YM();Y$.exports=tce;function tce(e){try{Q$(e)}catch(r){if(r instanceof Q$.CycleException)return!1;throw r}return!0}});var JM=pe((k_n,X$)=>{var h3=Jl();X$.exports=ece;function ece(e,r,i){h3.isArray(r)||(r=[r]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),n=[],p={};return h3.each(r,function(d){if(!e.hasNode(d))throw new Error("Graph does not have node: "+d);K$(e,d,i==="post",p,a,n)}),n}function K$(e,r,i,a,n,p){h3.has(a,r)||(a[r]=!0,i||p.push(r),h3.each(n(r),function(d){K$(e,d,i,a,n,p)}),i&&p.push(r))}});var tW=pe((R_n,Z$)=>{var ice=JM();Z$.exports=nce;function nce(e,r){return ice(e,r,"post")}});var iW=pe((B_n,eW)=>{var ace=JM();eW.exports=rce;function rce(e,r){return ace(e,r,"pre")}});var rW=pe((N_n,aW)=>{var nW=Jl(),oce=m3(),lce=$M();aW.exports=sce;function sce(e,r){var i=new oce,a={},n=new lce,p;function d(x){var _=x.v===p?x.w:x.v,v=n.priority(_);if(v!==void 0){var C=r(x);C0;){if(p=n.removeMin(),nW.has(a,p))i.setEdge(p,a[p]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(p).forEach(d)}return i}});var lW=pe((L_n,oW)=>{oW.exports={components:k$(),dijkstra:WM(),dijkstraAll:V$(),findCycles:H$(),floydWarshall:U$(),isAcyclic:J$(),postorder:tW(),preorder:iW(),prim:rW(),tarjan:QM(),topsort:YM()}});var cW=pe((V_n,pW)=>{var sW=D$();pW.exports={Graph:sW.Graph,json:A$(),alg:lW(),version:sW.version}});var Is=pe((q_n,mW)=>{var x3;if(typeof Vs=="function")try{x3=cW()}catch{}x3||(x3=window.graphlib);mW.exports=x3});var uW=pe((z_n,dW)=>{var pce=fM(),cce=1,mce=4;function dce(e){return pce(e,cce|mce)}dW.exports=dce});var lh=pe((H_n,fW)=>{var uce=Xm(),fce=M0(),hce=W1(),xce=Yl();function gce(e,r,i){if(!xce(i))return!1;var a=typeof r;return(a=="number"?fce(i)&&hce(r,i.length):a=="string"&&r in i)?uce(i[r],e):!1}fW.exports=gce});var gW=pe((G_n,xW)=>{var _ce=ah(),vce=Xm(),bce=lh(),Cce=dc(),hW=Object.prototype,yce=hW.hasOwnProperty,Sce=_ce(function(e,r){e=Object(e);var i=-1,a=r.length,n=a>2?r[2]:void 0;for(n&&bce(r[0],r[1],n)&&(a=1);++i{var wce=D0(),Pce=M0(),Ece=cp();function Ice(e){return function(r,i,a){var n=Object(r);if(!Pce(r)){var p=wce(i,3);r=Ece(r),i=function(u){return p(n[u],u,n)}}var d=e(r,i,a);return d>-1?n[p?r[d]:d]:void 0}}_W.exports=Ice});var CW=pe(($_n,bW)=>{var Tce=/\s/;function Mce(e){for(var r=e.length;r--&&Tce.test(e.charAt(r)););return r}bW.exports=Mce});var SW=pe((W_n,yW)=>{var Dce=CW(),Oce=/^\s+/;function Ace(e){return e&&e.slice(0,Dce(e)+1).replace(Oce,"")}yW.exports=Ace});var IW=pe((Q_n,EW)=>{var Fce=SW(),wW=Yl(),kce=nd(),PW=NaN,Rce=/^[-+]0x[0-9a-f]+$/i,Bce=/^0b[01]+$/i,Nce=/^0o[0-7]+$/i,Lce=parseInt;function Vce(e){if(typeof e=="number")return e;if(kce(e))return PW;if(wW(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=wW(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Fce(e);var i=Bce.test(e);return i||Nce.test(e)?Lce(e.slice(2),i?2:8):Rce.test(e)?PW:+e}EW.exports=Vce});var KM=pe((Y_n,MW)=>{var qce=IW(),TW=1/0,jce=17976931348623157e292;function zce(e){if(!e)return e===0?e:0;if(e=qce(e),e===TW||e===-TW){var r=e<0?-1:1;return r*jce}return e===e?e:0}MW.exports=zce});var OW=pe((J_n,DW)=>{var Hce=KM();function Gce(e){var r=Hce(e),i=r%1;return r===r?i?r-i:r:0}DW.exports=Gce});var FW=pe((K_n,AW)=>{var Uce=jM(),$ce=D0(),Wce=OW(),Qce=Math.max;function Yce(e,r,i){var a=e==null?0:e.length;if(!a)return-1;var n=i==null?0:Wce(i);return n<0&&(n=Qce(a+n,0)),Uce(e,$ce(r,3),n)}AW.exports=Yce});var RW=pe((X_n,kW)=>{var Jce=vW(),Kce=FW(),Xce=Jce(Kce);kW.exports=Xce});var XM=pe((Z_n,BW)=>{var Zce=p3();function tme(e){var r=e==null?0:e.length;return r?Zce(e,1):[]}BW.exports=tme});var LW=pe((tvn,NW)=>{var eme=n3(),ime=hM(),nme=dc();function ame(e,r){return e==null?e:eme(e,ime(r),nme)}NW.exports=ame});var qW=pe((evn,VW)=>{function rme(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}VW.exports=rme});var zW=pe((ivn,jW)=>{var ome=G1(),lme=a3(),sme=D0();function pme(e,r){var i={};return r=sme(r,3),lme(e,function(a,n,p){ome(i,n,r(a,n,p))}),i}jW.exports=pme});var g3=pe((nvn,HW)=>{var cme=nd();function mme(e,r,i){for(var a=-1,n=e.length;++a{function dme(e,r){return e>r}GW.exports=dme});var WW=pe((rvn,$W)=>{var ume=g3(),fme=UW(),hme=uc();function xme(e){return e&&e.length?ume(e,hme,fme):void 0}$W.exports=xme});var ZM=pe((ovn,QW)=>{var gme=G1(),_me=Xm();function vme(e,r,i){(i!==void 0&&!_me(e[r],i)||i===void 0&&!(r in e))&&gme(e,r,i)}QW.exports=vme});var KW=pe((lvn,JW)=>{var bme=cc(),Cme=Z1(),yme=Zs(),Sme="[object Object]",wme=Function.prototype,Pme=Object.prototype,YW=wme.toString,Eme=Pme.hasOwnProperty,Ime=YW.call(Object);function Tme(e){if(!yme(e)||bme(e)!=Sme)return!1;var r=Cme(e);if(r===null)return!0;var i=Eme.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&YW.call(i)==Ime}JW.exports=Tme});var t6=pe((svn,XW)=>{function Mme(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}XW.exports=Mme});var tQ=pe((pvn,ZW)=>{var Dme=wu(),Ome=dc();function Ame(e){return Dme(e,Ome(e))}ZW.exports=Ame});var oQ=pe((cvn,rQ)=>{var eQ=ZM(),Fme=KT(),kme=mM(),Rme=XT(),Bme=uM(),iQ=Pu(),nQ=no(),Nme=HM(),Lme=td(),Vme=bu(),qme=Yl(),jme=KW(),zme=Tu(),aQ=t6(),Hme=tQ();function Gme(e,r,i,a,n,p,d){var u=aQ(e,i),x=aQ(r,i),_=d.get(x);if(_){eQ(e,i,_);return}var v=p?p(u,x,i+"",e,r,d):void 0,C=v===void 0;if(C){var S=nQ(x),E=!S&&Lme(x),w=!S&&!E&&zme(x);v=x,S||E||w?nQ(u)?v=u:Nme(u)?v=Rme(u):E?(C=!1,v=Fme(x,!0)):w?(C=!1,v=kme(x,!0)):v=[]:jme(x)||iQ(x)?(v=u,iQ(u)?v=Hme(u):(!qme(u)||Vme(u))&&(v=Bme(x))):C=!1}C&&(d.set(x,v),n(v,x,a,p,d),d.delete(x)),eQ(e,i,v)}rQ.exports=Gme});var pQ=pe((mvn,sQ)=>{var Ume=H1(),$me=ZM(),Wme=n3(),Qme=oQ(),Yme=Yl(),Jme=dc(),Kme=t6();function lQ(e,r,i,a,n){e!==r&&Wme(r,function(p,d){if(n||(n=new Ume),Yme(p))Qme(e,r,d,i,lQ,a,n);else{var u=a?a(Kme(e,d),p,d+"",e,r,n):void 0;u===void 0&&(u=p),$me(e,d,u)}},Jme)}sQ.exports=lQ});var mQ=pe((dvn,cQ)=>{var Xme=ah(),Zme=lh();function tde(e){return Xme(function(r,i){var a=-1,n=i.length,p=n>1?i[n-1]:void 0,d=n>2?i[2]:void 0;for(p=e.length>3&&typeof p=="function"?(n--,p):void 0,d&&Zme(i[0],i[1],d)&&(p=n<3?void 0:p,n=1),r=Object(r);++a{var ede=pQ(),ide=mQ(),nde=ide(function(e,r,i){ede(e,r,i)});dQ.exports=nde});var e6=pe((fvn,fQ)=>{function ade(e,r){return e{var rde=g3(),ode=e6(),lde=uc();function sde(e){return e&&e.length?rde(e,lde,ode):void 0}hQ.exports=sde});var _Q=pe((xvn,gQ)=>{var pde=g3(),cde=D0(),mde=e6();function dde(e,r){return e&&e.length?pde(e,cde(r,2),mde):void 0}gQ.exports=dde});var bQ=pe((gvn,vQ)=>{var ude=Ps(),fde=function(){return ude.Date.now()};vQ.exports=fde});var SQ=pe((_vn,yQ)=>{var hde=U1(),xde=ih(),gde=W1(),CQ=Yl(),_de=Ou();function vde(e,r,i,a){if(!CQ(e))return e;r=xde(r,e);for(var n=-1,p=r.length,d=p-1,u=e;u!=null&&++n{var bde=nh(),Cde=SQ(),yde=ih();function Sde(e,r,i){for(var a=-1,n=r.length,p={};++a{var wde=PQ(),Pde=MM();function Ede(e,r){return wde(e,r,function(i,a){return Pde(e,a)})}EQ.exports=Ede});var MQ=pe((Cvn,TQ)=>{var Ide=XM(),Tde=VM(),Mde=qM();function Dde(e){return Mde(Tde(e,void 0,Ide),e+"")}TQ.exports=Dde});var OQ=pe((yvn,DQ)=>{var Ode=IQ(),Ade=MQ(),Fde=Ade(function(e,r){return e==null?{}:Ode(e,r)});DQ.exports=Fde});var FQ=pe((Svn,AQ)=>{var kde=Math.ceil,Rde=Math.max;function Bde(e,r,i,a){for(var n=-1,p=Rde(kde((r-e)/(i||1)),0),d=Array(p);p--;)d[a?p:++n]=e,e+=i;return d}AQ.exports=Bde});var RQ=pe((wvn,kQ)=>{var Nde=FQ(),Lde=lh(),i6=KM();function Vde(e){return function(r,i,a){return a&&typeof a!="number"&&Lde(r,i,a)&&(i=a=void 0),r=i6(r),i===void 0?(i=r,r=0):i=i6(i),a=a===void 0?r{var qde=RQ(),jde=qde();BQ.exports=jde});var VQ=pe((Evn,LQ)=>{function zde(e,r){var i=e.length;for(e.sort(r);i--;)e[i]=e[i].value;return e}LQ.exports=zde});var zQ=pe((Ivn,jQ)=>{var qQ=nd();function Hde(e,r){if(e!==r){var i=e!==void 0,a=e===null,n=e===e,p=qQ(e),d=r!==void 0,u=r===null,x=r===r,_=qQ(r);if(!u&&!_&&!p&&e>r||p&&d&&x&&!u&&!_||a&&d&&x||!i&&x||!n)return 1;if(!a&&!p&&!_&&e{var Gde=zQ();function Ude(e,r,i){for(var a=-1,n=e.criteria,p=r.criteria,d=n.length,u=i.length;++a=u)return x;var _=i[a];return x*(_=="desc"?-1:1)}}return e.index-r.index}HQ.exports=Ude});var $Q=pe((Mvn,UQ)=>{var n6=eh(),$de=nh(),Wde=D0(),Qde=kM(),Yde=VQ(),Jde=Q1(),Kde=GQ(),Xde=uc(),Zde=no();function tue(e,r,i){r.length?r=n6(r,function(p){return Zde(p)?function(d){return $de(d,p.length===1?p[0]:p)}:p}):r=[Xde];var a=-1;r=n6(r,Jde(Wde));var n=Qde(e,function(p,d,u){var x=n6(r,function(_){return _(p)});return{criteria:x,index:++a,value:p}});return Yde(n,function(p,d){return Kde(p,d,i)})}UQ.exports=tue});var YQ=pe((Dvn,QQ)=>{var eue=p3(),iue=$Q(),nue=ah(),WQ=lh(),aue=nue(function(e,r){if(e==null)return[];var i=r.length;return i>1&&WQ(e,r[0],r[1])?r=[]:i>2&&WQ(r[0],r[1],r[2])&&(r=[r[0]]),iue(e,eue(r,1),[])});QQ.exports=aue});var KQ=pe((Ovn,JQ)=>{var rue=IM(),oue=0;function lue(e){var r=++oue;return rue(e)+r}JQ.exports=lue});var ZQ=pe((Avn,XQ)=>{function sue(e,r,i){for(var a=-1,n=e.length,p=r.length,d={};++a{var pue=U1(),cue=ZQ();function mue(e,r){return cue(e||[],r||[],pue)}tY.exports=mue});var Or=pe((kvn,iY)=>{var _3;if(typeof Vs=="function")try{_3={cloneDeep:uW(),constant:i3(),defaults:gW(),each:gM(),filter:OM(),find:RW(),flatten:XM(),forEach:xM(),forIn:LW(),has:AM(),isUndefined:FM(),last:qW(),map:RM(),mapValues:zW(),max:WW(),merge:uQ(),min:xQ(),minBy:_Q(),now:bQ(),pick:OQ(),range:NQ(),reduce:BM(),sortBy:YQ(),uniqueId:KQ(),values:GM(),zipObject:eY()}}catch{}_3||(_3=window._);iY.exports=_3});var rY=pe((Bvn,aY)=>{aY.exports=v3;function v3(){var e={};e._next=e._prev=e,this._sentinel=e}v3.prototype.dequeue=function(){var e=this._sentinel,r=e._prev;if(r!==e)return nY(r),r};v3.prototype.enqueue=function(e){var r=this._sentinel;e._prev&&e._next&&nY(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r};v3.prototype.toString=function(){for(var e=[],r=this._sentinel,i=r._prev;i!==r;)e.push(JSON.stringify(i,due)),i=i._prev;return"["+e.join(", ")+"]"};function nY(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function due(e,r){if(e!=="_next"&&e!=="_prev")return r}});var lY=pe((Nvn,oY)=>{var mp=Or(),uue=Is().Graph,fue=rY();oY.exports=xue;var hue=mp.constant(1);function xue(e,r){if(e.nodeCount()<=1)return[];var i=_ue(e,r||hue),a=gue(i.graph,i.buckets,i.zeroIdx);return mp.flatten(mp.map(a,function(n){return e.outEdges(n.v,n.w)}),!0)}function gue(e,r,i){for(var a=[],n=r[r.length-1],p=r[0],d;e.nodeCount();){for(;d=p.dequeue();)a6(e,r,i,d);for(;d=n.dequeue();)a6(e,r,i,d);if(e.nodeCount()){for(var u=r.length-2;u>0;--u)if(d=r[u].dequeue(),d){a=a.concat(a6(e,r,i,d,!0));break}}}return a}function a6(e,r,i,a,n){var p=n?[]:void 0;return mp.forEach(e.inEdges(a.v),function(d){var u=e.edge(d),x=e.node(d.v);n&&p.push({v:d.v,w:d.w}),x.out-=u,r6(r,i,x)}),mp.forEach(e.outEdges(a.v),function(d){var u=e.edge(d),x=d.w,_=e.node(x);_.in-=u,r6(r,i,_)}),e.removeNode(a.v),p}function _ue(e,r){var i=new uue,a=0,n=0;mp.forEach(e.nodes(),function(u){i.setNode(u,{v:u,in:0,out:0})}),mp.forEach(e.edges(),function(u){var x=i.edge(u.v,u.w)||0,_=r(u),v=x+_;i.setEdge(u.v,u.w,v),n=Math.max(n,i.node(u.v).out+=_),a=Math.max(a,i.node(u.w).in+=_)});var p=mp.range(n+a+3).map(function(){return new fue}),d=a+1;return mp.forEach(i.nodes(),function(u){r6(p,d,i.node(u))}),{graph:i,buckets:p,zeroIdx:d}}function r6(e,r,i){i.out?i.in?e[i.out-i.in+r].enqueue(i):e[e.length-1].enqueue(i):e[0].enqueue(i)}});var pY=pe((Lvn,sY)=>{"use strict";var rd=Or(),vue=lY();sY.exports={run:bue,undo:yue};function bue(e){var r=e.graph().acyclicer==="greedy"?vue(e,i(e)):Cue(e);rd.forEach(r,function(a){var n=e.edge(a);e.removeEdge(a),n.forwardName=a.name,n.reversed=!0,e.setEdge(a.w,a.v,n,rd.uniqueId("rev"))});function i(a){return function(n){return a.edge(n).weight}}}function Cue(e){var r=[],i={},a={};function n(p){rd.has(a,p)||(a[p]=!0,i[p]=!0,rd.forEach(e.outEdges(p),function(d){rd.has(i,d.w)?r.push(d):n(d.w)}),delete i[p])}return rd.forEach(e.nodes(),n),r}function yue(e){rd.forEach(e.edges(),function(r){var i=e.edge(r);if(i.reversed){e.removeEdge(r);var a=i.forwardName;delete i.reversed,delete i.forwardName,e.setEdge(r.w,r.v,i,a)}})}});var gl=pe((Vvn,uY)=>{"use strict";var Ya=Or(),cY=Is().Graph;uY.exports={addDummyNode:mY,simplify:Sue,asNonCompoundGraph:wue,successorWeights:Pue,predecessorWeights:Eue,intersectRect:Iue,buildLayerMatrix:Tue,normalizeRanks:Mue,removeEmptyRanks:Due,addBorderNode:Oue,maxRank:dY,partition:Aue,time:Fue,notime:kue};function mY(e,r,i,a){var n;do n=Ya.uniqueId(a);while(e.hasNode(n));return i.dummy=r,e.setNode(n,i),n}function Sue(e){var r=new cY().setGraph(e.graph());return Ya.forEach(e.nodes(),function(i){r.setNode(i,e.node(i))}),Ya.forEach(e.edges(),function(i){var a=r.edge(i.v,i.w)||{weight:0,minlen:1},n=e.edge(i);r.setEdge(i.v,i.w,{weight:a.weight+n.weight,minlen:Math.max(a.minlen,n.minlen)})}),r}function wue(e){var r=new cY({multigraph:e.isMultigraph()}).setGraph(e.graph());return Ya.forEach(e.nodes(),function(i){e.children(i).length||r.setNode(i,e.node(i))}),Ya.forEach(e.edges(),function(i){r.setEdge(i,e.edge(i))}),r}function Pue(e){var r=Ya.map(e.nodes(),function(i){var a={};return Ya.forEach(e.outEdges(i),function(n){a[n.w]=(a[n.w]||0)+e.edge(n).weight}),a});return Ya.zipObject(e.nodes(),r)}function Eue(e){var r=Ya.map(e.nodes(),function(i){var a={};return Ya.forEach(e.inEdges(i),function(n){a[n.v]=(a[n.v]||0)+e.edge(n).weight}),a});return Ya.zipObject(e.nodes(),r)}function Iue(e,r){var i=e.x,a=e.y,n=r.x-i,p=r.y-a,d=e.width/2,u=e.height/2;if(!n&&!p)throw new Error("Not possible to find intersection inside of the rectangle");var x,_;return Math.abs(p)*d>Math.abs(n)*u?(p<0&&(u=-u),x=u*n/p,_=u):(n<0&&(d=-d),x=d,_=d*p/n),{x:i+x,y:a+_}}function Tue(e){var r=Ya.map(Ya.range(dY(e)+1),function(){return[]});return Ya.forEach(e.nodes(),function(i){var a=e.node(i),n=a.rank;Ya.isUndefined(n)||(r[n][a.order]=i)}),r}function Mue(e){var r=Ya.min(Ya.map(e.nodes(),function(i){return e.node(i).rank}));Ya.forEach(e.nodes(),function(i){var a=e.node(i);Ya.has(a,"rank")&&(a.rank-=r)})}function Due(e){var r=Ya.min(Ya.map(e.nodes(),function(p){return e.node(p).rank})),i=[];Ya.forEach(e.nodes(),function(p){var d=e.node(p).rank-r;i[d]||(i[d]=[]),i[d].push(p)});var a=0,n=e.graph().nodeRankFactor;Ya.forEach(i,function(p,d){Ya.isUndefined(p)&&d%n!==0?--a:a&&Ya.forEach(p,function(u){e.node(u).rank+=a})})}function Oue(e,r,i,a){var n={width:0,height:0};return arguments.length>=4&&(n.rank=i,n.order=a),mY(e,"border",n,r)}function dY(e){return Ya.max(Ya.map(e.nodes(),function(r){var i=e.node(r).rank;if(!Ya.isUndefined(i))return i}))}function Aue(e,r){var i={lhs:[],rhs:[]};return Ya.forEach(e,function(a){r(a)?i.lhs.push(a):i.rhs.push(a)}),i}function Fue(e,r){var i=Ya.now();try{return r()}finally{console.log(e+" time: "+(Ya.now()-i)+"ms")}}function kue(e,r){return r()}});var xY=pe((qvn,hY)=>{"use strict";var fY=Or(),Rue=gl();hY.exports={run:Bue,undo:Lue};function Bue(e){e.graph().dummyChains=[],fY.forEach(e.edges(),function(r){Nue(e,r)})}function Nue(e,r){var i=r.v,a=e.node(i).rank,n=r.w,p=e.node(n).rank,d=r.name,u=e.edge(r),x=u.labelRank;if(p!==a+1){e.removeEdge(r);var _,v,C;for(C=0,++a;a{"use strict";var b3=Or();gY.exports={longestPath:Vue,slack:que};function Vue(e){var r={};function i(a){var n=e.node(a);if(b3.has(r,a))return n.rank;r[a]=!0;var p=b3.min(b3.map(e.outEdges(a),function(d){return i(d.w)-e.edge(d).minlen}));return(p===Number.POSITIVE_INFINITY||p===void 0||p===null)&&(p=0),n.rank=p}b3.forEach(e.sources(),i)}function que(e,r){return e.node(r.w).rank-e.node(r.v).rank-e.edge(r).minlen}});var o6=pe((zvn,_Y)=>{"use strict";var C3=Or(),jue=Is().Graph,y3=sh().slack;_Y.exports=zue;function zue(e){var r=new jue({directed:!1}),i=e.nodes()[0],a=e.nodeCount();r.setNode(i,{});for(var n,p;Hue(r,e){"use strict";var dp=Or(),$ue=o6(),Wue=sh().slack,Que=sh().longestPath,Yue=Is().alg.preorder,Jue=Is().alg.postorder,Kue=gl().simplify;PY.exports=od;od.initLowLimValues=s6;od.initCutValues=l6;od.calcCutValue=bY;od.leaveEdge=yY;od.enterEdge=SY;od.exchangeEdges=wY;function od(e){e=Kue(e),Que(e);var r=$ue(e);s6(r),l6(r,e);for(var i,a;i=yY(r);)a=SY(r,e,i),wY(r,e,i,a)}function l6(e,r){var i=Jue(e,e.nodes());i=i.slice(0,i.length-1),dp.forEach(i,function(a){Xue(e,r,a)})}function Xue(e,r,i){var a=e.node(i),n=a.parent;e.edge(i,n).cutvalue=bY(e,r,i)}function bY(e,r,i){var a=e.node(i),n=a.parent,p=!0,d=r.edge(i,n),u=0;return d||(p=!1,d=r.edge(n,i)),u=d.weight,dp.forEach(r.nodeEdges(i),function(x){var _=x.v===i,v=_?x.w:x.v;if(v!==n){var C=_===p,S=r.edge(x).weight;if(u+=C?S:-S,tfe(e,i,v)){var E=e.edge(i,v).cutvalue;u+=C?-E:E}}}),u}function s6(e,r){arguments.length<2&&(r=e.nodes()[0]),CY(e,{},1,r)}function CY(e,r,i,a,n){var p=i,d=e.node(a);return r[a]=!0,dp.forEach(e.neighbors(a),function(u){dp.has(r,u)||(i=CY(e,r,i,u,a))}),d.low=p,d.lim=i++,n?d.parent=n:delete d.parent,i}function yY(e){return dp.find(e.edges(),function(r){return e.edge(r).cutvalue<0})}function SY(e,r,i){var a=i.v,n=i.w;r.hasEdge(a,n)||(a=i.w,n=i.v);var p=e.node(a),d=e.node(n),u=p,x=!1;p.lim>d.lim&&(u=d,x=!0);var _=dp.filter(r.edges(),function(v){return x===vY(e,e.node(v.v),u)&&x!==vY(e,e.node(v.w),u)});return dp.minBy(_,function(v){return Wue(r,v)})}function wY(e,r,i,a){var n=i.v,p=i.w;e.removeEdge(n,p),e.setEdge(a.v,a.w,{}),s6(e),l6(e,r),Zue(e,r)}function Zue(e,r){var i=dp.find(e.nodes(),function(n){return!r.node(n).parent}),a=Yue(e,i);a=a.slice(1),dp.forEach(a,function(n){var p=e.node(n).parent,d=r.edge(n,p),u=!1;d||(d=r.edge(p,n),u=!0),r.node(n).rank=r.node(p).rank+(u?d.minlen:-d.minlen)})}function tfe(e,r,i){return e.hasEdge(r,i)}function vY(e,r,i){return i.low<=r.lim&&r.lim<=i.lim}});var DY=pe((Gvn,MY)=>{"use strict";var efe=sh(),TY=efe.longestPath,ife=o6(),nfe=EY();MY.exports=afe;function afe(e){switch(e.graph().ranker){case"network-simplex":IY(e);break;case"tight-tree":ofe(e);break;case"longest-path":rfe(e);break;default:IY(e)}}var rfe=TY;function ofe(e){TY(e),ife(e)}function IY(e){nfe(e)}});var AY=pe((Uvn,OY)=>{var p6=Or();OY.exports=lfe;function lfe(e){var r=pfe(e);p6.forEach(e.graph().dummyChains,function(i){for(var a=e.node(i),n=a.edgeObj,p=sfe(e,r,n.v,n.w),d=p.path,u=p.lca,x=0,_=d[x],v=!0;i!==n.w;){if(a=e.node(i),v){for(;(_=d[x])!==u&&e.node(_).maxRankd||u>r[x].lim));for(_=x,x=a;(x=e.parent(x))!==_;)p.push(x);return{path:n.concat(p.reverse()),lca:_}}function pfe(e){var r={},i=0;function a(n){var p=i;p6.forEach(e.children(n),a),r[n]={low:p,lim:i++}}return p6.forEach(e.children(),a),r}});var RY=pe(($vn,kY)=>{var up=Or(),c6=gl();kY.exports={run:cfe,cleanup:ufe};function cfe(e){var r=c6.addDummyNode(e,"root",{},"_root"),i=mfe(e),a=up.max(up.values(i))-1,n=2*a+1;e.graph().nestingRoot=r,up.forEach(e.edges(),function(d){e.edge(d).minlen*=n});var p=dfe(e)+1;up.forEach(e.children(),function(d){FY(e,r,n,p,a,i,d)}),e.graph().nodeRankFactor=n}function FY(e,r,i,a,n,p,d){var u=e.children(d);if(!u.length){d!==r&&e.setEdge(r,d,{weight:0,minlen:i});return}var x=c6.addBorderNode(e,"_bt"),_=c6.addBorderNode(e,"_bb"),v=e.node(d);e.setParent(x,d),v.borderTop=x,e.setParent(_,d),v.borderBottom=_,up.forEach(u,function(C){FY(e,r,i,a,n,p,C);var S=e.node(C),E=S.borderTop?S.borderTop:C,w=S.borderBottom?S.borderBottom:C,I=S.borderTop?a:2*a,T=E!==w?1:n-p[d]+1;e.setEdge(x,E,{weight:I,minlen:T,nestingEdge:!0}),e.setEdge(w,_,{weight:I,minlen:T,nestingEdge:!0})}),e.parent(d)||e.setEdge(r,x,{weight:0,minlen:n+p[d]})}function mfe(e){var r={};function i(a,n){var p=e.children(a);p&&p.length&&up.forEach(p,function(d){i(d,n+1)}),r[a]=n}return up.forEach(e.children(),function(a){i(a,1)}),r}function dfe(e){return up.reduce(e.edges(),function(r,i){return r+e.edge(i).weight},0)}function ufe(e){var r=e.graph();e.removeNode(r.nestingRoot),delete r.nestingRoot,up.forEach(e.edges(),function(i){var a=e.edge(i);a.nestingEdge&&e.removeEdge(i)})}});var LY=pe((Wvn,NY)=>{var m6=Or(),ffe=gl();NY.exports=hfe;function hfe(e){function r(i){var a=e.children(i),n=e.node(i);if(a.length&&m6.forEach(a,r),m6.has(n,"minRank")){n.borderLeft=[],n.borderRight=[];for(var p=n.minRank,d=n.maxRank+1;p{"use strict";var A0=Or();jY.exports={adjust:xfe,undo:gfe};function xfe(e){var r=e.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&qY(e)}function gfe(e){var r=e.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&_fe(e),(r==="lr"||r==="rl")&&(vfe(e),qY(e))}function qY(e){A0.forEach(e.nodes(),function(r){VY(e.node(r))}),A0.forEach(e.edges(),function(r){VY(e.edge(r))})}function VY(e){var r=e.width;e.width=e.height,e.height=r}function _fe(e){A0.forEach(e.nodes(),function(r){d6(e.node(r))}),A0.forEach(e.edges(),function(r){var i=e.edge(r);A0.forEach(i.points,d6),A0.has(i,"y")&&d6(i)})}function d6(e){e.y=-e.y}function vfe(e){A0.forEach(e.nodes(),function(r){u6(e.node(r))}),A0.forEach(e.edges(),function(r){var i=e.edge(r);A0.forEach(i.points,u6),A0.has(i,"x")&&u6(i)})}function u6(e){var r=e.x;e.x=e.y,e.y=r}});var GY=pe((Yvn,HY)=>{"use strict";var fp=Or();HY.exports=bfe;function bfe(e){var r={},i=fp.filter(e.nodes(),function(u){return!e.children(u).length}),a=fp.max(fp.map(i,function(u){return e.node(u).rank})),n=fp.map(fp.range(a+1),function(){return[]});function p(u){if(!fp.has(r,u)){r[u]=!0;var x=e.node(u);n[x.rank].push(u),fp.forEach(e.successors(u),p)}}var d=fp.sortBy(i,function(u){return e.node(u).rank});return fp.forEach(d,p),n}});var $Y=pe((Jvn,UY)=>{"use strict";var fc=Or();UY.exports=Cfe;function Cfe(e,r){for(var i=0,a=1;a0;)v%2&&(C+=u[v+1]),v=v-1>>1,u[v]+=_.weight;x+=_.weight*C})),x}});var YY=pe((Kvn,QY)=>{var WY=Or();QY.exports=Sfe;function Sfe(e,r){return WY.map(r,function(i){var a=e.inEdges(i);if(a.length){var n=WY.reduce(a,function(p,d){var u=e.edge(d),x=e.node(d.v);return{sum:p.sum+u.weight*x.order,weight:p.weight+u.weight}},{sum:0,weight:0});return{v:i,barycenter:n.sum/n.weight,weight:n.weight}}else return{v:i}})}});var KY=pe((Xvn,JY)=>{"use strict";var Kl=Or();JY.exports=wfe;function wfe(e,r){var i={};Kl.forEach(e,function(n,p){var d=i[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:p};Kl.isUndefined(n.barycenter)||(d.barycenter=n.barycenter,d.weight=n.weight)}),Kl.forEach(r.edges(),function(n){var p=i[n.v],d=i[n.w];!Kl.isUndefined(p)&&!Kl.isUndefined(d)&&(d.indegree++,p.out.push(i[n.w]))});var a=Kl.filter(i,function(n){return!n.indegree});return Pfe(a)}function Pfe(e){var r=[];function i(p){return function(d){d.merged||(Kl.isUndefined(d.barycenter)||Kl.isUndefined(p.barycenter)||d.barycenter>=p.barycenter)&&Efe(p,d)}}function a(p){return function(d){d.in.push(p),--d.indegree===0&&e.push(d)}}for(;e.length;){var n=e.pop();r.push(n),Kl.forEach(n.in.reverse(),i(n)),Kl.forEach(n.out,a(n))}return Kl.map(Kl.filter(r,function(p){return!p.merged}),function(p){return Kl.pick(p,["vs","i","barycenter","weight"])})}function Efe(e,r){var i=0,a=0;e.weight&&(i+=e.barycenter*e.weight,a+=e.weight),r.weight&&(i+=r.barycenter*r.weight,a+=r.weight),e.vs=r.vs.concat(e.vs),e.barycenter=i/a,e.weight=a,e.i=Math.min(r.i,e.i),r.merged=!0}});var tJ=pe((Zvn,ZY)=>{var ph=Or(),Ife=gl();ZY.exports=Tfe;function Tfe(e,r){var i=Ife.partition(e,function(v){return ph.has(v,"barycenter")}),a=i.lhs,n=ph.sortBy(i.rhs,function(v){return-v.i}),p=[],d=0,u=0,x=0;a.sort(Mfe(!!r)),x=XY(p,n,x),ph.forEach(a,function(v){x+=v.vs.length,p.push(v.vs),d+=v.barycenter*v.weight,u+=v.weight,x=XY(p,n,x)});var _={vs:ph.flatten(p,!0)};return u&&(_.barycenter=d/u,_.weight=u),_}function XY(e,r,i){for(var a;r.length&&(a=ph.last(r)).i<=i;)r.pop(),e.push(a.vs),i++;return i}function Mfe(e){return function(r,i){return r.barycenteri.barycenter?1:e?i.i-r.i:r.i-i.i}}});var nJ=pe((t2n,iJ)=>{var hc=Or(),Dfe=YY(),Ofe=KY(),Afe=tJ();iJ.exports=eJ;function eJ(e,r,i,a){var n=e.children(r),p=e.node(r),d=p?p.borderLeft:void 0,u=p?p.borderRight:void 0,x={};d&&(n=hc.filter(n,function(w){return w!==d&&w!==u}));var _=Dfe(e,n);hc.forEach(_,function(w){if(e.children(w.v).length){var I=eJ(e,w.v,i,a);x[w.v]=I,hc.has(I,"barycenter")&&kfe(w,I)}});var v=Ofe(_,i);Ffe(v,x);var C=Afe(v,a);if(d&&(C.vs=hc.flatten([d,C.vs,u],!0),e.predecessors(d).length)){var S=e.node(e.predecessors(d)[0]),E=e.node(e.predecessors(u)[0]);hc.has(C,"barycenter")||(C.barycenter=0,C.weight=0),C.barycenter=(C.barycenter*C.weight+S.order+E.order)/(C.weight+2),C.weight+=2}return C}function Ffe(e,r){hc.forEach(e,function(i){i.vs=hc.flatten(i.vs.map(function(a){return r[a]?r[a].vs:a}),!0)})}function kfe(e,r){hc.isUndefined(e.barycenter)?(e.barycenter=r.barycenter,e.weight=r.weight):(e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight),e.weight+=r.weight)}});var rJ=pe((e2n,aJ)=>{var ch=Or(),Rfe=Is().Graph;aJ.exports=Bfe;function Bfe(e,r,i){var a=Nfe(e),n=new Rfe({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(p){return e.node(p)});return ch.forEach(e.nodes(),function(p){var d=e.node(p),u=e.parent(p);(d.rank===r||d.minRank<=r&&r<=d.maxRank)&&(n.setNode(p),n.setParent(p,u||a),ch.forEach(e[i](p),function(x){var _=x.v===p?x.w:x.v,v=n.edge(_,p),C=ch.isUndefined(v)?0:v.weight;n.setEdge(_,p,{weight:e.edge(x).weight+C})}),ch.has(d,"minRank")&&n.setNode(p,{borderLeft:d.borderLeft[r],borderRight:d.borderRight[r]}))}),n}function Nfe(e){for(var r;e.hasNode(r=ch.uniqueId("_root")););return r}});var lJ=pe((i2n,oJ)=>{var Lfe=Or();oJ.exports=Vfe;function Vfe(e,r,i){var a={},n;Lfe.forEach(i,function(p){for(var d=e.parent(p),u,x;d;){if(u=e.parent(d),u?(x=a[u],a[u]=d):(x=n,n=d),x&&x!==d){r.setEdge(x,d);return}d=u}})}});var dJ=pe((n2n,mJ)=>{"use strict";var xc=Or(),qfe=GY(),jfe=$Y(),zfe=nJ(),Hfe=rJ(),Gfe=lJ(),Ufe=Is().Graph,sJ=gl();mJ.exports=$fe;function $fe(e){var r=sJ.maxRank(e),i=pJ(e,xc.range(1,r+1),"inEdges"),a=pJ(e,xc.range(r-1,-1,-1),"outEdges"),n=qfe(e);cJ(e,n);for(var p=Number.POSITIVE_INFINITY,d,u=0,x=0;x<4;++u,++x){Wfe(u%2?i:a,u%4>=2),n=sJ.buildLayerMatrix(e);var _=jfe(e,n);_{"use strict";var la=Or(),Qfe=Is().Graph,Yfe=gl();CJ.exports={positionX:Xfe,findType1Conflicts:uJ,findType2Conflicts:fJ,addConflict:f6,hasConflict:hJ,verticalAlignment:xJ,horizontalCompaction:gJ,alignCoordinates:vJ,findSmallestWidthAlignment:_J,balance:bJ};function uJ(e,r){var i={};function a(n,p){var d=0,u=0,x=n.length,_=la.last(p);return la.forEach(p,function(v,C){var S=Jfe(e,v),E=S?e.node(S).order:x;(S||v===_)&&(la.forEach(p.slice(u,C+1),function(w){la.forEach(e.predecessors(w),function(I){var T=e.node(I),A=T.order;(A_)&&f6(i,S,v)})})}function n(p,d){var u=-1,x,_=0;return la.forEach(d,function(v,C){if(e.node(v).dummy==="border"){var S=e.predecessors(v);S.length&&(x=e.node(S[0]).order,a(d,_,C,u,x),_=C,u=x)}a(d,_,d.length,x,p.length)}),d}return la.reduce(r,n),i}function Jfe(e,r){if(e.node(r).dummy)return la.find(e.predecessors(r),function(i){return e.node(i).dummy})}function f6(e,r,i){if(r>i){var a=r;r=i,i=a}var n=e[r];n||(e[r]=n={}),n[i]=!0}function hJ(e,r,i){if(r>i){var a=r;r=i,i=a}return la.has(e[r],i)}function xJ(e,r,i,a){var n={},p={},d={};return la.forEach(r,function(u){la.forEach(u,function(x,_){n[x]=x,p[x]=x,d[x]=_})}),la.forEach(r,function(u){var x=-1;la.forEach(u,function(_){var v=a(_);if(v.length){v=la.sortBy(v,function(I){return d[I]});for(var C=(v.length-1)/2,S=Math.floor(C),E=Math.ceil(C);S<=E;++S){var w=v[S];p[_]===_&&x{"use strict";var mh=Or(),SJ=gl(),e1e=yJ().positionX;wJ.exports=i1e;function i1e(e){e=SJ.asNonCompoundGraph(e),n1e(e),mh.forEach(e1e(e),function(r,i){e.node(i).x=r})}function n1e(e){var r=SJ.buildLayerMatrix(e),i=e.graph().ranksep,a=0;mh.forEach(r,function(n){var p=mh.max(mh.map(n,function(d){return e.node(d).height}));mh.forEach(n,function(d){e.node(d).y=a+p/2}),a+=p+i})}});var OJ=pe((o2n,DJ)=>{"use strict";var Ca=Or(),EJ=pY(),IJ=xY(),a1e=DY(),r1e=gl().normalizeRanks,o1e=AY(),l1e=gl().removeEmptyRanks,TJ=RY(),s1e=LY(),MJ=zY(),p1e=dJ(),c1e=PJ(),gc=gl(),m1e=Is().Graph;DJ.exports=d1e;function d1e(e,r){var i=r&&r.debugTiming?gc.time:gc.notime;i("layout",function(){var a=i(" buildLayoutGraph",function(){return S1e(e)});i(" runLayout",function(){u1e(a,i)}),i(" updateInputGraph",function(){f1e(e,a)})})}function u1e(e,r){r(" makeSpaceForEdgeLabels",function(){w1e(e)}),r(" removeSelfEdges",function(){F1e(e)}),r(" acyclic",function(){EJ.run(e)}),r(" nestingGraph.run",function(){TJ.run(e)}),r(" rank",function(){a1e(gc.asNonCompoundGraph(e))}),r(" injectEdgeLabelProxies",function(){P1e(e)}),r(" removeEmptyRanks",function(){l1e(e)}),r(" nestingGraph.cleanup",function(){TJ.cleanup(e)}),r(" normalizeRanks",function(){r1e(e)}),r(" assignRankMinMax",function(){E1e(e)}),r(" removeEdgeLabelProxies",function(){I1e(e)}),r(" normalize.run",function(){IJ.run(e)}),r(" parentDummyChains",function(){o1e(e)}),r(" addBorderSegments",function(){s1e(e)}),r(" order",function(){p1e(e)}),r(" insertSelfEdges",function(){k1e(e)}),r(" adjustCoordinateSystem",function(){MJ.adjust(e)}),r(" position",function(){c1e(e)}),r(" positionSelfEdges",function(){R1e(e)}),r(" removeBorderNodes",function(){A1e(e)}),r(" normalize.undo",function(){IJ.undo(e)}),r(" fixupEdgeLabelCoords",function(){D1e(e)}),r(" undoCoordinateSystem",function(){MJ.undo(e)}),r(" translateGraph",function(){T1e(e)}),r(" assignNodeIntersects",function(){M1e(e)}),r(" reversePoints",function(){O1e(e)}),r(" acyclic.undo",function(){EJ.undo(e)})}function f1e(e,r){Ca.forEach(e.nodes(),function(i){var a=e.node(i),n=r.node(i);a&&(a.x=n.x,a.y=n.y,r.children(i).length&&(a.width=n.width,a.height=n.height))}),Ca.forEach(e.edges(),function(i){var a=e.edge(i),n=r.edge(i);a.points=n.points,Ca.has(n,"x")&&(a.x=n.x,a.y=n.y)}),e.graph().width=r.graph().width,e.graph().height=r.graph().height}var h1e=["nodesep","edgesep","ranksep","marginx","marginy"],x1e={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},g1e=["acyclicer","ranker","rankdir","align"],_1e=["width","height"],v1e={width:0,height:0},b1e=["minlen","weight","width","height","labeloffset"],C1e={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},y1e=["labelpos"];function S1e(e){var r=new m1e({multigraph:!0,compound:!0}),i=x6(e.graph());return r.setGraph(Ca.merge({},x1e,h6(i,h1e),Ca.pick(i,g1e))),Ca.forEach(e.nodes(),function(a){var n=x6(e.node(a));r.setNode(a,Ca.defaults(h6(n,_1e),v1e)),r.setParent(a,e.parent(a))}),Ca.forEach(e.edges(),function(a){var n=x6(e.edge(a));r.setEdge(a,Ca.merge({},C1e,h6(n,b1e),Ca.pick(n,y1e)))}),r}function w1e(e){var r=e.graph();r.ranksep/=2,Ca.forEach(e.edges(),function(i){var a=e.edge(i);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function P1e(e){Ca.forEach(e.edges(),function(r){var i=e.edge(r);if(i.width&&i.height){var a=e.node(r.v),n=e.node(r.w),p={rank:(n.rank-a.rank)/2+a.rank,e:r};gc.addDummyNode(e,"edge-proxy",p,"_ep")}})}function E1e(e){var r=0;Ca.forEach(e.nodes(),function(i){var a=e.node(i);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,r=Ca.max(r,a.maxRank))}),e.graph().maxRank=r}function I1e(e){Ca.forEach(e.nodes(),function(r){var i=e.node(r);i.dummy==="edge-proxy"&&(e.edge(i.e).labelRank=i.rank,e.removeNode(r))})}function T1e(e){var r=Number.POSITIVE_INFINITY,i=0,a=Number.POSITIVE_INFINITY,n=0,p=e.graph(),d=p.marginx||0,u=p.marginy||0;function x(_){var v=_.x,C=_.y,S=_.width,E=_.height;r=Math.min(r,v-S/2),i=Math.max(i,v+S/2),a=Math.min(a,C-E/2),n=Math.max(n,C+E/2)}Ca.forEach(e.nodes(),function(_){x(e.node(_))}),Ca.forEach(e.edges(),function(_){var v=e.edge(_);Ca.has(v,"x")&&x(v)}),r-=d,a-=u,Ca.forEach(e.nodes(),function(_){var v=e.node(_);v.x-=r,v.y-=a}),Ca.forEach(e.edges(),function(_){var v=e.edge(_);Ca.forEach(v.points,function(C){C.x-=r,C.y-=a}),Ca.has(v,"x")&&(v.x-=r),Ca.has(v,"y")&&(v.y-=a)}),p.width=i-r+d,p.height=n-a+u}function M1e(e){Ca.forEach(e.edges(),function(r){var i=e.edge(r),a=e.node(r.v),n=e.node(r.w),p,d;i.points?(p=i.points[0],d=i.points[i.points.length-1]):(i.points=[],p=n,d=a),i.points.unshift(gc.intersectRect(a,p)),i.points.push(gc.intersectRect(n,d))})}function D1e(e){Ca.forEach(e.edges(),function(r){var i=e.edge(r);if(Ca.has(i,"x"))switch((i.labelpos==="l"||i.labelpos==="r")&&(i.width-=i.labeloffset),i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset;break}})}function O1e(e){Ca.forEach(e.edges(),function(r){var i=e.edge(r);i.reversed&&i.points.reverse()})}function A1e(e){Ca.forEach(e.nodes(),function(r){if(e.children(r).length){var i=e.node(r),a=e.node(i.borderTop),n=e.node(i.borderBottom),p=e.node(Ca.last(i.borderLeft)),d=e.node(Ca.last(i.borderRight));i.width=Math.abs(d.x-p.x),i.height=Math.abs(n.y-a.y),i.x=p.x+i.width/2,i.y=a.y+i.height/2}}),Ca.forEach(e.nodes(),function(r){e.node(r).dummy==="border"&&e.removeNode(r)})}function F1e(e){Ca.forEach(e.edges(),function(r){if(r.v===r.w){var i=e.node(r.v);i.selfEdges||(i.selfEdges=[]),i.selfEdges.push({e:r,label:e.edge(r)}),e.removeEdge(r)}})}function k1e(e){var r=gc.buildLayerMatrix(e);Ca.forEach(r,function(i){var a=0;Ca.forEach(i,function(n,p){var d=e.node(n);d.order=p+a,Ca.forEach(d.selfEdges,function(u){gc.addDummyNode(e,"selfedge",{width:u.label.width,height:u.label.height,rank:d.rank,order:p+ ++a,e:u.e,label:u.label},"_se")}),delete d.selfEdges})})}function R1e(e){Ca.forEach(e.nodes(),function(r){var i=e.node(r);if(i.dummy==="selfedge"){var a=e.node(i.e.v),n=a.x+a.width/2,p=a.y,d=i.x-n,u=a.height/2;e.setEdge(i.e,i.label),e.removeNode(r),i.label.points=[{x:n+2*d/3,y:p-u},{x:n+5*d/6,y:p-u},{x:n+d,y:p},{x:n+5*d/6,y:p+u},{x:n+2*d/3,y:p+u}],i.label.x=i.x,i.label.y=i.y}})}function h6(e,r){return Ca.mapValues(Ca.pick(e,r),Number)}function x6(e){var r={};return Ca.forEach(e,function(i,a){r[a.toLowerCase()]=i}),r}});var FJ=pe((l2n,AJ)=>{var S3=Or(),B1e=gl(),N1e=Is().Graph;AJ.exports={debugOrdering:L1e};function L1e(e){var r=B1e.buildLayerMatrix(e),i=new N1e({compound:!0,multigraph:!0}).setGraph({});return S3.forEach(e.nodes(),function(a){i.setNode(a,{label:a}),i.setParent(a,"layer"+e.node(a).rank)}),S3.forEach(e.edges(),function(a){i.setEdge(a.v,a.w,{},a.name)}),S3.forEach(r,function(a,n){var p="layer"+n;i.setNode(p,{rank:"same"}),S3.reduce(a,function(d,u){return i.setEdge(d,u,{style:"invis"}),u})}),i}});var RJ=pe((s2n,kJ)=>{kJ.exports="0.8.5"});var NJ=pe((p2n,BJ)=>{BJ.exports={graphlib:Is(),layout:OJ(),debug:FJ(),util:{time:gl().time,notime:gl().notime},version:RJ()}});var b6=pe(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var v6=function(){function e(r,i,a){this.source=r,this.target=i,this.type=a}return e}();_c.PowerEdge=v6;var cK=function(){function e(r,i,a,n){var p=this;if(this.linkAccessor=a,this.modules=new Array(r),this.roots=[],n)this.initModulesFromGroup(n);else{this.roots.push(new Au);for(var d=0;d=this.R))return this.merge(a.a,a.b,r),!0}},e.prototype.nEdges=function(r,i){var a=r.incoming.intersection(i.incoming),n=r.outgoing.intersection(i.outgoing);return this.R-a.count()-n.count()},e.prototype.getGroupHierarchy=function(r){var i=this,a=[],n={};mK(this.roots[0],n,a);var p=this.allEdges();return p.forEach(function(d){var u=i.modules[d.source],x=i.modules[d.target];r.push(new v6(typeof u.gid>"u"?d.source:a[u.gid],typeof x.gid>"u"?d.target:a[x.gid],d.type))}),a},e.prototype.allEdges=function(){var r=[];return e.getEdges(this.roots[0],r),r},e.getEdges=function(r,i){r.forAll(function(a){a.getEdges(i),e.getEdges(a.children,i)})},e}();_c.Configuration=cK;function mK(e,r,i){e.forAll(function(a){if(a.isLeaf())r.leaves||(r.leaves=[]),r.leaves.push(a.id);else{var n=r;if(a.gid=i.length,!a.isIsland()||a.isPredefined()){if(n={id:a.gid},a.isPredefined())for(var p in a.definition)n[p]=a.definition[p];r.groups||(r.groups=[]),r.groups.push(a.gid),i.push(n)}mK(a.children,n,i)}})}var dh=function(){function e(r,i,a,n,p){i===void 0&&(i=new uh),a===void 0&&(a=new uh),n===void 0&&(n=new Au),this.id=r,this.outgoing=i,this.incoming=a,this.children=n,this.definition=p}return e.prototype.getEdges=function(r){var i=this;this.outgoing.forAll(function(a,n){a.forAll(function(p){r.push(new v6(i.id,p.id,n))})})},e.prototype.isLeaf=function(){return this.children.count()===0},e.prototype.isIsland=function(){return this.outgoing.count()===0&&this.incoming.count()===0},e.prototype.isPredefined=function(){return typeof this.definition<"u"},e}();_c.Module=dh;function G1e(e,r){var i={};for(var a in e)a in r&&(i[a]=e[a]);return i}var Au=function(){function e(){this.table={}}return e.prototype.count=function(){return Object.keys(this.table).length},e.prototype.intersection=function(r){var i=new e;return i.table=G1e(this.table,r.table),i},e.prototype.intersectionCount=function(r){return this.intersection(r).count()},e.prototype.contains=function(r){return r in this.table},e.prototype.add=function(r){this.table[r.id]=r},e.prototype.remove=function(r){delete this.table[r.id]},e.prototype.forAll=function(r){for(var i in this.table)r(this.table[i])},e.prototype.modules=function(){var r=[];return this.forAll(function(i){i.isPredefined()||r.push(i)}),r},e}();_c.ModuleSet=Au;var uh=function(){function e(){this.sets={},this.n=0}return e.prototype.count=function(){return this.n},e.prototype.contains=function(r){var i=!1;return this.forAllModules(function(a){!i&&a.id==r&&(i=!0)}),i},e.prototype.add=function(r,i){var a=r in this.sets?this.sets[r]:this.sets[r]=new Au;a.add(i),++this.n},e.prototype.remove=function(r,i){var a=this.sets[r];a.remove(i),a.count()===0&&delete this.sets[r],--this.n},e.prototype.forAll=function(r){for(var i in this.sets)r(this.sets[i],Number(i))},e.prototype.forAllModules=function(r){this.forAll(function(i,a){return i.forAll(r)})},e.prototype.intersection=function(r){var i=new e;return this.forAll(function(a,n){if(n in r.sets){var p=a.intersection(r.sets[n]),d=p.count();d>0&&(i.sets[n]=p,i.n+=d)}}),i},e}();_c.LinkSets=uh;function U1e(e,r,i,a){for(var n=e.length,p=new cK(n,r,i,a);p.greedyMerge(););var d=[],u=p.getGroupHierarchy(d);return d.forEach(function(x){var _=function(v){var C=x[v];typeof C=="number"&&(x[v]=e[C])};_("source"),_("target")}),{groups:u,powerEdges:d}}_c.getGroups=U1e});var T3=pe(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});function dK(e,r){var i={};for(var a in e)i[a]={};for(var a in r)i[a]={};return Object.keys(i).length}function uK(e,r){var i=0;for(var a in e)typeof r[a]<"u"&&++i;return i}function $1e(e,r){var i={},a=function(n,p){typeof i[n]>"u"&&(i[n]={}),i[n][p]={}};return e.forEach(function(n){var p=r.getSourceIndex(n),d=r.getTargetIndex(n);a(p,d),a(d,p)}),i}function fK(e,r,i,a){var n=$1e(e,a);e.forEach(function(p){var d=n[a.getSourceIndex(p)],u=n[a.getTargetIndex(p)];a.setLength(p,1+r*i(d,u))})}function W1e(e,r,i){i===void 0&&(i=1),fK(e,i,function(a,n){return Math.sqrt(dK(a,n)-uK(a,n))},r)}Fu.symmetricDiffLinkLengths=W1e;function Q1e(e,r,i){i===void 0&&(i=1),fK(e,i,function(a,n){return Math.min(Object.keys(a).length,Object.keys(n).length)<1.1?0:uK(a,n)/dK(a,n)},r)}Fu.jaccardLinkLengths=Q1e;function Y1e(e,r,i,a){var n=hK(e,r,a),p={};n.forEach(function(u,x){return u.forEach(function(_){return p[_]=x})});var d=[];return r.forEach(function(u){var x=a.getSourceIndex(u),_=a.getTargetIndex(u),v=p[x],C=p[_];v!==C&&d.push({axis:i,left:x,right:_,gap:a.getMinSeparation(u)})}),d}Fu.generateDirectedEdgeConstraints=Y1e;function hK(e,r,i){var a=[],n=0,p=[],d=[];function u(A){A.index=A.lowlink=n++,p.push(A),A.onStack=!0;for(var V=0,G=A.out;V"u"?(u(J),A.lowlink=Math.min(A.lowlink,J.lowlink)):J.onStack&&(A.lowlink=Math.min(A.lowlink,J.index))}if(A.lowlink===A.index){for(var at=[];p.length&&(J=p.pop(),J.onStack=!1,at.push(J),J!==A););d.push(at.map(function(X){return X.id}))}}for(var x=0;x"u"&&u(T)}return d}Fu.stronglyConnectedComponents=hK});var M3=pe(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var xK=function(){function e(){this.locks={}}return e.prototype.add=function(r,i){this.locks[r]=i},e.prototype.clear=function(){this.locks={}},e.prototype.isEmpty=function(){for(var r in this.locks)return!1;return!0},e.prototype.apply=function(r){for(var i in this.locks)r(Number(i),this.locks[i])},e}();fh.Locks=xK;var J1e=function(){function e(r,i,a){a===void 0&&(a=null),this.D=i,this.G=a,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new gK,this.project=null,this.x=r,this.k=r.length;var n=this.n=r[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new xK,this.minD=Number.MAX_VALUE;for(var p=n,d;p--;)for(d=n;--d>p;){var u=i[p][d];u>0&&u1e-9)break;var w=this.offsetDir();for(n=0;n1&&I>T||!isFinite(T)){for(n=0;n1&&(A=1);var V=T*T,G=2*A*(I-T)/(V*I),J=I*I*I,at=2*-A/(V*J);for(isFinite(G)||console.log(G),n=0;n0?z-(M+1)*nt:z-(M-1)*nt;-X0;)for(var p=i;p-- >0;)a(n,p)},e.prototype.matrixApply=function(r){e.mApply(this.k,this.n,r)},e.prototype.computeNextPosition=function(r,i){var a=this;this.computeDerivatives(r);var n=this.computeStepSize(this.g);if(this.stepAndProject(r,i,this.g,n),this.project){this.matrixApply(function(d,u){return a.e[d][u]=r[d][u]-i[d][u]});var p=this.computeStepSize(this.e);p=Math.max(.2,Math.min(p,1)),this.stepAndProject(r,i,this.e,p)}},e.prototype.run=function(r){for(var i=Number.MAX_VALUE,a=!1;!a&&r-- >0;){var n=this.rungeKutta();a=Math.abs(i/n-1)>16)/this.range},e.prototype.getNextBetween=function(r,i){return r+this.getNext()*(i-r)},e}();fh.PseudoRandom=gK});var A3=pe(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var _K=function(){function e(r){this.scale=r,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(r){var i=this.scale/r.scale,a=r.offset/r.scale,n=r.weight;this.AB+=n*i*a,this.AD+=n*i*r.desiredPosition,this.A2+=n*i*i},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();hp.PositionStats=_K;var D3=function(){function e(r,i,a,n){n===void 0&&(n=!1),this.left=r,this.right=i,this.gap=a,this.equality=n,this.active=!1,this.unsatisfiable=!1,this.left=r,this.right=i,this.gap=a,this.equality=n}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}();hp.Constraint=D3;var O3=function(){function e(r,i,a){i===void 0&&(i=1),a===void 0&&(a=1),this.desiredPosition=r,this.weight=i,this.scale=a,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(r,i){var a=function(n,p){return n.active&&r!==p&&i(n,p)};this.cOut.forEach(function(n){return a(n,n.right)}),this.cIn.forEach(function(n){return a(n,n.left)})},e}();hp.Variable=O3;var C6=function(){function e(r){this.vars=[],r.offset=0,this.ps=new _K(r.scale),this.addVariable(r)}return e.prototype.addVariable=function(r){r.block=this,this.vars.push(r),this.ps.addVariable(r),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var r=0,i=this.vars.length;r=0?this.inactive.push(r):this.bs.merge(r)}}},e.prototype.solve=function(){this.satisfy();for(var r=Number.MAX_VALUE,i=this.bs.cost();Math.abs(r-i)>1e-4;)this.satisfy(),r=i,i=this.bs.cost();return i},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();hp.Solver=S6;function K1e(e,r,i){for(var a=e.map(function(T){return new O3(T.desiredCenter)}),n=[],p=e.length,d=0;d{"use strict";var X1e=sd&&sd.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(sd,"__esModule",{value:!0});var vK=function(){function e(){this.findIter=function(r){for(var i=this._root,a=this.iterator();i!==null;){var n=this._comparator(r,i.data);if(n===0)return a._cursor=i,a;a._ancestors.push(i),i=i.get_child(n>0)}return null}}return e.prototype.clear=function(){this._root=null,this.size=0},e.prototype.find=function(r){for(var i=this._root;i!==null;){var a=this._comparator(r,i.data);if(a===0)return i.data;i=i.get_child(a>0)}return null},e.prototype.lowerBound=function(r){return this._bound(r,this._comparator)},e.prototype.upperBound=function(r){var i=this._comparator;function a(n,p){return i(p,n)}return this._bound(r,a)},e.prototype.min=function(){var r=this._root;if(r===null)return null;for(;r.left!==null;)r=r.left;return r.data},e.prototype.max=function(){var r=this._root;if(r===null)return null;for(;r.right!==null;)r=r.right;return r.data},e.prototype.iterator=function(){return new bK(this)},e.prototype.each=function(r){for(var i=this.iterator(),a;(a=i.next())!==null;)r(a)},e.prototype.reach=function(r){for(var i=this.iterator(),a;(a=i.prev())!==null;)r(a)},e.prototype._bound=function(r,i){for(var a=this._root,n=this.iterator();a!==null;){var p=this._comparator(r,a.data);if(p===0)return n._cursor=a,n;n._ancestors.push(a),a=a.get_child(p>0)}for(var d=n._ancestors.length-1;d>=0;--d)if(a=n._ancestors[d],i(r,a.data)>0)return n._cursor=a,n._ancestors.length=d,n;return n._ancestors.length=0,n},e}();sd.TreeBase=vK;var bK=function(){function e(r){this._tree=r,this._ancestors=[],this._cursor=null}return e.prototype.data=function(){return this._cursor!==null?this._cursor.data:null},e.prototype.next=function(){if(this._cursor===null){var r=this._tree._root;r!==null&&this._minNode(r)}else if(this._cursor.right===null){var i;do if(i=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.right===i)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return this._cursor!==null?this._cursor.data:null},e.prototype.prev=function(){if(this._cursor===null){var r=this._tree._root;r!==null&&this._maxNode(r)}else if(this._cursor.left===null){var i;do if(i=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.left===i)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return this._cursor!==null?this._cursor.data:null},e.prototype._minNode=function(r){for(;r.left!==null;)this._ancestors.push(r),r=r.left;this._cursor=r},e.prototype._maxNode=function(r){for(;r.right!==null;)this._ancestors.push(r),r=r.right;this._cursor=r},e}();sd.Iterator=bK;var F3=function(){function e(r){this.data=r,this.left=null,this.right=null,this.red=!0}return e.prototype.get_child=function(r){return r?this.right:this.left},e.prototype.set_child=function(r,i){r?this.right=i:this.left=i},e}(),Z1e=function(e){X1e(r,e);function r(i){var a=e.call(this)||this;return a._root=null,a._comparator=i,a.size=0,a}return r.prototype.insert=function(i){var a=!1;if(this._root===null)this._root=new F3(i),a=!0,this.size++;else{var n=new F3(void 0),p=!1,d=!1,u=null,x=n,_=null,v=this._root;for(x.right=this._root;;){if(v===null?(v=new F3(i),_.set_child(p,v),a=!0,this.size++):r.is_red(v.left)&&r.is_red(v.right)&&(v.red=!0,v.left.red=!1,v.right.red=!1),r.is_red(v)&&r.is_red(_)){var C=x.right===u;v===_.get_child(d)?x.set_child(C,r.single_rotate(u,!d)):x.set_child(C,r.double_rotate(u,!d))}var S=this._comparator(v.data,i);if(S===0)break;d=p,p=S<0,u!==null&&(x=u),u=_,_=v,v=v.get_child(p)}this._root=n.right}return this._root.red=!1,a},r.prototype.remove=function(i){if(this._root===null)return!1;var a=new F3(void 0),n=a;n.right=this._root;for(var p=null,d=null,u=null,x=!0;n.get_child(x)!==null;){var _=x;d=p,p=n,n=n.get_child(x);var v=this._comparator(i,n.data);if(x=v>0,v===0&&(u=n),!r.is_red(n)&&!r.is_red(n.get_child(x))){if(r.is_red(n.get_child(!x))){var C=r.single_rotate(n,x);p.set_child(_,C),p=C}else if(!r.is_red(n.get_child(!x))){var S=p.get_child(!_);if(S!==null)if(!r.is_red(S.get_child(!_))&&!r.is_red(S.get_child(_)))p.red=!1,S.red=!0,n.red=!0;else{var E=d.right===p;r.is_red(S.get_child(_))?d.set_child(E,r.double_rotate(p,_)):r.is_red(S.get_child(!_))&&d.set_child(E,r.single_rotate(p,_));var w=d.get_child(E);w.red=!0,n.red=!0,w.left.red=!1,w.right.red=!1}}}}return u!==null&&(u.data=n.data,p.set_child(p.right===n,n.get_child(n.left===null)),this.size--),this._root=a.right,this._root!==null&&(this._root.red=!1),u!==null},r.is_red=function(i){return i!==null&&i.red},r.single_rotate=function(i,a){var n=i.get_child(!a);return i.set_child(!a,n.get_child(a)),n.set_child(a,i),i.red=!0,n.red=!1,n},r.double_rotate=function(i,a){return i.set_child(!a,r.single_rotate(i.get_child(!a),!a)),r.single_rotate(i,a)},r}(vK);sd.RBTree=Z1e});var ku=pe(vl=>{"use strict";var the=vl&&vl.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(vl,"__esModule",{value:!0});var xp=A3(),ehe=w6();function hh(e){return e.bounds=typeof e.leaves<"u"?e.leaves.reduce(function(r,i){return i.bounds.union(r)},vc.empty()):vc.empty(),typeof e.groups<"u"&&(e.bounds=e.groups.reduce(function(r,i){return hh(i).union(r)},e.bounds)),e.bounds=e.bounds.inflate(e.padding),e.bounds}vl.computeGroupBounds=hh;var vc=function(){function e(r,i,a,n){this.x=r,this.X=i,this.y=a,this.Y=n}return e.empty=function(){return new e(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},e.prototype.cx=function(){return(this.x+this.X)/2},e.prototype.cy=function(){return(this.y+this.Y)/2},e.prototype.overlapX=function(r){var i=this.cx(),a=r.cx();return i<=a&&r.x0?a[0]:null},e.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},e.lineIntersection=function(r,i,a,n,p,d,u,x){var _=a-r,v=u-p,C=n-i,S=x-d,E=S*_-v*C;if(E==0)return null;var w=r-p,I=i-d,T=v*I-S*w,A=T/E,V=_*I-C*w,G=V/E;return A>=0&&A<=1&&G>=0&&G<=1?{x:r+A*_,y:i+A*C}:null},e.prototype.inflate=function(r){return new e(this.x-r,this.X+r,this.y-r,this.Y+r)},e}();vl.Rectangle=vc;function ihe(e,r,i){var a=e.rayIntersection(r.cx(),r.cy())||{x:e.cx(),y:e.cy()},n=r.rayIntersection(e.cx(),e.cy())||{x:r.cx(),y:r.cy()},p=n.x-a.x,d=n.y-a.y,u=Math.sqrt(p*p+d*d),x=u-i;return{sourceIntersection:a,targetIntersection:n,arrowStart:{x:a.x+x*p/u,y:a.y+x*d/u}}}vl.makeEdgeBetween=ihe;function nhe(e,r,i){var a=r.rayIntersection(e.x,e.y);a||(a={x:r.cx(),y:r.cy()});var n=a.x-e.x,p=a.y-e.y,d=Math.sqrt(n*n+p*p);return{x:a.x-i*n/d,y:a.y-i*p/d}}vl.makeEdgeTo=nhe;var ahe=function(){function e(r,i,a){this.v=r,this.r=i,this.pos=a,this.prev=P6(),this.next=P6()}return e}(),CK=function(){function e(r,i,a){this.isOpen=r,this.v=i,this.pos=a}return e}();function rhe(e,r){return e.pos>r.pos?1:e.pos=p);var u=new Array(d);for(n=0;n0&&(e[a].insert(p),p[n].insert(e))};i("next","prev"),i("prev","next")}function wK(e,r){return I6(e,r,yK,1e-6)}vl.generateXConstraints=wK;function PK(e,r){return I6(e,r,SK,1e-6)}vl.generateYConstraints=PK;function EK(e){return E6(e,yK,1e-6)}vl.generateXGroupConstraints=EK;function IK(e){return E6(e,SK,1e-6)}vl.generateYGroupConstraints=IK;function she(e){var r=e.map(function(n){return new xp.Variable(n.cx())}),i=wK(e,r),a=new xp.Solver(r,i);a.solve(),r.forEach(function(n,p){return e[p].setXCentre(n.position())}),r=e.map(function(n){return new xp.Variable(n.cy())}),i=PK(e,r),a=new xp.Solver(r,i),a.solve(),r.forEach(function(n,p){return e[p].setYCentre(n.position())})}vl.removeOverlaps=she;var k3=function(e){the(r,e);function r(i,a){var n=e.call(this,0,a)||this;return n.index=i,n}return r}(xp.Variable);vl.IndexedVariable=k3;var phe=function(){function e(r,i,a,n,p){var d=this;if(a===void 0&&(a=null),n===void 0&&(n=null),p===void 0&&(p=!1),this.nodes=r,this.groups=i,this.rootGroup=a,this.avoidOverlaps=p,this.variables=r.map(function(x,_){return x.variable=new k3(_,1)}),n&&this.createConstraints(n),p&&a&&typeof a.groups<"u"){r.forEach(function(x){if(!x.width||!x.height){x.bounds=new vc(x.x,x.x,x.y,x.y);return}var _=x.width/2,v=x.height/2;x.bounds=new vc(x.x-_,x.x+_,x.y-v,x.y+v)}),hh(a);var u=r.length;i.forEach(function(x){d.variables[u]=x.minVar=new k3(u++,typeof x.stiffness<"u"?x.stiffness:.01),d.variables[u]=x.maxVar=new k3(u++,typeof x.stiffness<"u"?x.stiffness:.01)})}}return e.prototype.createSeparation=function(r){return new xp.Constraint(this.nodes[r.left].variable,this.nodes[r.right].variable,r.gap,typeof r.equality<"u"?r.equality:!1)},e.prototype.makeFeasible=function(r){var i=this;if(this.avoidOverlaps){var a="x",n="width";r.axis==="x"&&(a="y",n="height");var p=r.offsets.map(function(u){return i.nodes[u.node]}).sort(function(u,x){return u[a]-x[a]}),d=null;p.forEach(function(u){if(d){var x=d[a]+d[n];x>u[a]&&(u[a]=x)}d=u})}},e.prototype.createAlignment=function(r){var i=this,a=this.nodes[r.offsets[0].node].variable;this.makeFeasible(r);var n=r.axis==="x"?this.xConstraints:this.yConstraints;r.offsets.slice(1).forEach(function(p){var d=i.nodes[p.node].variable;n.push(new xp.Constraint(a,d,p.offset,!0))})},e.prototype.createConstraints=function(r){var i=this,a=function(n){return typeof n.type>"u"||n.type==="separation"};this.xConstraints=r.filter(function(n){return n.axis==="x"&&a(n)}).map(function(n){return i.createSeparation(n)}),this.yConstraints=r.filter(function(n){return n.axis==="y"&&a(n)}).map(function(n){return i.createSeparation(n)}),r.filter(function(n){return n.type==="alignment"}).forEach(function(n){return i.createAlignment(n)})},e.prototype.setupVariablesAndBounds=function(r,i,a,n){this.nodes.forEach(function(p,d){p.fixed?(p.variable.weight=p.fixedWeight?p.fixedWeight:1e3,a[d]=n(p)):p.variable.weight=1;var u=(p.width||0)/2,x=(p.height||0)/2,_=r[d],v=i[d];p.bounds=new vc(_-u,_+u,v-x,v+x)})},e.prototype.xProject=function(r,i,a){!this.rootGroup&&!(this.avoidOverlaps||this.xConstraints)||this.project(r,i,r,a,function(n){return n.px},this.xConstraints,EK,function(n){return n.bounds.setXCentre(a[n.variable.index]=n.variable.position())},function(n){var p=a[n.minVar.index]=n.minVar.position(),d=a[n.maxVar.index]=n.maxVar.position(),u=n.padding/2;n.bounds.x=p-u,n.bounds.X=d+u})},e.prototype.yProject=function(r,i,a){!this.rootGroup&&!this.yConstraints||this.project(r,i,i,a,function(n){return n.py},this.yConstraints,IK,function(n){return n.bounds.setYCentre(a[n.variable.index]=n.variable.position())},function(n){var p=a[n.minVar.index]=n.minVar.position(),d=a[n.maxVar.index]=n.maxVar.position(),u=n.padding/2;n.bounds.y=p-u,n.bounds.Y=d+u})},e.prototype.projectFunctions=function(){var r=this;return[function(i,a,n){return r.xProject(i,a,n)},function(i,a,n){return r.yProject(i,a,n)}]},e.prototype.project=function(r,i,a,n,p,d,u,x,_){this.setupVariablesAndBounds(r,i,n,p),this.rootGroup&&this.avoidOverlaps&&(hh(this.rootGroup),d=d.concat(u(this.rootGroup))),this.solve(this.variables,d,a,n),this.nodes.forEach(x),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(_),hh(this.rootGroup))},e.prototype.solve=function(r,i,a,n){var p=new xp.Solver(r,i);p.setStartingPositions(a),p.setDesiredPositions(n),p.solve()},e}();vl.Projection=phe});var T6=pe(R3=>{"use strict";Object.defineProperty(R3,"__esModule",{value:!0});var TK=function(){function e(r){this.elem=r,this.subheaps=[]}return e.prototype.toString=function(r){for(var i="",a=!1,n=0;n{"use strict";Object.defineProperty(M6,"__esModule",{value:!0});var MK=T6(),DK=function(){function e(r,i){this.id=r,this.distance=i}return e}(),mhe=function(){function e(r){this.id=r,this.neighbours=[]}return e}(),OK=function(){function e(r,i,a){this.node=r,this.prev=i,this.d=a}return e}(),dhe=function(){function e(r,i,a,n,p){this.n=r,this.es=i,this.neighbours=new Array(this.n);for(var d=this.n;d--;)this.neighbours[d]=new mhe(d);for(d=this.es.length;d--;){var u=this.es[d],x=a(u),_=n(u),v=p(u);this.neighbours[x].neighbours.push(new DK(_,v)),this.neighbours[_].neighbours.push(new DK(x,v))}}return e.prototype.DistanceMatrix=function(){for(var r=new Array(this.n),i=0;iC&&(_.d=C,_.prev=u,a.reduceKey(_.q,_,function(E,w){return E.q=w}))}}return p},e}();M6.Calculator=dhe});var F6=pe(Gr=>{"use strict";var FK=Gr&&Gr.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(Gr,"__esModule",{value:!0});var uhe=ku(),O6=function(){function e(){}return e}();Gr.Point=O6;var A6=function(){function e(r,i,a,n){this.x1=r,this.y1=i,this.x2=a,this.y2=n}return e}();Gr.LineSegment=A6;var fhe=function(e){FK(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(O6);Gr.PolyPoint=fhe;function Xl(e,r,i){return(r.x-e.x)*(i.y-e.y)-(i.x-e.x)*(r.y-e.y)}Gr.isLeft=Xl;function e0(e,r,i){return Xl(e,r,i)>0}function Ts(e,r,i){return Xl(e,r,i)<0}function hhe(e){var r=e.slice(0).sort(function(S,E){return S.x!==E.x?E.x-S.x:E.y-S.y}),i=e.length,a,n=0,p=r[0].x;for(a=1;a=0&&r[a].x===v;a--);for(x=a+1,a=d;++a<=x;)if(!(Xl(r[n],r[x],r[a])>=0&&a1&&!(Xl(u[u.length-2],u[u.length-1],r[a])>0);)u.length-=1;a!=n&&u.push(r[a])}_!=x&&u.push(r[_]);var C=u.length;for(a=x;--a>=d;)if(!(Xl(r[_],r[d],r[a])>=0&&a>d)){for(;u.length>C&&!(Xl(u[u.length-2],u[u.length-1],r[a])>0);)u.length-=1;a!=n&&u.push(r[a])}}return u}Gr.ConvexHull=hhe;function xhe(e,r,i){r.slice(0).sort(function(a,n){return Math.atan2(a.y-e.y,a.x-e.x)-Math.atan2(n.y-e.y,n.x-e.x)}).forEach(i)}Gr.clockwiseRadialSweep=xhe;function ghe(e,r){var i=r.slice(0);return i.push(r[0]),{rtan:N3(e,i),ltan:L3(e,i)}}function N3(e,r){var i=r.length-1,a,n,p,d,u;if(Ts(e,r[1],r[0])&&!e0(e,r[i-1],r[0]))return 0;for(a=0,n=i;;){if(n-a===1)return e0(e,r[a],r[n])?a:n;if(p=Math.floor((a+n)/2),u=Ts(e,r[p+1],r[p]),u&&!e0(e,r[p-1],r[p]))return p;d=e0(e,r[a+1],r[a]),d?u||e0(e,r[a],r[p])?n=p:a=p:u&&Ts(e,r[a],r[p])?n=p:a=p}}function L3(e,r){var i=r.length-1,a,n,p,d,u;if(e0(e,r[i-1],r[0])&&!Ts(e,r[1],r[0]))return 0;for(a=0,n=i;;){if(n-a===1)return Ts(e,r[a],r[n])?a:n;if(p=Math.floor((a+n)/2),u=Ts(e,r[p+1],r[p]),e0(e,r[p-1],r[p])&&!u)return p;d=Ts(e,r[a+1],r[a]),d?u?Ts(e,r[a],r[p])?n=p:a=p:n=p:u?a=p:e0(e,r[a],r[p])?n=p:a=p}}function V3(e,r,i,a,n,p){var d,u;d=i(r[0],e),u=a(e[d],r);for(var x=!1;!x;){for(x=!0;d===e.length-1&&(d=0),!n(r[u],e[d],e[d+1]);)++d;for(;u===0&&(u=r.length-1),!p(e[d],r[u],r[u-1]);)--u,x=!1}return{t1:d,t2:u}}Gr.tangent_PolyPolyC=V3;function _he(e,r){var i=kK(r,e);return{t1:i.t2,t2:i.t1}}Gr.LRtangent_PolyPolyC=_he;function kK(e,r){return V3(e,r,N3,L3,e0,Ts)}Gr.RLtangent_PolyPolyC=kK;function vhe(e,r){return V3(e,r,L3,L3,Ts,Ts)}Gr.LLtangent_PolyPolyC=vhe;function bhe(e,r){return V3(e,r,N3,N3,e0,e0)}Gr.RRtangent_PolyPolyC=bhe;var gh=function(){function e(r,i){this.t1=r,this.t2=i}return e}();Gr.BiTangent=gh;var RK=function(){function e(){}return e}();Gr.BiTangents=RK;var Che=function(e){FK(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(O6);Gr.TVGPoint=Che;var D6=function(){function e(r,i,a,n){this.id=r,this.polyid=i,this.polyvertid=a,this.p=n,n.vv=this}return e}();Gr.VisibilityVertex=D6;var B3=function(){function e(r,i){this.source=r,this.target=i}return e.prototype.length=function(){var r=this.source.p.x-this.target.p.x,i=this.source.p.y-this.target.p.y;return Math.sqrt(r*r+i*i)},e}();Gr.VisibilityEdge=B3;var yhe=function(){function e(r,i){if(this.P=r,this.V=[],this.E=[],i)this.V=i.V.slice(0),this.E=i.E.slice(0);else{for(var a=r.length,n=0;n0&&this.E.push(new B3(p[d-1].vv,x))}p.length>1&&this.E.push(new B3(p[0].vv,p[p.length-1].vv))}for(var n=0;n0)return!0;return!1},e}();Gr.TangentVisibilityGraph=yhe;function BK(e,r){for(var i=[],a=1,n=r.length;a=0&&w>=0&&I<0&&T>=0&&A>=0&&V<0?n.ll=new gh(p,d):E<=0&&w<=0&&I>0&&T<=0&&A<=0&&V>0?n.rr=new gh(p,d):E<=0&&w>0&&I<=0&&T>=0&&A<0&&V>=0?n.rl=new gh(p,d):E>=0&&w<0&&I>=0&&T<=0&&A>0&&V<=0&&(n.lr=new gh(p,d))}return n}Gr.tangents=NK;function She(e,r){for(var i=1,a=r.length;i0)return!0}return!1}Gr.polysOverlap=whe});var k6=pe(q3=>{"use strict";Object.defineProperty(q3,"__esModule",{value:!0});var Ms={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};function Phe(e,r,i,C,v,p){v===void 0&&(v=1),p===void 0&&(p=!0);var d=0,u=0,x=r,_=i,v=typeof v<"u"?v:1,C=typeof C<"u"?C:0,S=0,E=0,w=0,I=0,T=[];if(e.length==0)return;A(e),G(e,v),p&&V(e);function A(ot){ot.forEach(function(ct){ht(ct)});function ht(ct){var z=Number.MAX_VALUE,U=Number.MAX_VALUE,st=0,M=0;ct.array.forEach(function(F){var B=typeof F.width<"u"?F.width:C,R=typeof F.height<"u"?F.height:C;B/=2,R/=2,st=Math.max(F.x+B,st),z=Math.min(F.x-B,z),M=Math.max(F.y+R,M),U=Math.min(F.y-R,U)}),ct.width=st-z,ct.height=M-U}}function V(ot){ot.forEach(function(ht){var ct={x:0,y:0};ht.array.forEach(function(st){ct.x+=st.x,ct.y+=st.y}),ct.x/=ht.array.length,ct.y/=ht.array.length;var z={x:ct.x-ht.width/2,y:ct.y-ht.height/2},U={x:ht.x-z.x+x/2-S/2,y:ht.y-z.y+_/2-E/2};ht.array.forEach(function(st){st.x+=U.x,st.y+=U.y})})}function G(ot,ht){var ct=Number.POSITIVE_INFINITY,z=0;ot.sort(function(bt,kt){return kt.height-bt.height}),w=ot.reduce(function(bt,kt){return bt.widthw||H>Ms.FLOAT_EPSILON;){if(R!=1)var et=st-(st-U)/Ms.GOLDEN_SECTION,F=J(ot,et);if(R!=0)var vt=U+(st-U)/Ms.GOLDEN_SECTION,B=J(ot,vt);if(j=Math.abs(et-vt),H=Math.abs(F-B),FB?(U=et,et=vt,F=B,R=1):(st=vt,vt=et,B=F,R=0),M++>100)break}J(ot,z)}function J(ot,ht){T=[],S=0,E=0,I=u;for(var ct=0;ct=ot.height&&T[z].x+T[z].width+ot.width+Ms.PADDING-ht<=Ms.FLOAT_EPSILON){ct=T[z];break}T.push(ot),ct!==void 0?(ot.x=ct.x+ct.width+Ms.PADDING,ot.y=ct.bottom,ot.space_left=ot.height,ot.bottom=ot.y,ct.space_left-=ot.height+Ms.PADDING,ct.bottom+=ot.height+Ms.PADDING):(ot.y=I,I+=ot.height+Ms.PADDING,ot.x=d,ot.bottom=ot.y,ot.space_left=ot.height),ot.y+ot.height-E>-Ms.FLOAT_EPSILON&&(E=ot.y+ot.height-u),ot.x+ot.width-S>-Ms.FLOAT_EPSILON&&(S=ot.x+ot.width-d)}function X(ot){var ht=0;return ot.forEach(function(ct){return ht+=ct.width+Ms.PADDING}),ht}function nt(){return S/E}}q3.applyPacking=Phe;function Ehe(e,r){for(var i={},a={},n=[],p=0,d=0;d{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var Ihe=b6(),R6=T3(),j3=M3(),z3=ku(),LK=xh(),VK=F6(),qK=k6(),_h;(function(e){e[e.start=0]="start",e[e.tick=1]="tick",e[e.end=2]="end"})(_h=vh.EventType||(vh.EventType={}));function H3(e){return typeof e.leaves<"u"||typeof e.groups<"u"}var The=function(){function e(){var r=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:e.getSourceIndex,getTargetIndex:e.getTargetIndex,setLength:e.setLinkLength,getType:function(i){return typeof r._linkType=="function"?r._linkType(i):0}}}return e.prototype.on=function(r,i){return this.event||(this.event={}),typeof r=="string"?this.event[_h[r]]=i:this.event[r]=i,this},e.prototype.trigger=function(r){this.event&&typeof this.event[r.type]<"u"&&this.event[r.type](r)},e.prototype.kick=function(){for(;!this.tick(););},e.prototype.tick=function(){if(this._alpha"u"||typeof a.py>"u")&&(a.px=a.x,a.py=a.y);var p=[a.px,a.py];this._descent.locks.add(n,p)}var d=this._descent.rungeKutta();return d===0?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=d),this._lastStress=d,this.updateNodePositions(),this.trigger({type:_h.tick,alpha:this._alpha,stress:this._lastStress}),!1},e.prototype.updateNodePositions=function(){for(var r=this._descent.x[0],i=this._descent.x[1],a,n=this._nodes.length;n--;)a=this._nodes[n],a.x=r[n],a.y=i[n]},e.prototype.nodes=function(r){if(!r){if(this._nodes.length===0&&this._links.length>0){var i=0;this._links.forEach(function(n){i=Math.max(i,n.source,n.target)}),this._nodes=new Array(++i);for(var a=0;a"u"&&(a.padding=1),typeof a.leaves<"u"&&a.leaves.forEach(function(n,p){typeof n=="number"&&((a.leaves[p]=i._nodes[n]).parent=a)}),typeof a.groups<"u"&&a.groups.forEach(function(n,p){typeof n=="number"&&((a.groups[p]=i._groups[n]).parent=a)})}),this._rootGroup.leaves=this._nodes.filter(function(a){return typeof a.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(a){return typeof a.parent>"u"}),this):this._groups},e.prototype.powerGraphGroups=function(r){var i=Ihe.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(i.groups),r(i),this},e.prototype.avoidOverlaps=function(r){return arguments.length?(this._avoidOverlaps=r,this):this._avoidOverlaps},e.prototype.handleDisconnected=function(r){return arguments.length?(this._handleDisconnected=r,this):this._handleDisconnected},e.prototype.flowLayout=function(r,i){return arguments.length||(r="y"),this._directedLinkConstraints={axis:r,getMinSeparation:typeof i=="number"?function(){return i}:i},this},e.prototype.links=function(r){return arguments.length?(this._links=r,this):this._links},e.prototype.constraints=function(r){return arguments.length?(this._constraints=r,this):this._constraints},e.prototype.distanceMatrix=function(r){return arguments.length?(this._distanceMatrix=r,this):this._distanceMatrix},e.prototype.size=function(r){return r?(this._canvasSize=r,this):this._canvasSize},e.prototype.defaultNodeSize=function(r){return r?(this._defaultNodeSize=r,this):this._defaultNodeSize},e.prototype.groupCompactness=function(r){return r?(this._groupCompactness=r,this):this._groupCompactness},e.prototype.linkDistance=function(r){return r?(this._linkDistance=typeof r=="function"?r:+r,this._linkLengthCalculator=null,this):this._linkDistance},e.prototype.linkType=function(r){return this._linkType=r,this},e.prototype.convergenceThreshold=function(r){return r?(this._threshold=typeof r=="function"?r:+r,this):this._threshold},e.prototype.alpha=function(r){return arguments.length?(r=+r,this._alpha?r>0?this._alpha=r:this._alpha=0:r>0&&(this._running||(this._running=!0,this.trigger({type:_h.start,alpha:this._alpha=r}),this.kick())),this):this._alpha},e.prototype.getLinkLength=function(r){return typeof this._linkDistance=="function"?+this._linkDistance(r):this._linkDistance},e.setLinkLength=function(r,i){r.length=i},e.prototype.getLinkType=function(r){return typeof this._linkType=="function"?this._linkType(r):0},e.prototype.symmetricDiffLinkLengths=function(r,i){var a=this;return i===void 0&&(i=1),this.linkDistance(function(n){return r*n.length}),this._linkLengthCalculator=function(){return R6.symmetricDiffLinkLengths(a._links,a.linkAccessor,i)},this},e.prototype.jaccardLinkLengths=function(r,i){var a=this;return i===void 0&&(i=1),this.linkDistance(function(n){return r*n.length}),this._linkLengthCalculator=function(){return R6.jaccardLinkLengths(a._links,a.linkAccessor,i)},this},e.prototype.start=function(r,i,a,n,p,d){var u=this;r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),n===void 0&&(n=0),p===void 0&&(p=!0),d===void 0&&(d=!0);var x,_,v=this.nodes().length,C=v+2*this._groups.length,S=this._links.length,E=this._canvasSize[0],w=this._canvasSize[1],I=new Array(C),T=new Array(C),A=null,V=this._avoidOverlaps;this._nodes.forEach(function(ct,z){ct.index=z,typeof ct.x>"u"&&(ct.x=E/2,ct.y=w/2),I[z]=ct.x,T[z]=ct.y}),this._linkLengthCalculator&&this._linkLengthCalculator();var G;this._distanceMatrix?G=this._distanceMatrix:(G=new LK.Calculator(C,this._links,e.getSourceIndex,e.getTargetIndex,function(ct){return u.getLinkLength(ct)}).DistanceMatrix(),A=j3.Descent.createSquareMatrix(C,function(){return 2}),this._links.forEach(function(ct){typeof ct.source=="number"&&(ct.source=u._nodes[ct.source]),typeof ct.target=="number"&&(ct.target=u._nodes[ct.target])}),this._links.forEach(function(ct){var z=e.getSourceIndex(ct),U=e.getTargetIndex(ct);A[z][U]=A[U][z]=ct.weight||1}));var J=j3.Descent.createSquareMatrix(C,function(ct,z){return G[ct][z]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var x=v,at=function(z,U,st,M){A[z][U]=A[U][z]=st,J[z][U]=J[U][z]=M};this._groups.forEach(function(z){at(x,x+1,u._groupCompactness,.1),I[x]=0,T[x++]=0,I[x]=0,T[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var X=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,X=X.concat(R6.generateDirectedEdgeConstraints(v,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new j3.Descent([I,T],J),this._descent.locks.clear();for(var x=0;x0&&(this._descent.project=new z3.Projection(this._nodes,this._groups,this._rootGroup,X).projectFunctions()),this._descent.run(i),this.separateOverlappingComponents(E,w,d),this.avoidOverlaps(V),V&&(this._nodes.forEach(function(ct,z){ct.x=I[z],ct.y=T[z]}),this._descent.project=new z3.Projection(this._nodes,this._groups,this._rootGroup,X,!0).projectFunctions(),this._nodes.forEach(function(ct,z){I[z]=ct.x,T[z]=ct.y})),this._descent.G=A,this._descent.run(a),n){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=v,this._descent.scaleSnapByMaxH=v!=C;var ht=j3.Descent.createSquareMatrix(C,function(ct,z){return ct>=v||z>=v?A[ct][z]:0});this._descent.G=ht,this._descent.run(n)}return this.updateNodePositions(),this.separateOverlappingComponents(E,w,d),p?this.resume():this},e.prototype.initialLayout=function(r,i,a){if(this._groups.length>0&&r>0){var n=this._nodes.length,p=this._links.map(function(u){return{source:u.source.index,target:u.target.index}}),d=this._nodes.map(function(u){return{index:u.index}});this._groups.forEach(function(u,x){d.push({index:u.index=n+x})}),this._groups.forEach(function(u,x){typeof u.leaves<"u"&&u.leaves.forEach(function(_){return p.push({source:u.index,target:_.index})}),typeof u.groups<"u"&&u.groups.forEach(function(_){return p.push({source:u.index,target:_.index})})}),new e().size(this.size()).nodes(d).links(p).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(r,0,0,0,!1),this._nodes.forEach(function(u){i[u.index]=d[u.index].x,a[u.index]=d[u.index].y})}else this._descent.run(r)},e.prototype.separateOverlappingComponents=function(r,i,a){var n=this;if(a===void 0&&(a=!0),!this._distanceMatrix&&this._handleDisconnected){var p=this._descent.x[0],d=this._descent.x[1];this._nodes.forEach(function(x,_){x.x=p[_],x.y=d[_]});var u=qK.separateGraphs(this._nodes,this._links);qK.applyPacking(u,r,i,this._defaultNodeSize,1,a),this._nodes.forEach(function(x,_){n._descent.x[0][_]=x.x,n._descent.x[1][_]=x.y,x.bounds&&(x.bounds.setXCentre(x.x),x.bounds.setYCentre(x.y))})}},e.prototype.resume=function(){return this.alpha(.1)},e.prototype.stop=function(){return this.alpha(0)},e.prototype.prepareEdgeRouting=function(r){r===void 0&&(r=0),this._visibilityGraph=new VK.TangentVisibilityGraph(this._nodes.map(function(i){return i.bounds.inflate(-r).vertices()}))},e.prototype.routeEdge=function(r,i,a){i===void 0&&(i=5);var n=[],p=new VK.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),d={x:r.source.x,y:r.source.y},u={x:r.target.x,y:r.target.y},x=p.addPoint(d,r.source.index),_=p.addPoint(u,r.target.index);p.addEdgeIfVisible(d,u,r.source.index,r.target.index),typeof a<"u"&&a(p);var v=function(J){return J.source.id},C=function(J){return J.target.id},S=function(J){return J.length()},E=new LK.Calculator(p.V.length,p.E,v,C,S),w=E.PathFromNodeToNode(x.id,_.id);if(w.length===1||w.length===p.V.length){var I=z3.makeEdgeBetween(r.source.innerBounds,r.target.innerBounds,i);n=[I.sourceIntersection,I.arrowStart]}else{for(var T=w.length-2,A=p.V[w[T]].p,V=p.V[w[0]].p,n=[r.source.innerBounds.rayIntersection(A.x,A.y)],G=T;G>=0;--G)n.push(p.V[w[G]].p);n.push(z3.makeEdgeTo(V,r.target.innerBounds,i))}return n},e.getSourceIndex=function(r){return typeof r.source=="number"?r.source:r.source.index},e.getTargetIndex=function(r){return typeof r.target=="number"?r.target:r.target.index},e.linkId=function(r){return e.getSourceIndex(r)+"-"+e.getTargetIndex(r)},e.dragStart=function(r){H3(r)?e.storeOffset(r,e.dragOrigin(r)):(e.stopNode(r),r.fixed|=2)},e.stopNode=function(r){r.px=r.x,r.py=r.y},e.storeOffset=function(r,i){typeof r.leaves<"u"&&r.leaves.forEach(function(a){a.fixed|=2,e.stopNode(a),a._dragGroupOffsetX=a.x-i.x,a._dragGroupOffsetY=a.y-i.y}),typeof r.groups<"u"&&r.groups.forEach(function(a){return e.storeOffset(a,i)})},e.dragOrigin=function(r){return H3(r)?{x:r.bounds.cx(),y:r.bounds.cy()}:r},e.drag=function(r,i){H3(r)?(typeof r.leaves<"u"&&r.leaves.forEach(function(a){r.bounds.setXCentre(i.x),r.bounds.setYCentre(i.y),a.px=a._dragGroupOffsetX+i.x,a.py=a._dragGroupOffsetY+i.y}),typeof r.groups<"u"&&r.groups.forEach(function(a){return e.drag(a,i)})):(r.px=i.x,r.py=i.y)},e.dragEnd=function(r){H3(r)?(typeof r.leaves<"u"&&r.leaves.forEach(function(i){e.dragEnd(i),delete i._dragGroupOffsetX,delete i._dragGroupOffsetY}),typeof r.groups<"u"&&r.groups.forEach(e.dragEnd)):r.fixed&=-7},e.mouseOver=function(r){r.fixed|=4,r.px=r.x,r.py=r.y},e.mouseOut=function(r){r.fixed&=-5},e}();vh.Layout=The});var zK=pe(Bu=>{"use strict";var Mhe=Bu&&Bu.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(Bu,"__esModule",{value:!0});var B6=Ru(),jK=function(e){Mhe(r,e);function r(i){var a=e.call(this)||this,n=a,p=i;return p.trigger&&(a.trigger=p.trigger),p.kick&&(a.kick=p.kick),p.drag&&(a.drag=p.drag),p.on&&(a.on=p.on),a.dragstart=a.dragStart=B6.Layout.dragStart,a.dragend=a.dragEnd=B6.Layout.dragEnd,a}return r.prototype.trigger=function(i){},r.prototype.kick=function(){},r.prototype.drag=function(){},r.prototype.on=function(i,a){return this},r}(B6.Layout);Bu.LayoutAdaptor=jK;function Dhe(e){return new jK(e)}Bu.adaptor=Dhe});var GK=pe(Nu=>{"use strict";var Ohe=Nu&&Nu.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(Nu,"__esModule",{value:!0});var Zl=Ru(),HK=function(e){Ohe(r,e);function r(){var i=e.call(this)||this;i.event=d3.dispatch(Zl.EventType[Zl.EventType.start],Zl.EventType[Zl.EventType.tick],Zl.EventType[Zl.EventType.end]);var a=i,n;return i.drag=function(){if(!p)var p=d3.behavior.drag().origin(Zl.Layout.dragOrigin).on("dragstart.d3adaptor",Zl.Layout.dragStart).on("drag.d3adaptor",function(d){Zl.Layout.drag(d,d3.event),a.resume()}).on("dragend.d3adaptor",Zl.Layout.dragEnd);if(!arguments.length)return p;this.call(p)},i}return r.prototype.trigger=function(i){var a={type:Zl.EventType[i.type],alpha:i.alpha,stress:i.stress};this.event[a.type](a)},r.prototype.kick=function(){var i=this;d3.timer(function(){return e.prototype.tick.call(i)})},r.prototype.on=function(i,a){return typeof i=="string"?this.event.on(i,a):this.event.on(Zl.EventType[i],a),this},r}(Zl.Layout);Nu.D3StyleLayoutAdaptor=HK;function Ahe(){return new HK}Nu.d3adaptor=Ahe});var UK=pe(bh=>{"use strict";var Fhe=bh&&bh.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(bh,"__esModule",{value:!0});var ts=Ru(),khe=function(e){Fhe(r,e);function r(i){var a=e.call(this)||this;a.d3Context=i,a.event=i.dispatch(ts.EventType[ts.EventType.start],ts.EventType[ts.EventType.tick],ts.EventType[ts.EventType.end]);var n=a,p;return a.drag=function(){if(!d)var d=i.drag().subject(ts.Layout.dragOrigin).on("start.d3adaptor",ts.Layout.dragStart).on("drag.d3adaptor",function(u){ts.Layout.drag(u,i.event),n.resume()}).on("end.d3adaptor",ts.Layout.dragEnd);if(!arguments.length)return d;arguments[0].call(d)},a}return r.prototype.trigger=function(i){var a={type:ts.EventType[i.type],alpha:i.alpha,stress:i.stress};this.event.call(a.type,a)},r.prototype.kick=function(){var i=this,a=this.d3Context.timer(function(){return e.prototype.tick.call(i)&&a.stop()})},r.prototype.on=function(i,a){return typeof i=="string"?this.event.on(i,a):this.event.on(ts.EventType[i],a),this},r}(ts.Layout);bh.D3StyleLayoutAdaptor=khe});var $K=pe(N6=>{"use strict";Object.defineProperty(N6,"__esModule",{value:!0});var Rhe=GK(),Bhe=UK();function Nhe(e){return!e||Lhe(e)?new Rhe.D3StyleLayoutAdaptor:new Bhe.D3StyleLayoutAdaptor(e)}N6.d3adaptor=Nhe;function Lhe(e){var r=/^3\./;return e.version&&e.version.match(r)!==null}});var j6=pe(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Vhe=ku(),L6=A3(),qhe=xh(),WK=function(){function e(r,i,a){this.id=r,this.rect=i,this.children=a,this.leaf=typeof a>"u"||a.length===0}return e}();Lu.NodeWrapper=WK;var V6=function(){function e(r,i,a,n,p){n===void 0&&(n=null),p===void 0&&(p=null),this.id=r,this.x=i,this.y=a,this.node=n,this.line=p}return e}();Lu.Vert=V6;var q6=function(){function e(r,i){this.s=r,this.t=i;var a=e.findMatch(r,i),n=i.slice(0).reverse(),p=e.findMatch(r,n);a.length>=p.length?(this.length=a.length,this.si=a.si,this.ti=a.ti,this.reversed=!1):(this.length=p.length,this.si=p.si,this.ti=i.length-p.ti-p.length,this.reversed=!0)}return e.findMatch=function(r,i){for(var a=r.length,n=i.length,p={length:0,si:-1,ti:-1},d=new Array(a),u=0;up.length&&(p.length=_,p.si=u-_+1,p.ti=x-_+1)}else d[u][x]=0}return p},e.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},e}();Lu.LongestCommonSubsequence=q6;var jhe=function(){function e(r,i,a){var n=this;a===void 0&&(a=12),this.originalnodes=r,this.groupPadding=a,this.leaves=null,this.nodes=r.map(function(I,T){return new WK(T,i.getBounds(I),i.getChildren(I))}),this.leaves=this.nodes.filter(function(I){return I.leaf}),this.groups=this.nodes.filter(function(I){return!I.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(I){return I.children.forEach(function(T){return n.nodes[T].parent=I})}),this.root={children:[]},this.nodes.forEach(function(I){typeof I.parent>"u"&&(I.parent=n.root,n.root.children.push(I.id)),I.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(I,T){return n.getDepth(I)-n.getDepth(T)});var p=this.backToFront.slice(0).reverse().filter(function(I){return!I.leaf});p.forEach(function(I){var T=Vhe.Rectangle.empty();I.children.forEach(function(A){return T=T.union(n.nodes[A].rect)}),I.rect=T.inflate(n.groupPadding)});var d=this.midPoints(this.cols.map(function(I){return I.pos})),u=this.midPoints(this.rows.map(function(I){return I.pos})),x=d[0],_=d[d.length-1],v=u[0],C=u[u.length-1],S=this.rows.map(function(I){return{x1:x,x2:_,y1:I.pos,y2:I.pos}}).concat(u.map(function(I){return{x1:x,x2:_,y1:I,y2:I}})),E=this.cols.map(function(I){return{x1:I.pos,x2:I.pos,y1:v,y2:C}}).concat(d.map(function(I){return{x1:I,x2:I,y1:v,y2:C}})),w=S.concat(E);w.forEach(function(I){return I.verts=[]}),this.verts=[],this.edges=[],S.forEach(function(I){return E.forEach(function(T){var A=new V6(n.verts.length,T.x1,I.y1);I.verts.push(A),T.verts.push(A),n.verts.push(A);for(var V=n.backToFront.length;V-- >0;){var G=n.backToFront[V],J=G.rect,at=Math.abs(A.x-J.cx()),X=Math.abs(A.y-J.cy());if(at0;){var n=a.filter(function(d){return d.rect["overlap"+r.toUpperCase()](a[0].rect)}),p={nodes:n,pos:this.avg(n.map(function(d){return d.rect["c"+r]()}))};i.push(p),p.nodes.forEach(function(d){return a.splice(a.indexOf(d),1)})}return i.sort(function(d,u){return d.pos-u.pos}),i},e.prototype.getDepth=function(r){for(var i=0;r.parent!==this.root;)i++,r=r.parent;return i},e.prototype.midPoints=function(r){for(var i=r[1]-r[0],a=[r[0]-i/2],n=1;n.1)&&(C={pos:x[0][i],segments:[]},v.push(C)),C.segments.push(x)}return v},e.nudgeSegs=function(r,i,a,n,p,d){var u=n.length;if(!(u<=1)){for(var x=n.map(function(G){return new L6.Variable(G[0][r])}),_=[],v=0;v=0&&_.push(new L6.Constraint(x[T],x[A],d))}var V=new L6.Solver(x,_);V.solve(),x.forEach(function(G,J){var at=n[J],X=G.position();at[0][r]=at[1][r]=X;var nt=a[at.edgeid];at.i>0&&(nt[at.i-1][1][r]=X),at.iMath.PI||p<-Math.PI)&&(p=n-a),p},e.isLeft=function(r,i,a){return(i.x-r.x)*(a.y-r.y)-(i.y-r.y)*(a.x-r.x)<=0},e.getOrder=function(r){for(var i={},a=0;a"u"&&(i[n.l]={}),i[n.l][n.r]=!0}return function(p,d){return typeof i[p]<"u"&&i[p][d]}},e.orderEdges=function(r){for(var i=[],a=0;a=p.length||u.ti+u.length>=d.length)){i.push({l:a,r:n});continue}u.si+u.length>=p.length||u.ti+u.length>=d.length?(x=p[u.si+1],v=p[u.si-1],_=d[u.ti-1]):(x=p[u.si+u.length-2],_=p[u.si+u.length],v=d[u.ti+u.length]),e.isLeft(x,_,v)?i.push({l:n,r:a}):i.push({l:a,r:n})}}return e.getOrder(i)},e.makeSegments=function(r){function i(_){return{x:_.x,y:_.y}}for(var a=function(_,v,C){return Math.abs((v.x-_.x)*(C.y-_.y)-(v.y-_.y)*(C.x-_.x))<.001},n=[],p=i(r[0]),d=1;d1&&ot>1?1e3:0},I=E.PathFromNodeToNodeWithPrevCost(n.ports[0].id,p.ports[0].id,w),T=I.reverse().map(function(A){return a.verts[A]});return T.push(this.nodes[p.id].ports[0]),T.filter(function(A,V){return!(V0&&A.node===p&&T[V-1].node===p)})},e.getRoutePath=function(r,i,a,n){var p={routepath:"M "+r[0][0].x+" "+r[0][0].y+" ",arrowpath:""};if(r.length>1)for(var d=0;d0?x-=v/Math.abs(v)*i:_-=C/Math.abs(C)*i,p.routepath+="L "+x+" "+_+" ";var S=r[d+1],E=S[0].x,w=S[0].y,I=S[1].x,T=S[1].y;v=I-E,C=T-w;var A=e.angleBetween2Lines(u,S)<0?1:0,V,G;Math.abs(v)>0?(V=E+v/Math.abs(v)*i,G=w):(V=E,G=w+C/Math.abs(C)*i);var J=Math.abs(V-x),at=Math.abs(G-_);p.routepath+="A "+J+" "+at+" 0 0 "+A+" "+V+" "+G+" "}else{var X=[x,_],nt,ot;Math.abs(v)>0?(x-=v/Math.abs(v)*n,nt=[x,_+a],ot=[x,_-a]):(_-=C/Math.abs(C)*n,nt=[x+a,_],ot=[x-a,_]),p.routepath+="L "+x+" "+_+" ",n>0&&(p.arrowpath="M "+X[0]+" "+X[1]+" L "+nt[0]+" "+nt[1]+" L "+ot[0]+" "+ot[1])}}else{var u=r[0],x=u[1].x,_=u[1].y,v=x-u[0].x,C=_-u[0].y,X=[x,_],nt,ot;Math.abs(v)>0?(x-=v/Math.abs(v)*n,nt=[x,_+a],ot=[x,_-a]):(_-=C/Math.abs(C)*n,nt=[x+a,_],ot=[x-a,_]),p.routepath+="L "+x+" "+_+" ",n>0&&(p.arrowpath="M "+X[0]+" "+X[1]+" L "+nt[0]+" "+nt[1]+" L "+ot[0]+" "+ot[1])}return p},e}();Lu.GridRouter=jhe});var QK=pe(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var zhe=xh(),z6=M3(),Hhe=ku(),Ghe=T3(),Uhe=function(){function e(r,i){this.source=r,this.target=i}return e.prototype.actualLength=function(r){var i=this;return Math.sqrt(r.reduce(function(a,n){var p=n[i.target]-n[i.source];return a+p*p},0))},e}();Ch.Link3D=Uhe;var $he=function(){function e(r,i,a){r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),this.x=r,this.y=i,this.z=a}return e}();Ch.Node3D=$he;var Whe=function(){function e(r,i,a){var n=this;a===void 0&&(a=1),this.nodes=r,this.links=i,this.idealLinkLength=a,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(e.k);for(var p=0;p"u"&&(d[v]=Math.random())}n.result[0][u]=d.x,n.result[1][u]=d.y,n.result[2][u]=d.z})}return e.prototype.linkLength=function(r){return r.actualLength(this.result)},e.prototype.start=function(r){var i=this;r===void 0&&(r=100);var a=this.nodes.length,n=new Qhe;this.useJaccardLinkLengths&&Ghe.jaccardLinkLengths(this.links,n,1.5),this.links.forEach(function(v){return v.length*=i.idealLinkLength});var p=new zhe.Calculator(a,this.links,function(v){return v.source},function(v){return v.target},function(v){return v.length}).DistanceMatrix(),d=z6.Descent.createSquareMatrix(a,function(v,C){return p[v][C]}),u=z6.Descent.createSquareMatrix(a,function(){return 2});this.links.forEach(function(v){var C=v.source,S=v.target;return u[C][S]=u[S][C]=1}),this.descent=new z6.Descent(this.result,d),this.descent.threshold=.001,this.descent.G=u,this.constraints&&(this.descent.project=new Hhe.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var x=0;x{"use strict";Object.defineProperty(G3,"__esModule",{value:!0});var H6=Ru(),Yhe=j6();function Jhe(e,r,i,a){e.cola.start(0,0,0,10,!1);var n=Khe(e.cola.nodes(),e.cola.groups(),i,a);return n.routeEdges(e.powerGraph.powerEdges,r,function(p){return p.source.routerNode.id},function(p){return p.target.routerNode.id})}G3.gridify=Jhe;function Khe(e,r,i,a){e.forEach(function(p){p.routerNode={name:p.name,bounds:p.bounds.inflate(-i)}}),r.forEach(function(p){p.routerNode={bounds:p.bounds.inflate(-a),children:(typeof p.groups<"u"?p.groups.map(function(d){return e.length+d.id}):[]).concat(typeof p.leaves<"u"?p.leaves.map(function(d){return d.index}):[])}});var n=e.concat(r).map(function(p,d){return p.routerNode.id=d,p.routerNode});return new Yhe.GridRouter(n,{getChildren:function(p){return p.children},getBounds:function(p){return p.bounds}},i-a)}function Xhe(e,r,i){var a;e.nodes.forEach(function(u,x){return u.index=x}),new H6.Layout().avoidOverlaps(!1).nodes(e.nodes).links(e.links).powerGraphGroups(function(u){a=u,a.groups.forEach(function(x){return x.padding=i})});var n=e.nodes.length,p=[],d=e.nodes.slice(0);return d.forEach(function(u,x){return u.index=x}),a.groups.forEach(function(u){var x=u.index=u.id+n;d.push(u),typeof u.leaves<"u"&&u.leaves.forEach(function(_){return p.push({source:x,target:_.index})}),typeof u.groups<"u"&&u.groups.forEach(function(_){return p.push({source:x,target:_.id+n})})}),a.powerEdges.forEach(function(u){p.push({source:u.source.index,target:u.target.index})}),new H6.Layout().size(r).nodes(d).links(p).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:new H6.Layout().convergenceThreshold(.001).size(r).avoidOverlaps(!0).nodes(e.nodes).links(e.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(u){a=u,a.groups.forEach(function(x){x.padding=i})}).start(50,0,100,0,!1),powerGraph:a}}G3.powerGraphGridLayout=Xhe});var JK=pe(U3=>{"use strict";function sl(e){for(var r in e)U3.hasOwnProperty(r)||(U3[r]=e[r])}Object.defineProperty(U3,"__esModule",{value:!0});sl(zK());sl($K());sl(M3());sl(F6());sl(j6());sl(k6());sl(Ru());sl(QK());sl(T3());sl(b6());sl(T6());sl(w6());sl(ku());sl(xh());sl(A3());sl(YK())});var z7=pe((aZ,j7)=>{(function(e){typeof aZ=="object"&&typeof j7<"u"?j7.exports=e():typeof define=="function"&&define.amd?define([],e):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).ExcelJS=e()})(function(){return function e(r,i,a){function n(u,x){if(!i[u]){if(!r[u]){var _=typeof Vs=="function"&&Vs;if(!x&&_)return _(u,!0);if(p)return p(u,!0);var v=new Error("Cannot find module '"+u+"'");throw v.code="MODULE_NOT_FOUND",v}var C=i[u]={exports:{}};r[u][0].call(C.exports,function(S){return n(r[u][1][S]||S)},C,C.exports,e,r,i,a)}return i[u].exports}for(var p=typeof Vs=="function"&&Vs,d=0;d{let I=this.workbook.addWorksheet(S.sheetName),T=S.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],A=S.map||function(G){if(G==="")return null;let J=Number(G);if(!Number.isNaN(J)&&J!==1/0)return J;let at=T.reduce((nt,ot)=>{if(nt)return nt;let ht=u(G,ot,!0);return ht.isValid()?ht:null},null);if(at)return new Date(at.valueOf());let X=v[G];return X!==void 0?X:G},V=n.parse(S.parserOptions).on("data",G=>{I.addRow(G.map(A))}).on("end",()=>{V.emit("worksheet",I)});V.on("worksheet",E).on("error",w),C.pipe(V)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(C,S){return new Promise((E,w)=>{S=S||{};let I=this.workbook.getWorksheet(S.sheetName||S.sheetId),T=n.format(S.formatterOptions);C.on("finish",()=>{E()}),T.on("error",w),T.pipe(C);let{dateFormat:A,dateUTC:V}=S,G=S.map||(X=>{if(X){if(X.text||X.hyperlink)return X.hyperlink||X.text||"";if(X.formula||X.result)return X.result||"";if(X instanceof Date)return A?V?u.utc(X).format(A):u(X).format(A):V?u.utc(X).format():u(X).format();if(X.error)return X.error;if(typeof X=="object")return JSON.stringify(X)}return X}),J=S.includeEmptyRows===void 0||S.includeEmptyRows,at=1;I&&I.eachRow((X,nt)=>{if(J)for(;at++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=d,u)if(typeof u=="string"){let _=a.decodeAddress(u);this.nativeCol=_.col+x,this.nativeColOff=0,this.nativeRow=_.row+x,this.nativeRowOff=0}else u.nativeCol!==void 0?(this.nativeCol=u.nativeCol||0,this.nativeColOff=u.nativeColOff||0,this.nativeRow=u.nativeRow||0,this.nativeRowOff=u.nativeRowOff||0):u.col!==void 0?(this.col=u.col+x,this.row=u.row+x):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(d){return d instanceof n||d==null?d:new n(d)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(d){this.nativeCol=Math.floor(d),this.nativeColOff=Math.floor((d-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(d){this.nativeRow=Math.floor(d),this.nativeRowOff=Math.floor((d-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(d){this.nativeCol=d.nativeCol,this.nativeColOff=d.nativeColOff,this.nativeRow=d.nativeRow,this.nativeRowOff=d.nativeRowOff}}r.exports=n},{"../utils/col-cache":19}],3:[function(e,r,i){"use strict";let a=e("../utils/col-cache"),n=e("../utils/under-dash"),p=e("./enums"),{slideFormula:d}=e("../utils/shared-formula"),u=e("./note");class x{constructor(C,S,E){if(!C||!S)throw new Error("A Cell needs a Row");this._row=C,this._column=S,a.validateAddress(E),this._address=E,this._value=_.create(x.Types.Null,this),this.style=this._mergeStyle(C.style,S.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(C){this.style.numFmt=C}get font(){return this.style.font}set font(C){this.style.font=C}get alignment(){return this.style.alignment}set alignment(C){this.style.alignment=C}get border(){return this.style.border}set border(C){this.style.border=C}get fill(){return this.style.fill}set fill(C){this.style.fill=C}get protection(){return this.style.protection}set protection(C){this.style.protection=C}_mergeStyle(C,S,E){let w=C&&C.numFmt||S&&S.numFmt;w&&(E.numFmt=w);let I=C&&C.font||S&&S.font;I&&(E.font=I);let T=C&&C.alignment||S&&S.alignment;T&&(E.alignment=T);let A=C&&C.border||S&&S.border;A&&(E.border=A);let V=C&&C.fill||S&&S.fill;V&&(E.fill=V);let G=C&&C.protection||S&&S.protection;return G&&(E.protection=G),E}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===x.Types.Merge}merge(C,S){this._value.release(),this._value=_.create(x.Types.Merge,this,C),S||(this.style=C.style)}unmerge(){this.type===x.Types.Merge&&(this._value.release(),this._value=_.create(x.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(C){return this._value.type===x.Types.Merge&&this._value.isMergedTo(C)}get master(){return this.type===x.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===x.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(C){this.type!==x.Types.Merge?(this._value.release(),this._value=_.create(_.getType(C),this,C)):this._value.master.value=C}get note(){return this._comment&&this._comment.note}set note(C){this._comment=new u(C)}get text(){return this._value.toString()}get html(){return n.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(C){this.type===x.Types.String&&(this._value=_.create(x.Types.Hyperlink,this,{text:this._value.value,hyperlink:C}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){let{worksheet:C}=this._row;return{sheetName:C.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(C){this.names=[C]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(C){let{definedNames:S}=this.workbook;S.removeAllNames(this.fullAddress),C.forEach(E=>{S.addEx(this.fullAddress,E)})}addName(C){this.workbook.definedNames.addEx(this.fullAddress,C)}removeName(C){this.workbook.definedNames.removeEx(this.fullAddress,C)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(C){this._dataValidations.add(this.address,C)}get model(){let{model:C}=this._value;return C.style=this.style,this._comment&&(C.comment=this._comment.model),C}set model(C){if(this._value.release(),this._value=_.create(C.type,this),this._value.model=C,C.comment)switch(C.comment.type){case"note":this._comment=u.fromModel(C.comment)}C.style?this.style=C.style:this.style={}}}x.Types=p.ValueType;let _={getType:v=>v==null?x.Types.Null:v instanceof String||typeof v=="string"?x.Types.String:typeof v=="number"?x.Types.Number:typeof v=="boolean"?x.Types.Boolean:v instanceof Date?x.Types.Date:v.text&&v.hyperlink?x.Types.Hyperlink:v.formula||v.sharedFormula?x.Types.Formula:v.richText?x.Types.RichText:v.sharedString?x.Types.SharedString:v.error?x.Types.Error:x.Types.JSON,types:[{t:x.Types.Null,f:class{constructor(v){this.model={address:v.address,type:x.Types.Null}}get value(){return null}set value(v){}get type(){return x.Types.Null}get effectiveType(){return x.Types.Null}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return""}release(){}toString(){return""}}},{t:x.Types.Number,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Number,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.Number}get effectiveType(){return x.Types.Number}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:x.Types.String,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.String,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.String}get effectiveType(){return x.Types.String}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:x.Types.Date,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Date,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.Date}get effectiveType(){return x.Types.Date}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:x.Types.Hyperlink,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Hyperlink,text:C?C.text:void 0,hyperlink:C?C.hyperlink:void 0},C&&C.tooltip&&(this.model.tooltip=C.tooltip)}get value(){let v={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(v.tooltip=this.model.tooltip),v}set value(v){this.model={text:v.text,hyperlink:v.hyperlink},v.tooltip&&(this.model.tooltip=v.tooltip)}get text(){return this.model.text}set text(v){this.model.text=v}get hyperlink(){return this.model.hyperlink}set hyperlink(v){this.model.hyperlink=v}get type(){return x.Types.Hyperlink}get effectiveType(){return x.Types.Hyperlink}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:x.Types.Formula,f:class{constructor(v,C){this.cell=v,this.model={address:v.address,type:x.Types.Formula,shareType:C?C.shareType:void 0,ref:C?C.ref:void 0,formula:C?C.formula:void 0,sharedFormula:C?C.sharedFormula:void 0,result:C?C.result:void 0}}_copyModel(v){let C={},S=E=>{let w=v[E];w&&(C[E]=w)};return S("formula"),S("result"),S("ref"),S("shareType"),S("sharedFormula"),C}get value(){return this._copyModel(this.model)}set value(v){this.model=this._copyModel(v)}validate(v){switch(_.getType(v)){case x.Types.Null:case x.Types.String:case x.Types.Number:case x.Types.Date:break;case x.Types.Hyperlink:case x.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(v){this.model.formula=v}get formulaType(){return this.model.formula?p.FormulaType.Master:this.model.sharedFormula?p.FormulaType.Shared:p.FormulaType.None}get result(){return this.model.result}set result(v){this.model.result=v}get type(){return x.Types.Formula}get effectiveType(){let v=this.model.result;return v==null?p.ValueType.Null:v instanceof String||typeof v=="string"?p.ValueType.String:typeof v=="number"?p.ValueType.Number:v instanceof Date?p.ValueType.Date:v.text&&v.hyperlink?p.ValueType.Hyperlink:v.formula?p.ValueType.Formula:p.ValueType.Null}get address(){return this.model.address}set address(v){this.model.address=v}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:v}=this.cell,C=v.findCell(this.model.sharedFormula);this._translatedFormula=C&&d(C.formula,C.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:x.Types.Merge,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Merge,master:C?C.address:void 0},this._master=C,C&&C.addMergeRef()}get value(){return this._master.value}set value(v){v instanceof x?(this._master&&this._master.releaseMergeRef(),v.addMergeRef(),this._master=v):this._master.value=v}isMergedTo(v){return v===this._master}get master(){return this._master}get type(){return x.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:x.Types.JSON,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.String,value:JSON.stringify(C),rawValue:C}}get value(){return this.model.rawValue}set value(v){this.model.rawValue=v,this.model.value=JSON.stringify(v)}get type(){return x.Types.String}get effectiveType(){return x.Types.String}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:x.Types.SharedString,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.SharedString,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.SharedString}get effectiveType(){return x.Types.SharedString}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:x.Types.RichText,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.String,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}toString(){return this.model.value.richText.map(v=>v.text).join("")}get type(){return x.Types.RichText}get effectiveType(){return x.Types.RichText}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:x.Types.Boolean,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Boolean,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.Boolean}get effectiveType(){return x.Types.Boolean}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:x.Types.Error,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Error,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.Error}get effectiveType(){return x.Types.Error}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((v,C)=>(v[C.t]=C.f,v),[]),create(v,C,S){let E=this.types[v];if(!E)throw new Error("Could not create Value of type "+v);return new E(C,S)}};r.exports=x},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,r,i){"use strict";let a=e("../utils/under-dash"),n=e("./enums"),p=e("../utils/col-cache");class d{constructor(x,_,v){this._worksheet=x,this._number=_,v!==!1&&(this.defn=v)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return p.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(x){x?(this.key=x.key,this.width=x.width!==void 0?x.width:9,this.outlineLevel=x.outlineLevel,x.style?this.style=x.style:this.style={},this.header=x.header,this._hidden=!!x.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(x){x!==void 0?(this._header=x,this.headers.forEach((_,v)=>{this._worksheet.getCell(v+1,this.number).value=_})):this._header=void 0}get key(){return this._key}set key(x){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=x,x&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(x){this._hidden=x}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(x){this._outlineLevel=x}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(x){return this.width===x.width&&this.hidden===x.hidden&&this.outlineLevel===x.outlineLevel&&a.isEqual(this.style,x.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;let x=this.style;return!x||!(x.font||x.numFmt||x.alignment||x.border||x.fill||x.protection)}get headerCount(){return this.headers.length}eachCell(x,_){let v=this.number;_||(_=x,x=null),this._worksheet.eachRow(x,(C,S)=>{_(C.getCell(v),S)})}get values(){let x=[];return this.eachCell((_,v)=>{_&&_.type!==n.ValueType.Null&&(x[v]=_.value)}),x}set values(x){if(!x)return;let _=this.number,v=0;x.hasOwnProperty("0")&&(v=1),x.forEach((C,S)=>{this._worksheet.getCell(S+v,_).value=C})}_applyStyle(x,_){return this.style[x]=_,this.eachCell(v=>{v[x]=_}),_}get numFmt(){return this.style.numFmt}set numFmt(x){this._applyStyle("numFmt",x)}get font(){return this.style.font}set font(x){this._applyStyle("font",x)}get alignment(){return this.style.alignment}set alignment(x){this._applyStyle("alignment",x)}get protection(){return this.style.protection}set protection(x){this._applyStyle("protection",x)}get border(){return this.style.border}set border(x){this._applyStyle("border",x)}get fill(){return this.style.fill}set fill(x){this._applyStyle("fill",x)}static toModel(x){let _=[],v=null;return x&&x.forEach((C,S)=>{C.isDefault?v&&(v=null):v&&C.equivalentTo(v)?v.max=S+1:(v={min:S+1,max:S+1,width:C.width!==void 0?C.width:9,style:C.style,isCustomWidth:C.isCustomWidth,hidden:C.hidden,outlineLevel:C.outlineLevel,collapsed:C.collapsed},_.push(v))}),_.length?_:void 0}static fromModel(x,_){let v=[],C=1,S=0;for(_=(_=_||[]).sort(function(E,w){return E.min-w.min});S<_.length;){let E=_[S++];for(;C{_.removeCellEx(x)})}forEach(x){a.each(this.matrixMap,(_,v)=>{_.forEach(C=>{x(v,C)})})}getNames(x){return this.getNamesEx(n.decodeEx(x))}getNamesEx(x){return a.map(this.matrixMap,(_,v)=>_.findCellEx(x)&&v).filter(Boolean)}_explore(x,_){_.mark=!1;let{sheetName:v}=_,C=new d(_.row,_.col,_.row,_.col,v),S,E;function w(T,A){let V=x.findCellAt(v,T,_.col);return!(!V||!V.mark)&&(C[A]=T,V.mark=!1,!0)}for(E=_.row-1;w(E,"top");E--);for(E=_.row+1;w(E,"bottom");E++);function I(T,A){let V=[];for(E=C.top;E<=C.bottom;E++){let G=x.findCellAt(v,E,T);if(!G||!G.mark)return!1;V.push(G)}C[A]=T;for(let G=0;G{v.mark=!0}),{name:x,ranges:_.map(v=>v.mark&&this._explore(_,v)).filter(Boolean).map(v=>v.$shortRange)}):{name:x,ranges:[]}}normaliseMatrix(x,_){x.forEachInSheet(_,(v,C,S)=>{v&&(v.row===C&&v.col===S||(v.row=C,v.col=S,v.address=n.n2l(S)+C))})}spliceRows(x,_,v,C){a.each(this.matrixMap,S=>{S.spliceRows(x,_,v,C),this.normaliseMatrix(S,x)})}spliceColumns(x,_,v,C){a.each(this.matrixMap,S=>{S.spliceColumns(x,_,v,C),this.normaliseMatrix(S,x)})}get model(){return a.map(this.matrixMap,(x,_)=>this.getRanges(_,x)).filter(x=>x.ranges.length)}set model(x){let _=this.matrixMap={};x.forEach(v=>{let C=_[v.name]=new p;v.ranges.forEach(S=>{u.test(S.split("!").pop()||"")&&C.addCell(S)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,r,i){"use strict";r.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,r,i){"use strict";let a=e("../utils/col-cache"),n=e("./anchor");r.exports=class{constructor(p,d){this.worksheet=p,this.model=d}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(p){let{type:d,imageId:u,range:x,hyperlinks:_}=p;if(this.type=d,this.imageId=u,d==="image")if(typeof x=="string"){let v=a.decode(x);this.range={tl:new n(this.worksheet,{col:v.left,row:v.top},-1),br:new n(this.worksheet,{col:v.right,row:v.bottom},0),editAs:"oneCell"}}else this.range={tl:new n(this.worksheet,x.tl,0),br:x.br&&new n(this.worksheet,x.br,0),ext:x.ext,editAs:x.editAs,hyperlinks:_||x.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,r,i){"use strict";let a=e("../utils/under-dash");class n{constructor(d){this.note=d}get model(){let d=null;switch(typeof this.note){case"string":d={type:"note",note:{texts:[{text:this.note}]}};break;default:d={type:"note",note:this.note}}return a.deepMerge({},n.DEFAULT_CONFIGS,d)}set model(d){let{note:u}=d,{texts:x}=u;x.length===1&&Object.keys(x[0]).length===1?this.note=x[0].text:this.note=u}static fromModel(d){let u=new n;return u.model=d,u}}n.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},r.exports=n},{"../utils/under-dash":26}],10:[function(e,r,i){"use strict";let a=e("../utils/col-cache");class n{constructor(){this.decode(arguments)}setTLBR(d,u,x,_,v){if(arguments.length<4){let C=a.decodeAddress(d),S=a.decodeAddress(u);this.model={top:Math.min(C.row,S.row),left:Math.min(C.col,S.col),bottom:Math.max(C.row,S.row),right:Math.max(C.col,S.col),sheetName:x},this.setTLBR(C.row,C.col,S.row,S.col,v)}else this.model={top:Math.min(d,x),left:Math.min(u,_),bottom:Math.max(d,x),right:Math.max(u,_),sheetName:v}}decode(d){switch(d.length){case 5:this.setTLBR(d[0],d[1],d[2],d[3],d[4]);break;case 4:this.setTLBR(d[0],d[1],d[2],d[3]);break;case 3:this.setTLBR(d[0],d[1],d[2]);break;case 2:this.setTLBR(d[0],d[1]);break;case 1:{let u=d[0];if(u instanceof n)this.model={top:u.model.top,left:u.model.left,bottom:u.model.bottom,right:u.model.right,sheetName:u.sheetName};else if(u instanceof Array)this.decode(u);else if(u.top&&u.left&&u.bottom&&u.right)this.model={top:u.top,left:u.left,bottom:u.bottom,right:u.right,sheetName:u.sheetName};else{let x=a.decodeEx(u);x.top?this.model={top:x.top,left:x.left,bottom:x.bottom,right:x.right,sheetName:x.sheetName}:this.model={top:x.row,left:x.col,bottom:x.row,right:x.col,sheetName:x.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+d.length)}}get top(){return this.model.top||1}set top(d){this.model.top=d}get left(){return this.model.left||1}set left(d){this.model.left=d}get bottom(){return this.model.bottom||1}set bottom(d){this.model.bottom=d}get right(){return this.model.right||1}set right(d){this.model.right=d}get sheetName(){return this.model.sheetName}set sheetName(d){this.model.sheetName=d}get _serialisedSheetName(){let{sheetName:d}=this.model;return d?/^[a-zA-Z0-9]*$/.test(d)?d+"!":`'${d}'!`:""}expand(d,u,x,_){(!this.model.top||dthis.bottom)&&(this.bottom=x),(!this.model.right||_>this.right)&&(this.right=_)}expandRow(d){if(d){let{dimensions:u,number:x}=d;u&&this.expand(x,u.min,x,u.max)}}expandToAddress(d){let u=a.decodeEx(d);this.expand(u.row,u.col,u.row,u.col)}get tl(){return a.n2l(this.left)+this.top}get $t$l(){return`$${a.n2l(this.left)}$${this.top}`}get br(){return a.n2l(this.right)+this.bottom}get $b$r(){return`$${a.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(d){return(!d.sheetName||!this.sheetName||d.sheetName===this.sheetName)&&!(d.bottomthis.bottom)&&!(d.rightthis.right)}contains(d){let u=a.decodeEx(d);return this.containsEx(u)}containsEx(d){return(!d.sheetName||!this.sheetName||d.sheetName===this.sheetName)&&d.row>=this.top&&d.row<=this.bottom&&d.col>=this.left&&d.col<=this.right}forEachAddress(d){for(let u=this.left;u<=this.right;u++)for(let x=this.top;x<=this.bottom;x++)d(a.encodeAddress(x,u),x,u)}}r.exports=n},{"../utils/col-cache":19}],11:[function(e,r,i){"use strict";let a=e("../utils/under-dash"),n=e("./enums"),p=e("../utils/col-cache"),d=e("./cell");r.exports=class{constructor(u,x){this._worksheet=u,this._number=x,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(u){return this._cells[u-1]}getCellEx(u){let x=this._cells[u.col-1];if(!x){let _=this._worksheet.getColumn(u.col);x=new d(this,_,u.address),this._cells[u.col-1]=x}return x}getCell(u){if(typeof u=="string"){let x=this._worksheet.getColumnKey(u);u=x?x.number:p.l2n(u)}return this._cells[u-1]||this.getCellEx({address:p.encodeAddress(this._number,u),row:this._number,col:u})}splice(u,x){let _=u+x;for(var v=arguments.length,C=new Array(v>2?v-2:0),S=2;S0)for(I=w;I>=_;I--)T=this._cells[I-1],T?(A=this.getCell(I+E),A.value=T.value,A.style=T.style,A._comment=T._comment):this._cells[I+E-1]=void 0;for(I=0;I{_&&_.type!==n.ValueType.Null&&x(_,v+1)})}addPageBreak(u,x){let _=this._worksheet,v=Math.max(0,u-1)||0,C=Math.max(0,x-1)||16838,S={id:this._number,max:C,man:1};v&&(S.min=v),_.rowBreaks.push(S)}get values(){let u=[];return this._cells.forEach(x=>{x&&x.type!==n.ValueType.Null&&(u[x.col]=x.value)}),u}set values(u){if(this._cells=[],u)if(u instanceof Array){let x=0;u.hasOwnProperty("0")&&(x=1),u.forEach((_,v)=>{_!==void 0&&(this.getCellEx({address:p.encodeAddress(this._number,v+x),row:this._number,col:v+x}).value=_)})}else this._worksheet.eachColumnKey((x,_)=>{u[_]!==void 0&&(this.getCellEx({address:p.encodeAddress(this._number,x.number),row:this._number,col:x.number}).value=u[_])})}get hasValues(){return a.some(this._cells,u=>u&&u.type!==n.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let u=0;return this.eachCell(()=>{u++}),u}get dimensions(){let u=0,x=0;return this._cells.forEach(_=>{_&&_.type!==n.ValueType.Null&&((!u||u>_.col)&&(u=_.col),x<_.col&&(x=_.col))}),u>0?{min:u,max:x}:null}_applyStyle(u,x){return this.style[u]=x,this._cells.forEach(_=>{_&&(_[u]=x)}),x}get numFmt(){return this.style.numFmt}set numFmt(u){this._applyStyle("numFmt",u)}get font(){return this.style.font}set font(u){this._applyStyle("font",u)}get alignment(){return this.style.alignment}set alignment(u){this._applyStyle("alignment",u)}get protection(){return this.style.protection}set protection(u){this._applyStyle("protection",u)}get border(){return this.style.border}set border(u){this._applyStyle("border",u)}get fill(){return this.style.fill}set fill(u){this._applyStyle("fill",u)}get hidden(){return!!this._hidden}set hidden(u){this._hidden=u}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(u){this._outlineLevel=u}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){let u=[],x=0,_=0;return this._cells.forEach(v=>{if(v){let C=v.model;C&&((!x||x>v.col)&&(x=v.col),_{switch(_.type){case d.Types.Merge:break;default:{let v;if(_.address)v=p.decodeAddress(_.address);else if(x){let{row:C}=x,S=x.col+1;v={row:C,col:S,address:p.encodeAddress(C,S),$col$row:`$${p.n2l(S)}$${C}`}}x=v,this.getCellEx(v).model=_;break}}}),u.height?this.height=u.height:delete this.height,this.hidden=u.hidden,this.outlineLevel=u.outlineLevel||0,this.style=u.style&&JSON.parse(JSON.stringify(u.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,r,i){"use strict";let a=e("../utils/col-cache");class n{constructor(d,u,x){this.table=d,this.column=u,this.index=x}_set(d,u){this.table.cacheState(),this.column[d]=u}get name(){return this.column.name}set name(d){this._set("name",d)}get filterButton(){return this.column.filterButton}set filterButton(d){this.column.filterButton=d}get style(){return this.column.style}set style(d){this.column.style=d}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(d){this._set("totalsRowLabel",d)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(d){this._set("totalsRowFunction",d)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(d){this._set("totalsRowResult",d)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(d){this._set("totalsRowFormula",d)}}r.exports=class{constructor(p,d){this.worksheet=p,d&&(this.table=d,this.validate(),this.store())}getFormula(p){switch(p.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${p.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${p.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${p.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${p.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${p.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${p.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${p.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${p.name}])`;case"custom":return p.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+p.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){let{table:p}=this,d=(E,w,I)=>{E[w]===void 0&&(E[w]=I)};d(p,"headerRow",!0),d(p,"totalsRow",!1),d(p,"style",{}),d(p.style,"theme","TableStyleMedium2"),d(p.style,"showFirstColumn",!1),d(p.style,"showLastColumn",!1),d(p.style,"showRowStripes",!1),d(p.style,"showColumnStripes",!1);let u=(E,w)=>{if(!E)throw new Error(w)};u(p.ref,"Table must have ref"),u(p.columns,"Table must have column definitions"),u(p.rows,"Table must have row definitions"),p.tl=a.decodeAddress(p.ref);let{row:x,col:_}=p.tl;u(x>0,"Table must be on valid row"),u(_>0,"Table must be on valid col");let{width:v,filterHeight:C,tableHeight:S}=this;p.autoFilterRef=a.encode(x,_,x+C-1,_+v-1),p.tableRef=a.encode(x,_,x+S-1,_+v-1),p.columns.forEach((E,w)=>{u(E.name,`Column ${w} must have a name`),w===0?d(E,"totalsRowLabel","Total"):(d(E,"totalsRowFunction","none"),E.totalsRowFormula=this.getFormula(E))})}store(){let p=(C,S)=>{S&&Object.keys(S).forEach(E=>{C[E]=S[E]})},{worksheet:d,table:u}=this,{row:x,col:_}=u.tl,v=0;if(u.headerRow){let C=d.getRow(x+v++);u.columns.forEach((S,E)=>{let{style:w,name:I}=S,T=C.getCell(_+E);T.value=I,p(T,w)})}if(u.rows.forEach(C=>{let S=d.getRow(x+v++);C.forEach((E,w)=>{let I=S.getCell(_+w);I.value=E,p(I,u.columns[w].style)})}),u.totalsRow){let C=d.getRow(x+v++);u.columns.forEach((S,E)=>{let w=C.getCell(_+E);if(E===0)w.value=S.totalsRowLabel;else{let I=this.getFormula(S);w.value=I?{formula:S.totalsRowFormula,result:S.totalsRowResult}:null}p(w,S.style)})}}load(p){let{table:d}=this,{row:u,col:x}=d.tl,_=0;if(d.headerRow){let v=p.getRow(u+_++);d.columns.forEach((C,S)=>{v.getCell(x+S).value=C.name})}if(d.rows.forEach(v=>{let C=p.getRow(u+_++);v.forEach((S,E)=>{C.getCell(x+E).value=S})}),d.totalsRow){let v=p.getRow(u+_++);d.columns.forEach((C,S)=>{let E=v.getCell(x+S);S===0?E.value=C.totalsRowLabel:this.getFormula(C)&&(E.value={formula:C.totalsRowFormula,result:C.totalsRowResult})})}}get model(){return this.table}set model(p){this.table=p}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();let p=a.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let d=0;d1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(p,d)}getColumn(p){let d=this.table.columns[p];return new n(this,d,p)}addColumn(p,d,u){this.cacheState(),u===void 0?(this.table.columns.push(p),this.table.rows.forEach((x,_)=>{x.push(d[_])})):(this.table.columns.splice(u,0,p),this.table.rows.forEach((x,_)=>{x.splice(u,0,d[_])}))}removeColumns(p){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(p,d),this.table.rows.forEach(u=>{u.splice(p,d)})}_assign(p,d,u){this.cacheState(),p[d]=u}get ref(){return this.table.ref}set ref(p){this._assign(this.table,"ref",p)}get name(){return this.table.name}set name(p){this.table.name=p}get displayName(){return this.table.displyName||this.table.name}set displayNamename(p){this.table.displayName=p}get headerRow(){return this.table.headerRow}set headerRow(p){this._assign(this.table,"headerRow",p)}get totalsRow(){return this.table.totalsRow}set totalsRow(p){this._assign(this.table,"totalsRow",p)}get theme(){return this.table.style.name}set theme(p){this.table.style.name=p}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(p){this.table.style.showFirstColumn=p}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(p){this.table.style.showLastColumn=p}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(p){this.table.style.showRowStripes=p}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(p){this.table.style.showColumnStripes=p}}},{"../utils/col-cache":19}],13:[function(e,r,i){"use strict";let a=e("./worksheet"),n=e("./defined-names"),p=e("../xlsx/xlsx"),d=e("../csv/csv");r.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new n}get xlsx(){return this._xlsx||(this._xlsx=new p(this)),this._xlsx}get csv(){return this._csv||(this._csv=new d(this)),this._csv}get nextId(){for(let u=1;u(w&&w.orderNo)>E?w.orderNo:E,0),C=Object.assign({},x,{id:_,name:u,orderNo:v+1,workbook:this}),S=new a(C);return this._worksheets[_]=S,S}removeWorksheetEx(u){delete this._worksheets[u.id]}removeWorksheet(u){let x=this.getWorksheet(u);x&&x.destroy()}getWorksheet(u){return u===void 0?this._worksheets.find(Boolean):typeof u=="number"?this._worksheets[u]:typeof u=="string"?this._worksheets.find(x=>x&&x.name===u):void 0}get worksheets(){return this._worksheets.slice(1).sort((u,x)=>u.orderNo-x.orderNo).filter(Boolean)}eachSheet(u){this.worksheets.forEach(x=>{u(x,x.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(u){let x=this.media.length;return this.media.push(Object.assign({},u,{type:"image"})),x}getImage(u){return this.media[u]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(u=>u.model),sheets:this.worksheets.map(u=>u.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(u){this.creator=u.creator,this.lastModifiedBy=u.lastModifiedBy,this.lastPrinted=u.lastPrinted,this.created=u.created,this.modified=u.modified,this.company=u.company,this.manager=u.manager,this.title=u.title,this.subject=u.subject,this.keywords=u.keywords,this.category=u.category,this.description=u.description,this.language=u.language,this.revision=u.revision,this.contentStatus=u.contentStatus,this.properties=u.properties,this.calcProperties=u.calcProperties,this._worksheets=[],u.worksheets.forEach(x=>{let{id:_,name:v,state:C}=x,S=u.sheets&&u.sheets.findIndex(E=>E.id===_);(this._worksheets[_]=new a({id:_,name:v,orderNo:S,state:C,workbook:this})).model=x}),this._definedNames.model=u.definedNames,this.views=u.views,this._themes=u.themes,this.media=u.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,r,i){"use strict";let a=e("../utils/under-dash"),n=e("../utils/col-cache"),p=e("./range"),d=e("./row"),u=e("./column"),x=e("./enums"),_=e("./image"),v=e("./table"),C=e("./data-validations"),S=e("../utils/encryptor"),{copyStyle:E}=e("../utils/copy-style");r.exports=class{constructor(w){w=w||{},this._workbook=w.workbook,this.id=w.id,this.orderNo=w.orderNo,this.name=w.name,this.state=w.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},w.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!w.pageSetup||!w.pageSetup.fitToWidth&&!w.pageSetup.fitToHeight||w.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},w.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},w.headerFooter),this.dataValidations=new C,this.views=w.views||[],this.autoFilter=w.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(w){if(w===void 0&&(w="sheet"+this.id),this._name!==w){if(typeof w!="string")throw new Error("The name has to be a string.");if(w==="")throw new Error("The name can't be empty.");if(w==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(w))throw new Error(`Worksheet name ${w} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(w))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+w);if(w&&w.length>31&&(console.warn(`Worksheet name ${w} exceeds 31 chars. This will be truncated`),w=w.substring(0,31)),this._workbook._worksheets.find(I=>I&&I.name.toLowerCase()===w.toLowerCase()))throw new Error("Worksheet name already exists: "+w);this._name=w}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){let w=new p;return this._rows.forEach(I=>{if(I){let T=I.dimensions;T&&w.expand(I.number,T.min,I.number,T.max)}}),w}get columns(){return this._columns}set columns(w){this._headerRowCount=w.reduce((A,V)=>{let G=(V.header?1:V.headers&&V.headers.length)||0;return Math.max(A,G)},0);let I=1,T=this._columns=[];w.forEach(A=>{let V=new u(this,I++,!1);T.push(V),V.defn=A})}getColumnKey(w){return this._keys[w]}setColumnKey(w,I){this._keys[w]=I}deleteColumnKey(w){delete this._keys[w]}eachColumnKey(w){a.each(this._keys,w)}getColumn(w){if(typeof w=="string"){let I=this._keys[w];if(I)return I;w=n.l2n(w)}if(this._columns||(this._columns=[]),w>this._columns.length){let I=this._columns.length+1;for(;I<=w;)this._columns.push(new u(this,I++))}return this._columns[w-1]}spliceColumns(w,I){let T=this._rows.length;for(var A=arguments.length,V=new Array(A>2?A-2:0),G=2;G0)for(let nt=0;nt{ot.push(ct[nt]||null)});let ht=this.getRow(nt+1);ht.splice.apply(ht,ot)}else this._rows.forEach(nt=>{nt&&nt.splice(w,I)});let J=V.length-I,at=w+I,X=this._columns.length;if(J<0)for(let nt=w+V.length;nt<=X;nt++)this.getColumn(nt).defn=this.getColumn(nt-J).defn;else if(J>0)for(let nt=X;nt>=at;nt--)this.getColumn(nt+J).defn=this.getColumn(nt).defn;for(let nt=w;nt{w=Math.max(w,I.cellCount)}),w}get actualColumnCount(){let w=[],I=0;return this.eachRow(T=>{T.eachCell(A=>{let{col:V}=A;w[V]||(w[V]=!0,I++)})}),I}_commitRow(){}get _lastRowNumber(){let w=this._rows,I=w.length;for(;I>0&&w[I-1]===void 0;)I--;return I}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(w){return this._rows[w-1]}findRows(w,I){return this._rows.slice(w-1,w-1+I)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let w=0;return this.eachRow(()=>{w++}),w}getRow(w){let I=this._rows[w-1];return I||(I=this._rows[w-1]=new d(this,w)),I}getRows(w,I){if(I<1)return;let T=[];for(let A=w;A1&&arguments[1]!==void 0?arguments[1]:"n",T=this._nextRow,A=this.getRow(T);return A.values=w,this._setStyleOption(T,I[0]==="i"?I:"n"),A}addRows(w){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",T=[];return w.forEach(A=>{T.push(this.addRow(A,I))}),T}insertRow(w,I){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(w,0,I),this._setStyleOption(w,T),this.getRow(w)}insertRows(w,I){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(w,0,...I),T!=="n")for(let A=0;A1&&arguments[1]!==void 0?arguments[1]:"n";I[0]==="o"&&this.findRow(w+1)!==void 0?this._copyStyle(w+1,w,I[1]==="+"):I[0]==="i"&&this.findRow(w-1)!==void 0&&this._copyStyle(w-1,w,I[1]==="+")}_copyStyle(w,I){let T=arguments.length>2&&arguments[2]!==void 0&&arguments[2],A=this.getRow(w),V=this.getRow(I);V.style=E(A.style),A.eachCell({includeEmpty:T},(G,J)=>{V.getCell(J).style=E(G.style)}),V.height=A.height}duplicateRow(w,I){let T=arguments.length>2&&arguments[2]!==void 0&&arguments[2],A=this._rows[w-1],V=new Array(I).fill(A.values);this.spliceRows(w+1,T?0:I,...V);for(let G=0;G{J.getCell(X).style=at.style})}}spliceRows(w,I){let T=w+I;for(var A=arguments.length,V=new Array(A>2?A-2:0),G=2;G{ht.getCell(z).style=ct.style}),this._rows[nt-1]=void 0}else this._rows[nt+at-1]=void 0;else if(at>0)for(nt=X;nt>=T;nt--)if(ot=this._rows[nt-1],ot){let ht=this.getRow(nt+at);ht.values=ot.values,ht.style=ot.style,ht.height=ot.height,ot.eachCell({includeEmpty:!0},(ct,z)=>{if(ht.getCell(z).style=ct.style,ct._value.constructor.name==="MergeValue"){let U=this.getRow(ct._row._number+J).getCell(z),st=ct._value._master,M=this.getRow(st._row._number+J).getCell(st._column._number);U.merge(M)}})}else this._rows[nt+at-1]=void 0;for(nt=0;nt{T&&T.hasValues&&I(T,T.number)})}getSheetValues(){let w=[];return this._rows.forEach(I=>{I&&(w[I.number]=I.values)}),w}findCell(w,I){let T=n.getAddress(w,I),A=this._rows[T.row-1];return A?A.findCell(T.col):void 0}getCell(w,I){let T=n.getAddress(w,I);return this.getRow(T.row).getCellEx(T)}mergeCells(){for(var w=arguments.length,I=new Array(w),T=0;T{if(A.intersects(w))throw new Error("Cannot merge already merged cells")});let T=this.getCell(w.top,w.left);for(let A=w.top;A<=w.bottom;A++)for(let V=w.left;V<=w.right;V++)(A>w.top||V>w.left)&&this.getCell(A,V).merge(T,I);this._merges[T.address]=w}_unMergeMaster(w){let I=this._merges[w.address];if(I){for(let T=I.top;T<=I.bottom;T++)for(let A=I.left;A<=I.right;A++)this.getCell(T,A).unmerge();delete this._merges[w.address]}}get hasMerges(){return a.some(this._merges,Boolean)}unMergeCells(){for(var w=arguments.length,I=new Array(w),T=0;T3&&arguments[3]!==void 0?arguments[3]:"shared",V=n.decode(w),{top:G,left:J,bottom:at,right:X}=V,nt=X-J+1,ot=n.encodeAddress(G,J),ht=A==="shared",ct;ct=typeof T=="function"?T:Array.isArray(T)?Array.isArray(T[0])?(U,st)=>T[U-G][st-J]:(U,st)=>T[(U-G)*nt+(st-J)]:()=>{};let z=!0;for(let U=G;U<=at;U++)for(let st=J;st<=X;st++)z?(this.getCell(U,st).value={shareType:A,formula:I,ref:w,result:ct(U,st)},z=!1):this.getCell(U,st).value=ht?{sharedFormula:ot,result:ct(U,st)}:ct(U,st)}addImage(w,I){let T={type:"image",imageId:w,range:I};this._media.push(new _(this,T))}getImages(){return this._media.filter(w=>w.type==="image")}addBackgroundImage(w){let I={type:"background",imageId:w};this._media.push(new _(this,I))}getBackgroundImageId(){let w=this._media.find(I=>I.type==="background");return w&&w.imageId}protect(w,I){return new Promise(T=>{this.sheetProtection={sheet:!0},I&&"spinCount"in I&&(I.spinCount=Number.isFinite(I.spinCount)?Math.round(Math.max(0,I.spinCount)):1e5),w&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=S.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=I&&"spinCount"in I?I.spinCount:1e5,this.sheetProtection.hashValue=S.convertPasswordToHash(w,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),I&&(this.sheetProtection=Object.assign(this.sheetProtection,I),!w&&"spinCount"in I&&delete this.sheetProtection.spinCount),T()})}unprotect(){this.sheetProtection=null}addTable(w){let I=new v(this,w);return this.tables[w.name]=I,I}getTable(w){return this.tables[w]}removeTable(w){delete this.tables[w]}getTables(){return Object.values(this.tables)}addConditionalFormatting(w){this.conditionalFormattings.push(w)}removeConditionalFormatting(w){typeof w=="number"?this.conditionalFormattings.splice(w,1):this.conditionalFormattings=w instanceof Function?this.conditionalFormattings.filter(w):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(w){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=w}get model(){let w={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(A=>A.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(A=>A.model),conditionalFormattings:this.conditionalFormattings};w.cols=u.toModel(this.columns);let I=w.rows=[],T=w.dimensions=new p;return this._rows.forEach(A=>{let V=A&&A.model;V&&(T.expand(V.number,V.min,V.number,V.max),I.push(V))}),w.merges=[],a.each(this._merges,A=>{w.merges.push(A.range)}),w}_parseRows(w){this._rows=[],w.rows.forEach(I=>{let T=new d(this,I.number);this._rows[T.number-1]=T,T.model=I})}_parseMergeCells(w){a.each(w.mergeCells,I=>{this.mergeCellsWithoutStyle(I)})}set model(w){this.name=w.name,this._columns=u.fromModel(this,w.cols),this._parseRows(w),this._parseMergeCells(w),this.dataValidations=new C(w.dataValidations),this.properties=w.properties,this.pageSetup=w.pageSetup,this.headerFooter=w.headerFooter,this.views=w.views,this.autoFilter=w.autoFilter,this._media=w.media.map(I=>new _(this,I)),this.sheetProtection=w.sheetProtection,this.tables=w.tables.reduce((I,T)=>{let A=new v;return A.model=T,I[T.name]=A,I},{}),this.conditionalFormattings=w.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,r,i){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");let a={Workbook:e("./doc/workbook")},n=e("./doc/enums");Object.keys(n).forEach(p=>{a[p]=n[p]}),r.exports=a},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,r,i){"use strict";let a=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");i.bufferToString=function(n){return typeof n=="string"?n:a?a.decode(n):n.toString()}},{}],17:[function(e,r,i){"use strict";let a=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:n}=e("buffer");i.stringToBuffer=function(p){return typeof p!="string"?p:a?n.from(a.encode(p).buffer):n.from(p)}},{buffer:220}],18:[function(e,r,i){"use strict";let a=e("./under-dash"),n=e("./col-cache");r.exports=class{constructor(p){this.template=p,this.sheets={}}addCell(p){this.addCellEx(n.decodeEx(p))}getCell(p){return this.findCellEx(n.decodeEx(p),!0)}findCell(p){return this.findCellEx(n.decodeEx(p),!1)}findCellAt(p,d,u){let x=this.sheets[p],_=x&&x[d];return _&&_[u]}addCellEx(p){if(p.top)for(let d=p.top;d<=p.bottom;d++)for(let u=p.left;u<=p.right;u++)this.getCellAt(p.sheetName,d,u);else this.findCellEx(p,!0)}getCellEx(p){return this.findCellEx(p,!0)}findCellEx(p,d){let u=this.findSheet(p,d),x=this.findSheetRow(u,p,d);return this.findRowCell(x,p,d)}getCellAt(p,d,u){let x=this.sheets[p]||(this.sheets[p]=[]),_=x[d]||(x[d]=[]);return _[u]||(_[u]={sheetName:p,address:n.n2l(u)+d,row:d,col:u})}removeCellEx(p){let d=this.findSheet(p);if(!d)return;let u=this.findSheetRow(d,p);u&&delete u[p.col]}forEachInSheet(p,d){let u=this.sheets[p];u&&u.forEach((x,_)=>{x&&x.forEach((v,C)=>{v&&d(v,_,C)})})}forEach(p){a.each(this.sheets,(d,u)=>{this.forEachInSheet(u,p)})}map(p){let d=[];return this.forEach(u=>{d.push(p(u))}),d}findSheet(p,d){let u=p.sheetName;return this.sheets[u]?this.sheets[u]:d?this.sheets[u]=[]:void 0}findSheetRow(p,d,u){let{row:x}=d;return p&&p[x]?p[x]:u?p[x]=[]:void 0}findRowCell(p,d,u){let{col:x}=d;return p&&p[x]?p[x]:u?p[x]=this.template?Object.assign(d,JSON.parse(JSON.stringify(this.template))):d:void 0}spliceRows(p,d,u,x){let _=this.sheets[p];if(_){let v=[];for(let C=0;C{C.splice(d,u,...v)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,r,i){"use strict";let a=/^[A-Z]+\d+$/,n={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:p=>p<=26?1:p<=676?2:3,_fill(p){let d,u,x,_,v,C=1;if(p>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&p>=1){for(;C<=26;)d=this._dictionary[C-1],this._n2l[C]=d,this._l2n[d]=C,C++;this._l2nFill=1}if(this._l2nFill<2&&p>=2){for(C=27;C<=702;)u=C-27,x=u%26,_=Math.floor(u/26),d=this._dictionary[_]+this._dictionary[x],this._n2l[C]=d,this._l2n[d]=C,C++;this._l2nFill=2}if(this._l2nFill<3&&p>=3){for(C=703;C<=16384;)u=C-703,x=u%26,_=Math.floor(u/26)%26,v=Math.floor(u/676),d=this._dictionary[v]+this._dictionary[_]+this._dictionary[x],this._n2l[C]=d,this._l2n[d]=C,C++;this._l2nFill=3}},l2n(p){if(this._l2n[p]||this._fill(p.length),!this._l2n[p])throw new Error("Out of bounds. Invalid column letter: "+p);return this._l2n[p]},n2l(p){if(p<1||p>16384)throw new Error(p+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[p]||this._fill(this._level(p)),this._n2l[p]},_hash:{},validateAddress(p){if(!a.test(p))throw new Error("Invalid Address: "+p);return!0},decodeAddress(p){let d=p.length<5&&this._hash[p];if(d)return d;let u=!1,x="",_=0,v=!1,C="",S=0;for(let w,I=0;I=65&&w<=90)u=!0,x+=p[I],_=26*_+w-64;else if(w>=48&&w<=57)v=!0,C+=p[I],S=10*S+w-48;else if(v&&u&&w!==36)break;if(u){if(_>16384)throw new Error("Out of bounds. Invalid column letter: "+x)}else _=void 0;v||(S=void 0);let E={address:p=x+C,col:_,row:S,$col$row:`$${x}$${C}`};return _<=100&&S<=100&&(this._hash[p]=E,this._hash[E.$col$row]=E),E},getAddress(p,d){if(d){let u=this.n2l(d)+p;return this.decodeAddress(u)}return this.decodeAddress(p)},decode(p){let d=p.split(":");if(d.length===2){let u=this.decodeAddress(d[0]),x=this.decodeAddress(d[1]),_={top:Math.min(u.row,x.row),left:Math.min(u.col,x.col),bottom:Math.max(u.row,x.row),right:Math.max(u.col,x.col)};return _.tl=this.n2l(_.left)+_.top,_.br=this.n2l(_.right)+_.bottom,_.dimensions=`${_.tl}:${_.br}`,_}return this.decodeAddress(p)},decodeEx(p){let d=p.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),u=d[1]||d[2],x=d[3],_=x.split(":");if(_.length>1){let C=this.decodeAddress(_[0]),S=this.decodeAddress(_[1]),E=Math.min(C.row,S.row),w=Math.min(C.col,S.col),I=Math.max(C.row,S.row),T=Math.max(C.col,S.col);return C=this.n2l(w)+E,S=this.n2l(T)+I,{top:E,left:w,bottom:I,right:T,sheetName:u,tl:{address:C,col:w,row:E,$col$row:`$${this.n2l(w)}$${E}`,sheetName:u},br:{address:S,col:T,row:I,$col$row:`$${this.n2l(T)}$${I}`,sheetName:u},dimensions:`${C}:${S}`}}if(x.startsWith("#"))return u?{sheetName:u,error:x}:{error:x};let v=this.decodeAddress(x);return u?ae({sheetName:u},v):v},encodeAddress:(p,d)=>n.n2l(d)+p,encode(){switch(arguments.length){case 2:return n.encodeAddress(arguments[0],arguments[1]);case 4:return`${n.encodeAddress(arguments[0],arguments[1])}:${n.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(p,d){let[u,x,,_,v]=p,[C,S]=d;return C>=u&&C<=_&&S>=x&&S<=v}};r.exports=n},{}],20:[function(e,r,i){"use strict";let a=(p,d)=>ae(ae({},p),d.reduce((u,x)=>(p[x]&&(u[x]=ae({},p[x])),u),{})),n=function(p,d,u){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];p[u]&&(d[u]=a(p[u],x))};i.copyStyle=p=>{if(!p)return p;if(d=p,Object.keys(d).length===0)return{};var d;let u=ae({},p);return n(p,u,"font",["color"]),n(p,u,"alignment"),n(p,u,"protection"),p.border&&(n(p,u,"border"),n(p.border,u.border,"top",["color"]),n(p.border,u.border,"left",["color"]),n(p.border,u.border,"bottom",["color"]),n(p.border,u.border,"right",["color"]),n(p.border,u.border,"diagonal",["color"])),p.fill&&(n(p,u,"fill",["fgColor","bgColor","center"]),p.fill.stops&&(u.fill.stops=p.fill.stops.map(x=>a(x,["color"])))),u}},{}],21:[function(e,r,i){(function(a){(function(){"use strict";let n=e("crypto"),p={hash(d){let u=n.createHash(d);for(var x=arguments.length,_=new Array(x>1?x-1:0),v=1;vn.randomBytes(d)};r.exports=p}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,r,i){"use strict";let{SaxesParser:a}=e("saxes"),{PassThrough:n}=e("readable-stream"),{bufferToString:p}=e("./browser-buffer-decode");r.exports=function(d){return m9(this,null,function*(){d.pipe&&!d[Symbol.asyncIterator]&&(d=d.pipe(new n));let u=new a,x;u.on("error",w=>{x=w});let _=[];u.on("opentag",w=>_.push({eventType:"opentag",value:w})),u.on("text",w=>_.push({eventType:"text",value:w})),u.on("closetag",w=>_.push({eventType:"closetag",value:w}));try{for(var v=Px(d),C,S,E;C=!(S=yield new Gw(v.next())).done;C=!1){let w=S.value;if(u.write(p(w)),x)throw x;yield _,_=[]}}catch{E=[S]}finally{try{C&&(S=v.return)&&(yield new Gw(S.call(v)))}finally{if(E)throw E[0]}}})}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,r,i){"use strict";let a=e("./col-cache"),n=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,p=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;r.exports={slideFormula:function(d,u,x){let _=a.decode(u),v=a.decode(x);return d.replace(n,(C,S,E,w,I)=>{if(I)return C;let T=p.exec(w);if(T){let A=T[1],V=T[2].toUpperCase(),G=T[3],J=T[4];if(V.length>3||V.length===3&&V>"XFD")return C;let at=a.l2n(V),X=parseInt(J,10);return A||(at+=v.col-_.col),G||(X+=v.row-_.row),(S||"")+(A||"")+a.n2l(at)+(G||"")+X}return C})}}},{"./col-cache":19}],24:[function(e,r,i){(function(a,n){(function(){"use strict";let p=e("readable-stream"),d=e("./utils"),u=e("./string-buf");class x{constructor(I,T){this._data=I,this._encoding=T}get length(){return this.toBuffer().length}copy(I,T,A,V){return this.toBuffer().copy(I,T,A,V)}toBuffer(){return this._buffer||(this._buffer=n.from(this._data,this._encoding)),this._buffer}}class _{constructor(I){this._data=I}get length(){return this._data.length}copy(I,T,A,V){return this._data._buf.copy(I,T,A,V)}toBuffer(){return this._data.toBuffer()}}class v{constructor(I){this._data=I}get length(){return this._data.length}copy(I,T,A,V){this._data.copy(I,T,A,V)}toBuffer(){return this._data}}class C{constructor(I){this.size=I,this.buffer=n.alloc(I),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;let I=n.alloc(this.iWrite-this.iRead);return this.buffer.copy(I,0,this.iRead,this.iWrite),I}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(I){let T;return I===0?null:I===void 0||I>=this.length?(T=this.toBuffer(),this.iRead=this.iWrite,T):(T=n.alloc(I),this.buffer.copy(T,0,this.iRead,I),this.iRead+=I,T)}write(I,T,A){let V=Math.min(A,this.size-this.iWrite);return I.copy(this.buffer,this.iWrite,T,T+V),this.iWrite+=V,V}}let S=function(w){w=w||{},this.bufSize=w.bufSize||1048576,this.buffers=[],this.batch=w.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};d.inherits(S,p.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return n.concat(this.buffers.map(w=>w.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){let I=this.buffers[this.buffers.length-1];if(!I.full)return I}let w=new C(this.bufSize);return this.buffers.push(w),w},_pipe(w){return Zn(this,null,function*(){yield Promise.all(this.pipes.map(function(I){return new Promise(T=>{I.write(w.toBuffer(),()=>{T()})})}))})},_writeToBuffers(w){let I=0,T=w.length;for(;I1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(A),a.nextTick(T)):(yield this._pipe(A),T());else this.paused||this.emit("data",A.toBuffer()),this._writeToBuffers(A),this.emit("readable");return!0})},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(w,I,T){let A=V=>{V?T(V):(this._flush(),this.pipes.forEach(G=>{G.end()}),this.emit("finish"))};w?this.write(w,I,A):A()},read(w){let I;if(w){for(I=[];w&&this.buffers.length&&!this.buffers[0].eod;){let T=this.buffers[0],A=T.read(w);w-=A.length,I.push(A),T.eod&&T.full&&this.buffers.shift()}return n.concat(I)}return I=this.buffers.map(T=>T.toBuffer()).filter(Boolean),this.buffers=[],n.concat(I)},setEncoding(w){this.encoding=w},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(w){this.pipes.push(w),!this.paused&&this.buffers.length&&this.end()},unpipe(w){this.pipes=this.pipes.filter(I=>I!==w)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),r.exports=S}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,r,i){(function(a){(function(){"use strict";r.exports=class{constructor(n){this._buf=a.alloc(n&&n.size||16384),this._encoding=n&&n.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=a.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(n){n=n||0,this._buffer=void 0,this._inPos=n}_grow(n){let p=2*this._buf.length;for(;p=this._buf.length-4;)this._grow(this._inPos+n.length),p=this._inPos+this._buf.write(n,this._inPos,this._encoding);this._inPos=p}addStringBuf(n){n.length&&(this._buffer=void 0,this.length+n.length>this.capacity&&this._grow(this.length+n.length),n._buf.copy(this._buf,this._inPos,0,n.length),this._inPos+=n.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,r,i){"use strict";let{toString:a}=Object.prototype,n=/["&<>]/,p={each:function(d,u){d&&(Array.isArray(d)?d.forEach(u):Object.keys(d).forEach(x=>{u(d[x],x)}))},some:function(d,u){return!!d&&(Array.isArray(d)?d.some(u):Object.keys(d).some(x=>u(d[x],x)))},every:function(d,u){return!d||(Array.isArray(d)?d.every(u):Object.keys(d).every(x=>u(d[x],x)))},map:function(d,u){return d?Array.isArray(d)?d.map(u):Object.keys(d).map(x=>u(d[x],x)):[]},keyBy:(d,u)=>d.reduce((x,_)=>(x[_[u]]=_,x),{}),isEqual:function(d,u){let x=typeof d,_=typeof u,v=Array.isArray(d),C=Array.isArray(u),S;if(x!==_)return!1;switch(typeof d){case"object":if(v||C)return!(!v||!C)&&d.length===u.length&&d.every((E,w)=>{let I=u[w];return p.isEqual(E,I)});if(d===null||u===null)return d===u;if(S=Object.keys(d),Object.keys(u).length!==S.length)return!1;for(let E of S)if(!u.hasOwnProperty(E))return!1;return p.every(d,(E,w)=>{let I=u[w];return p.isEqual(E,I)});default:return d===u}},escapeHtml(d){let u=n.exec(d);if(!u)return d;let x="",_="",v=0,C=u.index;for(;C":_=">";break;default:continue}v!==C&&(x+=d.substring(v,C)),v=C+1,x+=_}return v!==C?x+d.substring(v,C):x},strcmp:(d,u)=>du?1:0,isUndefined:d=>a.call(d)==="[object Undefined]",isObject:d=>a.call(d)==="[object Object]",deepMerge(){let d=arguments[0]||{},{length:u}=arguments,x,_,v;function C(S,E){x=d[E],v=Array.isArray(S),p.isObject(S)||v?(v?(v=!1,_=x&&Array.isArray(x)?x:[]):_=x&&p.isObject(x)?x:{},d[E]=p.deepMerge(_,S)):p.isUndefined(S)||(d[E]=S)}for(let S=0;S&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,u={nop(){},promiseImmediate:x=>new Promise(_=>{a.setImmediate?n(()=>{_(x)}):setTimeout(()=>{_(x)},1)}),inherits:function(x,_,v,C){x.super_=_,C||(C=v,v=null),v&&Object.keys(v).forEach(E=>{Object.defineProperty(x,E,Object.getOwnPropertyDescriptor(v,E))});let S={constructor:{value:x,enumerable:!1,writable:!1,configurable:!0}};C&&Object.keys(C).forEach(E=>{S[E]=Object.getOwnPropertyDescriptor(C,E)}),x.prototype=Object.create(_.prototype,S)},dateToExcel:(x,_)=>25569+x.getTime()/864e5-(_?1462:0),excelToDate(x,_){let v=Math.round(24*(x-25569+(_?1462:0))*3600*1e3);return new Date(v)},parsePath(x){let _=x.lastIndexOf("/");return{path:x.substring(0,_),name:x.substring(_+1)}},getRelsPath(x){let _=u.parsePath(x);return`${_.path}/_rels/${_.name}.rels`},xmlEncode(x){let _=d.exec(x);if(!_)return x;let v="",C="",S=0,E=_.index;for(;E=11&&w!==13)){C="";break}continue}S!==E&&(v+=x.substring(S,E)),S=E+1,C&&(v+=C)}return S!==E?v+x.substring(S,E):v},xmlDecode:x=>x.replace(/&([a-z]*);/g,_=>{switch(_){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return _}}),validInt(x){let _=parseInt(x,10);return Number.isNaN(_)?0:_},isDateFmt(x){return x?(x=(x=x.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:x=>new Promise(_=>{p.access(x,p.constants.F_OK,v=>{_(!v)})})},toIsoDateString:x=>x.toIsoString().subsstr(0,10),parseBoolean:x=>x===!0||x==="true"||x===1||x==="1"};r.exports=u}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,r,i){"use strict";let a=e("./under-dash"),n=e("./utils");function p(x,_,v){x.push(` ${_}="${n.xmlEncode(v.toString())}"`)}function d(x,_){if(_){let v=[];a.each(_,(C,S)=>{C!==void 0&&p(v,S,C)}),x.push(v.join(""))}}class u{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(_){let v=this._xml;v.push(" +}`;var xa=l9(function(){return Qa(le,Sn+"return "+Ri).apply(e,De)});if(xa.source=Ri,Aw(xa))throw xa;return xa}function Ort(D){return Xa(D).toLowerCase()}function Art(D){return Xa(D).toUpperCase()}function Frt(D,q,tt){if(D=Xa(D),D&&(tt||q===e))return x8(D);if(!D||!(q=zl(q)))return D;var St=Rs(D),Vt=Rs(q),le=g8(St,Vt),De=_8(St,Vt)+1;return Tp(St,le,De).join("")}function krt(D,q,tt){if(D=Xa(D),D&&(tt||q===e))return D.slice(0,b8(D)+1);if(!D||!(q=zl(q)))return D;var St=Rs(D),Vt=_8(St,Rs(q))+1;return Tp(St,0,Vt).join("")}function Rrt(D,q,tt){if(D=Xa(D),D&&(tt||q===e))return D.replace(ke,"");if(!D||!(q=zl(q)))return D;var St=Rs(D),Vt=g8(St,Rs(q));return Tp(St,Vt).join("")}function Brt(D,q){var tt=ot,St=ht;if(jr(q)){var Vt="separator"in q?q.separator:Vt;tt="length"in q?ua(q.length):tt,St="omission"in q?zl(q.omission):St}D=Xa(D);var le=D.length;if(fd(D)){var De=Rs(D);le=De.length}if(tt>=le)return D;var ze=tt-hd(St);if(ze<1)return St;var Je=De?Tp(De,0,ze).join(""):D.slice(0,ze);if(Vt===e)return Je+St;if(De&&(ze+=Je.length-ze),Fw(Vt)){if(D.slice(ze).search(Vt)){var Ii,Di=Je;for(Vt.global||(Vt=Y5(Vt.source,Xa(sn.exec(Vt))+"g")),Vt.lastIndex=0;Ii=Vt.exec(Di);)var Ri=Ii.index;Je=Je.slice(0,Ri===e?ze:Ri)}}else if(D.indexOf(zl(Vt),ze)!=ze){var rn=Je.lastIndexOf(Vt);rn>-1&&(Je=Je.slice(0,rn))}return Je+St}function Nrt(D){return D=Xa(D),D&&Un.test(D)?D.replace(Mn,ctt):D}var Lrt=Cd(function(D,q,tt){return D+(tt?" ":"")+q.toUpperCase()}),Bw=sO("toUpperCase");function o9(D,q,tt){return D=Xa(D),q=tt?e:q,q===e?rtt(D)?utt(D):JZ(D):D.match(q)||[]}var l9=ba(function(D,q){try{return ql(D,e,q)}catch(tt){return Aw(tt)?tt:new aa(tt)}}),Vrt=L0(function(D,q){return rs(q,function(tt){tt=l0(tt),B0(D,tt,Dw(D[tt],D))}),D});function qrt(D){var q=D==null?0:D.length,tt=Nn();return D=q?Rr(D,function(St){if(typeof St[1]!="function")throw new os(n);return[tt(St[0]),St[1]]}):[],ba(function(St){for(var Vt=-1;++VtB)return[];var tt=H,St=tl(D,H);q=Nn(q),D-=H;for(var Vt=$5(St,q);++tt0||q<0)?new Da(tt):(D<0?tt=tt.takeRight(-D):D&&(tt=tt.drop(D)),q!==e&&(q=ua(q),tt=q<0?tt.dropRight(-q):tt.take(q-D)),tt)},Da.prototype.takeRightWhile=function(D){return this.reverse().takeWhile(D).reverse()},Da.prototype.toArray=function(){return this.take(H)},r0(Da.prototype,function(D,q){var tt=/^(?:filter|find|map|reject)|While$/.test(q),St=/^(?:head|last)$/.test(q),Vt=ie[St?"take"+(q=="last"?"Right":""):q],le=St||/^find/.test(q);Vt&&(ie.prototype[q]=function(){var De=this.__wrapped__,ze=St?[1]:arguments,Je=De instanceof Da,Ii=ze[0],Di=Je||sa(De),Ri=function(Ia){var Ra=Vt.apply(ie,Cp([Ia],ze));return St&&rn?Ra[0]:Ra};Di&&tt&&typeof Ii=="function"&&Ii.length!=1&&(Je=Di=!1);var rn=this.__chain__,Sn=!!this.__actions__.length,Vn=le&&!rn,xa=Je&&!Sn;if(!le&&Di){De=xa?De:new Da(this);var qn=D.apply(De,ze);return qn.__actions__.push({func:gx,args:[Ri],thisArg:e}),new ls(qn,rn)}return Vn&&xa?D.apply(this,ze):(qn=this.thru(Ri),Vn?St?qn.value()[0]:qn.value():qn)})}),rs(["pop","push","shift","sort","splice","unshift"],function(D){var q=Hh[D],tt=/^(?:push|sort|unshift)$/.test(D)?"tap":"thru",St=/^(?:pop|shift)$/.test(D);ie.prototype[D]=function(){var Vt=arguments;if(St&&!this.__chain__){var le=this.value();return q.apply(sa(le)?le:[],Vt)}return this[tt](function(De){return q.apply(sa(De)?De:[],Vt)})}}),r0(Da.prototype,function(D,q){var tt=ie[q];if(tt){var St=tt.name+"";rr.call(_d,St)||(_d[St]=[]),_d[St].push({name:q,func:tt})}}),_d[cx(e,I).name]=[{name:"wrapper",func:e}],Da.prototype.clone=Rtt,Da.prototype.reverse=Btt,Da.prototype.value=Ntt,ie.prototype.at=fnt,ie.prototype.chain=hnt,ie.prototype.commit=xnt,ie.prototype.next=gnt,ie.prototype.plant=vnt,ie.prototype.reverse=bnt,ie.prototype.toJSON=ie.prototype.valueOf=ie.prototype.value=Cnt,ie.prototype.first=ie.prototype.head,ef&&(ie.prototype[ef]=_nt),ie},Sp=ftt();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Mo._=Sp,define(function(){return Sp})):dm?((dm.exports=Sp)._=Sp,L5._=Sp):Mo._=Sp}).call(Ud)});var qB=pe($_=>{"use strict";$_.byteLength=Mht;$_.toByteArray=Oht;$_.fromByteArray=kht;var P0=[],Ss=[],Tht=typeof Uint8Array<"u"?Uint8Array:Array,QE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(jm=0,LB=QE.length;jm0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");i===-1&&(i=r);var a=i===r?0:4-i%4;return[i,a]}function Mht(e){var r=VB(e),i=r[0],a=r[1];return(i+a)*3/4-a}function Dht(e,r,i){return(r+i)*3/4-i}function Oht(e){var r,i=VB(e),a=i[0],n=i[1],p=new Tht(Dht(e,a,n)),d=0,u=n>0?a-4:a,x;for(x=0;x>16&255,p[d++]=r>>8&255,p[d++]=r&255;return n===2&&(r=Ss[e.charCodeAt(x)]<<2|Ss[e.charCodeAt(x+1)]>>4,p[d++]=r&255),n===1&&(r=Ss[e.charCodeAt(x)]<<10|Ss[e.charCodeAt(x+1)]<<4|Ss[e.charCodeAt(x+2)]>>2,p[d++]=r>>8&255,p[d++]=r&255),p}function Aht(e){return P0[e>>18&63]+P0[e>>12&63]+P0[e>>6&63]+P0[e&63]}function Fht(e,r,i){for(var a,n=[],p=r;pu?u:d+p));return a===1?(r=e[i-1],n.push(P0[r>>2]+P0[r<<4&63]+"==")):a===2&&(r=(e[i-2]<<8)+e[i-1],n.push(P0[r>>10]+P0[r>>4&63]+P0[r<<2&63]+"=")),n.join("")}});var jB=pe(YE=>{YE.read=function(e,r,i,a,n){var p,d,u=n*8-a-1,x=(1<>1,v=-7,C=i?n-1:0,S=i?-1:1,E=e[r+C];for(C+=S,p=E&(1<<-v)-1,E>>=-v,v+=u;v>0;p=p*256+e[r+C],C+=S,v-=8);for(d=p&(1<<-v)-1,p>>=-v,v+=a;v>0;d=d*256+e[r+C],C+=S,v-=8);if(p===0)p=1-_;else{if(p===x)return d?NaN:(E?-1:1)*(1/0);d=d+Math.pow(2,a),p=p-_}return(E?-1:1)*d*Math.pow(2,p-a)};YE.write=function(e,r,i,a,n,p){var d,u,x,_=p*8-n-1,v=(1<<_)-1,C=v>>1,S=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=a?0:p-1,w=a?1:-1,I=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,d=v):(d=Math.floor(Math.log(r)/Math.LN2),r*(x=Math.pow(2,-d))<1&&(d--,x*=2),d+C>=1?r+=S/x:r+=S*Math.pow(2,1-C),r*x>=2&&(d++,x/=2),d+C>=v?(u=0,d=v):d+C>=1?(u=(r*x-1)*Math.pow(2,n),d=d+C):(u=r*Math.pow(2,C-1)*Math.pow(2,n),d=0));n>=8;e[i+E]=u&255,E+=w,u/=256,n-=8);for(d=d<0;e[i+E]=d&255,E+=w,d/=256,_-=8);e[i+E-w]|=I*128}});var tN=pe(su=>{"use strict";var JE=qB(),lu=jB(),zB=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;su.Buffer=Pi;su.SlowBuffer=qht;su.INSPECT_MAX_BYTES=50;var W_=2147483647;su.kMaxLength=W_;Pi.TYPED_ARRAY_SUPPORT=Rht();!Pi.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Rht(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(Pi.prototype,"parent",{enumerable:!0,get:function(){if(Pi.isBuffer(this))return this.buffer}});Object.defineProperty(Pi.prototype,"offset",{enumerable:!0,get:function(){if(Pi.isBuffer(this))return this.byteOffset}});function ap(e){if(e>W_)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,Pi.prototype),r}function Pi(e,r,i){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return tI(e)}return UB(e,r,i)}Pi.poolSize=8192;function UB(e,r,i){if(typeof e=="string")return Nht(e,r);if(ArrayBuffer.isView(e))return Lht(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(E0(e,ArrayBuffer)||e&&E0(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(E0(e,SharedArrayBuffer)||e&&E0(e.buffer,SharedArrayBuffer)))return XE(e,r,i);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return Pi.from(a,r,i);var n=Vht(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Pi.from(e[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Pi.from=function(e,r,i){return UB(e,r,i)};Object.setPrototypeOf(Pi.prototype,Uint8Array.prototype);Object.setPrototypeOf(Pi,Uint8Array);function $B(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Bht(e,r,i){return $B(e),e<=0?ap(e):r!==void 0?typeof i=="string"?ap(e).fill(r,i):ap(e).fill(r):ap(e)}Pi.alloc=function(e,r,i){return Bht(e,r,i)};function tI(e){return $B(e),ap(e<0?0:eI(e)|0)}Pi.allocUnsafe=function(e){return tI(e)};Pi.allocUnsafeSlow=function(e){return tI(e)};function Nht(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Pi.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=WB(e,r)|0,a=ap(i),n=a.write(e,r);return n!==i&&(a=a.slice(0,n)),a}function KE(e){for(var r=e.length<0?0:eI(e.length)|0,i=ap(r),a=0;a=W_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W_.toString(16)+" bytes");return e|0}function qht(e){return+e!=e&&(e=0),Pi.alloc(+e)}Pi.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Pi.prototype};Pi.compare=function(r,i){if(E0(r,Uint8Array)&&(r=Pi.from(r,r.offset,r.byteLength)),E0(i,Uint8Array)&&(i=Pi.from(i,i.offset,i.byteLength)),!Pi.isBuffer(r)||!Pi.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;for(var a=r.length,n=i.length,p=0,d=Math.min(a,n);pn.length?Pi.from(d).copy(n,p):Uint8Array.prototype.set.call(n,d,p);else if(Pi.isBuffer(d))d.copy(n,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=d.length}return n};function WB(e,r){if(Pi.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||E0(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&i===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return ZE(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return ZB(e).length;default:if(n)return a?-1:ZE(e).length;r=(""+r).toLowerCase(),n=!0}}Pi.byteLength=WB;function jht(e,r,i){var a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Kht(this,r,i);case"utf8":case"utf-8":return YB(this,r,i);case"ascii":return Yht(this,r,i);case"latin1":case"binary":return Jht(this,r,i);case"base64":return Wht(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xht(this,r,i);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Pi.prototype._isBuffer=!0;function zm(e,r,i){var a=e[r];e[r]=e[i],e[i]=a}Pi.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;ii&&(r+=" ... "),""};zB&&(Pi.prototype[zB]=Pi.prototype.inspect);Pi.prototype.compare=function(r,i,a,n,p){if(E0(r,Uint8Array)&&(r=Pi.from(r,r.offset,r.byteLength)),!Pi.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),p===void 0&&(p=this.length),i<0||a>r.length||n<0||p>this.length)throw new RangeError("out of range index");if(n>=p&&i>=a)return 0;if(n>=p)return-1;if(i>=a)return 1;if(i>>>=0,a>>>=0,n>>>=0,p>>>=0,this===r)return 0;for(var d=p-n,u=a-i,x=Math.min(d,u),_=this.slice(n,p),v=r.slice(i,a),C=0;C2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,iI(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0)if(n)i=0;else return-1;if(typeof r=="string"&&(r=Pi.from(r,a)),Pi.isBuffer(r))return r.length===0?-1:HB(e,r,i,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,i):Uint8Array.prototype.lastIndexOf.call(e,r,i):HB(e,[r],i,a,n);throw new TypeError("val must be string, number or Buffer")}function HB(e,r,i,a,n){var p=1,d=e.length,u=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;p=2,d/=2,u/=2,i/=2}function x(E,w){return p===1?E[w]:E.readUInt16BE(w*p)}var _;if(n){var v=-1;for(_=i;_d&&(i=d-u),_=i;_>=0;_--){for(var C=!0,S=0;Sn&&(a=n)):a=n;var p=r.length;a>p/2&&(a=p/2);for(var d=0;d>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-i;if((a===void 0||a>p)&&(a=p),r.length>0&&(a<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return zht(this,r,i,a);case"utf8":case"utf-8":return Hht(this,r,i,a);case"ascii":case"latin1":case"binary":return Ght(this,r,i,a);case"base64":return Uht(this,r,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $ht(this,r,i,a);default:if(d)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}};Pi.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Wht(e,r,i){return r===0&&i===e.length?JE.fromByteArray(e):JE.fromByteArray(e.slice(r,i))}function YB(e,r,i){i=Math.min(e.length,i);for(var a=[],n=r;n239?4:p>223?3:p>191?2:1;if(n+u<=i){var x,_,v,C;switch(u){case 1:p<128&&(d=p);break;case 2:x=e[n+1],(x&192)===128&&(C=(p&31)<<6|x&63,C>127&&(d=C));break;case 3:x=e[n+1],_=e[n+2],(x&192)===128&&(_&192)===128&&(C=(p&15)<<12|(x&63)<<6|_&63,C>2047&&(C<55296||C>57343)&&(d=C));break;case 4:x=e[n+1],_=e[n+2],v=e[n+3],(x&192)===128&&(_&192)===128&&(v&192)===128&&(C=(p&15)<<18|(x&63)<<12|(_&63)<<6|v&63,C>65535&&C<1114112&&(d=C))}}d===null?(d=65533,u=1):d>65535&&(d-=65536,a.push(d>>>10&1023|55296),d=56320|d&1023),a.push(d),n+=u}return Qht(a)}var GB=4096;function Qht(e){var r=e.length;if(r<=GB)return String.fromCharCode.apply(String,e);for(var i="",a=0;aa)&&(i=a);for(var n="",p=r;pa&&(r=a),i<0?(i+=a,i<0&&(i=0)):i>a&&(i=a),ii)throw new RangeError("Trying to access beyond buffer length")}Pi.prototype.readUintLE=Pi.prototype.readUIntLE=function(r,i,a){r=r>>>0,i=i>>>0,a||qo(r,i,this.length);for(var n=this[r],p=1,d=0;++d>>0,i=i>>>0,a||qo(r,i,this.length);for(var n=this[r+--i],p=1;i>0&&(p*=256);)n+=this[r+--i]*p;return n};Pi.prototype.readUint8=Pi.prototype.readUInt8=function(r,i){return r=r>>>0,i||qo(r,1,this.length),this[r]};Pi.prototype.readUint16LE=Pi.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||qo(r,2,this.length),this[r]|this[r+1]<<8};Pi.prototype.readUint16BE=Pi.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||qo(r,2,this.length),this[r]<<8|this[r+1]};Pi.prototype.readUint32LE=Pi.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Pi.prototype.readUint32BE=Pi.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Pi.prototype.readIntLE=function(r,i,a){r=r>>>0,i=i>>>0,a||qo(r,i,this.length);for(var n=this[r],p=1,d=0;++d=p&&(n-=Math.pow(2,8*i)),n};Pi.prototype.readIntBE=function(r,i,a){r=r>>>0,i=i>>>0,a||qo(r,i,this.length);for(var n=i,p=1,d=this[r+--n];n>0&&(p*=256);)d+=this[r+--n]*p;return p*=128,d>=p&&(d-=Math.pow(2,8*i)),d};Pi.prototype.readInt8=function(r,i){return r=r>>>0,i||qo(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Pi.prototype.readInt16LE=function(r,i){r=r>>>0,i||qo(r,2,this.length);var a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Pi.prototype.readInt16BE=function(r,i){r=r>>>0,i||qo(r,2,this.length);var a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Pi.prototype.readInt32LE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Pi.prototype.readInt32BE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Pi.prototype.readFloatLE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),lu.read(this,r,!0,23,4)};Pi.prototype.readFloatBE=function(r,i){return r=r>>>0,i||qo(r,4,this.length),lu.read(this,r,!1,23,4)};Pi.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||qo(r,8,this.length),lu.read(this,r,!0,52,8)};Pi.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||qo(r,8,this.length),lu.read(this,r,!1,52,8)};function Bl(e,r,i,a,n,p){if(!Pi.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Pi.prototype.writeUintLE=Pi.prototype.writeUIntLE=function(r,i,a,n){if(r=+r,i=i>>>0,a=a>>>0,!n){var p=Math.pow(2,8*a)-1;Bl(this,r,i,a,p,0)}var d=1,u=0;for(this[i]=r&255;++u>>0,a=a>>>0,!n){var p=Math.pow(2,8*a)-1;Bl(this,r,i,a,p,0)}var d=a-1,u=1;for(this[i+d]=r&255;--d>=0&&(u*=256);)this[i+d]=r/u&255;return i+a};Pi.prototype.writeUint8=Pi.prototype.writeUInt8=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,1,255,0),this[i]=r&255,i+1};Pi.prototype.writeUint16LE=Pi.prototype.writeUInt16LE=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2};Pi.prototype.writeUint16BE=Pi.prototype.writeUInt16BE=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2};Pi.prototype.writeUint32LE=Pi.prototype.writeUInt32LE=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4};Pi.prototype.writeUint32BE=Pi.prototype.writeUInt32BE=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};Pi.prototype.writeIntLE=function(r,i,a,n){if(r=+r,i=i>>>0,!n){var p=Math.pow(2,8*a-1);Bl(this,r,i,a,p-1,-p)}var d=0,u=1,x=0;for(this[i]=r&255;++d>0)-x&255;return i+a};Pi.prototype.writeIntBE=function(r,i,a,n){if(r=+r,i=i>>>0,!n){var p=Math.pow(2,8*a-1);Bl(this,r,i,a,p-1,-p)}var d=a-1,u=1,x=0;for(this[i+d]=r&255;--d>=0&&(u*=256);)r<0&&x===0&&this[i+d+1]!==0&&(x=1),this[i+d]=(r/u>>0)-x&255;return i+a};Pi.prototype.writeInt8=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1};Pi.prototype.writeInt16LE=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2};Pi.prototype.writeInt16BE=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2};Pi.prototype.writeInt32LE=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4};Pi.prototype.writeInt32BE=function(r,i,a){return r=+r,i=i>>>0,a||Bl(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function JB(e,r,i,a,n,p){if(i+a>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function KB(e,r,i,a,n){return r=+r,i=i>>>0,n||JB(e,r,i,4,34028234663852886e22,-34028234663852886e22),lu.write(e,r,i,a,23,4),i+4}Pi.prototype.writeFloatLE=function(r,i,a){return KB(this,r,i,!0,a)};Pi.prototype.writeFloatBE=function(r,i,a){return KB(this,r,i,!1,a)};function XB(e,r,i,a,n){return r=+r,i=i>>>0,n||JB(e,r,i,8,17976931348623157e292,-17976931348623157e292),lu.write(e,r,i,a,52,8),i+8}Pi.prototype.writeDoubleLE=function(r,i,a){return XB(this,r,i,!0,a)};Pi.prototype.writeDoubleBE=function(r,i,a){return XB(this,r,i,!1,a)};Pi.prototype.copy=function(r,i,a,n){if(!Pi.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),i>=r.length&&(i=r.length),i||(i=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-i>>0,a=a===void 0?this.length:a>>>0,r||(r=0);var d;if(typeof r=="number")for(d=i;d55295&&i<57344){if(!n){if(i>56319){(r-=3)>-1&&p.push(239,191,189);continue}else if(d+1===a){(r-=3)>-1&&p.push(239,191,189);continue}n=i;continue}if(i<56320){(r-=3)>-1&&p.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(r-=3)>-1&&p.push(239,191,189);if(n=null,i<128){if((r-=1)<0)break;p.push(i)}else if(i<2048){if((r-=2)<0)break;p.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;p.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;p.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return p}function ext(e){for(var r=[],i=0;i>8,n=i%256,p.push(n),p.push(a);return p}function ZB(e){return JE.toByteArray(txt(e))}function Q_(e,r,i,a){for(var n=0;n=r.length||n>=e.length);++n)r[n+i]=e[n];return n}function E0(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function iI(e){return e!==e}var nxt=function(){for(var e="0123456789abcdef",r=new Array(256),i=0;i<16;++i)for(var a=i*16,n=0;n<16;++n)r[a+n]=e[i]+e[n];return r}()});var zV=pe((G1n,jV)=>{function EKt(){this.__data__=[],this.size=0}jV.exports=EKt});var Xm=pe((U1n,HV)=>{function IKt(e,r){return e===r||e!==e&&r!==r}HV.exports=IKt});var L1=pe(($1n,GV)=>{var TKt=Xm();function MKt(e,r){for(var i=e.length;i--;)if(TKt(e[i][0],r))return i;return-1}GV.exports=MKt});var $V=pe((W1n,UV)=>{var DKt=L1(),OKt=Array.prototype,AKt=OKt.splice;function FKt(e){var r=this.__data__,i=DKt(r,e);if(i<0)return!1;var a=r.length-1;return i==a?r.pop():AKt.call(r,i,1),--this.size,!0}UV.exports=FKt});var QV=pe((Q1n,WV)=>{var kKt=L1();function RKt(e){var r=this.__data__,i=kKt(r,e);return i<0?void 0:r[i][1]}WV.exports=RKt});var JV=pe((Y1n,YV)=>{var BKt=L1();function NKt(e){return BKt(this.__data__,e)>-1}YV.exports=NKt});var XV=pe((J1n,KV)=>{var LKt=L1();function VKt(e,r){var i=this.__data__,a=LKt(i,e);return a<0?(++this.size,i.push([e,r])):i[a][1]=r,this}KV.exports=VKt});var V1=pe((K1n,ZV)=>{var qKt=zV(),jKt=$V(),zKt=QV(),HKt=JV(),GKt=XV();function vu(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var UKt=V1();function $Kt(){this.__data__=new UKt,this.size=0}tq.exports=$Kt});var nq=pe((Z1n,iq)=>{function WKt(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}iq.exports=WKt});var rq=pe((thn,aq)=>{function QKt(e){return this.__data__.get(e)}aq.exports=QKt});var lq=pe((ehn,oq)=>{function YKt(e){return this.__data__.has(e)}oq.exports=YKt});var GT=pe((ihn,sq)=>{var JKt=typeof global=="object"&&global&&global.Object===Object&&global;sq.exports=JKt});var Ps=pe((nhn,pq)=>{var KKt=GT(),XKt=typeof self=="object"&&self&&self.Object===Object&&self,ZKt=KKt||XKt||Function("return this")();pq.exports=ZKt});var Zm=pe((ahn,cq)=>{var tXt=Ps(),eXt=tXt.Symbol;cq.exports=eXt});var fq=pe((rhn,uq)=>{var mq=Zm(),dq=Object.prototype,iXt=dq.hasOwnProperty,nXt=dq.toString,q1=mq?mq.toStringTag:void 0;function aXt(e){var r=iXt.call(e,q1),i=e[q1];try{e[q1]=void 0;var a=!0}catch{}var n=nXt.call(e);return a&&(r?e[q1]=i:delete e[q1]),n}uq.exports=aXt});var xq=pe((ohn,hq)=>{var rXt=Object.prototype,oXt=rXt.toString;function lXt(e){return oXt.call(e)}hq.exports=lXt});var cc=pe((lhn,vq)=>{var gq=Zm(),sXt=fq(),pXt=xq(),cXt="[object Null]",mXt="[object Undefined]",_q=gq?gq.toStringTag:void 0;function dXt(e){return e==null?e===void 0?mXt:cXt:_q&&_q in Object(e)?sXt(e):pXt(e)}vq.exports=dXt});var Jl=pe((shn,bq)=>{function uXt(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}bq.exports=uXt});var bu=pe((phn,Cq)=>{var fXt=cc(),hXt=Jl(),xXt="[object AsyncFunction]",gXt="[object Function]",_Xt="[object GeneratorFunction]",vXt="[object Proxy]";function bXt(e){if(!hXt(e))return!1;var r=fXt(e);return r==gXt||r==_Xt||r==xXt||r==vXt}Cq.exports=bXt});var Sq=pe((chn,yq)=>{var CXt=Ps(),yXt=CXt["__core-js_shared__"];yq.exports=yXt});var Eq=pe((mhn,Pq)=>{var UT=Sq(),wq=function(){var e=/[^.]+$/.exec(UT&&UT.keys&&UT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function SXt(e){return!!wq&&wq in e}Pq.exports=SXt});var $T=pe((dhn,Iq)=>{var wXt=Function.prototype,PXt=wXt.toString;function EXt(e){if(e!=null){try{return PXt.call(e)}catch{}try{return e+""}catch{}}return""}Iq.exports=EXt});var Mq=pe((uhn,Tq)=>{var IXt=bu(),TXt=Eq(),MXt=Jl(),DXt=$T(),OXt=/[\\^$.*+?()[\]{}|]/g,AXt=/^\[object .+?Constructor\]$/,FXt=Function.prototype,kXt=Object.prototype,RXt=FXt.toString,BXt=kXt.hasOwnProperty,NXt=RegExp("^"+RXt.call(BXt).replace(OXt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function LXt(e){if(!MXt(e)||TXt(e))return!1;var r=IXt(e)?NXt:AXt;return r.test(DXt(e))}Tq.exports=LXt});var Oq=pe((fhn,Dq)=>{function VXt(e,r){return e?.[r]}Dq.exports=VXt});var mc=pe((hhn,Aq)=>{var qXt=Mq(),jXt=Oq();function zXt(e,r){var i=jXt(e,r);return qXt(i)?i:void 0}Aq.exports=zXt});var $C=pe((xhn,Fq)=>{var HXt=mc(),GXt=Ps(),UXt=HXt(GXt,"Map");Fq.exports=UXt});var j1=pe((ghn,kq)=>{var $Xt=mc(),WXt=$Xt(Object,"create");kq.exports=WXt});var Nq=pe((_hn,Bq)=>{var Rq=j1();function QXt(){this.__data__=Rq?Rq(null):{},this.size=0}Bq.exports=QXt});var Vq=pe((vhn,Lq)=>{function YXt(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Lq.exports=YXt});var jq=pe((bhn,qq)=>{var JXt=j1(),KXt="__lodash_hash_undefined__",XXt=Object.prototype,ZXt=XXt.hasOwnProperty;function tZt(e){var r=this.__data__;if(JXt){var i=r[e];return i===KXt?void 0:i}return ZXt.call(r,e)?r[e]:void 0}qq.exports=tZt});var Hq=pe((Chn,zq)=>{var eZt=j1(),iZt=Object.prototype,nZt=iZt.hasOwnProperty;function aZt(e){var r=this.__data__;return eZt?r[e]!==void 0:nZt.call(r,e)}zq.exports=aZt});var Uq=pe((yhn,Gq)=>{var rZt=j1(),oZt="__lodash_hash_undefined__";function lZt(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=rZt&&r===void 0?oZt:r,this}Gq.exports=lZt});var Wq=pe((Shn,$q)=>{var sZt=Nq(),pZt=Vq(),cZt=jq(),mZt=Hq(),dZt=Uq();function Cu(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var Qq=Wq(),uZt=V1(),fZt=$C();function hZt(){this.size=0,this.__data__={hash:new Qq,map:new(fZt||uZt),string:new Qq}}Yq.exports=hZt});var Xq=pe((Phn,Kq)=>{function xZt(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Kq.exports=xZt});var z1=pe((Ehn,Zq)=>{var gZt=Xq();function _Zt(e,r){var i=e.__data__;return gZt(r)?i[typeof r=="string"?"string":"hash"]:i.map}Zq.exports=_Zt});var ej=pe((Ihn,tj)=>{var vZt=z1();function bZt(e){var r=vZt(this,e).delete(e);return this.size-=r?1:0,r}tj.exports=bZt});var nj=pe((Thn,ij)=>{var CZt=z1();function yZt(e){return CZt(this,e).get(e)}ij.exports=yZt});var rj=pe((Mhn,aj)=>{var SZt=z1();function wZt(e){return SZt(this,e).has(e)}aj.exports=wZt});var lj=pe((Dhn,oj)=>{var PZt=z1();function EZt(e,r){var i=PZt(this,e),a=i.size;return i.set(e,r),this.size+=i.size==a?0:1,this}oj.exports=EZt});var WC=pe((Ohn,sj)=>{var IZt=Jq(),TZt=ej(),MZt=nj(),DZt=rj(),OZt=lj();function yu(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var AZt=V1(),FZt=$C(),kZt=WC(),RZt=200;function BZt(e,r){var i=this.__data__;if(i instanceof AZt){var a=i.__data__;if(!FZt||a.length{var NZt=V1(),LZt=eq(),VZt=nq(),qZt=rq(),jZt=lq(),zZt=cj();function Su(e){var r=this.__data__=new NZt(e);this.size=r.size}Su.prototype.clear=LZt;Su.prototype.delete=VZt;Su.prototype.get=qZt;Su.prototype.has=jZt;Su.prototype.set=zZt;mj.exports=Su});var QC=pe((khn,dj)=>{function HZt(e,r){for(var i=-1,a=e==null?0:e.length;++i{var GZt=mc(),UZt=function(){try{var e=GZt(Object,"defineProperty");return e({},"",{}),e}catch{}}();uj.exports=UZt});var G1=pe((Bhn,hj)=>{var fj=WT();function $Zt(e,r,i){r=="__proto__"&&fj?fj(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}hj.exports=$Zt});var U1=pe((Nhn,xj)=>{var WZt=G1(),QZt=Xm(),YZt=Object.prototype,JZt=YZt.hasOwnProperty;function KZt(e,r,i){var a=e[r];(!(JZt.call(e,r)&&QZt(a,i))||i===void 0&&!(r in e))&&WZt(e,r,i)}xj.exports=KZt});var wu=pe((Lhn,gj)=>{var XZt=U1(),ZZt=G1();function tte(e,r,i,a){var n=!i;i||(i={});for(var p=-1,d=r.length;++p{function ete(e,r){for(var i=-1,a=Array(e);++i{function ite(e){return e!=null&&typeof e=="object"}bj.exports=ite});var yj=pe((jhn,Cj)=>{var nte=cc(),ate=Zs(),rte="[object Arguments]";function ote(e){return ate(e)&&nte(e)==rte}Cj.exports=ote});var Pu=pe((zhn,Pj)=>{var Sj=yj(),lte=Zs(),wj=Object.prototype,ste=wj.hasOwnProperty,pte=wj.propertyIsEnumerable,cte=Sj(function(){return arguments}())?Sj:function(e){return lte(e)&&ste.call(e,"callee")&&!pte.call(e,"callee")};Pj.exports=cte});var no=pe((Hhn,Ej)=>{var mte=Array.isArray;Ej.exports=mte});var Tj=pe((Ghn,Ij)=>{function dte(){return!1}Ij.exports=dte});var td=pe(($1,Eu)=>{var ute=Ps(),fte=Tj(),Oj=typeof $1=="object"&&$1&&!$1.nodeType&&$1,Mj=Oj&&typeof Eu=="object"&&Eu&&!Eu.nodeType&&Eu,hte=Mj&&Mj.exports===Oj,Dj=hte?ute.Buffer:void 0,xte=Dj?Dj.isBuffer:void 0,gte=xte||fte;Eu.exports=gte});var W1=pe((Uhn,Aj)=>{var _te=9007199254740991,vte=/^(?:0|[1-9]\d*)$/;function bte(e,r){var i=typeof e;return r=r??_te,!!r&&(i=="number"||i!="symbol"&&vte.test(e))&&e>-1&&e%1==0&&e{var Cte=9007199254740991;function yte(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Cte}Fj.exports=yte});var Rj=pe((Whn,kj)=>{var Ste=cc(),wte=YC(),Pte=Zs(),Ete="[object Arguments]",Ite="[object Array]",Tte="[object Boolean]",Mte="[object Date]",Dte="[object Error]",Ote="[object Function]",Ate="[object Map]",Fte="[object Number]",kte="[object Object]",Rte="[object RegExp]",Bte="[object Set]",Nte="[object String]",Lte="[object WeakMap]",Vte="[object ArrayBuffer]",qte="[object DataView]",jte="[object Float32Array]",zte="[object Float64Array]",Hte="[object Int8Array]",Gte="[object Int16Array]",Ute="[object Int32Array]",$te="[object Uint8Array]",Wte="[object Uint8ClampedArray]",Qte="[object Uint16Array]",Yte="[object Uint32Array]",Dr={};Dr[jte]=Dr[zte]=Dr[Hte]=Dr[Gte]=Dr[Ute]=Dr[$te]=Dr[Wte]=Dr[Qte]=Dr[Yte]=!0;Dr[Ete]=Dr[Ite]=Dr[Vte]=Dr[Tte]=Dr[qte]=Dr[Mte]=Dr[Dte]=Dr[Ote]=Dr[Ate]=Dr[Fte]=Dr[kte]=Dr[Rte]=Dr[Bte]=Dr[Nte]=Dr[Lte]=!1;function Jte(e){return Pte(e)&&wte(e.length)&&!!Dr[Ste(e)]}kj.exports=Jte});var Q1=pe((Qhn,Bj)=>{function Kte(e){return function(r){return e(r)}}Bj.exports=Kte});var JC=pe((Y1,Iu)=>{var Xte=GT(),Nj=typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,J1=Nj&&typeof Iu=="object"&&Iu&&!Iu.nodeType&&Iu,Zte=J1&&J1.exports===Nj,QT=Zte&&Xte.process,tee=function(){try{var e=J1&&J1.require&&J1.require("util").types;return e||QT&&QT.binding&&QT.binding("util")}catch{}}();Iu.exports=tee});var Tu=pe((Yhn,qj)=>{var eee=Rj(),iee=Q1(),Lj=JC(),Vj=Lj&&Lj.isTypedArray,nee=Vj?iee(Vj):eee;qj.exports=nee});var YT=pe((Jhn,jj)=>{var aee=vj(),ree=Pu(),oee=no(),lee=td(),see=W1(),pee=Tu(),cee=Object.prototype,mee=cee.hasOwnProperty;function dee(e,r){var i=oee(e),a=!i&&ree(e),n=!i&&!a&&lee(e),p=!i&&!a&&!n&&pee(e),d=i||a||n||p,u=d?aee(e.length,String):[],x=u.length;for(var _ in e)(r||mee.call(e,_))&&!(d&&(_=="length"||n&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||see(_,x)))&&u.push(_);return u}jj.exports=dee});var K1=pe((Khn,zj)=>{var uee=Object.prototype;function fee(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||uee;return e===i}zj.exports=fee});var JT=pe((Xhn,Hj)=>{function hee(e,r){return function(i){return e(r(i))}}Hj.exports=hee});var Uj=pe((Zhn,Gj)=>{var xee=JT(),gee=xee(Object.keys,Object);Gj.exports=gee});var KC=pe((txn,$j)=>{var _ee=K1(),vee=Uj(),bee=Object.prototype,Cee=bee.hasOwnProperty;function yee(e){if(!_ee(e))return vee(e);var r=[];for(var i in Object(e))Cee.call(e,i)&&i!="constructor"&&r.push(i);return r}$j.exports=yee});var M0=pe((exn,Wj)=>{var See=bu(),wee=YC();function Pee(e){return e!=null&&wee(e.length)&&!See(e)}Wj.exports=Pee});var cp=pe((ixn,Qj)=>{var Eee=YT(),Iee=KC(),Tee=M0();function Mee(e){return Tee(e)?Eee(e):Iee(e)}Qj.exports=Mee});var Jj=pe((nxn,Yj)=>{var Dee=wu(),Oee=cp();function Aee(e,r){return e&&Dee(r,Oee(r),e)}Yj.exports=Aee});var Xj=pe((axn,Kj)=>{function Fee(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}Kj.exports=Fee});var tz=pe((rxn,Zj)=>{var kee=Jl(),Ree=K1(),Bee=Xj(),Nee=Object.prototype,Lee=Nee.hasOwnProperty;function Vee(e){if(!kee(e))return Bee(e);var r=Ree(e),i=[];for(var a in e)a=="constructor"&&(r||!Lee.call(e,a))||i.push(a);return i}Zj.exports=Vee});var dc=pe((oxn,ez)=>{var qee=YT(),jee=tz(),zee=M0();function Hee(e){return zee(e)?qee(e,!0):jee(e)}ez.exports=Hee});var nz=pe((lxn,iz)=>{var Gee=wu(),Uee=dc();function $ee(e,r){return e&&Gee(r,Uee(r),e)}iz.exports=$ee});var KT=pe((X1,Mu)=>{var Wee=Ps(),lz=typeof X1=="object"&&X1&&!X1.nodeType&&X1,az=lz&&typeof Mu=="object"&&Mu&&!Mu.nodeType&&Mu,Qee=az&&az.exports===lz,rz=Qee?Wee.Buffer:void 0,oz=rz?rz.allocUnsafe:void 0;function Yee(e,r){if(r)return e.slice();var i=e.length,a=oz?oz(i):new e.constructor(i);return e.copy(a),a}Mu.exports=Yee});var XT=pe((sxn,sz)=>{function Jee(e,r){var i=-1,a=e.length;for(r||(r=Array(a));++i{function Kee(e,r){for(var i=-1,a=e==null?0:e.length,n=0,p=[];++i{function Xee(){return[]}cz.exports=Xee});var XC=pe((mxn,dz)=>{var Zee=ZT(),tie=tM(),eie=Object.prototype,iie=eie.propertyIsEnumerable,mz=Object.getOwnPropertySymbols,nie=mz?function(e){return e==null?[]:(e=Object(e),Zee(mz(e),function(r){return iie.call(e,r)}))}:tie;dz.exports=nie});var fz=pe((dxn,uz)=>{var aie=wu(),rie=XC();function oie(e,r){return aie(e,rie(e),r)}uz.exports=oie});var ZC=pe((uxn,hz)=>{function lie(e,r){for(var i=-1,a=r.length,n=e.length;++i{var sie=JT(),pie=sie(Object.getPrototypeOf,Object);xz.exports=pie});var eM=pe((hxn,gz)=>{var cie=ZC(),mie=Z1(),die=XC(),uie=tM(),fie=Object.getOwnPropertySymbols,hie=fie?function(e){for(var r=[];e;)cie(r,die(e)),e=mie(e);return r}:uie;gz.exports=hie});var vz=pe((xxn,_z)=>{var xie=wu(),gie=eM();function _ie(e,r){return xie(e,gie(e),r)}_z.exports=_ie});var iM=pe((gxn,bz)=>{var vie=ZC(),bie=no();function Cie(e,r,i){var a=r(e);return bie(e)?a:vie(a,i(e))}bz.exports=Cie});var nM=pe((_xn,Cz)=>{var yie=iM(),Sie=XC(),wie=cp();function Pie(e){return yie(e,wie,Sie)}Cz.exports=Pie});var Sz=pe((vxn,yz)=>{var Eie=iM(),Iie=eM(),Tie=dc();function Mie(e){return Eie(e,Tie,Iie)}yz.exports=Mie});var Pz=pe((bxn,wz)=>{var Die=mc(),Oie=Ps(),Aie=Die(Oie,"DataView");wz.exports=Aie});var Iz=pe((Cxn,Ez)=>{var Fie=mc(),kie=Ps(),Rie=Fie(kie,"Promise");Ez.exports=Rie});var aM=pe((yxn,Tz)=>{var Bie=mc(),Nie=Ps(),Lie=Bie(Nie,"Set");Tz.exports=Lie});var Dz=pe((Sxn,Mz)=>{var Vie=mc(),qie=Ps(),jie=Vie(qie,"WeakMap");Mz.exports=jie});var id=pe((wxn,Nz)=>{var rM=Pz(),oM=$C(),lM=Iz(),sM=aM(),pM=Dz(),Bz=cc(),Du=$T(),Oz="[object Map]",zie="[object Object]",Az="[object Promise]",Fz="[object Set]",kz="[object WeakMap]",Rz="[object DataView]",Hie=Du(rM),Gie=Du(oM),Uie=Du(lM),$ie=Du(sM),Wie=Du(pM),ed=Bz;(rM&&ed(new rM(new ArrayBuffer(1)))!=Rz||oM&&ed(new oM)!=Oz||lM&&ed(lM.resolve())!=Az||sM&&ed(new sM)!=Fz||pM&&ed(new pM)!=kz)&&(ed=function(e){var r=Bz(e),i=r==zie?e.constructor:void 0,a=i?Du(i):"";if(a)switch(a){case Hie:return Rz;case Gie:return Oz;case Uie:return Az;case $ie:return Fz;case Wie:return kz}return r});Nz.exports=ed});var Vz=pe((Pxn,Lz)=>{var Qie=Object.prototype,Yie=Qie.hasOwnProperty;function Jie(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&Yie.call(e,"index")&&(i.index=e.index,i.input=e.input),i}Lz.exports=Jie});var cM=pe((Exn,qz)=>{var Kie=Ps(),Xie=Kie.Uint8Array;qz.exports=Xie});var t3=pe((Ixn,zz)=>{var jz=cM();function Zie(e){var r=new e.constructor(e.byteLength);return new jz(r).set(new jz(e)),r}zz.exports=Zie});var Gz=pe((Txn,Hz)=>{var tne=t3();function ene(e,r){var i=r?tne(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}Hz.exports=ene});var $z=pe((Mxn,Uz)=>{var ine=/\w*$/;function nne(e){var r=new e.constructor(e.source,ine.exec(e));return r.lastIndex=e.lastIndex,r}Uz.exports=nne});var Kz=pe((Dxn,Jz)=>{var Wz=Zm(),Qz=Wz?Wz.prototype:void 0,Yz=Qz?Qz.valueOf:void 0;function ane(e){return Yz?Object(Yz.call(e)):{}}Jz.exports=ane});var mM=pe((Oxn,Xz)=>{var rne=t3();function one(e,r){var i=r?rne(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}Xz.exports=one});var tH=pe((Axn,Zz)=>{var lne=t3(),sne=Gz(),pne=$z(),cne=Kz(),mne=mM(),dne="[object Boolean]",une="[object Date]",fne="[object Map]",hne="[object Number]",xne="[object RegExp]",gne="[object Set]",_ne="[object String]",vne="[object Symbol]",bne="[object ArrayBuffer]",Cne="[object DataView]",yne="[object Float32Array]",Sne="[object Float64Array]",wne="[object Int8Array]",Pne="[object Int16Array]",Ene="[object Int32Array]",Ine="[object Uint8Array]",Tne="[object Uint8ClampedArray]",Mne="[object Uint16Array]",Dne="[object Uint32Array]";function One(e,r,i){var a=e.constructor;switch(r){case bne:return lne(e);case dne:case une:return new a(+e);case Cne:return sne(e,i);case yne:case Sne:case wne:case Pne:case Ene:case Ine:case Tne:case Mne:case Dne:return mne(e,i);case fne:return new a;case hne:case _ne:return new a(e);case xne:return pne(e);case gne:return new a;case vne:return cne(e)}}Zz.exports=One});var dM=pe((Fxn,iH)=>{var Ane=Jl(),eH=Object.create,Fne=function(){function e(){}return function(r){if(!Ane(r))return{};if(eH)return eH(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}();iH.exports=Fne});var uM=pe((kxn,nH)=>{var kne=dM(),Rne=Z1(),Bne=K1();function Nne(e){return typeof e.constructor=="function"&&!Bne(e)?kne(Rne(e)):{}}nH.exports=Nne});var rH=pe((Rxn,aH)=>{var Lne=id(),Vne=Zs(),qne="[object Map]";function jne(e){return Vne(e)&&Lne(e)==qne}aH.exports=jne});var pH=pe((Bxn,sH)=>{var zne=rH(),Hne=Q1(),oH=JC(),lH=oH&&oH.isMap,Gne=lH?Hne(lH):zne;sH.exports=Gne});var mH=pe((Nxn,cH)=>{var Une=id(),$ne=Zs(),Wne="[object Set]";function Qne(e){return $ne(e)&&Une(e)==Wne}cH.exports=Qne});var hH=pe((Lxn,fH)=>{var Yne=mH(),Jne=Q1(),dH=JC(),uH=dH&&dH.isSet,Kne=uH?Jne(uH):Yne;fH.exports=Kne});var fM=pe((Vxn,vH)=>{var Xne=H1(),Zne=QC(),tae=U1(),eae=Jj(),iae=nz(),nae=KT(),aae=XT(),rae=fz(),oae=vz(),lae=nM(),sae=Sz(),pae=id(),cae=Vz(),mae=tH(),dae=uM(),uae=no(),fae=td(),hae=pH(),xae=Jl(),gae=hH(),_ae=cp(),vae=dc(),bae=1,Cae=2,yae=4,xH="[object Arguments]",Sae="[object Array]",wae="[object Boolean]",Pae="[object Date]",Eae="[object Error]",gH="[object Function]",Iae="[object GeneratorFunction]",Tae="[object Map]",Mae="[object Number]",_H="[object Object]",Dae="[object RegExp]",Oae="[object Set]",Aae="[object String]",Fae="[object Symbol]",kae="[object WeakMap]",Rae="[object ArrayBuffer]",Bae="[object DataView]",Nae="[object Float32Array]",Lae="[object Float64Array]",Vae="[object Int8Array]",qae="[object Int16Array]",jae="[object Int32Array]",zae="[object Uint8Array]",Hae="[object Uint8ClampedArray]",Gae="[object Uint16Array]",Uae="[object Uint32Array]",Pr={};Pr[xH]=Pr[Sae]=Pr[Rae]=Pr[Bae]=Pr[wae]=Pr[Pae]=Pr[Nae]=Pr[Lae]=Pr[Vae]=Pr[qae]=Pr[jae]=Pr[Tae]=Pr[Mae]=Pr[_H]=Pr[Dae]=Pr[Oae]=Pr[Aae]=Pr[Fae]=Pr[zae]=Pr[Hae]=Pr[Gae]=Pr[Uae]=!0;Pr[Eae]=Pr[gH]=Pr[kae]=!1;function e3(e,r,i,a,n,p){var d,u=r&bae,x=r&Cae,_=r&yae;if(i&&(d=n?i(e,a,n,p):i(e)),d!==void 0)return d;if(!xae(e))return e;var v=uae(e);if(v){if(d=cae(e),!u)return aae(e,d)}else{var C=pae(e),S=C==gH||C==Iae;if(fae(e))return nae(e,u);if(C==_H||C==xH||S&&!n){if(d=x||S?{}:dae(e),!u)return x?oae(e,iae(d,e)):rae(e,eae(d,e))}else{if(!Pr[C])return n?e:{};d=mae(e,C,u)}}p||(p=new Xne);var E=p.get(e);if(E)return E;p.set(e,d),gae(e)?e.forEach(function(T){d.add(e3(T,r,i,T,e,p))}):hae(e)&&e.forEach(function(T,A){d.set(A,e3(T,r,i,A,e,p))});var w=_?x?sae:lae:x?vae:_ae,I=v?void 0:w(e);return Zne(I||e,function(T,A){I&&(A=T,T=e[A]),tae(d,A,e3(T,r,i,A,e,p))}),d}vH.exports=e3});var CH=pe((qxn,bH)=>{var $ae=fM(),Wae=4;function Qae(e){return $ae(e,Wae)}bH.exports=Qae});var i3=pe((jxn,yH)=>{function Yae(e){return function(){return e}}yH.exports=Yae});var wH=pe((zxn,SH)=>{function Jae(e){return function(r,i,a){for(var n=-1,p=Object(r),d=a(r),u=d.length;u--;){var x=d[e?u:++n];if(i(p[x],x,p)===!1)break}return r}}SH.exports=Jae});var n3=pe((Hxn,PH)=>{var Kae=wH(),Xae=Kae();PH.exports=Xae});var a3=pe((Gxn,EH)=>{var Zae=n3(),tre=cp();function ere(e,r){return e&&Zae(e,r,tre)}EH.exports=ere});var TH=pe((Uxn,IH)=>{var ire=M0();function nre(e,r){return function(i,a){if(i==null)return i;if(!ire(i))return e(i,a);for(var n=i.length,p=r?n:-1,d=Object(i);(r?p--:++p{var are=a3(),rre=TH(),ore=rre(are);MH.exports=ore});var uc=pe((Wxn,DH)=>{function lre(e){return e}DH.exports=lre});var hM=pe((Qxn,OH)=>{var sre=uc();function pre(e){return typeof e=="function"?e:sre}OH.exports=pre});var xM=pe((Yxn,AH)=>{var cre=QC(),mre=th(),dre=hM(),ure=no();function fre(e,r){var i=ure(e)?cre:mre;return i(e,dre(r))}AH.exports=fre});var gM=pe((Jxn,FH)=>{FH.exports=xM()});var RH=pe((Kxn,kH)=>{var hre=th();function xre(e,r){var i=[];return hre(e,function(a,n,p){r(a,n,p)&&i.push(a)}),i}kH.exports=xre});var NH=pe((Xxn,BH)=>{var gre="__lodash_hash_undefined__";function _re(e){return this.__data__.set(e,gre),this}BH.exports=_re});var VH=pe((Zxn,LH)=>{function vre(e){return this.__data__.has(e)}LH.exports=vre});var _M=pe((tgn,qH)=>{var bre=WC(),Cre=NH(),yre=VH();function r3(e){var r=-1,i=e==null?0:e.length;for(this.__data__=new bre;++r{function Sre(e,r){for(var i=-1,a=e==null?0:e.length;++i{function wre(e,r){return e.has(r)}HH.exports=wre});var bM=pe((ngn,GH)=>{var Pre=_M(),Ere=zH(),Ire=vM(),Tre=1,Mre=2;function Dre(e,r,i,a,n,p){var d=i&Tre,u=e.length,x=r.length;if(u!=x&&!(d&&x>u))return!1;var _=p.get(e),v=p.get(r);if(_&&v)return _==r&&v==e;var C=-1,S=!0,E=i&Mre?new Pre:void 0;for(p.set(e,r),p.set(r,e);++C{function Ore(e){var r=-1,i=Array(e.size);return e.forEach(function(a,n){i[++r]=[n,a]}),i}UH.exports=Ore});var o3=pe((rgn,WH)=>{function Are(e){var r=-1,i=Array(e.size);return e.forEach(function(a){i[++r]=a}),i}WH.exports=Are});var XH=pe((ogn,KH)=>{var QH=Zm(),YH=cM(),Fre=Xm(),kre=bM(),Rre=$H(),Bre=o3(),Nre=1,Lre=2,Vre="[object Boolean]",qre="[object Date]",jre="[object Error]",zre="[object Map]",Hre="[object Number]",Gre="[object RegExp]",Ure="[object Set]",$re="[object String]",Wre="[object Symbol]",Qre="[object ArrayBuffer]",Yre="[object DataView]",JH=QH?QH.prototype:void 0,CM=JH?JH.valueOf:void 0;function Jre(e,r,i,a,n,p,d){switch(i){case Yre:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Qre:return!(e.byteLength!=r.byteLength||!p(new YH(e),new YH(r)));case Vre:case qre:case Hre:return Fre(+e,+r);case jre:return e.name==r.name&&e.message==r.message;case Gre:case $re:return e==r+"";case zre:var u=Rre;case Ure:var x=a&Nre;if(u||(u=Bre),e.size!=r.size&&!x)return!1;var _=d.get(e);if(_)return _==r;a|=Lre,d.set(e,r);var v=kre(u(e),u(r),a,n,p,d);return d.delete(e),v;case Wre:if(CM)return CM.call(e)==CM.call(r)}return!1}KH.exports=Jre});var eG=pe((lgn,tG)=>{var ZH=nM(),Kre=1,Xre=Object.prototype,Zre=Xre.hasOwnProperty;function toe(e,r,i,a,n,p){var d=i&Kre,u=ZH(e),x=u.length,_=ZH(r),v=_.length;if(x!=v&&!d)return!1;for(var C=x;C--;){var S=u[C];if(!(d?S in r:Zre.call(r,S)))return!1}var E=p.get(e),w=p.get(r);if(E&&w)return E==r&&w==e;var I=!0;p.set(e,r),p.set(r,e);for(var T=d;++C{var yM=H1(),eoe=bM(),ioe=XH(),noe=eG(),iG=id(),nG=no(),aG=td(),aoe=Tu(),roe=1,rG="[object Arguments]",oG="[object Array]",l3="[object Object]",ooe=Object.prototype,lG=ooe.hasOwnProperty;function loe(e,r,i,a,n,p){var d=nG(e),u=nG(r),x=d?oG:iG(e),_=u?oG:iG(r);x=x==rG?l3:x,_=_==rG?l3:_;var v=x==l3,C=_==l3,S=x==_;if(S&&aG(e)){if(!aG(r))return!1;d=!0,v=!1}if(S&&!v)return p||(p=new yM),d||aoe(e)?eoe(e,r,i,a,n,p):ioe(e,r,x,i,a,n,p);if(!(i&roe)){var E=v&&lG.call(e,"__wrapped__"),w=C&&lG.call(r,"__wrapped__");if(E||w){var I=E?e.value():e,T=w?r.value():r;return p||(p=new yM),n(I,T,i,a,p)}}return S?(p||(p=new yM),noe(e,r,i,a,n,p)):!1}sG.exports=loe});var SM=pe((pgn,dG)=>{var soe=pG(),cG=Zs();function mG(e,r,i,a,n){return e===r?!0:e==null||r==null||!cG(e)&&!cG(r)?e!==e&&r!==r:soe(e,r,i,a,mG,n)}dG.exports=mG});var fG=pe((cgn,uG)=>{var poe=H1(),coe=SM(),moe=1,doe=2;function uoe(e,r,i,a){var n=i.length,p=n,d=!a;if(e==null)return!p;for(e=Object(e);n--;){var u=i[n];if(d&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++n{var foe=Jl();function hoe(e){return e===e&&!foe(e)}hG.exports=hoe});var gG=pe((dgn,xG)=>{var xoe=wM(),goe=cp();function _oe(e){for(var r=goe(e),i=r.length;i--;){var a=r[i],n=e[a];r[i]=[a,n,xoe(n)]}return r}xG.exports=_oe});var PM=pe((ugn,_G)=>{function voe(e,r){return function(i){return i==null?!1:i[e]===r&&(r!==void 0||e in Object(i))}}_G.exports=voe});var bG=pe((fgn,vG)=>{var boe=fG(),Coe=gG(),yoe=PM();function Soe(e){var r=Coe(e);return r.length==1&&r[0][2]?yoe(r[0][0],r[0][1]):function(i){return i===e||boe(i,e,r)}}vG.exports=Soe});var nd=pe((hgn,CG)=>{var woe=cc(),Poe=Zs(),Eoe="[object Symbol]";function Ioe(e){return typeof e=="symbol"||Poe(e)&&woe(e)==Eoe}CG.exports=Ioe});var s3=pe((xgn,yG)=>{var Toe=no(),Moe=nd(),Doe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ooe=/^\w*$/;function Aoe(e,r){if(Toe(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Moe(e)?!0:Ooe.test(e)||!Doe.test(e)||r!=null&&e in Object(r)}yG.exports=Aoe});var PG=pe((ggn,wG)=>{var SG=WC(),Foe="Expected a function";function EM(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Foe);var i=function(){var a=arguments,n=r?r.apply(this,a):a[0],p=i.cache;if(p.has(n))return p.get(n);var d=e.apply(this,a);return i.cache=p.set(n,d)||p,d};return i.cache=new(EM.Cache||SG),i}EM.Cache=SG;wG.exports=EM});var IG=pe((_gn,EG)=>{var koe=PG(),Roe=500;function Boe(e){var r=koe(e,function(a){return i.size===Roe&&i.clear(),a}),i=r.cache;return r}EG.exports=Boe});var MG=pe((vgn,TG)=>{var Noe=IG(),Loe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Voe=/\\(\\)?/g,qoe=Noe(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Loe,function(i,a,n,p){r.push(n?p.replace(Voe,"$1"):a||i)}),r});TG.exports=qoe});var eh=pe((bgn,DG)=>{function joe(e,r){for(var i=-1,a=e==null?0:e.length,n=Array(a);++i{var OG=Zm(),zoe=eh(),Hoe=no(),Goe=nd(),Uoe=1/0,AG=OG?OG.prototype:void 0,FG=AG?AG.toString:void 0;function kG(e){if(typeof e=="string")return e;if(Hoe(e))return zoe(e,kG)+"";if(Goe(e))return FG?FG.call(e):"";var r=e+"";return r=="0"&&1/e==-Uoe?"-0":r}RG.exports=kG});var IM=pe((ygn,NG)=>{var $oe=BG();function Woe(e){return e==null?"":$oe(e)}NG.exports=Woe});var ih=pe((Sgn,LG)=>{var Qoe=no(),Yoe=s3(),Joe=MG(),Koe=IM();function Xoe(e,r){return Qoe(e)?e:Yoe(e,r)?[e]:Joe(Koe(e))}LG.exports=Xoe});var Ou=pe((wgn,VG)=>{var Zoe=nd(),tle=1/0;function ele(e){if(typeof e=="string"||Zoe(e))return e;var r=e+"";return r=="0"&&1/e==-tle?"-0":r}VG.exports=ele});var nh=pe((Pgn,qG)=>{var ile=ih(),nle=Ou();function ale(e,r){r=ile(r,e);for(var i=0,a=r.length;e!=null&&i{var rle=nh();function ole(e,r,i){var a=e==null?void 0:rle(e,r);return a===void 0?i:a}jG.exports=ole});var GG=pe((Ign,HG)=>{function lle(e,r){return e!=null&&r in Object(e)}HG.exports=lle});var TM=pe((Tgn,UG)=>{var sle=ih(),ple=Pu(),cle=no(),mle=W1(),dle=YC(),ule=Ou();function fle(e,r,i){r=sle(r,e);for(var a=-1,n=r.length,p=!1;++a{var hle=GG(),xle=TM();function gle(e,r){return e!=null&&xle(e,r,hle)}$G.exports=gle});var QG=pe((Dgn,WG)=>{var _le=SM(),vle=zG(),ble=MM(),Cle=s3(),yle=wM(),Sle=PM(),wle=Ou(),Ple=1,Ele=2;function Ile(e,r){return Cle(e)&&yle(r)?Sle(wle(e),r):function(i){var a=vle(i,e);return a===void 0&&a===r?ble(i,e):_le(r,a,Ple|Ele)}}WG.exports=Ile});var DM=pe((Ogn,YG)=>{function Tle(e){return function(r){return r?.[e]}}YG.exports=Tle});var KG=pe((Agn,JG)=>{var Mle=nh();function Dle(e){return function(r){return Mle(r,e)}}JG.exports=Dle});var ZG=pe((Fgn,XG)=>{var Ole=DM(),Ale=KG(),Fle=s3(),kle=Ou();function Rle(e){return Fle(e)?Ole(kle(e)):Ale(e)}XG.exports=Rle});var D0=pe((kgn,tU)=>{var Ble=bG(),Nle=QG(),Lle=uc(),Vle=no(),qle=ZG();function jle(e){return typeof e=="function"?e:e==null?Lle:typeof e=="object"?Vle(e)?Nle(e[0],e[1]):Ble(e):qle(e)}tU.exports=jle});var OM=pe((Rgn,eU)=>{var zle=ZT(),Hle=RH(),Gle=D0(),Ule=no();function $le(e,r){var i=Ule(e)?zle:Hle;return i(e,Gle(r,3))}eU.exports=$le});var nU=pe((Bgn,iU)=>{var Wle=Object.prototype,Qle=Wle.hasOwnProperty;function Yle(e,r){return e!=null&&Qle.call(e,r)}iU.exports=Yle});var AM=pe((Ngn,aU)=>{var Jle=nU(),Kle=TM();function Xle(e,r){return e!=null&&Kle(e,r,Jle)}aU.exports=Xle});var oU=pe((Lgn,rU)=>{var Zle=KC(),tse=id(),ese=Pu(),ise=no(),nse=M0(),ase=td(),rse=K1(),ose=Tu(),lse="[object Map]",sse="[object Set]",pse=Object.prototype,cse=pse.hasOwnProperty;function mse(e){if(e==null)return!0;if(nse(e)&&(ise(e)||typeof e=="string"||typeof e.splice=="function"||ase(e)||ose(e)||ese(e)))return!e.length;var r=tse(e);if(r==lse||r==sse)return!e.size;if(rse(e))return!Zle(e).length;for(var i in e)if(cse.call(e,i))return!1;return!0}rU.exports=mse});var FM=pe((Vgn,lU)=>{function dse(e){return e===void 0}lU.exports=dse});var kM=pe((qgn,sU)=>{var use=th(),fse=M0();function hse(e,r){var i=-1,a=fse(e)?Array(e.length):[];return use(e,function(n,p,d){a[++i]=r(n,p,d)}),a}sU.exports=hse});var RM=pe((jgn,pU)=>{var xse=eh(),gse=D0(),_se=kM(),vse=no();function bse(e,r){var i=vse(e)?xse:_se;return i(e,gse(r,3))}pU.exports=bse});var mU=pe((zgn,cU)=>{function Cse(e,r,i,a){var n=-1,p=e==null?0:e.length;for(a&&p&&(i=e[++n]);++n{function yse(e,r,i,a,n){return n(e,function(p,d,u){i=a?(a=!1,p):r(i,p,d,u)}),i}dU.exports=yse});var BM=pe((Ggn,fU)=>{var Sse=mU(),wse=th(),Pse=D0(),Ese=uU(),Ise=no();function Tse(e,r,i){var a=Ise(e)?Sse:Ese,n=arguments.length<3;return a(e,Pse(r,4),i,n,wse)}fU.exports=Tse});var xU=pe((Ugn,hU)=>{var Mse=cc(),Dse=no(),Ose=Zs(),Ase="[object String]";function Fse(e){return typeof e=="string"||!Dse(e)&&Ose(e)&&Mse(e)==Ase}hU.exports=Fse});var _U=pe(($gn,gU)=>{var kse=DM(),Rse=kse("length");gU.exports=Rse});var bU=pe((Wgn,vU)=>{var Bse="\\ud800-\\udfff",Nse="\\u0300-\\u036f",Lse="\\ufe20-\\ufe2f",Vse="\\u20d0-\\u20ff",qse=Nse+Lse+Vse,jse="\\ufe0e\\ufe0f",zse="\\u200d",Hse=RegExp("["+zse+Bse+qse+jse+"]");function Gse(e){return Hse.test(e)}vU.exports=Gse});var MU=pe((Qgn,TU)=>{var yU="\\ud800-\\udfff",Use="\\u0300-\\u036f",$se="\\ufe20-\\ufe2f",Wse="\\u20d0-\\u20ff",Qse=Use+$se+Wse,Yse="\\ufe0e\\ufe0f",Jse="["+yU+"]",NM="["+Qse+"]",LM="\\ud83c[\\udffb-\\udfff]",Kse="(?:"+NM+"|"+LM+")",SU="[^"+yU+"]",wU="(?:\\ud83c[\\udde6-\\uddff]){2}",PU="[\\ud800-\\udbff][\\udc00-\\udfff]",Xse="\\u200d",EU=Kse+"?",IU="["+Yse+"]?",Zse="(?:"+Xse+"(?:"+[SU,wU,PU].join("|")+")"+IU+EU+")*",t0e=IU+EU+Zse,e0e="(?:"+[SU+NM+"?",NM,wU,PU,Jse].join("|")+")",CU=RegExp(LM+"(?="+LM+")|"+e0e+t0e,"g");function i0e(e){for(var r=CU.lastIndex=0;CU.test(e);)++r;return r}TU.exports=i0e});var OU=pe((Ygn,DU)=>{var n0e=_U(),a0e=bU(),r0e=MU();function o0e(e){return a0e(e)?r0e(e):n0e(e)}DU.exports=o0e});var FU=pe((Jgn,AU)=>{var l0e=KC(),s0e=id(),p0e=M0(),c0e=xU(),m0e=OU(),d0e="[object Map]",u0e="[object Set]";function f0e(e){if(e==null)return 0;if(p0e(e))return c0e(e)?m0e(e):e.length;var r=s0e(e);return r==d0e||r==u0e?e.size:l0e(e).length}AU.exports=f0e});var RU=pe((Kgn,kU)=>{var h0e=QC(),x0e=dM(),g0e=a3(),_0e=D0(),v0e=Z1(),b0e=no(),C0e=td(),y0e=bu(),S0e=Jl(),w0e=Tu();function P0e(e,r,i){var a=b0e(e),n=a||C0e(e)||w0e(e);if(r=_0e(r,4),i==null){var p=e&&e.constructor;n?i=a?new p:[]:S0e(e)?i=y0e(p)?x0e(v0e(e)):{}:i={}}return(n?h0e:g0e)(e,function(d,u,x){return r(i,d,u,x)}),i}kU.exports=P0e});var VU=pe((Xgn,LU)=>{var BU=Zm(),E0e=Pu(),I0e=no(),NU=BU?BU.isConcatSpreadable:void 0;function T0e(e){return I0e(e)||E0e(e)||!!(NU&&e&&e[NU])}LU.exports=T0e});var p3=pe((Zgn,jU)=>{var M0e=ZC(),D0e=VU();function qU(e,r,i,a,n){var p=-1,d=e.length;for(i||(i=D0e),n||(n=[]);++p0&&i(u)?r>1?qU(u,r-1,i,a,n):M0e(n,u):a||(n[n.length]=u)}return n}jU.exports=qU});var HU=pe((t_n,zU)=>{function O0e(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}zU.exports=O0e});var VM=pe((e_n,UU)=>{var A0e=HU(),GU=Math.max;function F0e(e,r,i){return r=GU(r===void 0?e.length-1:r,0),function(){for(var a=arguments,n=-1,p=GU(a.length-r,0),d=Array(p);++n{var k0e=i3(),$U=WT(),R0e=uc(),B0e=$U?function(e,r){return $U(e,"toString",{configurable:!0,enumerable:!1,value:k0e(r),writable:!0})}:R0e;WU.exports=B0e});var JU=pe((n_n,YU)=>{var N0e=800,L0e=16,V0e=Date.now;function q0e(e){var r=0,i=0;return function(){var a=V0e(),n=L0e-(a-i);if(i=a,n>0){if(++r>=N0e)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}YU.exports=q0e});var qM=pe((a_n,KU)=>{var j0e=QU(),z0e=JU(),H0e=z0e(j0e);KU.exports=H0e});var ah=pe((r_n,XU)=>{var G0e=uc(),U0e=VM(),$0e=qM();function W0e(e,r){return $0e(U0e(e,r,G0e),e+"")}XU.exports=W0e});var jM=pe((o_n,ZU)=>{function Q0e(e,r,i,a){for(var n=e.length,p=i+(a?1:-1);a?p--:++p{function Y0e(e){return e!==e}t$.exports=Y0e});var n$=pe((s_n,i$)=>{function J0e(e,r,i){for(var a=i-1,n=e.length;++a{var K0e=jM(),X0e=e$(),Z0e=n$();function tpe(e,r,i){return r===r?Z0e(e,r,i):K0e(e,X0e,i)}a$.exports=tpe});var l$=pe((c_n,o$)=>{var epe=r$();function ipe(e,r){var i=e==null?0:e.length;return!!i&&epe(e,r,0)>-1}o$.exports=ipe});var p$=pe((m_n,s$)=>{function npe(e,r,i){for(var a=-1,n=e==null?0:e.length;++a{function ape(){}c$.exports=ape});var u$=pe((u_n,d$)=>{var zM=aM(),rpe=m$(),ope=o3(),lpe=1/0,spe=zM&&1/ope(new zM([,-0]))[1]==lpe?function(e){return new zM(e)}:rpe;d$.exports=spe});var h$=pe((f_n,f$)=>{var ppe=_M(),cpe=l$(),mpe=p$(),dpe=vM(),upe=u$(),fpe=o3(),hpe=200;function xpe(e,r,i){var a=-1,n=cpe,p=e.length,d=!0,u=[],x=u;if(i)d=!1,n=mpe;else if(p>=hpe){var _=r?null:upe(e);if(_)return fpe(_);d=!1,n=dpe,x=new ppe}else x=r?[]:u;t:for(;++a{var gpe=M0(),_pe=Zs();function vpe(e){return _pe(e)&&gpe(e)}x$.exports=vpe});var _$=pe((x_n,g$)=>{var bpe=p3(),Cpe=ah(),ype=h$(),Spe=HM(),wpe=Cpe(function(e){return ype(bpe(e,1,Spe,!0))});g$.exports=wpe});var b$=pe((g_n,v$)=>{var Ppe=eh();function Epe(e,r){return Ppe(r,function(i){return e[i]})}v$.exports=Epe});var GM=pe((__n,C$)=>{var Ipe=b$(),Tpe=cp();function Mpe(e){return e==null?[]:Ipe(e,Tpe(e))}C$.exports=Mpe});var Kl=pe((v_n,y$)=>{var c3;if(typeof Vs=="function")try{c3={clone:CH(),constant:i3(),each:gM(),filter:OM(),has:AM(),isArray:no(),isEmpty:oU(),isFunction:bu(),isUndefined:FM(),keys:cp(),map:RM(),reduce:BM(),size:FU(),transform:RU(),union:_$(),values:GM()}}catch{}c3||(c3=window._);y$.exports=c3});var m3=pe((C_n,E$)=>{"use strict";var oa=Kl();E$.exports=Ea;var Dpe="\0",ad="\0",S$="";function Ea(e){this._isDirected=oa.has(e,"directed")?e.directed:!0,this._isMultigraph=oa.has(e,"multigraph")?e.multigraph:!1,this._isCompound=oa.has(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=oa.constant(void 0),this._defaultEdgeLabelFn=oa.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[ad]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}Ea.prototype._nodeCount=0;Ea.prototype._edgeCount=0;Ea.prototype.isDirected=function(){return this._isDirected};Ea.prototype.isMultigraph=function(){return this._isMultigraph};Ea.prototype.isCompound=function(){return this._isCompound};Ea.prototype.setGraph=function(e){return this._label=e,this};Ea.prototype.graph=function(){return this._label};Ea.prototype.setDefaultNodeLabel=function(e){return oa.isFunction(e)||(e=oa.constant(e)),this._defaultNodeLabelFn=e,this};Ea.prototype.nodeCount=function(){return this._nodeCount};Ea.prototype.nodes=function(){return oa.keys(this._nodes)};Ea.prototype.sources=function(){var e=this;return oa.filter(this.nodes(),function(r){return oa.isEmpty(e._in[r])})};Ea.prototype.sinks=function(){var e=this;return oa.filter(this.nodes(),function(r){return oa.isEmpty(e._out[r])})};Ea.prototype.setNodes=function(e,r){var i=arguments,a=this;return oa.each(e,function(n){i.length>1?a.setNode(n,r):a.setNode(n)}),this};Ea.prototype.setNode=function(e,r){return oa.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=ad,this._children[e]={},this._children[ad][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)};Ea.prototype.node=function(e){return this._nodes[e]};Ea.prototype.hasNode=function(e){return oa.has(this._nodes,e)};Ea.prototype.removeNode=function(e){var r=this;if(oa.has(this._nodes,e)){var i=function(a){r.removeEdge(r._edgeObjs[a])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],oa.each(this.children(e),function(a){r.setParent(a)}),delete this._children[e]),oa.each(oa.keys(this._in[e]),i),delete this._in[e],delete this._preds[e],oa.each(oa.keys(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this};Ea.prototype.setParent=function(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(oa.isUndefined(r))r=ad;else{r+="";for(var i=r;!oa.isUndefined(i);i=this.parent(i))if(i===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this};Ea.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]};Ea.prototype.parent=function(e){if(this._isCompound){var r=this._parent[e];if(r!==ad)return r}};Ea.prototype.children=function(e){if(oa.isUndefined(e)&&(e=ad),this._isCompound){var r=this._children[e];if(r)return oa.keys(r)}else{if(e===ad)return this.nodes();if(this.hasNode(e))return[]}};Ea.prototype.predecessors=function(e){var r=this._preds[e];if(r)return oa.keys(r)};Ea.prototype.successors=function(e){var r=this._sucs[e];if(r)return oa.keys(r)};Ea.prototype.neighbors=function(e){var r=this.predecessors(e);if(r)return oa.union(r,this.successors(e))};Ea.prototype.isLeaf=function(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0};Ea.prototype.filterNodes=function(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;oa.each(this._nodes,function(p,d){e(d)&&r.setNode(d,p)}),oa.each(this._edgeObjs,function(p){r.hasNode(p.v)&&r.hasNode(p.w)&&r.setEdge(p,i.edge(p))});var a={};function n(p){var d=i.parent(p);return d===void 0||r.hasNode(d)?(a[p]=d,d):d in a?a[d]:n(d)}return this._isCompound&&oa.each(r.nodes(),function(p){r.setParent(p,n(p))}),r};Ea.prototype.setDefaultEdgeLabel=function(e){return oa.isFunction(e)||(e=oa.constant(e)),this._defaultEdgeLabelFn=e,this};Ea.prototype.edgeCount=function(){return this._edgeCount};Ea.prototype.edges=function(){return oa.values(this._edgeObjs)};Ea.prototype.setPath=function(e,r){var i=this,a=arguments;return oa.reduce(e,function(n,p){return a.length>1?i.setEdge(n,p,r):i.setEdge(n,p),p}),this};Ea.prototype.setEdge=function(){var e,r,i,a,n=!1,p=arguments[0];typeof p=="object"&&p!==null&&"v"in p?(e=p.v,r=p.w,i=p.name,arguments.length===2&&(a=arguments[1],n=!0)):(e=p,r=arguments[1],i=arguments[3],arguments.length>2&&(a=arguments[2],n=!0)),e=""+e,r=""+r,oa.isUndefined(i)||(i=""+i);var d=rh(this._isDirected,e,r,i);if(oa.has(this._edgeLabels,d))return n&&(this._edgeLabels[d]=a),this;if(!oa.isUndefined(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[d]=n?a:this._defaultEdgeLabelFn(e,r,i);var u=Ope(this._isDirected,e,r,i);return e=u.v,r=u.w,Object.freeze(u),this._edgeObjs[d]=u,w$(this._preds[r],e),w$(this._sucs[e],r),this._in[r][d]=u,this._out[e][d]=u,this._edgeCount++,this};Ea.prototype.edge=function(e,r,i){var a=arguments.length===1?UM(this._isDirected,arguments[0]):rh(this._isDirected,e,r,i);return this._edgeLabels[a]};Ea.prototype.hasEdge=function(e,r,i){var a=arguments.length===1?UM(this._isDirected,arguments[0]):rh(this._isDirected,e,r,i);return oa.has(this._edgeLabels,a)};Ea.prototype.removeEdge=function(e,r,i){var a=arguments.length===1?UM(this._isDirected,arguments[0]):rh(this._isDirected,e,r,i),n=this._edgeObjs[a];return n&&(e=n.v,r=n.w,delete this._edgeLabels[a],delete this._edgeObjs[a],P$(this._preds[r],e),P$(this._sucs[e],r),delete this._in[r][a],delete this._out[e][a],this._edgeCount--),this};Ea.prototype.inEdges=function(e,r){var i=this._in[e];if(i){var a=oa.values(i);return r?oa.filter(a,function(n){return n.v===r}):a}};Ea.prototype.outEdges=function(e,r){var i=this._out[e];if(i){var a=oa.values(i);return r?oa.filter(a,function(n){return n.w===r}):a}};Ea.prototype.nodeEdges=function(e,r){var i=this.inEdges(e,r);if(i)return i.concat(this.outEdges(e,r))};function w$(e,r){e[r]?e[r]++:e[r]=1}function P$(e,r){--e[r]||delete e[r]}function rh(e,r,i,a){var n=""+r,p=""+i;if(!e&&n>p){var d=n;n=p,p=d}return n+S$+p+S$+(oa.isUndefined(a)?Dpe:a)}function Ope(e,r,i,a){var n=""+r,p=""+i;if(!e&&n>p){var d=n;n=p,p=d}var u={v:n,w:p};return a&&(u.name=a),u}function UM(e,r){return rh(e,r.v,r.w,r.name)}});var T$=pe((y_n,I$)=>{I$.exports="2.1.8"});var D$=pe((S_n,M$)=>{M$.exports={Graph:m3(),version:T$()}});var A$=pe((w_n,O$)=>{var O0=Kl(),Ape=m3();O$.exports={write:Fpe,read:Bpe};function Fpe(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:kpe(e),edges:Rpe(e)};return O0.isUndefined(e.graph())||(r.value=O0.clone(e.graph())),r}function kpe(e){return O0.map(e.nodes(),function(r){var i=e.node(r),a=e.parent(r),n={v:r};return O0.isUndefined(i)||(n.value=i),O0.isUndefined(a)||(n.parent=a),n})}function Rpe(e){return O0.map(e.edges(),function(r){var i=e.edge(r),a={v:r.v,w:r.w};return O0.isUndefined(r.name)||(a.name=r.name),O0.isUndefined(i)||(a.value=i),a})}function Bpe(e){var r=new Ape(e.options).setGraph(e.value);return O0.each(e.nodes,function(i){r.setNode(i.v,i.value),i.parent&&r.setParent(i.v,i.parent)}),O0.each(e.edges,function(i){r.setEdge({v:i.v,w:i.w,name:i.name},i.value)}),r}});var k$=pe((P_n,F$)=>{var u3=Kl();F$.exports=Npe;function Npe(e){var r={},i=[],a;function n(p){u3.has(r,p)||(r[p]=!0,a.push(p),u3.each(e.successors(p),n),u3.each(e.predecessors(p),n))}return u3.each(e.nodes(),function(p){a=[],n(p),a.length&&i.push(a)}),i}});var $M=pe((E_n,B$)=>{var R$=Kl();B$.exports=Es;function Es(){this._arr=[],this._keyIndices={}}Es.prototype.size=function(){return this._arr.length};Es.prototype.keys=function(){return this._arr.map(function(e){return e.key})};Es.prototype.has=function(e){return R$.has(this._keyIndices,e)};Es.prototype.priority=function(e){var r=this._keyIndices[e];if(r!==void 0)return this._arr[r].priority};Es.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};Es.prototype.add=function(e,r){var i=this._keyIndices;if(e=String(e),!R$.has(i,e)){var a=this._arr,n=a.length;return i[e]=n,a.push({key:e,priority:r}),this._decrease(n),!0}return!1};Es.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key};Es.prototype.decrease=function(e,r){var i=this._keyIndices[e];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)};Es.prototype._heapify=function(e){var r=this._arr,i=2*e,a=i+1,n=e;i>1,!(r[a].priority{var Lpe=Kl(),Vpe=$M();N$.exports=jpe;var qpe=Lpe.constant(1);function jpe(e,r,i,a){return zpe(e,String(r),i||qpe,a||function(n){return e.outEdges(n)})}function zpe(e,r,i,a){var n={},p=new Vpe,d,u,x=function(_){var v=_.v!==d?_.v:_.w,C=n[v],S=i(_),E=u.distance+S;if(S<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+_+" Weight: "+S);E0&&(d=p.removeMin(),u=n[d],u.distance!==Number.POSITIVE_INFINITY);)a(d).forEach(x);return n}});var V$=pe((T_n,L$)=>{var Hpe=WM(),Gpe=Kl();L$.exports=Upe;function Upe(e,r,i){return Gpe.transform(e.nodes(),function(a,n){a[n]=Hpe(e,n,r,i)},{})}});var QM=pe((M_n,j$)=>{var q$=Kl();j$.exports=$pe;function $pe(e){var r=0,i=[],a={},n=[];function p(d){var u=a[d]={onStack:!0,lowlink:r,index:r++};if(i.push(d),e.successors(d).forEach(function(v){q$.has(a,v)?a[v].onStack&&(u.lowlink=Math.min(u.lowlink,a[v].index)):(p(v),u.lowlink=Math.min(u.lowlink,a[v].lowlink))}),u.lowlink===u.index){var x=[],_;do _=i.pop(),a[_].onStack=!1,x.push(_);while(d!==_);n.push(x)}}return e.nodes().forEach(function(d){q$.has(a,d)||p(d)}),n}});var H$=pe((D_n,z$)=>{var Wpe=Kl(),Qpe=QM();z$.exports=Ype;function Ype(e){return Wpe.filter(Qpe(e),function(r){return r.length>1||r.length===1&&e.hasEdge(r[0],r[0])})}});var U$=pe((O_n,G$)=>{var Jpe=Kl();G$.exports=Xpe;var Kpe=Jpe.constant(1);function Xpe(e,r,i){return Zpe(e,r||Kpe,i||function(a){return e.outEdges(a)})}function Zpe(e,r,i){var a={},n=e.nodes();return n.forEach(function(p){a[p]={},a[p][p]={distance:0},n.forEach(function(d){p!==d&&(a[p][d]={distance:Number.POSITIVE_INFINITY})}),i(p).forEach(function(d){var u=d.v===p?d.w:d.v,x=r(d);a[p][u]={distance:x,predecessor:p}})}),n.forEach(function(p){var d=a[p];n.forEach(function(u){var x=a[u];n.forEach(function(_){var v=x[p],C=d[_],S=x[_],E=v.distance+C.distance;E{var oh=Kl();W$.exports=$$;$$.CycleException=f3;function $$(e){var r={},i={},a=[];function n(p){if(oh.has(i,p))throw new f3;oh.has(r,p)||(i[p]=!0,r[p]=!0,oh.each(e.predecessors(p),n),delete i[p],a.push(p))}if(oh.each(e.sinks(),n),oh.size(r)!==e.nodeCount())throw new f3;return a}function f3(){}f3.prototype=new Error});var J$=pe((F_n,Y$)=>{var Q$=YM();Y$.exports=tce;function tce(e){try{Q$(e)}catch(r){if(r instanceof Q$.CycleException)return!1;throw r}return!0}});var JM=pe((k_n,X$)=>{var h3=Kl();X$.exports=ece;function ece(e,r,i){h3.isArray(r)||(r=[r]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),n=[],p={};return h3.each(r,function(d){if(!e.hasNode(d))throw new Error("Graph does not have node: "+d);K$(e,d,i==="post",p,a,n)}),n}function K$(e,r,i,a,n,p){h3.has(a,r)||(a[r]=!0,i||p.push(r),h3.each(n(r),function(d){K$(e,d,i,a,n,p)}),i&&p.push(r))}});var tW=pe((R_n,Z$)=>{var ice=JM();Z$.exports=nce;function nce(e,r){return ice(e,r,"post")}});var iW=pe((B_n,eW)=>{var ace=JM();eW.exports=rce;function rce(e,r){return ace(e,r,"pre")}});var rW=pe((N_n,aW)=>{var nW=Kl(),oce=m3(),lce=$M();aW.exports=sce;function sce(e,r){var i=new oce,a={},n=new lce,p;function d(x){var _=x.v===p?x.w:x.v,v=n.priority(_);if(v!==void 0){var C=r(x);C0;){if(p=n.removeMin(),nW.has(a,p))i.setEdge(p,a[p]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(p).forEach(d)}return i}});var lW=pe((L_n,oW)=>{oW.exports={components:k$(),dijkstra:WM(),dijkstraAll:V$(),findCycles:H$(),floydWarshall:U$(),isAcyclic:J$(),postorder:tW(),preorder:iW(),prim:rW(),tarjan:QM(),topsort:YM()}});var cW=pe((V_n,pW)=>{var sW=D$();pW.exports={Graph:sW.Graph,json:A$(),alg:lW(),version:sW.version}});var Is=pe((q_n,mW)=>{var x3;if(typeof Vs=="function")try{x3=cW()}catch{}x3||(x3=window.graphlib);mW.exports=x3});var uW=pe((z_n,dW)=>{var pce=fM(),cce=1,mce=4;function dce(e){return pce(e,cce|mce)}dW.exports=dce});var lh=pe((H_n,fW)=>{var uce=Xm(),fce=M0(),hce=W1(),xce=Jl();function gce(e,r,i){if(!xce(i))return!1;var a=typeof r;return(a=="number"?fce(i)&&hce(r,i.length):a=="string"&&r in i)?uce(i[r],e):!1}fW.exports=gce});var gW=pe((G_n,xW)=>{var _ce=ah(),vce=Xm(),bce=lh(),Cce=dc(),hW=Object.prototype,yce=hW.hasOwnProperty,Sce=_ce(function(e,r){e=Object(e);var i=-1,a=r.length,n=a>2?r[2]:void 0;for(n&&bce(r[0],r[1],n)&&(a=1);++i{var wce=D0(),Pce=M0(),Ece=cp();function Ice(e){return function(r,i,a){var n=Object(r);if(!Pce(r)){var p=wce(i,3);r=Ece(r),i=function(u){return p(n[u],u,n)}}var d=e(r,i,a);return d>-1?n[p?r[d]:d]:void 0}}_W.exports=Ice});var CW=pe(($_n,bW)=>{var Tce=/\s/;function Mce(e){for(var r=e.length;r--&&Tce.test(e.charAt(r)););return r}bW.exports=Mce});var SW=pe((W_n,yW)=>{var Dce=CW(),Oce=/^\s+/;function Ace(e){return e&&e.slice(0,Dce(e)+1).replace(Oce,"")}yW.exports=Ace});var IW=pe((Q_n,EW)=>{var Fce=SW(),wW=Jl(),kce=nd(),PW=NaN,Rce=/^[-+]0x[0-9a-f]+$/i,Bce=/^0b[01]+$/i,Nce=/^0o[0-7]+$/i,Lce=parseInt;function Vce(e){if(typeof e=="number")return e;if(kce(e))return PW;if(wW(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=wW(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Fce(e);var i=Bce.test(e);return i||Nce.test(e)?Lce(e.slice(2),i?2:8):Rce.test(e)?PW:+e}EW.exports=Vce});var KM=pe((Y_n,MW)=>{var qce=IW(),TW=1/0,jce=17976931348623157e292;function zce(e){if(!e)return e===0?e:0;if(e=qce(e),e===TW||e===-TW){var r=e<0?-1:1;return r*jce}return e===e?e:0}MW.exports=zce});var OW=pe((J_n,DW)=>{var Hce=KM();function Gce(e){var r=Hce(e),i=r%1;return r===r?i?r-i:r:0}DW.exports=Gce});var FW=pe((K_n,AW)=>{var Uce=jM(),$ce=D0(),Wce=OW(),Qce=Math.max;function Yce(e,r,i){var a=e==null?0:e.length;if(!a)return-1;var n=i==null?0:Wce(i);return n<0&&(n=Qce(a+n,0)),Uce(e,$ce(r,3),n)}AW.exports=Yce});var RW=pe((X_n,kW)=>{var Jce=vW(),Kce=FW(),Xce=Jce(Kce);kW.exports=Xce});var XM=pe((Z_n,BW)=>{var Zce=p3();function tme(e){var r=e==null?0:e.length;return r?Zce(e,1):[]}BW.exports=tme});var LW=pe((tvn,NW)=>{var eme=n3(),ime=hM(),nme=dc();function ame(e,r){return e==null?e:eme(e,ime(r),nme)}NW.exports=ame});var qW=pe((evn,VW)=>{function rme(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}VW.exports=rme});var zW=pe((ivn,jW)=>{var ome=G1(),lme=a3(),sme=D0();function pme(e,r){var i={};return r=sme(r,3),lme(e,function(a,n,p){ome(i,n,r(a,n,p))}),i}jW.exports=pme});var g3=pe((nvn,HW)=>{var cme=nd();function mme(e,r,i){for(var a=-1,n=e.length;++a{function dme(e,r){return e>r}GW.exports=dme});var WW=pe((rvn,$W)=>{var ume=g3(),fme=UW(),hme=uc();function xme(e){return e&&e.length?ume(e,hme,fme):void 0}$W.exports=xme});var ZM=pe((ovn,QW)=>{var gme=G1(),_me=Xm();function vme(e,r,i){(i!==void 0&&!_me(e[r],i)||i===void 0&&!(r in e))&&gme(e,r,i)}QW.exports=vme});var KW=pe((lvn,JW)=>{var bme=cc(),Cme=Z1(),yme=Zs(),Sme="[object Object]",wme=Function.prototype,Pme=Object.prototype,YW=wme.toString,Eme=Pme.hasOwnProperty,Ime=YW.call(Object);function Tme(e){if(!yme(e)||bme(e)!=Sme)return!1;var r=Cme(e);if(r===null)return!0;var i=Eme.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&YW.call(i)==Ime}JW.exports=Tme});var t6=pe((svn,XW)=>{function Mme(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}XW.exports=Mme});var tQ=pe((pvn,ZW)=>{var Dme=wu(),Ome=dc();function Ame(e){return Dme(e,Ome(e))}ZW.exports=Ame});var oQ=pe((cvn,rQ)=>{var eQ=ZM(),Fme=KT(),kme=mM(),Rme=XT(),Bme=uM(),iQ=Pu(),nQ=no(),Nme=HM(),Lme=td(),Vme=bu(),qme=Jl(),jme=KW(),zme=Tu(),aQ=t6(),Hme=tQ();function Gme(e,r,i,a,n,p,d){var u=aQ(e,i),x=aQ(r,i),_=d.get(x);if(_){eQ(e,i,_);return}var v=p?p(u,x,i+"",e,r,d):void 0,C=v===void 0;if(C){var S=nQ(x),E=!S&&Lme(x),w=!S&&!E&&zme(x);v=x,S||E||w?nQ(u)?v=u:Nme(u)?v=Rme(u):E?(C=!1,v=Fme(x,!0)):w?(C=!1,v=kme(x,!0)):v=[]:jme(x)||iQ(x)?(v=u,iQ(u)?v=Hme(u):(!qme(u)||Vme(u))&&(v=Bme(x))):C=!1}C&&(d.set(x,v),n(v,x,a,p,d),d.delete(x)),eQ(e,i,v)}rQ.exports=Gme});var pQ=pe((mvn,sQ)=>{var Ume=H1(),$me=ZM(),Wme=n3(),Qme=oQ(),Yme=Jl(),Jme=dc(),Kme=t6();function lQ(e,r,i,a,n){e!==r&&Wme(r,function(p,d){if(n||(n=new Ume),Yme(p))Qme(e,r,d,i,lQ,a,n);else{var u=a?a(Kme(e,d),p,d+"",e,r,n):void 0;u===void 0&&(u=p),$me(e,d,u)}},Jme)}sQ.exports=lQ});var mQ=pe((dvn,cQ)=>{var Xme=ah(),Zme=lh();function tde(e){return Xme(function(r,i){var a=-1,n=i.length,p=n>1?i[n-1]:void 0,d=n>2?i[2]:void 0;for(p=e.length>3&&typeof p=="function"?(n--,p):void 0,d&&Zme(i[0],i[1],d)&&(p=n<3?void 0:p,n=1),r=Object(r);++a{var ede=pQ(),ide=mQ(),nde=ide(function(e,r,i){ede(e,r,i)});dQ.exports=nde});var e6=pe((fvn,fQ)=>{function ade(e,r){return e{var rde=g3(),ode=e6(),lde=uc();function sde(e){return e&&e.length?rde(e,lde,ode):void 0}hQ.exports=sde});var _Q=pe((xvn,gQ)=>{var pde=g3(),cde=D0(),mde=e6();function dde(e,r){return e&&e.length?pde(e,cde(r,2),mde):void 0}gQ.exports=dde});var bQ=pe((gvn,vQ)=>{var ude=Ps(),fde=function(){return ude.Date.now()};vQ.exports=fde});var SQ=pe((_vn,yQ)=>{var hde=U1(),xde=ih(),gde=W1(),CQ=Jl(),_de=Ou();function vde(e,r,i,a){if(!CQ(e))return e;r=xde(r,e);for(var n=-1,p=r.length,d=p-1,u=e;u!=null&&++n{var bde=nh(),Cde=SQ(),yde=ih();function Sde(e,r,i){for(var a=-1,n=r.length,p={};++a{var wde=PQ(),Pde=MM();function Ede(e,r){return wde(e,r,function(i,a){return Pde(e,a)})}EQ.exports=Ede});var MQ=pe((Cvn,TQ)=>{var Ide=XM(),Tde=VM(),Mde=qM();function Dde(e){return Mde(Tde(e,void 0,Ide),e+"")}TQ.exports=Dde});var OQ=pe((yvn,DQ)=>{var Ode=IQ(),Ade=MQ(),Fde=Ade(function(e,r){return e==null?{}:Ode(e,r)});DQ.exports=Fde});var FQ=pe((Svn,AQ)=>{var kde=Math.ceil,Rde=Math.max;function Bde(e,r,i,a){for(var n=-1,p=Rde(kde((r-e)/(i||1)),0),d=Array(p);p--;)d[a?p:++n]=e,e+=i;return d}AQ.exports=Bde});var RQ=pe((wvn,kQ)=>{var Nde=FQ(),Lde=lh(),i6=KM();function Vde(e){return function(r,i,a){return a&&typeof a!="number"&&Lde(r,i,a)&&(i=a=void 0),r=i6(r),i===void 0?(i=r,r=0):i=i6(i),a=a===void 0?r{var qde=RQ(),jde=qde();BQ.exports=jde});var VQ=pe((Evn,LQ)=>{function zde(e,r){var i=e.length;for(e.sort(r);i--;)e[i]=e[i].value;return e}LQ.exports=zde});var zQ=pe((Ivn,jQ)=>{var qQ=nd();function Hde(e,r){if(e!==r){var i=e!==void 0,a=e===null,n=e===e,p=qQ(e),d=r!==void 0,u=r===null,x=r===r,_=qQ(r);if(!u&&!_&&!p&&e>r||p&&d&&x&&!u&&!_||a&&d&&x||!i&&x||!n)return 1;if(!a&&!p&&!_&&e{var Gde=zQ();function Ude(e,r,i){for(var a=-1,n=e.criteria,p=r.criteria,d=n.length,u=i.length;++a=u)return x;var _=i[a];return x*(_=="desc"?-1:1)}}return e.index-r.index}HQ.exports=Ude});var $Q=pe((Mvn,UQ)=>{var n6=eh(),$de=nh(),Wde=D0(),Qde=kM(),Yde=VQ(),Jde=Q1(),Kde=GQ(),Xde=uc(),Zde=no();function tue(e,r,i){r.length?r=n6(r,function(p){return Zde(p)?function(d){return $de(d,p.length===1?p[0]:p)}:p}):r=[Xde];var a=-1;r=n6(r,Jde(Wde));var n=Qde(e,function(p,d,u){var x=n6(r,function(_){return _(p)});return{criteria:x,index:++a,value:p}});return Yde(n,function(p,d){return Kde(p,d,i)})}UQ.exports=tue});var YQ=pe((Dvn,QQ)=>{var eue=p3(),iue=$Q(),nue=ah(),WQ=lh(),aue=nue(function(e,r){if(e==null)return[];var i=r.length;return i>1&&WQ(e,r[0],r[1])?r=[]:i>2&&WQ(r[0],r[1],r[2])&&(r=[r[0]]),iue(e,eue(r,1),[])});QQ.exports=aue});var KQ=pe((Ovn,JQ)=>{var rue=IM(),oue=0;function lue(e){var r=++oue;return rue(e)+r}JQ.exports=lue});var ZQ=pe((Avn,XQ)=>{function sue(e,r,i){for(var a=-1,n=e.length,p=r.length,d={};++a{var pue=U1(),cue=ZQ();function mue(e,r){return cue(e||[],r||[],pue)}tY.exports=mue});var Or=pe((kvn,iY)=>{var _3;if(typeof Vs=="function")try{_3={cloneDeep:uW(),constant:i3(),defaults:gW(),each:gM(),filter:OM(),find:RW(),flatten:XM(),forEach:xM(),forIn:LW(),has:AM(),isUndefined:FM(),last:qW(),map:RM(),mapValues:zW(),max:WW(),merge:uQ(),min:xQ(),minBy:_Q(),now:bQ(),pick:OQ(),range:NQ(),reduce:BM(),sortBy:YQ(),uniqueId:KQ(),values:GM(),zipObject:eY()}}catch{}_3||(_3=window._);iY.exports=_3});var rY=pe((Bvn,aY)=>{aY.exports=v3;function v3(){var e={};e._next=e._prev=e,this._sentinel=e}v3.prototype.dequeue=function(){var e=this._sentinel,r=e._prev;if(r!==e)return nY(r),r};v3.prototype.enqueue=function(e){var r=this._sentinel;e._prev&&e._next&&nY(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r};v3.prototype.toString=function(){for(var e=[],r=this._sentinel,i=r._prev;i!==r;)e.push(JSON.stringify(i,due)),i=i._prev;return"["+e.join(", ")+"]"};function nY(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function due(e,r){if(e!=="_next"&&e!=="_prev")return r}});var lY=pe((Nvn,oY)=>{var mp=Or(),uue=Is().Graph,fue=rY();oY.exports=xue;var hue=mp.constant(1);function xue(e,r){if(e.nodeCount()<=1)return[];var i=_ue(e,r||hue),a=gue(i.graph,i.buckets,i.zeroIdx);return mp.flatten(mp.map(a,function(n){return e.outEdges(n.v,n.w)}),!0)}function gue(e,r,i){for(var a=[],n=r[r.length-1],p=r[0],d;e.nodeCount();){for(;d=p.dequeue();)a6(e,r,i,d);for(;d=n.dequeue();)a6(e,r,i,d);if(e.nodeCount()){for(var u=r.length-2;u>0;--u)if(d=r[u].dequeue(),d){a=a.concat(a6(e,r,i,d,!0));break}}}return a}function a6(e,r,i,a,n){var p=n?[]:void 0;return mp.forEach(e.inEdges(a.v),function(d){var u=e.edge(d),x=e.node(d.v);n&&p.push({v:d.v,w:d.w}),x.out-=u,r6(r,i,x)}),mp.forEach(e.outEdges(a.v),function(d){var u=e.edge(d),x=d.w,_=e.node(x);_.in-=u,r6(r,i,_)}),e.removeNode(a.v),p}function _ue(e,r){var i=new uue,a=0,n=0;mp.forEach(e.nodes(),function(u){i.setNode(u,{v:u,in:0,out:0})}),mp.forEach(e.edges(),function(u){var x=i.edge(u.v,u.w)||0,_=r(u),v=x+_;i.setEdge(u.v,u.w,v),n=Math.max(n,i.node(u.v).out+=_),a=Math.max(a,i.node(u.w).in+=_)});var p=mp.range(n+a+3).map(function(){return new fue}),d=a+1;return mp.forEach(i.nodes(),function(u){r6(p,d,i.node(u))}),{graph:i,buckets:p,zeroIdx:d}}function r6(e,r,i){i.out?i.in?e[i.out-i.in+r].enqueue(i):e[e.length-1].enqueue(i):e[0].enqueue(i)}});var pY=pe((Lvn,sY)=>{"use strict";var rd=Or(),vue=lY();sY.exports={run:bue,undo:yue};function bue(e){var r=e.graph().acyclicer==="greedy"?vue(e,i(e)):Cue(e);rd.forEach(r,function(a){var n=e.edge(a);e.removeEdge(a),n.forwardName=a.name,n.reversed=!0,e.setEdge(a.w,a.v,n,rd.uniqueId("rev"))});function i(a){return function(n){return a.edge(n).weight}}}function Cue(e){var r=[],i={},a={};function n(p){rd.has(a,p)||(a[p]=!0,i[p]=!0,rd.forEach(e.outEdges(p),function(d){rd.has(i,d.w)?r.push(d):n(d.w)}),delete i[p])}return rd.forEach(e.nodes(),n),r}function yue(e){rd.forEach(e.edges(),function(r){var i=e.edge(r);if(i.reversed){e.removeEdge(r);var a=i.forwardName;delete i.reversed,delete i.forwardName,e.setEdge(r.w,r.v,i,a)}})}});var gl=pe((Vvn,uY)=>{"use strict";var Ya=Or(),cY=Is().Graph;uY.exports={addDummyNode:mY,simplify:Sue,asNonCompoundGraph:wue,successorWeights:Pue,predecessorWeights:Eue,intersectRect:Iue,buildLayerMatrix:Tue,normalizeRanks:Mue,removeEmptyRanks:Due,addBorderNode:Oue,maxRank:dY,partition:Aue,time:Fue,notime:kue};function mY(e,r,i,a){var n;do n=Ya.uniqueId(a);while(e.hasNode(n));return i.dummy=r,e.setNode(n,i),n}function Sue(e){var r=new cY().setGraph(e.graph());return Ya.forEach(e.nodes(),function(i){r.setNode(i,e.node(i))}),Ya.forEach(e.edges(),function(i){var a=r.edge(i.v,i.w)||{weight:0,minlen:1},n=e.edge(i);r.setEdge(i.v,i.w,{weight:a.weight+n.weight,minlen:Math.max(a.minlen,n.minlen)})}),r}function wue(e){var r=new cY({multigraph:e.isMultigraph()}).setGraph(e.graph());return Ya.forEach(e.nodes(),function(i){e.children(i).length||r.setNode(i,e.node(i))}),Ya.forEach(e.edges(),function(i){r.setEdge(i,e.edge(i))}),r}function Pue(e){var r=Ya.map(e.nodes(),function(i){var a={};return Ya.forEach(e.outEdges(i),function(n){a[n.w]=(a[n.w]||0)+e.edge(n).weight}),a});return Ya.zipObject(e.nodes(),r)}function Eue(e){var r=Ya.map(e.nodes(),function(i){var a={};return Ya.forEach(e.inEdges(i),function(n){a[n.v]=(a[n.v]||0)+e.edge(n).weight}),a});return Ya.zipObject(e.nodes(),r)}function Iue(e,r){var i=e.x,a=e.y,n=r.x-i,p=r.y-a,d=e.width/2,u=e.height/2;if(!n&&!p)throw new Error("Not possible to find intersection inside of the rectangle");var x,_;return Math.abs(p)*d>Math.abs(n)*u?(p<0&&(u=-u),x=u*n/p,_=u):(n<0&&(d=-d),x=d,_=d*p/n),{x:i+x,y:a+_}}function Tue(e){var r=Ya.map(Ya.range(dY(e)+1),function(){return[]});return Ya.forEach(e.nodes(),function(i){var a=e.node(i),n=a.rank;Ya.isUndefined(n)||(r[n][a.order]=i)}),r}function Mue(e){var r=Ya.min(Ya.map(e.nodes(),function(i){return e.node(i).rank}));Ya.forEach(e.nodes(),function(i){var a=e.node(i);Ya.has(a,"rank")&&(a.rank-=r)})}function Due(e){var r=Ya.min(Ya.map(e.nodes(),function(p){return e.node(p).rank})),i=[];Ya.forEach(e.nodes(),function(p){var d=e.node(p).rank-r;i[d]||(i[d]=[]),i[d].push(p)});var a=0,n=e.graph().nodeRankFactor;Ya.forEach(i,function(p,d){Ya.isUndefined(p)&&d%n!==0?--a:a&&Ya.forEach(p,function(u){e.node(u).rank+=a})})}function Oue(e,r,i,a){var n={width:0,height:0};return arguments.length>=4&&(n.rank=i,n.order=a),mY(e,"border",n,r)}function dY(e){return Ya.max(Ya.map(e.nodes(),function(r){var i=e.node(r).rank;if(!Ya.isUndefined(i))return i}))}function Aue(e,r){var i={lhs:[],rhs:[]};return Ya.forEach(e,function(a){r(a)?i.lhs.push(a):i.rhs.push(a)}),i}function Fue(e,r){var i=Ya.now();try{return r()}finally{console.log(e+" time: "+(Ya.now()-i)+"ms")}}function kue(e,r){return r()}});var xY=pe((qvn,hY)=>{"use strict";var fY=Or(),Rue=gl();hY.exports={run:Bue,undo:Lue};function Bue(e){e.graph().dummyChains=[],fY.forEach(e.edges(),function(r){Nue(e,r)})}function Nue(e,r){var i=r.v,a=e.node(i).rank,n=r.w,p=e.node(n).rank,d=r.name,u=e.edge(r),x=u.labelRank;if(p!==a+1){e.removeEdge(r);var _,v,C;for(C=0,++a;a{"use strict";var b3=Or();gY.exports={longestPath:Vue,slack:que};function Vue(e){var r={};function i(a){var n=e.node(a);if(b3.has(r,a))return n.rank;r[a]=!0;var p=b3.min(b3.map(e.outEdges(a),function(d){return i(d.w)-e.edge(d).minlen}));return(p===Number.POSITIVE_INFINITY||p===void 0||p===null)&&(p=0),n.rank=p}b3.forEach(e.sources(),i)}function que(e,r){return e.node(r.w).rank-e.node(r.v).rank-e.edge(r).minlen}});var o6=pe((zvn,_Y)=>{"use strict";var C3=Or(),jue=Is().Graph,y3=sh().slack;_Y.exports=zue;function zue(e){var r=new jue({directed:!1}),i=e.nodes()[0],a=e.nodeCount();r.setNode(i,{});for(var n,p;Hue(r,e){"use strict";var dp=Or(),$ue=o6(),Wue=sh().slack,Que=sh().longestPath,Yue=Is().alg.preorder,Jue=Is().alg.postorder,Kue=gl().simplify;PY.exports=od;od.initLowLimValues=s6;od.initCutValues=l6;od.calcCutValue=bY;od.leaveEdge=yY;od.enterEdge=SY;od.exchangeEdges=wY;function od(e){e=Kue(e),Que(e);var r=$ue(e);s6(r),l6(r,e);for(var i,a;i=yY(r);)a=SY(r,e,i),wY(r,e,i,a)}function l6(e,r){var i=Jue(e,e.nodes());i=i.slice(0,i.length-1),dp.forEach(i,function(a){Xue(e,r,a)})}function Xue(e,r,i){var a=e.node(i),n=a.parent;e.edge(i,n).cutvalue=bY(e,r,i)}function bY(e,r,i){var a=e.node(i),n=a.parent,p=!0,d=r.edge(i,n),u=0;return d||(p=!1,d=r.edge(n,i)),u=d.weight,dp.forEach(r.nodeEdges(i),function(x){var _=x.v===i,v=_?x.w:x.v;if(v!==n){var C=_===p,S=r.edge(x).weight;if(u+=C?S:-S,tfe(e,i,v)){var E=e.edge(i,v).cutvalue;u+=C?-E:E}}}),u}function s6(e,r){arguments.length<2&&(r=e.nodes()[0]),CY(e,{},1,r)}function CY(e,r,i,a,n){var p=i,d=e.node(a);return r[a]=!0,dp.forEach(e.neighbors(a),function(u){dp.has(r,u)||(i=CY(e,r,i,u,a))}),d.low=p,d.lim=i++,n?d.parent=n:delete d.parent,i}function yY(e){return dp.find(e.edges(),function(r){return e.edge(r).cutvalue<0})}function SY(e,r,i){var a=i.v,n=i.w;r.hasEdge(a,n)||(a=i.w,n=i.v);var p=e.node(a),d=e.node(n),u=p,x=!1;p.lim>d.lim&&(u=d,x=!0);var _=dp.filter(r.edges(),function(v){return x===vY(e,e.node(v.v),u)&&x!==vY(e,e.node(v.w),u)});return dp.minBy(_,function(v){return Wue(r,v)})}function wY(e,r,i,a){var n=i.v,p=i.w;e.removeEdge(n,p),e.setEdge(a.v,a.w,{}),s6(e),l6(e,r),Zue(e,r)}function Zue(e,r){var i=dp.find(e.nodes(),function(n){return!r.node(n).parent}),a=Yue(e,i);a=a.slice(1),dp.forEach(a,function(n){var p=e.node(n).parent,d=r.edge(n,p),u=!1;d||(d=r.edge(p,n),u=!0),r.node(n).rank=r.node(p).rank+(u?d.minlen:-d.minlen)})}function tfe(e,r,i){return e.hasEdge(r,i)}function vY(e,r,i){return i.low<=r.lim&&r.lim<=i.lim}});var DY=pe((Gvn,MY)=>{"use strict";var efe=sh(),TY=efe.longestPath,ife=o6(),nfe=EY();MY.exports=afe;function afe(e){switch(e.graph().ranker){case"network-simplex":IY(e);break;case"tight-tree":ofe(e);break;case"longest-path":rfe(e);break;default:IY(e)}}var rfe=TY;function ofe(e){TY(e),ife(e)}function IY(e){nfe(e)}});var AY=pe((Uvn,OY)=>{var p6=Or();OY.exports=lfe;function lfe(e){var r=pfe(e);p6.forEach(e.graph().dummyChains,function(i){for(var a=e.node(i),n=a.edgeObj,p=sfe(e,r,n.v,n.w),d=p.path,u=p.lca,x=0,_=d[x],v=!0;i!==n.w;){if(a=e.node(i),v){for(;(_=d[x])!==u&&e.node(_).maxRankd||u>r[x].lim));for(_=x,x=a;(x=e.parent(x))!==_;)p.push(x);return{path:n.concat(p.reverse()),lca:_}}function pfe(e){var r={},i=0;function a(n){var p=i;p6.forEach(e.children(n),a),r[n]={low:p,lim:i++}}return p6.forEach(e.children(),a),r}});var RY=pe(($vn,kY)=>{var up=Or(),c6=gl();kY.exports={run:cfe,cleanup:ufe};function cfe(e){var r=c6.addDummyNode(e,"root",{},"_root"),i=mfe(e),a=up.max(up.values(i))-1,n=2*a+1;e.graph().nestingRoot=r,up.forEach(e.edges(),function(d){e.edge(d).minlen*=n});var p=dfe(e)+1;up.forEach(e.children(),function(d){FY(e,r,n,p,a,i,d)}),e.graph().nodeRankFactor=n}function FY(e,r,i,a,n,p,d){var u=e.children(d);if(!u.length){d!==r&&e.setEdge(r,d,{weight:0,minlen:i});return}var x=c6.addBorderNode(e,"_bt"),_=c6.addBorderNode(e,"_bb"),v=e.node(d);e.setParent(x,d),v.borderTop=x,e.setParent(_,d),v.borderBottom=_,up.forEach(u,function(C){FY(e,r,i,a,n,p,C);var S=e.node(C),E=S.borderTop?S.borderTop:C,w=S.borderBottom?S.borderBottom:C,I=S.borderTop?a:2*a,T=E!==w?1:n-p[d]+1;e.setEdge(x,E,{weight:I,minlen:T,nestingEdge:!0}),e.setEdge(w,_,{weight:I,minlen:T,nestingEdge:!0})}),e.parent(d)||e.setEdge(r,x,{weight:0,minlen:n+p[d]})}function mfe(e){var r={};function i(a,n){var p=e.children(a);p&&p.length&&up.forEach(p,function(d){i(d,n+1)}),r[a]=n}return up.forEach(e.children(),function(a){i(a,1)}),r}function dfe(e){return up.reduce(e.edges(),function(r,i){return r+e.edge(i).weight},0)}function ufe(e){var r=e.graph();e.removeNode(r.nestingRoot),delete r.nestingRoot,up.forEach(e.edges(),function(i){var a=e.edge(i);a.nestingEdge&&e.removeEdge(i)})}});var LY=pe((Wvn,NY)=>{var m6=Or(),ffe=gl();NY.exports=hfe;function hfe(e){function r(i){var a=e.children(i),n=e.node(i);if(a.length&&m6.forEach(a,r),m6.has(n,"minRank")){n.borderLeft=[],n.borderRight=[];for(var p=n.minRank,d=n.maxRank+1;p{"use strict";var A0=Or();jY.exports={adjust:xfe,undo:gfe};function xfe(e){var r=e.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&qY(e)}function gfe(e){var r=e.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&_fe(e),(r==="lr"||r==="rl")&&(vfe(e),qY(e))}function qY(e){A0.forEach(e.nodes(),function(r){VY(e.node(r))}),A0.forEach(e.edges(),function(r){VY(e.edge(r))})}function VY(e){var r=e.width;e.width=e.height,e.height=r}function _fe(e){A0.forEach(e.nodes(),function(r){d6(e.node(r))}),A0.forEach(e.edges(),function(r){var i=e.edge(r);A0.forEach(i.points,d6),A0.has(i,"y")&&d6(i)})}function d6(e){e.y=-e.y}function vfe(e){A0.forEach(e.nodes(),function(r){u6(e.node(r))}),A0.forEach(e.edges(),function(r){var i=e.edge(r);A0.forEach(i.points,u6),A0.has(i,"x")&&u6(i)})}function u6(e){var r=e.x;e.x=e.y,e.y=r}});var GY=pe((Yvn,HY)=>{"use strict";var fp=Or();HY.exports=bfe;function bfe(e){var r={},i=fp.filter(e.nodes(),function(u){return!e.children(u).length}),a=fp.max(fp.map(i,function(u){return e.node(u).rank})),n=fp.map(fp.range(a+1),function(){return[]});function p(u){if(!fp.has(r,u)){r[u]=!0;var x=e.node(u);n[x.rank].push(u),fp.forEach(e.successors(u),p)}}var d=fp.sortBy(i,function(u){return e.node(u).rank});return fp.forEach(d,p),n}});var $Y=pe((Jvn,UY)=>{"use strict";var fc=Or();UY.exports=Cfe;function Cfe(e,r){for(var i=0,a=1;a0;)v%2&&(C+=u[v+1]),v=v-1>>1,u[v]+=_.weight;x+=_.weight*C})),x}});var YY=pe((Kvn,QY)=>{var WY=Or();QY.exports=Sfe;function Sfe(e,r){return WY.map(r,function(i){var a=e.inEdges(i);if(a.length){var n=WY.reduce(a,function(p,d){var u=e.edge(d),x=e.node(d.v);return{sum:p.sum+u.weight*x.order,weight:p.weight+u.weight}},{sum:0,weight:0});return{v:i,barycenter:n.sum/n.weight,weight:n.weight}}else return{v:i}})}});var KY=pe((Xvn,JY)=>{"use strict";var Xl=Or();JY.exports=wfe;function wfe(e,r){var i={};Xl.forEach(e,function(n,p){var d=i[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:p};Xl.isUndefined(n.barycenter)||(d.barycenter=n.barycenter,d.weight=n.weight)}),Xl.forEach(r.edges(),function(n){var p=i[n.v],d=i[n.w];!Xl.isUndefined(p)&&!Xl.isUndefined(d)&&(d.indegree++,p.out.push(i[n.w]))});var a=Xl.filter(i,function(n){return!n.indegree});return Pfe(a)}function Pfe(e){var r=[];function i(p){return function(d){d.merged||(Xl.isUndefined(d.barycenter)||Xl.isUndefined(p.barycenter)||d.barycenter>=p.barycenter)&&Efe(p,d)}}function a(p){return function(d){d.in.push(p),--d.indegree===0&&e.push(d)}}for(;e.length;){var n=e.pop();r.push(n),Xl.forEach(n.in.reverse(),i(n)),Xl.forEach(n.out,a(n))}return Xl.map(Xl.filter(r,function(p){return!p.merged}),function(p){return Xl.pick(p,["vs","i","barycenter","weight"])})}function Efe(e,r){var i=0,a=0;e.weight&&(i+=e.barycenter*e.weight,a+=e.weight),r.weight&&(i+=r.barycenter*r.weight,a+=r.weight),e.vs=r.vs.concat(e.vs),e.barycenter=i/a,e.weight=a,e.i=Math.min(r.i,e.i),r.merged=!0}});var tJ=pe((Zvn,ZY)=>{var ph=Or(),Ife=gl();ZY.exports=Tfe;function Tfe(e,r){var i=Ife.partition(e,function(v){return ph.has(v,"barycenter")}),a=i.lhs,n=ph.sortBy(i.rhs,function(v){return-v.i}),p=[],d=0,u=0,x=0;a.sort(Mfe(!!r)),x=XY(p,n,x),ph.forEach(a,function(v){x+=v.vs.length,p.push(v.vs),d+=v.barycenter*v.weight,u+=v.weight,x=XY(p,n,x)});var _={vs:ph.flatten(p,!0)};return u&&(_.barycenter=d/u,_.weight=u),_}function XY(e,r,i){for(var a;r.length&&(a=ph.last(r)).i<=i;)r.pop(),e.push(a.vs),i++;return i}function Mfe(e){return function(r,i){return r.barycenteri.barycenter?1:e?i.i-r.i:r.i-i.i}}});var nJ=pe((t2n,iJ)=>{var hc=Or(),Dfe=YY(),Ofe=KY(),Afe=tJ();iJ.exports=eJ;function eJ(e,r,i,a){var n=e.children(r),p=e.node(r),d=p?p.borderLeft:void 0,u=p?p.borderRight:void 0,x={};d&&(n=hc.filter(n,function(w){return w!==d&&w!==u}));var _=Dfe(e,n);hc.forEach(_,function(w){if(e.children(w.v).length){var I=eJ(e,w.v,i,a);x[w.v]=I,hc.has(I,"barycenter")&&kfe(w,I)}});var v=Ofe(_,i);Ffe(v,x);var C=Afe(v,a);if(d&&(C.vs=hc.flatten([d,C.vs,u],!0),e.predecessors(d).length)){var S=e.node(e.predecessors(d)[0]),E=e.node(e.predecessors(u)[0]);hc.has(C,"barycenter")||(C.barycenter=0,C.weight=0),C.barycenter=(C.barycenter*C.weight+S.order+E.order)/(C.weight+2),C.weight+=2}return C}function Ffe(e,r){hc.forEach(e,function(i){i.vs=hc.flatten(i.vs.map(function(a){return r[a]?r[a].vs:a}),!0)})}function kfe(e,r){hc.isUndefined(e.barycenter)?(e.barycenter=r.barycenter,e.weight=r.weight):(e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight),e.weight+=r.weight)}});var rJ=pe((e2n,aJ)=>{var ch=Or(),Rfe=Is().Graph;aJ.exports=Bfe;function Bfe(e,r,i){var a=Nfe(e),n=new Rfe({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(p){return e.node(p)});return ch.forEach(e.nodes(),function(p){var d=e.node(p),u=e.parent(p);(d.rank===r||d.minRank<=r&&r<=d.maxRank)&&(n.setNode(p),n.setParent(p,u||a),ch.forEach(e[i](p),function(x){var _=x.v===p?x.w:x.v,v=n.edge(_,p),C=ch.isUndefined(v)?0:v.weight;n.setEdge(_,p,{weight:e.edge(x).weight+C})}),ch.has(d,"minRank")&&n.setNode(p,{borderLeft:d.borderLeft[r],borderRight:d.borderRight[r]}))}),n}function Nfe(e){for(var r;e.hasNode(r=ch.uniqueId("_root")););return r}});var lJ=pe((i2n,oJ)=>{var Lfe=Or();oJ.exports=Vfe;function Vfe(e,r,i){var a={},n;Lfe.forEach(i,function(p){for(var d=e.parent(p),u,x;d;){if(u=e.parent(d),u?(x=a[u],a[u]=d):(x=n,n=d),x&&x!==d){r.setEdge(x,d);return}d=u}})}});var dJ=pe((n2n,mJ)=>{"use strict";var xc=Or(),qfe=GY(),jfe=$Y(),zfe=nJ(),Hfe=rJ(),Gfe=lJ(),Ufe=Is().Graph,sJ=gl();mJ.exports=$fe;function $fe(e){var r=sJ.maxRank(e),i=pJ(e,xc.range(1,r+1),"inEdges"),a=pJ(e,xc.range(r-1,-1,-1),"outEdges"),n=qfe(e);cJ(e,n);for(var p=Number.POSITIVE_INFINITY,d,u=0,x=0;x<4;++u,++x){Wfe(u%2?i:a,u%4>=2),n=sJ.buildLayerMatrix(e);var _=jfe(e,n);_{"use strict";var la=Or(),Qfe=Is().Graph,Yfe=gl();CJ.exports={positionX:Xfe,findType1Conflicts:uJ,findType2Conflicts:fJ,addConflict:f6,hasConflict:hJ,verticalAlignment:xJ,horizontalCompaction:gJ,alignCoordinates:vJ,findSmallestWidthAlignment:_J,balance:bJ};function uJ(e,r){var i={};function a(n,p){var d=0,u=0,x=n.length,_=la.last(p);return la.forEach(p,function(v,C){var S=Jfe(e,v),E=S?e.node(S).order:x;(S||v===_)&&(la.forEach(p.slice(u,C+1),function(w){la.forEach(e.predecessors(w),function(I){var T=e.node(I),A=T.order;(A_)&&f6(i,S,v)})})}function n(p,d){var u=-1,x,_=0;return la.forEach(d,function(v,C){if(e.node(v).dummy==="border"){var S=e.predecessors(v);S.length&&(x=e.node(S[0]).order,a(d,_,C,u,x),_=C,u=x)}a(d,_,d.length,x,p.length)}),d}return la.reduce(r,n),i}function Jfe(e,r){if(e.node(r).dummy)return la.find(e.predecessors(r),function(i){return e.node(i).dummy})}function f6(e,r,i){if(r>i){var a=r;r=i,i=a}var n=e[r];n||(e[r]=n={}),n[i]=!0}function hJ(e,r,i){if(r>i){var a=r;r=i,i=a}return la.has(e[r],i)}function xJ(e,r,i,a){var n={},p={},d={};return la.forEach(r,function(u){la.forEach(u,function(x,_){n[x]=x,p[x]=x,d[x]=_})}),la.forEach(r,function(u){var x=-1;la.forEach(u,function(_){var v=a(_);if(v.length){v=la.sortBy(v,function(I){return d[I]});for(var C=(v.length-1)/2,S=Math.floor(C),E=Math.ceil(C);S<=E;++S){var w=v[S];p[_]===_&&x{"use strict";var mh=Or(),SJ=gl(),e1e=yJ().positionX;wJ.exports=i1e;function i1e(e){e=SJ.asNonCompoundGraph(e),n1e(e),mh.forEach(e1e(e),function(r,i){e.node(i).x=r})}function n1e(e){var r=SJ.buildLayerMatrix(e),i=e.graph().ranksep,a=0;mh.forEach(r,function(n){var p=mh.max(mh.map(n,function(d){return e.node(d).height}));mh.forEach(n,function(d){e.node(d).y=a+p/2}),a+=p+i})}});var OJ=pe((o2n,DJ)=>{"use strict";var Ca=Or(),EJ=pY(),IJ=xY(),a1e=DY(),r1e=gl().normalizeRanks,o1e=AY(),l1e=gl().removeEmptyRanks,TJ=RY(),s1e=LY(),MJ=zY(),p1e=dJ(),c1e=PJ(),gc=gl(),m1e=Is().Graph;DJ.exports=d1e;function d1e(e,r){var i=r&&r.debugTiming?gc.time:gc.notime;i("layout",function(){var a=i(" buildLayoutGraph",function(){return S1e(e)});i(" runLayout",function(){u1e(a,i)}),i(" updateInputGraph",function(){f1e(e,a)})})}function u1e(e,r){r(" makeSpaceForEdgeLabels",function(){w1e(e)}),r(" removeSelfEdges",function(){F1e(e)}),r(" acyclic",function(){EJ.run(e)}),r(" nestingGraph.run",function(){TJ.run(e)}),r(" rank",function(){a1e(gc.asNonCompoundGraph(e))}),r(" injectEdgeLabelProxies",function(){P1e(e)}),r(" removeEmptyRanks",function(){l1e(e)}),r(" nestingGraph.cleanup",function(){TJ.cleanup(e)}),r(" normalizeRanks",function(){r1e(e)}),r(" assignRankMinMax",function(){E1e(e)}),r(" removeEdgeLabelProxies",function(){I1e(e)}),r(" normalize.run",function(){IJ.run(e)}),r(" parentDummyChains",function(){o1e(e)}),r(" addBorderSegments",function(){s1e(e)}),r(" order",function(){p1e(e)}),r(" insertSelfEdges",function(){k1e(e)}),r(" adjustCoordinateSystem",function(){MJ.adjust(e)}),r(" position",function(){c1e(e)}),r(" positionSelfEdges",function(){R1e(e)}),r(" removeBorderNodes",function(){A1e(e)}),r(" normalize.undo",function(){IJ.undo(e)}),r(" fixupEdgeLabelCoords",function(){D1e(e)}),r(" undoCoordinateSystem",function(){MJ.undo(e)}),r(" translateGraph",function(){T1e(e)}),r(" assignNodeIntersects",function(){M1e(e)}),r(" reversePoints",function(){O1e(e)}),r(" acyclic.undo",function(){EJ.undo(e)})}function f1e(e,r){Ca.forEach(e.nodes(),function(i){var a=e.node(i),n=r.node(i);a&&(a.x=n.x,a.y=n.y,r.children(i).length&&(a.width=n.width,a.height=n.height))}),Ca.forEach(e.edges(),function(i){var a=e.edge(i),n=r.edge(i);a.points=n.points,Ca.has(n,"x")&&(a.x=n.x,a.y=n.y)}),e.graph().width=r.graph().width,e.graph().height=r.graph().height}var h1e=["nodesep","edgesep","ranksep","marginx","marginy"],x1e={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},g1e=["acyclicer","ranker","rankdir","align"],_1e=["width","height"],v1e={width:0,height:0},b1e=["minlen","weight","width","height","labeloffset"],C1e={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},y1e=["labelpos"];function S1e(e){var r=new m1e({multigraph:!0,compound:!0}),i=x6(e.graph());return r.setGraph(Ca.merge({},x1e,h6(i,h1e),Ca.pick(i,g1e))),Ca.forEach(e.nodes(),function(a){var n=x6(e.node(a));r.setNode(a,Ca.defaults(h6(n,_1e),v1e)),r.setParent(a,e.parent(a))}),Ca.forEach(e.edges(),function(a){var n=x6(e.edge(a));r.setEdge(a,Ca.merge({},C1e,h6(n,b1e),Ca.pick(n,y1e)))}),r}function w1e(e){var r=e.graph();r.ranksep/=2,Ca.forEach(e.edges(),function(i){var a=e.edge(i);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function P1e(e){Ca.forEach(e.edges(),function(r){var i=e.edge(r);if(i.width&&i.height){var a=e.node(r.v),n=e.node(r.w),p={rank:(n.rank-a.rank)/2+a.rank,e:r};gc.addDummyNode(e,"edge-proxy",p,"_ep")}})}function E1e(e){var r=0;Ca.forEach(e.nodes(),function(i){var a=e.node(i);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,r=Ca.max(r,a.maxRank))}),e.graph().maxRank=r}function I1e(e){Ca.forEach(e.nodes(),function(r){var i=e.node(r);i.dummy==="edge-proxy"&&(e.edge(i.e).labelRank=i.rank,e.removeNode(r))})}function T1e(e){var r=Number.POSITIVE_INFINITY,i=0,a=Number.POSITIVE_INFINITY,n=0,p=e.graph(),d=p.marginx||0,u=p.marginy||0;function x(_){var v=_.x,C=_.y,S=_.width,E=_.height;r=Math.min(r,v-S/2),i=Math.max(i,v+S/2),a=Math.min(a,C-E/2),n=Math.max(n,C+E/2)}Ca.forEach(e.nodes(),function(_){x(e.node(_))}),Ca.forEach(e.edges(),function(_){var v=e.edge(_);Ca.has(v,"x")&&x(v)}),r-=d,a-=u,Ca.forEach(e.nodes(),function(_){var v=e.node(_);v.x-=r,v.y-=a}),Ca.forEach(e.edges(),function(_){var v=e.edge(_);Ca.forEach(v.points,function(C){C.x-=r,C.y-=a}),Ca.has(v,"x")&&(v.x-=r),Ca.has(v,"y")&&(v.y-=a)}),p.width=i-r+d,p.height=n-a+u}function M1e(e){Ca.forEach(e.edges(),function(r){var i=e.edge(r),a=e.node(r.v),n=e.node(r.w),p,d;i.points?(p=i.points[0],d=i.points[i.points.length-1]):(i.points=[],p=n,d=a),i.points.unshift(gc.intersectRect(a,p)),i.points.push(gc.intersectRect(n,d))})}function D1e(e){Ca.forEach(e.edges(),function(r){var i=e.edge(r);if(Ca.has(i,"x"))switch((i.labelpos==="l"||i.labelpos==="r")&&(i.width-=i.labeloffset),i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset;break}})}function O1e(e){Ca.forEach(e.edges(),function(r){var i=e.edge(r);i.reversed&&i.points.reverse()})}function A1e(e){Ca.forEach(e.nodes(),function(r){if(e.children(r).length){var i=e.node(r),a=e.node(i.borderTop),n=e.node(i.borderBottom),p=e.node(Ca.last(i.borderLeft)),d=e.node(Ca.last(i.borderRight));i.width=Math.abs(d.x-p.x),i.height=Math.abs(n.y-a.y),i.x=p.x+i.width/2,i.y=a.y+i.height/2}}),Ca.forEach(e.nodes(),function(r){e.node(r).dummy==="border"&&e.removeNode(r)})}function F1e(e){Ca.forEach(e.edges(),function(r){if(r.v===r.w){var i=e.node(r.v);i.selfEdges||(i.selfEdges=[]),i.selfEdges.push({e:r,label:e.edge(r)}),e.removeEdge(r)}})}function k1e(e){var r=gc.buildLayerMatrix(e);Ca.forEach(r,function(i){var a=0;Ca.forEach(i,function(n,p){var d=e.node(n);d.order=p+a,Ca.forEach(d.selfEdges,function(u){gc.addDummyNode(e,"selfedge",{width:u.label.width,height:u.label.height,rank:d.rank,order:p+ ++a,e:u.e,label:u.label},"_se")}),delete d.selfEdges})})}function R1e(e){Ca.forEach(e.nodes(),function(r){var i=e.node(r);if(i.dummy==="selfedge"){var a=e.node(i.e.v),n=a.x+a.width/2,p=a.y,d=i.x-n,u=a.height/2;e.setEdge(i.e,i.label),e.removeNode(r),i.label.points=[{x:n+2*d/3,y:p-u},{x:n+5*d/6,y:p-u},{x:n+d,y:p},{x:n+5*d/6,y:p+u},{x:n+2*d/3,y:p+u}],i.label.x=i.x,i.label.y=i.y}})}function h6(e,r){return Ca.mapValues(Ca.pick(e,r),Number)}function x6(e){var r={};return Ca.forEach(e,function(i,a){r[a.toLowerCase()]=i}),r}});var FJ=pe((l2n,AJ)=>{var S3=Or(),B1e=gl(),N1e=Is().Graph;AJ.exports={debugOrdering:L1e};function L1e(e){var r=B1e.buildLayerMatrix(e),i=new N1e({compound:!0,multigraph:!0}).setGraph({});return S3.forEach(e.nodes(),function(a){i.setNode(a,{label:a}),i.setParent(a,"layer"+e.node(a).rank)}),S3.forEach(e.edges(),function(a){i.setEdge(a.v,a.w,{},a.name)}),S3.forEach(r,function(a,n){var p="layer"+n;i.setNode(p,{rank:"same"}),S3.reduce(a,function(d,u){return i.setEdge(d,u,{style:"invis"}),u})}),i}});var RJ=pe((s2n,kJ)=>{kJ.exports="0.8.5"});var NJ=pe((p2n,BJ)=>{BJ.exports={graphlib:Is(),layout:OJ(),debug:FJ(),util:{time:gl().time,notime:gl().notime},version:RJ()}});var b6=pe(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var v6=function(){function e(r,i,a){this.source=r,this.target=i,this.type=a}return e}();_c.PowerEdge=v6;var cK=function(){function e(r,i,a,n){var p=this;if(this.linkAccessor=a,this.modules=new Array(r),this.roots=[],n)this.initModulesFromGroup(n);else{this.roots.push(new Au);for(var d=0;d=this.R))return this.merge(a.a,a.b,r),!0}},e.prototype.nEdges=function(r,i){var a=r.incoming.intersection(i.incoming),n=r.outgoing.intersection(i.outgoing);return this.R-a.count()-n.count()},e.prototype.getGroupHierarchy=function(r){var i=this,a=[],n={};mK(this.roots[0],n,a);var p=this.allEdges();return p.forEach(function(d){var u=i.modules[d.source],x=i.modules[d.target];r.push(new v6(typeof u.gid>"u"?d.source:a[u.gid],typeof x.gid>"u"?d.target:a[x.gid],d.type))}),a},e.prototype.allEdges=function(){var r=[];return e.getEdges(this.roots[0],r),r},e.getEdges=function(r,i){r.forAll(function(a){a.getEdges(i),e.getEdges(a.children,i)})},e}();_c.Configuration=cK;function mK(e,r,i){e.forAll(function(a){if(a.isLeaf())r.leaves||(r.leaves=[]),r.leaves.push(a.id);else{var n=r;if(a.gid=i.length,!a.isIsland()||a.isPredefined()){if(n={id:a.gid},a.isPredefined())for(var p in a.definition)n[p]=a.definition[p];r.groups||(r.groups=[]),r.groups.push(a.gid),i.push(n)}mK(a.children,n,i)}})}var dh=function(){function e(r,i,a,n,p){i===void 0&&(i=new uh),a===void 0&&(a=new uh),n===void 0&&(n=new Au),this.id=r,this.outgoing=i,this.incoming=a,this.children=n,this.definition=p}return e.prototype.getEdges=function(r){var i=this;this.outgoing.forAll(function(a,n){a.forAll(function(p){r.push(new v6(i.id,p.id,n))})})},e.prototype.isLeaf=function(){return this.children.count()===0},e.prototype.isIsland=function(){return this.outgoing.count()===0&&this.incoming.count()===0},e.prototype.isPredefined=function(){return typeof this.definition<"u"},e}();_c.Module=dh;function G1e(e,r){var i={};for(var a in e)a in r&&(i[a]=e[a]);return i}var Au=function(){function e(){this.table={}}return e.prototype.count=function(){return Object.keys(this.table).length},e.prototype.intersection=function(r){var i=new e;return i.table=G1e(this.table,r.table),i},e.prototype.intersectionCount=function(r){return this.intersection(r).count()},e.prototype.contains=function(r){return r in this.table},e.prototype.add=function(r){this.table[r.id]=r},e.prototype.remove=function(r){delete this.table[r.id]},e.prototype.forAll=function(r){for(var i in this.table)r(this.table[i])},e.prototype.modules=function(){var r=[];return this.forAll(function(i){i.isPredefined()||r.push(i)}),r},e}();_c.ModuleSet=Au;var uh=function(){function e(){this.sets={},this.n=0}return e.prototype.count=function(){return this.n},e.prototype.contains=function(r){var i=!1;return this.forAllModules(function(a){!i&&a.id==r&&(i=!0)}),i},e.prototype.add=function(r,i){var a=r in this.sets?this.sets[r]:this.sets[r]=new Au;a.add(i),++this.n},e.prototype.remove=function(r,i){var a=this.sets[r];a.remove(i),a.count()===0&&delete this.sets[r],--this.n},e.prototype.forAll=function(r){for(var i in this.sets)r(this.sets[i],Number(i))},e.prototype.forAllModules=function(r){this.forAll(function(i,a){return i.forAll(r)})},e.prototype.intersection=function(r){var i=new e;return this.forAll(function(a,n){if(n in r.sets){var p=a.intersection(r.sets[n]),d=p.count();d>0&&(i.sets[n]=p,i.n+=d)}}),i},e}();_c.LinkSets=uh;function U1e(e,r,i,a){for(var n=e.length,p=new cK(n,r,i,a);p.greedyMerge(););var d=[],u=p.getGroupHierarchy(d);return d.forEach(function(x){var _=function(v){var C=x[v];typeof C=="number"&&(x[v]=e[C])};_("source"),_("target")}),{groups:u,powerEdges:d}}_c.getGroups=U1e});var T3=pe(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});function dK(e,r){var i={};for(var a in e)i[a]={};for(var a in r)i[a]={};return Object.keys(i).length}function uK(e,r){var i=0;for(var a in e)typeof r[a]<"u"&&++i;return i}function $1e(e,r){var i={},a=function(n,p){typeof i[n]>"u"&&(i[n]={}),i[n][p]={}};return e.forEach(function(n){var p=r.getSourceIndex(n),d=r.getTargetIndex(n);a(p,d),a(d,p)}),i}function fK(e,r,i,a){var n=$1e(e,a);e.forEach(function(p){var d=n[a.getSourceIndex(p)],u=n[a.getTargetIndex(p)];a.setLength(p,1+r*i(d,u))})}function W1e(e,r,i){i===void 0&&(i=1),fK(e,i,function(a,n){return Math.sqrt(dK(a,n)-uK(a,n))},r)}Fu.symmetricDiffLinkLengths=W1e;function Q1e(e,r,i){i===void 0&&(i=1),fK(e,i,function(a,n){return Math.min(Object.keys(a).length,Object.keys(n).length)<1.1?0:uK(a,n)/dK(a,n)},r)}Fu.jaccardLinkLengths=Q1e;function Y1e(e,r,i,a){var n=hK(e,r,a),p={};n.forEach(function(u,x){return u.forEach(function(_){return p[_]=x})});var d=[];return r.forEach(function(u){var x=a.getSourceIndex(u),_=a.getTargetIndex(u),v=p[x],C=p[_];v!==C&&d.push({axis:i,left:x,right:_,gap:a.getMinSeparation(u)})}),d}Fu.generateDirectedEdgeConstraints=Y1e;function hK(e,r,i){var a=[],n=0,p=[],d=[];function u(A){A.index=A.lowlink=n++,p.push(A),A.onStack=!0;for(var V=0,G=A.out;V"u"?(u(J),A.lowlink=Math.min(A.lowlink,J.lowlink)):J.onStack&&(A.lowlink=Math.min(A.lowlink,J.index))}if(A.lowlink===A.index){for(var at=[];p.length&&(J=p.pop(),J.onStack=!1,at.push(J),J!==A););d.push(at.map(function(X){return X.id}))}}for(var x=0;x"u"&&u(T)}return d}Fu.stronglyConnectedComponents=hK});var M3=pe(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var xK=function(){function e(){this.locks={}}return e.prototype.add=function(r,i){this.locks[r]=i},e.prototype.clear=function(){this.locks={}},e.prototype.isEmpty=function(){for(var r in this.locks)return!1;return!0},e.prototype.apply=function(r){for(var i in this.locks)r(Number(i),this.locks[i])},e}();fh.Locks=xK;var J1e=function(){function e(r,i,a){a===void 0&&(a=null),this.D=i,this.G=a,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new gK,this.project=null,this.x=r,this.k=r.length;var n=this.n=r[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new xK,this.minD=Number.MAX_VALUE;for(var p=n,d;p--;)for(d=n;--d>p;){var u=i[p][d];u>0&&u1e-9)break;var w=this.offsetDir();for(n=0;n1&&I>T||!isFinite(T)){for(n=0;n1&&(A=1);var V=T*T,G=2*A*(I-T)/(V*I),J=I*I*I,at=2*-A/(V*J);for(isFinite(G)||console.log(G),n=0;n0?z-(M+1)*nt:z-(M-1)*nt;-X0;)for(var p=i;p-- >0;)a(n,p)},e.prototype.matrixApply=function(r){e.mApply(this.k,this.n,r)},e.prototype.computeNextPosition=function(r,i){var a=this;this.computeDerivatives(r);var n=this.computeStepSize(this.g);if(this.stepAndProject(r,i,this.g,n),this.project){this.matrixApply(function(d,u){return a.e[d][u]=r[d][u]-i[d][u]});var p=this.computeStepSize(this.e);p=Math.max(.2,Math.min(p,1)),this.stepAndProject(r,i,this.e,p)}},e.prototype.run=function(r){for(var i=Number.MAX_VALUE,a=!1;!a&&r-- >0;){var n=this.rungeKutta();a=Math.abs(i/n-1)>16)/this.range},e.prototype.getNextBetween=function(r,i){return r+this.getNext()*(i-r)},e}();fh.PseudoRandom=gK});var A3=pe(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var _K=function(){function e(r){this.scale=r,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(r){var i=this.scale/r.scale,a=r.offset/r.scale,n=r.weight;this.AB+=n*i*a,this.AD+=n*i*r.desiredPosition,this.A2+=n*i*i},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();hp.PositionStats=_K;var D3=function(){function e(r,i,a,n){n===void 0&&(n=!1),this.left=r,this.right=i,this.gap=a,this.equality=n,this.active=!1,this.unsatisfiable=!1,this.left=r,this.right=i,this.gap=a,this.equality=n}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}();hp.Constraint=D3;var O3=function(){function e(r,i,a){i===void 0&&(i=1),a===void 0&&(a=1),this.desiredPosition=r,this.weight=i,this.scale=a,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(r,i){var a=function(n,p){return n.active&&r!==p&&i(n,p)};this.cOut.forEach(function(n){return a(n,n.right)}),this.cIn.forEach(function(n){return a(n,n.left)})},e}();hp.Variable=O3;var C6=function(){function e(r){this.vars=[],r.offset=0,this.ps=new _K(r.scale),this.addVariable(r)}return e.prototype.addVariable=function(r){r.block=this,this.vars.push(r),this.ps.addVariable(r),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var r=0,i=this.vars.length;r=0?this.inactive.push(r):this.bs.merge(r)}}},e.prototype.solve=function(){this.satisfy();for(var r=Number.MAX_VALUE,i=this.bs.cost();Math.abs(r-i)>1e-4;)this.satisfy(),r=i,i=this.bs.cost();return i},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();hp.Solver=S6;function K1e(e,r,i){for(var a=e.map(function(T){return new O3(T.desiredCenter)}),n=[],p=e.length,d=0;d{"use strict";var X1e=sd&&sd.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(sd,"__esModule",{value:!0});var vK=function(){function e(){this.findIter=function(r){for(var i=this._root,a=this.iterator();i!==null;){var n=this._comparator(r,i.data);if(n===0)return a._cursor=i,a;a._ancestors.push(i),i=i.get_child(n>0)}return null}}return e.prototype.clear=function(){this._root=null,this.size=0},e.prototype.find=function(r){for(var i=this._root;i!==null;){var a=this._comparator(r,i.data);if(a===0)return i.data;i=i.get_child(a>0)}return null},e.prototype.lowerBound=function(r){return this._bound(r,this._comparator)},e.prototype.upperBound=function(r){var i=this._comparator;function a(n,p){return i(p,n)}return this._bound(r,a)},e.prototype.min=function(){var r=this._root;if(r===null)return null;for(;r.left!==null;)r=r.left;return r.data},e.prototype.max=function(){var r=this._root;if(r===null)return null;for(;r.right!==null;)r=r.right;return r.data},e.prototype.iterator=function(){return new bK(this)},e.prototype.each=function(r){for(var i=this.iterator(),a;(a=i.next())!==null;)r(a)},e.prototype.reach=function(r){for(var i=this.iterator(),a;(a=i.prev())!==null;)r(a)},e.prototype._bound=function(r,i){for(var a=this._root,n=this.iterator();a!==null;){var p=this._comparator(r,a.data);if(p===0)return n._cursor=a,n;n._ancestors.push(a),a=a.get_child(p>0)}for(var d=n._ancestors.length-1;d>=0;--d)if(a=n._ancestors[d],i(r,a.data)>0)return n._cursor=a,n._ancestors.length=d,n;return n._ancestors.length=0,n},e}();sd.TreeBase=vK;var bK=function(){function e(r){this._tree=r,this._ancestors=[],this._cursor=null}return e.prototype.data=function(){return this._cursor!==null?this._cursor.data:null},e.prototype.next=function(){if(this._cursor===null){var r=this._tree._root;r!==null&&this._minNode(r)}else if(this._cursor.right===null){var i;do if(i=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.right===i)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return this._cursor!==null?this._cursor.data:null},e.prototype.prev=function(){if(this._cursor===null){var r=this._tree._root;r!==null&&this._maxNode(r)}else if(this._cursor.left===null){var i;do if(i=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.left===i)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return this._cursor!==null?this._cursor.data:null},e.prototype._minNode=function(r){for(;r.left!==null;)this._ancestors.push(r),r=r.left;this._cursor=r},e.prototype._maxNode=function(r){for(;r.right!==null;)this._ancestors.push(r),r=r.right;this._cursor=r},e}();sd.Iterator=bK;var F3=function(){function e(r){this.data=r,this.left=null,this.right=null,this.red=!0}return e.prototype.get_child=function(r){return r?this.right:this.left},e.prototype.set_child=function(r,i){r?this.right=i:this.left=i},e}(),Z1e=function(e){X1e(r,e);function r(i){var a=e.call(this)||this;return a._root=null,a._comparator=i,a.size=0,a}return r.prototype.insert=function(i){var a=!1;if(this._root===null)this._root=new F3(i),a=!0,this.size++;else{var n=new F3(void 0),p=!1,d=!1,u=null,x=n,_=null,v=this._root;for(x.right=this._root;;){if(v===null?(v=new F3(i),_.set_child(p,v),a=!0,this.size++):r.is_red(v.left)&&r.is_red(v.right)&&(v.red=!0,v.left.red=!1,v.right.red=!1),r.is_red(v)&&r.is_red(_)){var C=x.right===u;v===_.get_child(d)?x.set_child(C,r.single_rotate(u,!d)):x.set_child(C,r.double_rotate(u,!d))}var S=this._comparator(v.data,i);if(S===0)break;d=p,p=S<0,u!==null&&(x=u),u=_,_=v,v=v.get_child(p)}this._root=n.right}return this._root.red=!1,a},r.prototype.remove=function(i){if(this._root===null)return!1;var a=new F3(void 0),n=a;n.right=this._root;for(var p=null,d=null,u=null,x=!0;n.get_child(x)!==null;){var _=x;d=p,p=n,n=n.get_child(x);var v=this._comparator(i,n.data);if(x=v>0,v===0&&(u=n),!r.is_red(n)&&!r.is_red(n.get_child(x))){if(r.is_red(n.get_child(!x))){var C=r.single_rotate(n,x);p.set_child(_,C),p=C}else if(!r.is_red(n.get_child(!x))){var S=p.get_child(!_);if(S!==null)if(!r.is_red(S.get_child(!_))&&!r.is_red(S.get_child(_)))p.red=!1,S.red=!0,n.red=!0;else{var E=d.right===p;r.is_red(S.get_child(_))?d.set_child(E,r.double_rotate(p,_)):r.is_red(S.get_child(!_))&&d.set_child(E,r.single_rotate(p,_));var w=d.get_child(E);w.red=!0,n.red=!0,w.left.red=!1,w.right.red=!1}}}}return u!==null&&(u.data=n.data,p.set_child(p.right===n,n.get_child(n.left===null)),this.size--),this._root=a.right,this._root!==null&&(this._root.red=!1),u!==null},r.is_red=function(i){return i!==null&&i.red},r.single_rotate=function(i,a){var n=i.get_child(!a);return i.set_child(!a,n.get_child(a)),n.set_child(a,i),i.red=!0,n.red=!1,n},r.double_rotate=function(i,a){return i.set_child(!a,r.single_rotate(i.get_child(!a),!a)),r.single_rotate(i,a)},r}(vK);sd.RBTree=Z1e});var ku=pe(vl=>{"use strict";var the=vl&&vl.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(vl,"__esModule",{value:!0});var xp=A3(),ehe=w6();function hh(e){return e.bounds=typeof e.leaves<"u"?e.leaves.reduce(function(r,i){return i.bounds.union(r)},vc.empty()):vc.empty(),typeof e.groups<"u"&&(e.bounds=e.groups.reduce(function(r,i){return hh(i).union(r)},e.bounds)),e.bounds=e.bounds.inflate(e.padding),e.bounds}vl.computeGroupBounds=hh;var vc=function(){function e(r,i,a,n){this.x=r,this.X=i,this.y=a,this.Y=n}return e.empty=function(){return new e(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},e.prototype.cx=function(){return(this.x+this.X)/2},e.prototype.cy=function(){return(this.y+this.Y)/2},e.prototype.overlapX=function(r){var i=this.cx(),a=r.cx();return i<=a&&r.x0?a[0]:null},e.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},e.lineIntersection=function(r,i,a,n,p,d,u,x){var _=a-r,v=u-p,C=n-i,S=x-d,E=S*_-v*C;if(E==0)return null;var w=r-p,I=i-d,T=v*I-S*w,A=T/E,V=_*I-C*w,G=V/E;return A>=0&&A<=1&&G>=0&&G<=1?{x:r+A*_,y:i+A*C}:null},e.prototype.inflate=function(r){return new e(this.x-r,this.X+r,this.y-r,this.Y+r)},e}();vl.Rectangle=vc;function ihe(e,r,i){var a=e.rayIntersection(r.cx(),r.cy())||{x:e.cx(),y:e.cy()},n=r.rayIntersection(e.cx(),e.cy())||{x:r.cx(),y:r.cy()},p=n.x-a.x,d=n.y-a.y,u=Math.sqrt(p*p+d*d),x=u-i;return{sourceIntersection:a,targetIntersection:n,arrowStart:{x:a.x+x*p/u,y:a.y+x*d/u}}}vl.makeEdgeBetween=ihe;function nhe(e,r,i){var a=r.rayIntersection(e.x,e.y);a||(a={x:r.cx(),y:r.cy()});var n=a.x-e.x,p=a.y-e.y,d=Math.sqrt(n*n+p*p);return{x:a.x-i*n/d,y:a.y-i*p/d}}vl.makeEdgeTo=nhe;var ahe=function(){function e(r,i,a){this.v=r,this.r=i,this.pos=a,this.prev=P6(),this.next=P6()}return e}(),CK=function(){function e(r,i,a){this.isOpen=r,this.v=i,this.pos=a}return e}();function rhe(e,r){return e.pos>r.pos?1:e.pos=p);var u=new Array(d);for(n=0;n0&&(e[a].insert(p),p[n].insert(e))};i("next","prev"),i("prev","next")}function wK(e,r){return I6(e,r,yK,1e-6)}vl.generateXConstraints=wK;function PK(e,r){return I6(e,r,SK,1e-6)}vl.generateYConstraints=PK;function EK(e){return E6(e,yK,1e-6)}vl.generateXGroupConstraints=EK;function IK(e){return E6(e,SK,1e-6)}vl.generateYGroupConstraints=IK;function she(e){var r=e.map(function(n){return new xp.Variable(n.cx())}),i=wK(e,r),a=new xp.Solver(r,i);a.solve(),r.forEach(function(n,p){return e[p].setXCentre(n.position())}),r=e.map(function(n){return new xp.Variable(n.cy())}),i=PK(e,r),a=new xp.Solver(r,i),a.solve(),r.forEach(function(n,p){return e[p].setYCentre(n.position())})}vl.removeOverlaps=she;var k3=function(e){the(r,e);function r(i,a){var n=e.call(this,0,a)||this;return n.index=i,n}return r}(xp.Variable);vl.IndexedVariable=k3;var phe=function(){function e(r,i,a,n,p){var d=this;if(a===void 0&&(a=null),n===void 0&&(n=null),p===void 0&&(p=!1),this.nodes=r,this.groups=i,this.rootGroup=a,this.avoidOverlaps=p,this.variables=r.map(function(x,_){return x.variable=new k3(_,1)}),n&&this.createConstraints(n),p&&a&&typeof a.groups<"u"){r.forEach(function(x){if(!x.width||!x.height){x.bounds=new vc(x.x,x.x,x.y,x.y);return}var _=x.width/2,v=x.height/2;x.bounds=new vc(x.x-_,x.x+_,x.y-v,x.y+v)}),hh(a);var u=r.length;i.forEach(function(x){d.variables[u]=x.minVar=new k3(u++,typeof x.stiffness<"u"?x.stiffness:.01),d.variables[u]=x.maxVar=new k3(u++,typeof x.stiffness<"u"?x.stiffness:.01)})}}return e.prototype.createSeparation=function(r){return new xp.Constraint(this.nodes[r.left].variable,this.nodes[r.right].variable,r.gap,typeof r.equality<"u"?r.equality:!1)},e.prototype.makeFeasible=function(r){var i=this;if(this.avoidOverlaps){var a="x",n="width";r.axis==="x"&&(a="y",n="height");var p=r.offsets.map(function(u){return i.nodes[u.node]}).sort(function(u,x){return u[a]-x[a]}),d=null;p.forEach(function(u){if(d){var x=d[a]+d[n];x>u[a]&&(u[a]=x)}d=u})}},e.prototype.createAlignment=function(r){var i=this,a=this.nodes[r.offsets[0].node].variable;this.makeFeasible(r);var n=r.axis==="x"?this.xConstraints:this.yConstraints;r.offsets.slice(1).forEach(function(p){var d=i.nodes[p.node].variable;n.push(new xp.Constraint(a,d,p.offset,!0))})},e.prototype.createConstraints=function(r){var i=this,a=function(n){return typeof n.type>"u"||n.type==="separation"};this.xConstraints=r.filter(function(n){return n.axis==="x"&&a(n)}).map(function(n){return i.createSeparation(n)}),this.yConstraints=r.filter(function(n){return n.axis==="y"&&a(n)}).map(function(n){return i.createSeparation(n)}),r.filter(function(n){return n.type==="alignment"}).forEach(function(n){return i.createAlignment(n)})},e.prototype.setupVariablesAndBounds=function(r,i,a,n){this.nodes.forEach(function(p,d){p.fixed?(p.variable.weight=p.fixedWeight?p.fixedWeight:1e3,a[d]=n(p)):p.variable.weight=1;var u=(p.width||0)/2,x=(p.height||0)/2,_=r[d],v=i[d];p.bounds=new vc(_-u,_+u,v-x,v+x)})},e.prototype.xProject=function(r,i,a){!this.rootGroup&&!(this.avoidOverlaps||this.xConstraints)||this.project(r,i,r,a,function(n){return n.px},this.xConstraints,EK,function(n){return n.bounds.setXCentre(a[n.variable.index]=n.variable.position())},function(n){var p=a[n.minVar.index]=n.minVar.position(),d=a[n.maxVar.index]=n.maxVar.position(),u=n.padding/2;n.bounds.x=p-u,n.bounds.X=d+u})},e.prototype.yProject=function(r,i,a){!this.rootGroup&&!this.yConstraints||this.project(r,i,i,a,function(n){return n.py},this.yConstraints,IK,function(n){return n.bounds.setYCentre(a[n.variable.index]=n.variable.position())},function(n){var p=a[n.minVar.index]=n.minVar.position(),d=a[n.maxVar.index]=n.maxVar.position(),u=n.padding/2;n.bounds.y=p-u,n.bounds.Y=d+u})},e.prototype.projectFunctions=function(){var r=this;return[function(i,a,n){return r.xProject(i,a,n)},function(i,a,n){return r.yProject(i,a,n)}]},e.prototype.project=function(r,i,a,n,p,d,u,x,_){this.setupVariablesAndBounds(r,i,n,p),this.rootGroup&&this.avoidOverlaps&&(hh(this.rootGroup),d=d.concat(u(this.rootGroup))),this.solve(this.variables,d,a,n),this.nodes.forEach(x),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(_),hh(this.rootGroup))},e.prototype.solve=function(r,i,a,n){var p=new xp.Solver(r,i);p.setStartingPositions(a),p.setDesiredPositions(n),p.solve()},e}();vl.Projection=phe});var T6=pe(R3=>{"use strict";Object.defineProperty(R3,"__esModule",{value:!0});var TK=function(){function e(r){this.elem=r,this.subheaps=[]}return e.prototype.toString=function(r){for(var i="",a=!1,n=0;n{"use strict";Object.defineProperty(M6,"__esModule",{value:!0});var MK=T6(),DK=function(){function e(r,i){this.id=r,this.distance=i}return e}(),mhe=function(){function e(r){this.id=r,this.neighbours=[]}return e}(),OK=function(){function e(r,i,a){this.node=r,this.prev=i,this.d=a}return e}(),dhe=function(){function e(r,i,a,n,p){this.n=r,this.es=i,this.neighbours=new Array(this.n);for(var d=this.n;d--;)this.neighbours[d]=new mhe(d);for(d=this.es.length;d--;){var u=this.es[d],x=a(u),_=n(u),v=p(u);this.neighbours[x].neighbours.push(new DK(_,v)),this.neighbours[_].neighbours.push(new DK(x,v))}}return e.prototype.DistanceMatrix=function(){for(var r=new Array(this.n),i=0;iC&&(_.d=C,_.prev=u,a.reduceKey(_.q,_,function(E,w){return E.q=w}))}}return p},e}();M6.Calculator=dhe});var F6=pe(Gr=>{"use strict";var FK=Gr&&Gr.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(Gr,"__esModule",{value:!0});var uhe=ku(),O6=function(){function e(){}return e}();Gr.Point=O6;var A6=function(){function e(r,i,a,n){this.x1=r,this.y1=i,this.x2=a,this.y2=n}return e}();Gr.LineSegment=A6;var fhe=function(e){FK(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(O6);Gr.PolyPoint=fhe;function Zl(e,r,i){return(r.x-e.x)*(i.y-e.y)-(i.x-e.x)*(r.y-e.y)}Gr.isLeft=Zl;function e0(e,r,i){return Zl(e,r,i)>0}function Ts(e,r,i){return Zl(e,r,i)<0}function hhe(e){var r=e.slice(0).sort(function(S,E){return S.x!==E.x?E.x-S.x:E.y-S.y}),i=e.length,a,n=0,p=r[0].x;for(a=1;a=0&&r[a].x===v;a--);for(x=a+1,a=d;++a<=x;)if(!(Zl(r[n],r[x],r[a])>=0&&a1&&!(Zl(u[u.length-2],u[u.length-1],r[a])>0);)u.length-=1;a!=n&&u.push(r[a])}_!=x&&u.push(r[_]);var C=u.length;for(a=x;--a>=d;)if(!(Zl(r[_],r[d],r[a])>=0&&a>d)){for(;u.length>C&&!(Zl(u[u.length-2],u[u.length-1],r[a])>0);)u.length-=1;a!=n&&u.push(r[a])}}return u}Gr.ConvexHull=hhe;function xhe(e,r,i){r.slice(0).sort(function(a,n){return Math.atan2(a.y-e.y,a.x-e.x)-Math.atan2(n.y-e.y,n.x-e.x)}).forEach(i)}Gr.clockwiseRadialSweep=xhe;function ghe(e,r){var i=r.slice(0);return i.push(r[0]),{rtan:N3(e,i),ltan:L3(e,i)}}function N3(e,r){var i=r.length-1,a,n,p,d,u;if(Ts(e,r[1],r[0])&&!e0(e,r[i-1],r[0]))return 0;for(a=0,n=i;;){if(n-a===1)return e0(e,r[a],r[n])?a:n;if(p=Math.floor((a+n)/2),u=Ts(e,r[p+1],r[p]),u&&!e0(e,r[p-1],r[p]))return p;d=e0(e,r[a+1],r[a]),d?u||e0(e,r[a],r[p])?n=p:a=p:u&&Ts(e,r[a],r[p])?n=p:a=p}}function L3(e,r){var i=r.length-1,a,n,p,d,u;if(e0(e,r[i-1],r[0])&&!Ts(e,r[1],r[0]))return 0;for(a=0,n=i;;){if(n-a===1)return Ts(e,r[a],r[n])?a:n;if(p=Math.floor((a+n)/2),u=Ts(e,r[p+1],r[p]),e0(e,r[p-1],r[p])&&!u)return p;d=Ts(e,r[a+1],r[a]),d?u?Ts(e,r[a],r[p])?n=p:a=p:n=p:u?a=p:e0(e,r[a],r[p])?n=p:a=p}}function V3(e,r,i,a,n,p){var d,u;d=i(r[0],e),u=a(e[d],r);for(var x=!1;!x;){for(x=!0;d===e.length-1&&(d=0),!n(r[u],e[d],e[d+1]);)++d;for(;u===0&&(u=r.length-1),!p(e[d],r[u],r[u-1]);)--u,x=!1}return{t1:d,t2:u}}Gr.tangent_PolyPolyC=V3;function _he(e,r){var i=kK(r,e);return{t1:i.t2,t2:i.t1}}Gr.LRtangent_PolyPolyC=_he;function kK(e,r){return V3(e,r,N3,L3,e0,Ts)}Gr.RLtangent_PolyPolyC=kK;function vhe(e,r){return V3(e,r,L3,L3,Ts,Ts)}Gr.LLtangent_PolyPolyC=vhe;function bhe(e,r){return V3(e,r,N3,N3,e0,e0)}Gr.RRtangent_PolyPolyC=bhe;var gh=function(){function e(r,i){this.t1=r,this.t2=i}return e}();Gr.BiTangent=gh;var RK=function(){function e(){}return e}();Gr.BiTangents=RK;var Che=function(e){FK(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(O6);Gr.TVGPoint=Che;var D6=function(){function e(r,i,a,n){this.id=r,this.polyid=i,this.polyvertid=a,this.p=n,n.vv=this}return e}();Gr.VisibilityVertex=D6;var B3=function(){function e(r,i){this.source=r,this.target=i}return e.prototype.length=function(){var r=this.source.p.x-this.target.p.x,i=this.source.p.y-this.target.p.y;return Math.sqrt(r*r+i*i)},e}();Gr.VisibilityEdge=B3;var yhe=function(){function e(r,i){if(this.P=r,this.V=[],this.E=[],i)this.V=i.V.slice(0),this.E=i.E.slice(0);else{for(var a=r.length,n=0;n0&&this.E.push(new B3(p[d-1].vv,x))}p.length>1&&this.E.push(new B3(p[0].vv,p[p.length-1].vv))}for(var n=0;n0)return!0;return!1},e}();Gr.TangentVisibilityGraph=yhe;function BK(e,r){for(var i=[],a=1,n=r.length;a=0&&w>=0&&I<0&&T>=0&&A>=0&&V<0?n.ll=new gh(p,d):E<=0&&w<=0&&I>0&&T<=0&&A<=0&&V>0?n.rr=new gh(p,d):E<=0&&w>0&&I<=0&&T>=0&&A<0&&V>=0?n.rl=new gh(p,d):E>=0&&w<0&&I>=0&&T<=0&&A>0&&V<=0&&(n.lr=new gh(p,d))}return n}Gr.tangents=NK;function She(e,r){for(var i=1,a=r.length;i0)return!0}return!1}Gr.polysOverlap=whe});var k6=pe(q3=>{"use strict";Object.defineProperty(q3,"__esModule",{value:!0});var Ms={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};function Phe(e,r,i,C,v,p){v===void 0&&(v=1),p===void 0&&(p=!0);var d=0,u=0,x=r,_=i,v=typeof v<"u"?v:1,C=typeof C<"u"?C:0,S=0,E=0,w=0,I=0,T=[];if(e.length==0)return;A(e),G(e,v),p&&V(e);function A(ot){ot.forEach(function(ct){ht(ct)});function ht(ct){var z=Number.MAX_VALUE,U=Number.MAX_VALUE,st=0,M=0;ct.array.forEach(function(F){var B=typeof F.width<"u"?F.width:C,R=typeof F.height<"u"?F.height:C;B/=2,R/=2,st=Math.max(F.x+B,st),z=Math.min(F.x-B,z),M=Math.max(F.y+R,M),U=Math.min(F.y-R,U)}),ct.width=st-z,ct.height=M-U}}function V(ot){ot.forEach(function(ht){var ct={x:0,y:0};ht.array.forEach(function(st){ct.x+=st.x,ct.y+=st.y}),ct.x/=ht.array.length,ct.y/=ht.array.length;var z={x:ct.x-ht.width/2,y:ct.y-ht.height/2},U={x:ht.x-z.x+x/2-S/2,y:ht.y-z.y+_/2-E/2};ht.array.forEach(function(st){st.x+=U.x,st.y+=U.y})})}function G(ot,ht){var ct=Number.POSITIVE_INFINITY,z=0;ot.sort(function(bt,kt){return kt.height-bt.height}),w=ot.reduce(function(bt,kt){return bt.widthw||H>Ms.FLOAT_EPSILON;){if(R!=1)var et=st-(st-U)/Ms.GOLDEN_SECTION,F=J(ot,et);if(R!=0)var vt=U+(st-U)/Ms.GOLDEN_SECTION,B=J(ot,vt);if(j=Math.abs(et-vt),H=Math.abs(F-B),FB?(U=et,et=vt,F=B,R=1):(st=vt,vt=et,B=F,R=0),M++>100)break}J(ot,z)}function J(ot,ht){T=[],S=0,E=0,I=u;for(var ct=0;ct=ot.height&&T[z].x+T[z].width+ot.width+Ms.PADDING-ht<=Ms.FLOAT_EPSILON){ct=T[z];break}T.push(ot),ct!==void 0?(ot.x=ct.x+ct.width+Ms.PADDING,ot.y=ct.bottom,ot.space_left=ot.height,ot.bottom=ot.y,ct.space_left-=ot.height+Ms.PADDING,ct.bottom+=ot.height+Ms.PADDING):(ot.y=I,I+=ot.height+Ms.PADDING,ot.x=d,ot.bottom=ot.y,ot.space_left=ot.height),ot.y+ot.height-E>-Ms.FLOAT_EPSILON&&(E=ot.y+ot.height-u),ot.x+ot.width-S>-Ms.FLOAT_EPSILON&&(S=ot.x+ot.width-d)}function X(ot){var ht=0;return ot.forEach(function(ct){return ht+=ct.width+Ms.PADDING}),ht}function nt(){return S/E}}q3.applyPacking=Phe;function Ehe(e,r){for(var i={},a={},n=[],p=0,d=0;d{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var Ihe=b6(),R6=T3(),j3=M3(),z3=ku(),LK=xh(),VK=F6(),qK=k6(),_h;(function(e){e[e.start=0]="start",e[e.tick=1]="tick",e[e.end=2]="end"})(_h=vh.EventType||(vh.EventType={}));function H3(e){return typeof e.leaves<"u"||typeof e.groups<"u"}var The=function(){function e(){var r=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:e.getSourceIndex,getTargetIndex:e.getTargetIndex,setLength:e.setLinkLength,getType:function(i){return typeof r._linkType=="function"?r._linkType(i):0}}}return e.prototype.on=function(r,i){return this.event||(this.event={}),typeof r=="string"?this.event[_h[r]]=i:this.event[r]=i,this},e.prototype.trigger=function(r){this.event&&typeof this.event[r.type]<"u"&&this.event[r.type](r)},e.prototype.kick=function(){for(;!this.tick(););},e.prototype.tick=function(){if(this._alpha"u"||typeof a.py>"u")&&(a.px=a.x,a.py=a.y);var p=[a.px,a.py];this._descent.locks.add(n,p)}var d=this._descent.rungeKutta();return d===0?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=d),this._lastStress=d,this.updateNodePositions(),this.trigger({type:_h.tick,alpha:this._alpha,stress:this._lastStress}),!1},e.prototype.updateNodePositions=function(){for(var r=this._descent.x[0],i=this._descent.x[1],a,n=this._nodes.length;n--;)a=this._nodes[n],a.x=r[n],a.y=i[n]},e.prototype.nodes=function(r){if(!r){if(this._nodes.length===0&&this._links.length>0){var i=0;this._links.forEach(function(n){i=Math.max(i,n.source,n.target)}),this._nodes=new Array(++i);for(var a=0;a"u"&&(a.padding=1),typeof a.leaves<"u"&&a.leaves.forEach(function(n,p){typeof n=="number"&&((a.leaves[p]=i._nodes[n]).parent=a)}),typeof a.groups<"u"&&a.groups.forEach(function(n,p){typeof n=="number"&&((a.groups[p]=i._groups[n]).parent=a)})}),this._rootGroup.leaves=this._nodes.filter(function(a){return typeof a.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(a){return typeof a.parent>"u"}),this):this._groups},e.prototype.powerGraphGroups=function(r){var i=Ihe.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(i.groups),r(i),this},e.prototype.avoidOverlaps=function(r){return arguments.length?(this._avoidOverlaps=r,this):this._avoidOverlaps},e.prototype.handleDisconnected=function(r){return arguments.length?(this._handleDisconnected=r,this):this._handleDisconnected},e.prototype.flowLayout=function(r,i){return arguments.length||(r="y"),this._directedLinkConstraints={axis:r,getMinSeparation:typeof i=="number"?function(){return i}:i},this},e.prototype.links=function(r){return arguments.length?(this._links=r,this):this._links},e.prototype.constraints=function(r){return arguments.length?(this._constraints=r,this):this._constraints},e.prototype.distanceMatrix=function(r){return arguments.length?(this._distanceMatrix=r,this):this._distanceMatrix},e.prototype.size=function(r){return r?(this._canvasSize=r,this):this._canvasSize},e.prototype.defaultNodeSize=function(r){return r?(this._defaultNodeSize=r,this):this._defaultNodeSize},e.prototype.groupCompactness=function(r){return r?(this._groupCompactness=r,this):this._groupCompactness},e.prototype.linkDistance=function(r){return r?(this._linkDistance=typeof r=="function"?r:+r,this._linkLengthCalculator=null,this):this._linkDistance},e.prototype.linkType=function(r){return this._linkType=r,this},e.prototype.convergenceThreshold=function(r){return r?(this._threshold=typeof r=="function"?r:+r,this):this._threshold},e.prototype.alpha=function(r){return arguments.length?(r=+r,this._alpha?r>0?this._alpha=r:this._alpha=0:r>0&&(this._running||(this._running=!0,this.trigger({type:_h.start,alpha:this._alpha=r}),this.kick())),this):this._alpha},e.prototype.getLinkLength=function(r){return typeof this._linkDistance=="function"?+this._linkDistance(r):this._linkDistance},e.setLinkLength=function(r,i){r.length=i},e.prototype.getLinkType=function(r){return typeof this._linkType=="function"?this._linkType(r):0},e.prototype.symmetricDiffLinkLengths=function(r,i){var a=this;return i===void 0&&(i=1),this.linkDistance(function(n){return r*n.length}),this._linkLengthCalculator=function(){return R6.symmetricDiffLinkLengths(a._links,a.linkAccessor,i)},this},e.prototype.jaccardLinkLengths=function(r,i){var a=this;return i===void 0&&(i=1),this.linkDistance(function(n){return r*n.length}),this._linkLengthCalculator=function(){return R6.jaccardLinkLengths(a._links,a.linkAccessor,i)},this},e.prototype.start=function(r,i,a,n,p,d){var u=this;r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),n===void 0&&(n=0),p===void 0&&(p=!0),d===void 0&&(d=!0);var x,_,v=this.nodes().length,C=v+2*this._groups.length,S=this._links.length,E=this._canvasSize[0],w=this._canvasSize[1],I=new Array(C),T=new Array(C),A=null,V=this._avoidOverlaps;this._nodes.forEach(function(ct,z){ct.index=z,typeof ct.x>"u"&&(ct.x=E/2,ct.y=w/2),I[z]=ct.x,T[z]=ct.y}),this._linkLengthCalculator&&this._linkLengthCalculator();var G;this._distanceMatrix?G=this._distanceMatrix:(G=new LK.Calculator(C,this._links,e.getSourceIndex,e.getTargetIndex,function(ct){return u.getLinkLength(ct)}).DistanceMatrix(),A=j3.Descent.createSquareMatrix(C,function(){return 2}),this._links.forEach(function(ct){typeof ct.source=="number"&&(ct.source=u._nodes[ct.source]),typeof ct.target=="number"&&(ct.target=u._nodes[ct.target])}),this._links.forEach(function(ct){var z=e.getSourceIndex(ct),U=e.getTargetIndex(ct);A[z][U]=A[U][z]=ct.weight||1}));var J=j3.Descent.createSquareMatrix(C,function(ct,z){return G[ct][z]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var x=v,at=function(z,U,st,M){A[z][U]=A[U][z]=st,J[z][U]=J[U][z]=M};this._groups.forEach(function(z){at(x,x+1,u._groupCompactness,.1),I[x]=0,T[x++]=0,I[x]=0,T[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var X=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,X=X.concat(R6.generateDirectedEdgeConstraints(v,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new j3.Descent([I,T],J),this._descent.locks.clear();for(var x=0;x0&&(this._descent.project=new z3.Projection(this._nodes,this._groups,this._rootGroup,X).projectFunctions()),this._descent.run(i),this.separateOverlappingComponents(E,w,d),this.avoidOverlaps(V),V&&(this._nodes.forEach(function(ct,z){ct.x=I[z],ct.y=T[z]}),this._descent.project=new z3.Projection(this._nodes,this._groups,this._rootGroup,X,!0).projectFunctions(),this._nodes.forEach(function(ct,z){I[z]=ct.x,T[z]=ct.y})),this._descent.G=A,this._descent.run(a),n){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=v,this._descent.scaleSnapByMaxH=v!=C;var ht=j3.Descent.createSquareMatrix(C,function(ct,z){return ct>=v||z>=v?A[ct][z]:0});this._descent.G=ht,this._descent.run(n)}return this.updateNodePositions(),this.separateOverlappingComponents(E,w,d),p?this.resume():this},e.prototype.initialLayout=function(r,i,a){if(this._groups.length>0&&r>0){var n=this._nodes.length,p=this._links.map(function(u){return{source:u.source.index,target:u.target.index}}),d=this._nodes.map(function(u){return{index:u.index}});this._groups.forEach(function(u,x){d.push({index:u.index=n+x})}),this._groups.forEach(function(u,x){typeof u.leaves<"u"&&u.leaves.forEach(function(_){return p.push({source:u.index,target:_.index})}),typeof u.groups<"u"&&u.groups.forEach(function(_){return p.push({source:u.index,target:_.index})})}),new e().size(this.size()).nodes(d).links(p).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(r,0,0,0,!1),this._nodes.forEach(function(u){i[u.index]=d[u.index].x,a[u.index]=d[u.index].y})}else this._descent.run(r)},e.prototype.separateOverlappingComponents=function(r,i,a){var n=this;if(a===void 0&&(a=!0),!this._distanceMatrix&&this._handleDisconnected){var p=this._descent.x[0],d=this._descent.x[1];this._nodes.forEach(function(x,_){x.x=p[_],x.y=d[_]});var u=qK.separateGraphs(this._nodes,this._links);qK.applyPacking(u,r,i,this._defaultNodeSize,1,a),this._nodes.forEach(function(x,_){n._descent.x[0][_]=x.x,n._descent.x[1][_]=x.y,x.bounds&&(x.bounds.setXCentre(x.x),x.bounds.setYCentre(x.y))})}},e.prototype.resume=function(){return this.alpha(.1)},e.prototype.stop=function(){return this.alpha(0)},e.prototype.prepareEdgeRouting=function(r){r===void 0&&(r=0),this._visibilityGraph=new VK.TangentVisibilityGraph(this._nodes.map(function(i){return i.bounds.inflate(-r).vertices()}))},e.prototype.routeEdge=function(r,i,a){i===void 0&&(i=5);var n=[],p=new VK.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),d={x:r.source.x,y:r.source.y},u={x:r.target.x,y:r.target.y},x=p.addPoint(d,r.source.index),_=p.addPoint(u,r.target.index);p.addEdgeIfVisible(d,u,r.source.index,r.target.index),typeof a<"u"&&a(p);var v=function(J){return J.source.id},C=function(J){return J.target.id},S=function(J){return J.length()},E=new LK.Calculator(p.V.length,p.E,v,C,S),w=E.PathFromNodeToNode(x.id,_.id);if(w.length===1||w.length===p.V.length){var I=z3.makeEdgeBetween(r.source.innerBounds,r.target.innerBounds,i);n=[I.sourceIntersection,I.arrowStart]}else{for(var T=w.length-2,A=p.V[w[T]].p,V=p.V[w[0]].p,n=[r.source.innerBounds.rayIntersection(A.x,A.y)],G=T;G>=0;--G)n.push(p.V[w[G]].p);n.push(z3.makeEdgeTo(V,r.target.innerBounds,i))}return n},e.getSourceIndex=function(r){return typeof r.source=="number"?r.source:r.source.index},e.getTargetIndex=function(r){return typeof r.target=="number"?r.target:r.target.index},e.linkId=function(r){return e.getSourceIndex(r)+"-"+e.getTargetIndex(r)},e.dragStart=function(r){H3(r)?e.storeOffset(r,e.dragOrigin(r)):(e.stopNode(r),r.fixed|=2)},e.stopNode=function(r){r.px=r.x,r.py=r.y},e.storeOffset=function(r,i){typeof r.leaves<"u"&&r.leaves.forEach(function(a){a.fixed|=2,e.stopNode(a),a._dragGroupOffsetX=a.x-i.x,a._dragGroupOffsetY=a.y-i.y}),typeof r.groups<"u"&&r.groups.forEach(function(a){return e.storeOffset(a,i)})},e.dragOrigin=function(r){return H3(r)?{x:r.bounds.cx(),y:r.bounds.cy()}:r},e.drag=function(r,i){H3(r)?(typeof r.leaves<"u"&&r.leaves.forEach(function(a){r.bounds.setXCentre(i.x),r.bounds.setYCentre(i.y),a.px=a._dragGroupOffsetX+i.x,a.py=a._dragGroupOffsetY+i.y}),typeof r.groups<"u"&&r.groups.forEach(function(a){return e.drag(a,i)})):(r.px=i.x,r.py=i.y)},e.dragEnd=function(r){H3(r)?(typeof r.leaves<"u"&&r.leaves.forEach(function(i){e.dragEnd(i),delete i._dragGroupOffsetX,delete i._dragGroupOffsetY}),typeof r.groups<"u"&&r.groups.forEach(e.dragEnd)):r.fixed&=-7},e.mouseOver=function(r){r.fixed|=4,r.px=r.x,r.py=r.y},e.mouseOut=function(r){r.fixed&=-5},e}();vh.Layout=The});var zK=pe(Bu=>{"use strict";var Mhe=Bu&&Bu.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(Bu,"__esModule",{value:!0});var B6=Ru(),jK=function(e){Mhe(r,e);function r(i){var a=e.call(this)||this,n=a,p=i;return p.trigger&&(a.trigger=p.trigger),p.kick&&(a.kick=p.kick),p.drag&&(a.drag=p.drag),p.on&&(a.on=p.on),a.dragstart=a.dragStart=B6.Layout.dragStart,a.dragend=a.dragEnd=B6.Layout.dragEnd,a}return r.prototype.trigger=function(i){},r.prototype.kick=function(){},r.prototype.drag=function(){},r.prototype.on=function(i,a){return this},r}(B6.Layout);Bu.LayoutAdaptor=jK;function Dhe(e){return new jK(e)}Bu.adaptor=Dhe});var GK=pe(Nu=>{"use strict";var Ohe=Nu&&Nu.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(Nu,"__esModule",{value:!0});var ts=Ru(),HK=function(e){Ohe(r,e);function r(){var i=e.call(this)||this;i.event=d3.dispatch(ts.EventType[ts.EventType.start],ts.EventType[ts.EventType.tick],ts.EventType[ts.EventType.end]);var a=i,n;return i.drag=function(){if(!p)var p=d3.behavior.drag().origin(ts.Layout.dragOrigin).on("dragstart.d3adaptor",ts.Layout.dragStart).on("drag.d3adaptor",function(d){ts.Layout.drag(d,d3.event),a.resume()}).on("dragend.d3adaptor",ts.Layout.dragEnd);if(!arguments.length)return p;this.call(p)},i}return r.prototype.trigger=function(i){var a={type:ts.EventType[i.type],alpha:i.alpha,stress:i.stress};this.event[a.type](a)},r.prototype.kick=function(){var i=this;d3.timer(function(){return e.prototype.tick.call(i)})},r.prototype.on=function(i,a){return typeof i=="string"?this.event.on(i,a):this.event.on(ts.EventType[i],a),this},r}(ts.Layout);Nu.D3StyleLayoutAdaptor=HK;function Ahe(){return new HK}Nu.d3adaptor=Ahe});var UK=pe(bh=>{"use strict";var Fhe=bh&&bh.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var p in n)n.hasOwnProperty(p)&&(a[p]=n[p])},e(r,i)};return function(r,i){e(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(bh,"__esModule",{value:!0});var es=Ru(),khe=function(e){Fhe(r,e);function r(i){var a=e.call(this)||this;a.d3Context=i,a.event=i.dispatch(es.EventType[es.EventType.start],es.EventType[es.EventType.tick],es.EventType[es.EventType.end]);var n=a,p;return a.drag=function(){if(!d)var d=i.drag().subject(es.Layout.dragOrigin).on("start.d3adaptor",es.Layout.dragStart).on("drag.d3adaptor",function(u){es.Layout.drag(u,i.event),n.resume()}).on("end.d3adaptor",es.Layout.dragEnd);if(!arguments.length)return d;arguments[0].call(d)},a}return r.prototype.trigger=function(i){var a={type:es.EventType[i.type],alpha:i.alpha,stress:i.stress};this.event.call(a.type,a)},r.prototype.kick=function(){var i=this,a=this.d3Context.timer(function(){return e.prototype.tick.call(i)&&a.stop()})},r.prototype.on=function(i,a){return typeof i=="string"?this.event.on(i,a):this.event.on(es.EventType[i],a),this},r}(es.Layout);bh.D3StyleLayoutAdaptor=khe});var $K=pe(N6=>{"use strict";Object.defineProperty(N6,"__esModule",{value:!0});var Rhe=GK(),Bhe=UK();function Nhe(e){return!e||Lhe(e)?new Rhe.D3StyleLayoutAdaptor:new Bhe.D3StyleLayoutAdaptor(e)}N6.d3adaptor=Nhe;function Lhe(e){var r=/^3\./;return e.version&&e.version.match(r)!==null}});var j6=pe(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Vhe=ku(),L6=A3(),qhe=xh(),WK=function(){function e(r,i,a){this.id=r,this.rect=i,this.children=a,this.leaf=typeof a>"u"||a.length===0}return e}();Lu.NodeWrapper=WK;var V6=function(){function e(r,i,a,n,p){n===void 0&&(n=null),p===void 0&&(p=null),this.id=r,this.x=i,this.y=a,this.node=n,this.line=p}return e}();Lu.Vert=V6;var q6=function(){function e(r,i){this.s=r,this.t=i;var a=e.findMatch(r,i),n=i.slice(0).reverse(),p=e.findMatch(r,n);a.length>=p.length?(this.length=a.length,this.si=a.si,this.ti=a.ti,this.reversed=!1):(this.length=p.length,this.si=p.si,this.ti=i.length-p.ti-p.length,this.reversed=!0)}return e.findMatch=function(r,i){for(var a=r.length,n=i.length,p={length:0,si:-1,ti:-1},d=new Array(a),u=0;up.length&&(p.length=_,p.si=u-_+1,p.ti=x-_+1)}else d[u][x]=0}return p},e.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},e}();Lu.LongestCommonSubsequence=q6;var jhe=function(){function e(r,i,a){var n=this;a===void 0&&(a=12),this.originalnodes=r,this.groupPadding=a,this.leaves=null,this.nodes=r.map(function(I,T){return new WK(T,i.getBounds(I),i.getChildren(I))}),this.leaves=this.nodes.filter(function(I){return I.leaf}),this.groups=this.nodes.filter(function(I){return!I.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(I){return I.children.forEach(function(T){return n.nodes[T].parent=I})}),this.root={children:[]},this.nodes.forEach(function(I){typeof I.parent>"u"&&(I.parent=n.root,n.root.children.push(I.id)),I.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(I,T){return n.getDepth(I)-n.getDepth(T)});var p=this.backToFront.slice(0).reverse().filter(function(I){return!I.leaf});p.forEach(function(I){var T=Vhe.Rectangle.empty();I.children.forEach(function(A){return T=T.union(n.nodes[A].rect)}),I.rect=T.inflate(n.groupPadding)});var d=this.midPoints(this.cols.map(function(I){return I.pos})),u=this.midPoints(this.rows.map(function(I){return I.pos})),x=d[0],_=d[d.length-1],v=u[0],C=u[u.length-1],S=this.rows.map(function(I){return{x1:x,x2:_,y1:I.pos,y2:I.pos}}).concat(u.map(function(I){return{x1:x,x2:_,y1:I,y2:I}})),E=this.cols.map(function(I){return{x1:I.pos,x2:I.pos,y1:v,y2:C}}).concat(d.map(function(I){return{x1:I,x2:I,y1:v,y2:C}})),w=S.concat(E);w.forEach(function(I){return I.verts=[]}),this.verts=[],this.edges=[],S.forEach(function(I){return E.forEach(function(T){var A=new V6(n.verts.length,T.x1,I.y1);I.verts.push(A),T.verts.push(A),n.verts.push(A);for(var V=n.backToFront.length;V-- >0;){var G=n.backToFront[V],J=G.rect,at=Math.abs(A.x-J.cx()),X=Math.abs(A.y-J.cy());if(at0;){var n=a.filter(function(d){return d.rect["overlap"+r.toUpperCase()](a[0].rect)}),p={nodes:n,pos:this.avg(n.map(function(d){return d.rect["c"+r]()}))};i.push(p),p.nodes.forEach(function(d){return a.splice(a.indexOf(d),1)})}return i.sort(function(d,u){return d.pos-u.pos}),i},e.prototype.getDepth=function(r){for(var i=0;r.parent!==this.root;)i++,r=r.parent;return i},e.prototype.midPoints=function(r){for(var i=r[1]-r[0],a=[r[0]-i/2],n=1;n.1)&&(C={pos:x[0][i],segments:[]},v.push(C)),C.segments.push(x)}return v},e.nudgeSegs=function(r,i,a,n,p,d){var u=n.length;if(!(u<=1)){for(var x=n.map(function(G){return new L6.Variable(G[0][r])}),_=[],v=0;v=0&&_.push(new L6.Constraint(x[T],x[A],d))}var V=new L6.Solver(x,_);V.solve(),x.forEach(function(G,J){var at=n[J],X=G.position();at[0][r]=at[1][r]=X;var nt=a[at.edgeid];at.i>0&&(nt[at.i-1][1][r]=X),at.iMath.PI||p<-Math.PI)&&(p=n-a),p},e.isLeft=function(r,i,a){return(i.x-r.x)*(a.y-r.y)-(i.y-r.y)*(a.x-r.x)<=0},e.getOrder=function(r){for(var i={},a=0;a"u"&&(i[n.l]={}),i[n.l][n.r]=!0}return function(p,d){return typeof i[p]<"u"&&i[p][d]}},e.orderEdges=function(r){for(var i=[],a=0;a=p.length||u.ti+u.length>=d.length)){i.push({l:a,r:n});continue}u.si+u.length>=p.length||u.ti+u.length>=d.length?(x=p[u.si+1],v=p[u.si-1],_=d[u.ti-1]):(x=p[u.si+u.length-2],_=p[u.si+u.length],v=d[u.ti+u.length]),e.isLeft(x,_,v)?i.push({l:n,r:a}):i.push({l:a,r:n})}}return e.getOrder(i)},e.makeSegments=function(r){function i(_){return{x:_.x,y:_.y}}for(var a=function(_,v,C){return Math.abs((v.x-_.x)*(C.y-_.y)-(v.y-_.y)*(C.x-_.x))<.001},n=[],p=i(r[0]),d=1;d1&&ot>1?1e3:0},I=E.PathFromNodeToNodeWithPrevCost(n.ports[0].id,p.ports[0].id,w),T=I.reverse().map(function(A){return a.verts[A]});return T.push(this.nodes[p.id].ports[0]),T.filter(function(A,V){return!(V0&&A.node===p&&T[V-1].node===p)})},e.getRoutePath=function(r,i,a,n){var p={routepath:"M "+r[0][0].x+" "+r[0][0].y+" ",arrowpath:""};if(r.length>1)for(var d=0;d0?x-=v/Math.abs(v)*i:_-=C/Math.abs(C)*i,p.routepath+="L "+x+" "+_+" ";var S=r[d+1],E=S[0].x,w=S[0].y,I=S[1].x,T=S[1].y;v=I-E,C=T-w;var A=e.angleBetween2Lines(u,S)<0?1:0,V,G;Math.abs(v)>0?(V=E+v/Math.abs(v)*i,G=w):(V=E,G=w+C/Math.abs(C)*i);var J=Math.abs(V-x),at=Math.abs(G-_);p.routepath+="A "+J+" "+at+" 0 0 "+A+" "+V+" "+G+" "}else{var X=[x,_],nt,ot;Math.abs(v)>0?(x-=v/Math.abs(v)*n,nt=[x,_+a],ot=[x,_-a]):(_-=C/Math.abs(C)*n,nt=[x+a,_],ot=[x-a,_]),p.routepath+="L "+x+" "+_+" ",n>0&&(p.arrowpath="M "+X[0]+" "+X[1]+" L "+nt[0]+" "+nt[1]+" L "+ot[0]+" "+ot[1])}}else{var u=r[0],x=u[1].x,_=u[1].y,v=x-u[0].x,C=_-u[0].y,X=[x,_],nt,ot;Math.abs(v)>0?(x-=v/Math.abs(v)*n,nt=[x,_+a],ot=[x,_-a]):(_-=C/Math.abs(C)*n,nt=[x+a,_],ot=[x-a,_]),p.routepath+="L "+x+" "+_+" ",n>0&&(p.arrowpath="M "+X[0]+" "+X[1]+" L "+nt[0]+" "+nt[1]+" L "+ot[0]+" "+ot[1])}return p},e}();Lu.GridRouter=jhe});var QK=pe(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var zhe=xh(),z6=M3(),Hhe=ku(),Ghe=T3(),Uhe=function(){function e(r,i){this.source=r,this.target=i}return e.prototype.actualLength=function(r){var i=this;return Math.sqrt(r.reduce(function(a,n){var p=n[i.target]-n[i.source];return a+p*p},0))},e}();Ch.Link3D=Uhe;var $he=function(){function e(r,i,a){r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),this.x=r,this.y=i,this.z=a}return e}();Ch.Node3D=$he;var Whe=function(){function e(r,i,a){var n=this;a===void 0&&(a=1),this.nodes=r,this.links=i,this.idealLinkLength=a,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(e.k);for(var p=0;p"u"&&(d[v]=Math.random())}n.result[0][u]=d.x,n.result[1][u]=d.y,n.result[2][u]=d.z})}return e.prototype.linkLength=function(r){return r.actualLength(this.result)},e.prototype.start=function(r){var i=this;r===void 0&&(r=100);var a=this.nodes.length,n=new Qhe;this.useJaccardLinkLengths&&Ghe.jaccardLinkLengths(this.links,n,1.5),this.links.forEach(function(v){return v.length*=i.idealLinkLength});var p=new zhe.Calculator(a,this.links,function(v){return v.source},function(v){return v.target},function(v){return v.length}).DistanceMatrix(),d=z6.Descent.createSquareMatrix(a,function(v,C){return p[v][C]}),u=z6.Descent.createSquareMatrix(a,function(){return 2});this.links.forEach(function(v){var C=v.source,S=v.target;return u[C][S]=u[S][C]=1}),this.descent=new z6.Descent(this.result,d),this.descent.threshold=.001,this.descent.G=u,this.constraints&&(this.descent.project=new Hhe.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var x=0;x{"use strict";Object.defineProperty(G3,"__esModule",{value:!0});var H6=Ru(),Yhe=j6();function Jhe(e,r,i,a){e.cola.start(0,0,0,10,!1);var n=Khe(e.cola.nodes(),e.cola.groups(),i,a);return n.routeEdges(e.powerGraph.powerEdges,r,function(p){return p.source.routerNode.id},function(p){return p.target.routerNode.id})}G3.gridify=Jhe;function Khe(e,r,i,a){e.forEach(function(p){p.routerNode={name:p.name,bounds:p.bounds.inflate(-i)}}),r.forEach(function(p){p.routerNode={bounds:p.bounds.inflate(-a),children:(typeof p.groups<"u"?p.groups.map(function(d){return e.length+d.id}):[]).concat(typeof p.leaves<"u"?p.leaves.map(function(d){return d.index}):[])}});var n=e.concat(r).map(function(p,d){return p.routerNode.id=d,p.routerNode});return new Yhe.GridRouter(n,{getChildren:function(p){return p.children},getBounds:function(p){return p.bounds}},i-a)}function Xhe(e,r,i){var a;e.nodes.forEach(function(u,x){return u.index=x}),new H6.Layout().avoidOverlaps(!1).nodes(e.nodes).links(e.links).powerGraphGroups(function(u){a=u,a.groups.forEach(function(x){return x.padding=i})});var n=e.nodes.length,p=[],d=e.nodes.slice(0);return d.forEach(function(u,x){return u.index=x}),a.groups.forEach(function(u){var x=u.index=u.id+n;d.push(u),typeof u.leaves<"u"&&u.leaves.forEach(function(_){return p.push({source:x,target:_.index})}),typeof u.groups<"u"&&u.groups.forEach(function(_){return p.push({source:x,target:_.id+n})})}),a.powerEdges.forEach(function(u){p.push({source:u.source.index,target:u.target.index})}),new H6.Layout().size(r).nodes(d).links(p).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:new H6.Layout().convergenceThreshold(.001).size(r).avoidOverlaps(!0).nodes(e.nodes).links(e.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(u){a=u,a.groups.forEach(function(x){x.padding=i})}).start(50,0,100,0,!1),powerGraph:a}}G3.powerGraphGridLayout=Xhe});var JK=pe(U3=>{"use strict";function sl(e){for(var r in e)U3.hasOwnProperty(r)||(U3[r]=e[r])}Object.defineProperty(U3,"__esModule",{value:!0});sl(zK());sl($K());sl(M3());sl(F6());sl(j6());sl(k6());sl(Ru());sl(QK());sl(T3());sl(b6());sl(T6());sl(w6());sl(ku());sl(xh());sl(A3());sl(YK())});var z7=pe((aZ,j7)=>{(function(e){typeof aZ=="object"&&typeof j7<"u"?j7.exports=e():typeof define=="function"&&define.amd?define([],e):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).ExcelJS=e()})(function(){return function e(r,i,a){function n(u,x){if(!i[u]){if(!r[u]){var _=typeof Vs=="function"&&Vs;if(!x&&_)return _(u,!0);if(p)return p(u,!0);var v=new Error("Cannot find module '"+u+"'");throw v.code="MODULE_NOT_FOUND",v}var C=i[u]={exports:{}};r[u][0].call(C.exports,function(S){return n(r[u][1][S]||S)},C,C.exports,e,r,i,a)}return i[u].exports}for(var p=typeof Vs=="function"&&Vs,d=0;d{let I=this.workbook.addWorksheet(S.sheetName),T=S.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],A=S.map||function(G){if(G==="")return null;let J=Number(G);if(!Number.isNaN(J)&&J!==1/0)return J;let at=T.reduce((nt,ot)=>{if(nt)return nt;let ht=u(G,ot,!0);return ht.isValid()?ht:null},null);if(at)return new Date(at.valueOf());let X=v[G];return X!==void 0?X:G},V=n.parse(S.parserOptions).on("data",G=>{I.addRow(G.map(A))}).on("end",()=>{V.emit("worksheet",I)});V.on("worksheet",E).on("error",w),C.pipe(V)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(C,S){return new Promise((E,w)=>{S=S||{};let I=this.workbook.getWorksheet(S.sheetName||S.sheetId),T=n.format(S.formatterOptions);C.on("finish",()=>{E()}),T.on("error",w),T.pipe(C);let{dateFormat:A,dateUTC:V}=S,G=S.map||(X=>{if(X){if(X.text||X.hyperlink)return X.hyperlink||X.text||"";if(X.formula||X.result)return X.result||"";if(X instanceof Date)return A?V?u.utc(X).format(A):u(X).format(A):V?u.utc(X).format():u(X).format();if(X.error)return X.error;if(typeof X=="object")return JSON.stringify(X)}return X}),J=S.includeEmptyRows===void 0||S.includeEmptyRows,at=1;I&&I.eachRow((X,nt)=>{if(J)for(;at++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=d,u)if(typeof u=="string"){let _=a.decodeAddress(u);this.nativeCol=_.col+x,this.nativeColOff=0,this.nativeRow=_.row+x,this.nativeRowOff=0}else u.nativeCol!==void 0?(this.nativeCol=u.nativeCol||0,this.nativeColOff=u.nativeColOff||0,this.nativeRow=u.nativeRow||0,this.nativeRowOff=u.nativeRowOff||0):u.col!==void 0?(this.col=u.col+x,this.row=u.row+x):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(d){return d instanceof n||d==null?d:new n(d)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(d){this.nativeCol=Math.floor(d),this.nativeColOff=Math.floor((d-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(d){this.nativeRow=Math.floor(d),this.nativeRowOff=Math.floor((d-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(d){this.nativeCol=d.nativeCol,this.nativeColOff=d.nativeColOff,this.nativeRow=d.nativeRow,this.nativeRowOff=d.nativeRowOff}}r.exports=n},{"../utils/col-cache":19}],3:[function(e,r,i){"use strict";let a=e("../utils/col-cache"),n=e("../utils/under-dash"),p=e("./enums"),{slideFormula:d}=e("../utils/shared-formula"),u=e("./note");class x{constructor(C,S,E){if(!C||!S)throw new Error("A Cell needs a Row");this._row=C,this._column=S,a.validateAddress(E),this._address=E,this._value=_.create(x.Types.Null,this),this.style=this._mergeStyle(C.style,S.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(C){this.style.numFmt=C}get font(){return this.style.font}set font(C){this.style.font=C}get alignment(){return this.style.alignment}set alignment(C){this.style.alignment=C}get border(){return this.style.border}set border(C){this.style.border=C}get fill(){return this.style.fill}set fill(C){this.style.fill=C}get protection(){return this.style.protection}set protection(C){this.style.protection=C}_mergeStyle(C,S,E){let w=C&&C.numFmt||S&&S.numFmt;w&&(E.numFmt=w);let I=C&&C.font||S&&S.font;I&&(E.font=I);let T=C&&C.alignment||S&&S.alignment;T&&(E.alignment=T);let A=C&&C.border||S&&S.border;A&&(E.border=A);let V=C&&C.fill||S&&S.fill;V&&(E.fill=V);let G=C&&C.protection||S&&S.protection;return G&&(E.protection=G),E}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===x.Types.Merge}merge(C,S){this._value.release(),this._value=_.create(x.Types.Merge,this,C),S||(this.style=C.style)}unmerge(){this.type===x.Types.Merge&&(this._value.release(),this._value=_.create(x.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(C){return this._value.type===x.Types.Merge&&this._value.isMergedTo(C)}get master(){return this.type===x.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===x.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(C){this.type!==x.Types.Merge?(this._value.release(),this._value=_.create(_.getType(C),this,C)):this._value.master.value=C}get note(){return this._comment&&this._comment.note}set note(C){this._comment=new u(C)}get text(){return this._value.toString()}get html(){return n.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(C){this.type===x.Types.String&&(this._value=_.create(x.Types.Hyperlink,this,{text:this._value.value,hyperlink:C}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){let{worksheet:C}=this._row;return{sheetName:C.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(C){this.names=[C]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(C){let{definedNames:S}=this.workbook;S.removeAllNames(this.fullAddress),C.forEach(E=>{S.addEx(this.fullAddress,E)})}addName(C){this.workbook.definedNames.addEx(this.fullAddress,C)}removeName(C){this.workbook.definedNames.removeEx(this.fullAddress,C)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(C){this._dataValidations.add(this.address,C)}get model(){let{model:C}=this._value;return C.style=this.style,this._comment&&(C.comment=this._comment.model),C}set model(C){if(this._value.release(),this._value=_.create(C.type,this),this._value.model=C,C.comment)switch(C.comment.type){case"note":this._comment=u.fromModel(C.comment)}C.style?this.style=C.style:this.style={}}}x.Types=p.ValueType;let _={getType:v=>v==null?x.Types.Null:v instanceof String||typeof v=="string"?x.Types.String:typeof v=="number"?x.Types.Number:typeof v=="boolean"?x.Types.Boolean:v instanceof Date?x.Types.Date:v.text&&v.hyperlink?x.Types.Hyperlink:v.formula||v.sharedFormula?x.Types.Formula:v.richText?x.Types.RichText:v.sharedString?x.Types.SharedString:v.error?x.Types.Error:x.Types.JSON,types:[{t:x.Types.Null,f:class{constructor(v){this.model={address:v.address,type:x.Types.Null}}get value(){return null}set value(v){}get type(){return x.Types.Null}get effectiveType(){return x.Types.Null}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return""}release(){}toString(){return""}}},{t:x.Types.Number,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Number,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.Number}get effectiveType(){return x.Types.Number}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:x.Types.String,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.String,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.String}get effectiveType(){return x.Types.String}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:x.Types.Date,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Date,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.Date}get effectiveType(){return x.Types.Date}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:x.Types.Hyperlink,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Hyperlink,text:C?C.text:void 0,hyperlink:C?C.hyperlink:void 0},C&&C.tooltip&&(this.model.tooltip=C.tooltip)}get value(){let v={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(v.tooltip=this.model.tooltip),v}set value(v){this.model={text:v.text,hyperlink:v.hyperlink},v.tooltip&&(this.model.tooltip=v.tooltip)}get text(){return this.model.text}set text(v){this.model.text=v}get hyperlink(){return this.model.hyperlink}set hyperlink(v){this.model.hyperlink=v}get type(){return x.Types.Hyperlink}get effectiveType(){return x.Types.Hyperlink}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:x.Types.Formula,f:class{constructor(v,C){this.cell=v,this.model={address:v.address,type:x.Types.Formula,shareType:C?C.shareType:void 0,ref:C?C.ref:void 0,formula:C?C.formula:void 0,sharedFormula:C?C.sharedFormula:void 0,result:C?C.result:void 0}}_copyModel(v){let C={},S=E=>{let w=v[E];w&&(C[E]=w)};return S("formula"),S("result"),S("ref"),S("shareType"),S("sharedFormula"),C}get value(){return this._copyModel(this.model)}set value(v){this.model=this._copyModel(v)}validate(v){switch(_.getType(v)){case x.Types.Null:case x.Types.String:case x.Types.Number:case x.Types.Date:break;case x.Types.Hyperlink:case x.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(v){this.model.formula=v}get formulaType(){return this.model.formula?p.FormulaType.Master:this.model.sharedFormula?p.FormulaType.Shared:p.FormulaType.None}get result(){return this.model.result}set result(v){this.model.result=v}get type(){return x.Types.Formula}get effectiveType(){let v=this.model.result;return v==null?p.ValueType.Null:v instanceof String||typeof v=="string"?p.ValueType.String:typeof v=="number"?p.ValueType.Number:v instanceof Date?p.ValueType.Date:v.text&&v.hyperlink?p.ValueType.Hyperlink:v.formula?p.ValueType.Formula:p.ValueType.Null}get address(){return this.model.address}set address(v){this.model.address=v}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:v}=this.cell,C=v.findCell(this.model.sharedFormula);this._translatedFormula=C&&d(C.formula,C.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:x.Types.Merge,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Merge,master:C?C.address:void 0},this._master=C,C&&C.addMergeRef()}get value(){return this._master.value}set value(v){v instanceof x?(this._master&&this._master.releaseMergeRef(),v.addMergeRef(),this._master=v):this._master.value=v}isMergedTo(v){return v===this._master}get master(){return this._master}get type(){return x.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:x.Types.JSON,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.String,value:JSON.stringify(C),rawValue:C}}get value(){return this.model.rawValue}set value(v){this.model.rawValue=v,this.model.value=JSON.stringify(v)}get type(){return x.Types.String}get effectiveType(){return x.Types.String}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:x.Types.SharedString,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.SharedString,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.SharedString}get effectiveType(){return x.Types.SharedString}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:x.Types.RichText,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.String,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}toString(){return this.model.value.richText.map(v=>v.text).join("")}get type(){return x.Types.RichText}get effectiveType(){return x.Types.RichText}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:x.Types.Boolean,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Boolean,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.Boolean}get effectiveType(){return x.Types.Boolean}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:x.Types.Error,f:class{constructor(v,C){this.model={address:v.address,type:x.Types.Error,value:C}}get value(){return this.model.value}set value(v){this.model.value=v}get type(){return x.Types.Error}get effectiveType(){return x.Types.Error}get address(){return this.model.address}set address(v){this.model.address=v}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((v,C)=>(v[C.t]=C.f,v),[]),create(v,C,S){let E=this.types[v];if(!E)throw new Error("Could not create Value of type "+v);return new E(C,S)}};r.exports=x},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,r,i){"use strict";let a=e("../utils/under-dash"),n=e("./enums"),p=e("../utils/col-cache");class d{constructor(x,_,v){this._worksheet=x,this._number=_,v!==!1&&(this.defn=v)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return p.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(x){x?(this.key=x.key,this.width=x.width!==void 0?x.width:9,this.outlineLevel=x.outlineLevel,x.style?this.style=x.style:this.style={},this.header=x.header,this._hidden=!!x.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(x){x!==void 0?(this._header=x,this.headers.forEach((_,v)=>{this._worksheet.getCell(v+1,this.number).value=_})):this._header=void 0}get key(){return this._key}set key(x){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=x,x&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(x){this._hidden=x}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(x){this._outlineLevel=x}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(x){return this.width===x.width&&this.hidden===x.hidden&&this.outlineLevel===x.outlineLevel&&a.isEqual(this.style,x.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;let x=this.style;return!x||!(x.font||x.numFmt||x.alignment||x.border||x.fill||x.protection)}get headerCount(){return this.headers.length}eachCell(x,_){let v=this.number;_||(_=x,x=null),this._worksheet.eachRow(x,(C,S)=>{_(C.getCell(v),S)})}get values(){let x=[];return this.eachCell((_,v)=>{_&&_.type!==n.ValueType.Null&&(x[v]=_.value)}),x}set values(x){if(!x)return;let _=this.number,v=0;x.hasOwnProperty("0")&&(v=1),x.forEach((C,S)=>{this._worksheet.getCell(S+v,_).value=C})}_applyStyle(x,_){return this.style[x]=_,this.eachCell(v=>{v[x]=_}),_}get numFmt(){return this.style.numFmt}set numFmt(x){this._applyStyle("numFmt",x)}get font(){return this.style.font}set font(x){this._applyStyle("font",x)}get alignment(){return this.style.alignment}set alignment(x){this._applyStyle("alignment",x)}get protection(){return this.style.protection}set protection(x){this._applyStyle("protection",x)}get border(){return this.style.border}set border(x){this._applyStyle("border",x)}get fill(){return this.style.fill}set fill(x){this._applyStyle("fill",x)}static toModel(x){let _=[],v=null;return x&&x.forEach((C,S)=>{C.isDefault?v&&(v=null):v&&C.equivalentTo(v)?v.max=S+1:(v={min:S+1,max:S+1,width:C.width!==void 0?C.width:9,style:C.style,isCustomWidth:C.isCustomWidth,hidden:C.hidden,outlineLevel:C.outlineLevel,collapsed:C.collapsed},_.push(v))}),_.length?_:void 0}static fromModel(x,_){let v=[],C=1,S=0;for(_=(_=_||[]).sort(function(E,w){return E.min-w.min});S<_.length;){let E=_[S++];for(;C{_.removeCellEx(x)})}forEach(x){a.each(this.matrixMap,(_,v)=>{_.forEach(C=>{x(v,C)})})}getNames(x){return this.getNamesEx(n.decodeEx(x))}getNamesEx(x){return a.map(this.matrixMap,(_,v)=>_.findCellEx(x)&&v).filter(Boolean)}_explore(x,_){_.mark=!1;let{sheetName:v}=_,C=new d(_.row,_.col,_.row,_.col,v),S,E;function w(T,A){let V=x.findCellAt(v,T,_.col);return!(!V||!V.mark)&&(C[A]=T,V.mark=!1,!0)}for(E=_.row-1;w(E,"top");E--);for(E=_.row+1;w(E,"bottom");E++);function I(T,A){let V=[];for(E=C.top;E<=C.bottom;E++){let G=x.findCellAt(v,E,T);if(!G||!G.mark)return!1;V.push(G)}C[A]=T;for(let G=0;G{v.mark=!0}),{name:x,ranges:_.map(v=>v.mark&&this._explore(_,v)).filter(Boolean).map(v=>v.$shortRange)}):{name:x,ranges:[]}}normaliseMatrix(x,_){x.forEachInSheet(_,(v,C,S)=>{v&&(v.row===C&&v.col===S||(v.row=C,v.col=S,v.address=n.n2l(S)+C))})}spliceRows(x,_,v,C){a.each(this.matrixMap,S=>{S.spliceRows(x,_,v,C),this.normaliseMatrix(S,x)})}spliceColumns(x,_,v,C){a.each(this.matrixMap,S=>{S.spliceColumns(x,_,v,C),this.normaliseMatrix(S,x)})}get model(){return a.map(this.matrixMap,(x,_)=>this.getRanges(_,x)).filter(x=>x.ranges.length)}set model(x){let _=this.matrixMap={};x.forEach(v=>{let C=_[v.name]=new p;v.ranges.forEach(S=>{u.test(S.split("!").pop()||"")&&C.addCell(S)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,r,i){"use strict";r.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,r,i){"use strict";let a=e("../utils/col-cache"),n=e("./anchor");r.exports=class{constructor(p,d){this.worksheet=p,this.model=d}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(p){let{type:d,imageId:u,range:x,hyperlinks:_}=p;if(this.type=d,this.imageId=u,d==="image")if(typeof x=="string"){let v=a.decode(x);this.range={tl:new n(this.worksheet,{col:v.left,row:v.top},-1),br:new n(this.worksheet,{col:v.right,row:v.bottom},0),editAs:"oneCell"}}else this.range={tl:new n(this.worksheet,x.tl,0),br:x.br&&new n(this.worksheet,x.br,0),ext:x.ext,editAs:x.editAs,hyperlinks:_||x.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,r,i){"use strict";let a=e("../utils/under-dash");class n{constructor(d){this.note=d}get model(){let d=null;switch(typeof this.note){case"string":d={type:"note",note:{texts:[{text:this.note}]}};break;default:d={type:"note",note:this.note}}return a.deepMerge({},n.DEFAULT_CONFIGS,d)}set model(d){let{note:u}=d,{texts:x}=u;x.length===1&&Object.keys(x[0]).length===1?this.note=x[0].text:this.note=u}static fromModel(d){let u=new n;return u.model=d,u}}n.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},r.exports=n},{"../utils/under-dash":26}],10:[function(e,r,i){"use strict";let a=e("../utils/col-cache");class n{constructor(){this.decode(arguments)}setTLBR(d,u,x,_,v){if(arguments.length<4){let C=a.decodeAddress(d),S=a.decodeAddress(u);this.model={top:Math.min(C.row,S.row),left:Math.min(C.col,S.col),bottom:Math.max(C.row,S.row),right:Math.max(C.col,S.col),sheetName:x},this.setTLBR(C.row,C.col,S.row,S.col,v)}else this.model={top:Math.min(d,x),left:Math.min(u,_),bottom:Math.max(d,x),right:Math.max(u,_),sheetName:v}}decode(d){switch(d.length){case 5:this.setTLBR(d[0],d[1],d[2],d[3],d[4]);break;case 4:this.setTLBR(d[0],d[1],d[2],d[3]);break;case 3:this.setTLBR(d[0],d[1],d[2]);break;case 2:this.setTLBR(d[0],d[1]);break;case 1:{let u=d[0];if(u instanceof n)this.model={top:u.model.top,left:u.model.left,bottom:u.model.bottom,right:u.model.right,sheetName:u.sheetName};else if(u instanceof Array)this.decode(u);else if(u.top&&u.left&&u.bottom&&u.right)this.model={top:u.top,left:u.left,bottom:u.bottom,right:u.right,sheetName:u.sheetName};else{let x=a.decodeEx(u);x.top?this.model={top:x.top,left:x.left,bottom:x.bottom,right:x.right,sheetName:x.sheetName}:this.model={top:x.row,left:x.col,bottom:x.row,right:x.col,sheetName:x.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+d.length)}}get top(){return this.model.top||1}set top(d){this.model.top=d}get left(){return this.model.left||1}set left(d){this.model.left=d}get bottom(){return this.model.bottom||1}set bottom(d){this.model.bottom=d}get right(){return this.model.right||1}set right(d){this.model.right=d}get sheetName(){return this.model.sheetName}set sheetName(d){this.model.sheetName=d}get _serialisedSheetName(){let{sheetName:d}=this.model;return d?/^[a-zA-Z0-9]*$/.test(d)?d+"!":`'${d}'!`:""}expand(d,u,x,_){(!this.model.top||dthis.bottom)&&(this.bottom=x),(!this.model.right||_>this.right)&&(this.right=_)}expandRow(d){if(d){let{dimensions:u,number:x}=d;u&&this.expand(x,u.min,x,u.max)}}expandToAddress(d){let u=a.decodeEx(d);this.expand(u.row,u.col,u.row,u.col)}get tl(){return a.n2l(this.left)+this.top}get $t$l(){return`$${a.n2l(this.left)}$${this.top}`}get br(){return a.n2l(this.right)+this.bottom}get $b$r(){return`$${a.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(d){return(!d.sheetName||!this.sheetName||d.sheetName===this.sheetName)&&!(d.bottomthis.bottom)&&!(d.rightthis.right)}contains(d){let u=a.decodeEx(d);return this.containsEx(u)}containsEx(d){return(!d.sheetName||!this.sheetName||d.sheetName===this.sheetName)&&d.row>=this.top&&d.row<=this.bottom&&d.col>=this.left&&d.col<=this.right}forEachAddress(d){for(let u=this.left;u<=this.right;u++)for(let x=this.top;x<=this.bottom;x++)d(a.encodeAddress(x,u),x,u)}}r.exports=n},{"../utils/col-cache":19}],11:[function(e,r,i){"use strict";let a=e("../utils/under-dash"),n=e("./enums"),p=e("../utils/col-cache"),d=e("./cell");r.exports=class{constructor(u,x){this._worksheet=u,this._number=x,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(u){return this._cells[u-1]}getCellEx(u){let x=this._cells[u.col-1];if(!x){let _=this._worksheet.getColumn(u.col);x=new d(this,_,u.address),this._cells[u.col-1]=x}return x}getCell(u){if(typeof u=="string"){let x=this._worksheet.getColumnKey(u);u=x?x.number:p.l2n(u)}return this._cells[u-1]||this.getCellEx({address:p.encodeAddress(this._number,u),row:this._number,col:u})}splice(u,x){let _=u+x;for(var v=arguments.length,C=new Array(v>2?v-2:0),S=2;S0)for(I=w;I>=_;I--)T=this._cells[I-1],T?(A=this.getCell(I+E),A.value=T.value,A.style=T.style,A._comment=T._comment):this._cells[I+E-1]=void 0;for(I=0;I{_&&_.type!==n.ValueType.Null&&x(_,v+1)})}addPageBreak(u,x){let _=this._worksheet,v=Math.max(0,u-1)||0,C=Math.max(0,x-1)||16838,S={id:this._number,max:C,man:1};v&&(S.min=v),_.rowBreaks.push(S)}get values(){let u=[];return this._cells.forEach(x=>{x&&x.type!==n.ValueType.Null&&(u[x.col]=x.value)}),u}set values(u){if(this._cells=[],u)if(u instanceof Array){let x=0;u.hasOwnProperty("0")&&(x=1),u.forEach((_,v)=>{_!==void 0&&(this.getCellEx({address:p.encodeAddress(this._number,v+x),row:this._number,col:v+x}).value=_)})}else this._worksheet.eachColumnKey((x,_)=>{u[_]!==void 0&&(this.getCellEx({address:p.encodeAddress(this._number,x.number),row:this._number,col:x.number}).value=u[_])})}get hasValues(){return a.some(this._cells,u=>u&&u.type!==n.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let u=0;return this.eachCell(()=>{u++}),u}get dimensions(){let u=0,x=0;return this._cells.forEach(_=>{_&&_.type!==n.ValueType.Null&&((!u||u>_.col)&&(u=_.col),x<_.col&&(x=_.col))}),u>0?{min:u,max:x}:null}_applyStyle(u,x){return this.style[u]=x,this._cells.forEach(_=>{_&&(_[u]=x)}),x}get numFmt(){return this.style.numFmt}set numFmt(u){this._applyStyle("numFmt",u)}get font(){return this.style.font}set font(u){this._applyStyle("font",u)}get alignment(){return this.style.alignment}set alignment(u){this._applyStyle("alignment",u)}get protection(){return this.style.protection}set protection(u){this._applyStyle("protection",u)}get border(){return this.style.border}set border(u){this._applyStyle("border",u)}get fill(){return this.style.fill}set fill(u){this._applyStyle("fill",u)}get hidden(){return!!this._hidden}set hidden(u){this._hidden=u}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(u){this._outlineLevel=u}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){let u=[],x=0,_=0;return this._cells.forEach(v=>{if(v){let C=v.model;C&&((!x||x>v.col)&&(x=v.col),_{switch(_.type){case d.Types.Merge:break;default:{let v;if(_.address)v=p.decodeAddress(_.address);else if(x){let{row:C}=x,S=x.col+1;v={row:C,col:S,address:p.encodeAddress(C,S),$col$row:`$${p.n2l(S)}$${C}`}}x=v,this.getCellEx(v).model=_;break}}}),u.height?this.height=u.height:delete this.height,this.hidden=u.hidden,this.outlineLevel=u.outlineLevel||0,this.style=u.style&&JSON.parse(JSON.stringify(u.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,r,i){"use strict";let a=e("../utils/col-cache");class n{constructor(d,u,x){this.table=d,this.column=u,this.index=x}_set(d,u){this.table.cacheState(),this.column[d]=u}get name(){return this.column.name}set name(d){this._set("name",d)}get filterButton(){return this.column.filterButton}set filterButton(d){this.column.filterButton=d}get style(){return this.column.style}set style(d){this.column.style=d}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(d){this._set("totalsRowLabel",d)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(d){this._set("totalsRowFunction",d)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(d){this._set("totalsRowResult",d)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(d){this._set("totalsRowFormula",d)}}r.exports=class{constructor(p,d){this.worksheet=p,d&&(this.table=d,this.validate(),this.store())}getFormula(p){switch(p.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${p.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${p.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${p.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${p.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${p.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${p.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${p.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${p.name}])`;case"custom":return p.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+p.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){let{table:p}=this,d=(E,w,I)=>{E[w]===void 0&&(E[w]=I)};d(p,"headerRow",!0),d(p,"totalsRow",!1),d(p,"style",{}),d(p.style,"theme","TableStyleMedium2"),d(p.style,"showFirstColumn",!1),d(p.style,"showLastColumn",!1),d(p.style,"showRowStripes",!1),d(p.style,"showColumnStripes",!1);let u=(E,w)=>{if(!E)throw new Error(w)};u(p.ref,"Table must have ref"),u(p.columns,"Table must have column definitions"),u(p.rows,"Table must have row definitions"),p.tl=a.decodeAddress(p.ref);let{row:x,col:_}=p.tl;u(x>0,"Table must be on valid row"),u(_>0,"Table must be on valid col");let{width:v,filterHeight:C,tableHeight:S}=this;p.autoFilterRef=a.encode(x,_,x+C-1,_+v-1),p.tableRef=a.encode(x,_,x+S-1,_+v-1),p.columns.forEach((E,w)=>{u(E.name,`Column ${w} must have a name`),w===0?d(E,"totalsRowLabel","Total"):(d(E,"totalsRowFunction","none"),E.totalsRowFormula=this.getFormula(E))})}store(){let p=(C,S)=>{S&&Object.keys(S).forEach(E=>{C[E]=S[E]})},{worksheet:d,table:u}=this,{row:x,col:_}=u.tl,v=0;if(u.headerRow){let C=d.getRow(x+v++);u.columns.forEach((S,E)=>{let{style:w,name:I}=S,T=C.getCell(_+E);T.value=I,p(T,w)})}if(u.rows.forEach(C=>{let S=d.getRow(x+v++);C.forEach((E,w)=>{let I=S.getCell(_+w);I.value=E,p(I,u.columns[w].style)})}),u.totalsRow){let C=d.getRow(x+v++);u.columns.forEach((S,E)=>{let w=C.getCell(_+E);if(E===0)w.value=S.totalsRowLabel;else{let I=this.getFormula(S);w.value=I?{formula:S.totalsRowFormula,result:S.totalsRowResult}:null}p(w,S.style)})}}load(p){let{table:d}=this,{row:u,col:x}=d.tl,_=0;if(d.headerRow){let v=p.getRow(u+_++);d.columns.forEach((C,S)=>{v.getCell(x+S).value=C.name})}if(d.rows.forEach(v=>{let C=p.getRow(u+_++);v.forEach((S,E)=>{C.getCell(x+E).value=S})}),d.totalsRow){let v=p.getRow(u+_++);d.columns.forEach((C,S)=>{let E=v.getCell(x+S);S===0?E.value=C.totalsRowLabel:this.getFormula(C)&&(E.value={formula:C.totalsRowFormula,result:C.totalsRowResult})})}}get model(){return this.table}set model(p){this.table=p}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();let p=a.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let d=0;d1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(p,d)}getColumn(p){let d=this.table.columns[p];return new n(this,d,p)}addColumn(p,d,u){this.cacheState(),u===void 0?(this.table.columns.push(p),this.table.rows.forEach((x,_)=>{x.push(d[_])})):(this.table.columns.splice(u,0,p),this.table.rows.forEach((x,_)=>{x.splice(u,0,d[_])}))}removeColumns(p){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(p,d),this.table.rows.forEach(u=>{u.splice(p,d)})}_assign(p,d,u){this.cacheState(),p[d]=u}get ref(){return this.table.ref}set ref(p){this._assign(this.table,"ref",p)}get name(){return this.table.name}set name(p){this.table.name=p}get displayName(){return this.table.displyName||this.table.name}set displayNamename(p){this.table.displayName=p}get headerRow(){return this.table.headerRow}set headerRow(p){this._assign(this.table,"headerRow",p)}get totalsRow(){return this.table.totalsRow}set totalsRow(p){this._assign(this.table,"totalsRow",p)}get theme(){return this.table.style.name}set theme(p){this.table.style.name=p}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(p){this.table.style.showFirstColumn=p}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(p){this.table.style.showLastColumn=p}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(p){this.table.style.showRowStripes=p}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(p){this.table.style.showColumnStripes=p}}},{"../utils/col-cache":19}],13:[function(e,r,i){"use strict";let a=e("./worksheet"),n=e("./defined-names"),p=e("../xlsx/xlsx"),d=e("../csv/csv");r.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new n}get xlsx(){return this._xlsx||(this._xlsx=new p(this)),this._xlsx}get csv(){return this._csv||(this._csv=new d(this)),this._csv}get nextId(){for(let u=1;u(w&&w.orderNo)>E?w.orderNo:E,0),C=Object.assign({},x,{id:_,name:u,orderNo:v+1,workbook:this}),S=new a(C);return this._worksheets[_]=S,S}removeWorksheetEx(u){delete this._worksheets[u.id]}removeWorksheet(u){let x=this.getWorksheet(u);x&&x.destroy()}getWorksheet(u){return u===void 0?this._worksheets.find(Boolean):typeof u=="number"?this._worksheets[u]:typeof u=="string"?this._worksheets.find(x=>x&&x.name===u):void 0}get worksheets(){return this._worksheets.slice(1).sort((u,x)=>u.orderNo-x.orderNo).filter(Boolean)}eachSheet(u){this.worksheets.forEach(x=>{u(x,x.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(u){let x=this.media.length;return this.media.push(Object.assign({},u,{type:"image"})),x}getImage(u){return this.media[u]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(u=>u.model),sheets:this.worksheets.map(u=>u.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(u){this.creator=u.creator,this.lastModifiedBy=u.lastModifiedBy,this.lastPrinted=u.lastPrinted,this.created=u.created,this.modified=u.modified,this.company=u.company,this.manager=u.manager,this.title=u.title,this.subject=u.subject,this.keywords=u.keywords,this.category=u.category,this.description=u.description,this.language=u.language,this.revision=u.revision,this.contentStatus=u.contentStatus,this.properties=u.properties,this.calcProperties=u.calcProperties,this._worksheets=[],u.worksheets.forEach(x=>{let{id:_,name:v,state:C}=x,S=u.sheets&&u.sheets.findIndex(E=>E.id===_);(this._worksheets[_]=new a({id:_,name:v,orderNo:S,state:C,workbook:this})).model=x}),this._definedNames.model=u.definedNames,this.views=u.views,this._themes=u.themes,this.media=u.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,r,i){"use strict";let a=e("../utils/under-dash"),n=e("../utils/col-cache"),p=e("./range"),d=e("./row"),u=e("./column"),x=e("./enums"),_=e("./image"),v=e("./table"),C=e("./data-validations"),S=e("../utils/encryptor"),{copyStyle:E}=e("../utils/copy-style");r.exports=class{constructor(w){w=w||{},this._workbook=w.workbook,this.id=w.id,this.orderNo=w.orderNo,this.name=w.name,this.state=w.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},w.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!w.pageSetup||!w.pageSetup.fitToWidth&&!w.pageSetup.fitToHeight||w.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},w.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},w.headerFooter),this.dataValidations=new C,this.views=w.views||[],this.autoFilter=w.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(w){if(w===void 0&&(w="sheet"+this.id),this._name!==w){if(typeof w!="string")throw new Error("The name has to be a string.");if(w==="")throw new Error("The name can't be empty.");if(w==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(w))throw new Error(`Worksheet name ${w} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(w))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+w);if(w&&w.length>31&&(console.warn(`Worksheet name ${w} exceeds 31 chars. This will be truncated`),w=w.substring(0,31)),this._workbook._worksheets.find(I=>I&&I.name.toLowerCase()===w.toLowerCase()))throw new Error("Worksheet name already exists: "+w);this._name=w}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){let w=new p;return this._rows.forEach(I=>{if(I){let T=I.dimensions;T&&w.expand(I.number,T.min,I.number,T.max)}}),w}get columns(){return this._columns}set columns(w){this._headerRowCount=w.reduce((A,V)=>{let G=(V.header?1:V.headers&&V.headers.length)||0;return Math.max(A,G)},0);let I=1,T=this._columns=[];w.forEach(A=>{let V=new u(this,I++,!1);T.push(V),V.defn=A})}getColumnKey(w){return this._keys[w]}setColumnKey(w,I){this._keys[w]=I}deleteColumnKey(w){delete this._keys[w]}eachColumnKey(w){a.each(this._keys,w)}getColumn(w){if(typeof w=="string"){let I=this._keys[w];if(I)return I;w=n.l2n(w)}if(this._columns||(this._columns=[]),w>this._columns.length){let I=this._columns.length+1;for(;I<=w;)this._columns.push(new u(this,I++))}return this._columns[w-1]}spliceColumns(w,I){let T=this._rows.length;for(var A=arguments.length,V=new Array(A>2?A-2:0),G=2;G0)for(let nt=0;nt{ot.push(ct[nt]||null)});let ht=this.getRow(nt+1);ht.splice.apply(ht,ot)}else this._rows.forEach(nt=>{nt&&nt.splice(w,I)});let J=V.length-I,at=w+I,X=this._columns.length;if(J<0)for(let nt=w+V.length;nt<=X;nt++)this.getColumn(nt).defn=this.getColumn(nt-J).defn;else if(J>0)for(let nt=X;nt>=at;nt--)this.getColumn(nt+J).defn=this.getColumn(nt).defn;for(let nt=w;nt{w=Math.max(w,I.cellCount)}),w}get actualColumnCount(){let w=[],I=0;return this.eachRow(T=>{T.eachCell(A=>{let{col:V}=A;w[V]||(w[V]=!0,I++)})}),I}_commitRow(){}get _lastRowNumber(){let w=this._rows,I=w.length;for(;I>0&&w[I-1]===void 0;)I--;return I}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(w){return this._rows[w-1]}findRows(w,I){return this._rows.slice(w-1,w-1+I)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let w=0;return this.eachRow(()=>{w++}),w}getRow(w){let I=this._rows[w-1];return I||(I=this._rows[w-1]=new d(this,w)),I}getRows(w,I){if(I<1)return;let T=[];for(let A=w;A1&&arguments[1]!==void 0?arguments[1]:"n",T=this._nextRow,A=this.getRow(T);return A.values=w,this._setStyleOption(T,I[0]==="i"?I:"n"),A}addRows(w){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",T=[];return w.forEach(A=>{T.push(this.addRow(A,I))}),T}insertRow(w,I){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(w,0,I),this._setStyleOption(w,T),this.getRow(w)}insertRows(w,I){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(w,0,...I),T!=="n")for(let A=0;A1&&arguments[1]!==void 0?arguments[1]:"n";I[0]==="o"&&this.findRow(w+1)!==void 0?this._copyStyle(w+1,w,I[1]==="+"):I[0]==="i"&&this.findRow(w-1)!==void 0&&this._copyStyle(w-1,w,I[1]==="+")}_copyStyle(w,I){let T=arguments.length>2&&arguments[2]!==void 0&&arguments[2],A=this.getRow(w),V=this.getRow(I);V.style=E(A.style),A.eachCell({includeEmpty:T},(G,J)=>{V.getCell(J).style=E(G.style)}),V.height=A.height}duplicateRow(w,I){let T=arguments.length>2&&arguments[2]!==void 0&&arguments[2],A=this._rows[w-1],V=new Array(I).fill(A.values);this.spliceRows(w+1,T?0:I,...V);for(let G=0;G{J.getCell(X).style=at.style})}}spliceRows(w,I){let T=w+I;for(var A=arguments.length,V=new Array(A>2?A-2:0),G=2;G{ht.getCell(z).style=ct.style}),this._rows[nt-1]=void 0}else this._rows[nt+at-1]=void 0;else if(at>0)for(nt=X;nt>=T;nt--)if(ot=this._rows[nt-1],ot){let ht=this.getRow(nt+at);ht.values=ot.values,ht.style=ot.style,ht.height=ot.height,ot.eachCell({includeEmpty:!0},(ct,z)=>{if(ht.getCell(z).style=ct.style,ct._value.constructor.name==="MergeValue"){let U=this.getRow(ct._row._number+J).getCell(z),st=ct._value._master,M=this.getRow(st._row._number+J).getCell(st._column._number);U.merge(M)}})}else this._rows[nt+at-1]=void 0;for(nt=0;nt{T&&T.hasValues&&I(T,T.number)})}getSheetValues(){let w=[];return this._rows.forEach(I=>{I&&(w[I.number]=I.values)}),w}findCell(w,I){let T=n.getAddress(w,I),A=this._rows[T.row-1];return A?A.findCell(T.col):void 0}getCell(w,I){let T=n.getAddress(w,I);return this.getRow(T.row).getCellEx(T)}mergeCells(){for(var w=arguments.length,I=new Array(w),T=0;T{if(A.intersects(w))throw new Error("Cannot merge already merged cells")});let T=this.getCell(w.top,w.left);for(let A=w.top;A<=w.bottom;A++)for(let V=w.left;V<=w.right;V++)(A>w.top||V>w.left)&&this.getCell(A,V).merge(T,I);this._merges[T.address]=w}_unMergeMaster(w){let I=this._merges[w.address];if(I){for(let T=I.top;T<=I.bottom;T++)for(let A=I.left;A<=I.right;A++)this.getCell(T,A).unmerge();delete this._merges[w.address]}}get hasMerges(){return a.some(this._merges,Boolean)}unMergeCells(){for(var w=arguments.length,I=new Array(w),T=0;T3&&arguments[3]!==void 0?arguments[3]:"shared",V=n.decode(w),{top:G,left:J,bottom:at,right:X}=V,nt=X-J+1,ot=n.encodeAddress(G,J),ht=A==="shared",ct;ct=typeof T=="function"?T:Array.isArray(T)?Array.isArray(T[0])?(U,st)=>T[U-G][st-J]:(U,st)=>T[(U-G)*nt+(st-J)]:()=>{};let z=!0;for(let U=G;U<=at;U++)for(let st=J;st<=X;st++)z?(this.getCell(U,st).value={shareType:A,formula:I,ref:w,result:ct(U,st)},z=!1):this.getCell(U,st).value=ht?{sharedFormula:ot,result:ct(U,st)}:ct(U,st)}addImage(w,I){let T={type:"image",imageId:w,range:I};this._media.push(new _(this,T))}getImages(){return this._media.filter(w=>w.type==="image")}addBackgroundImage(w){let I={type:"background",imageId:w};this._media.push(new _(this,I))}getBackgroundImageId(){let w=this._media.find(I=>I.type==="background");return w&&w.imageId}protect(w,I){return new Promise(T=>{this.sheetProtection={sheet:!0},I&&"spinCount"in I&&(I.spinCount=Number.isFinite(I.spinCount)?Math.round(Math.max(0,I.spinCount)):1e5),w&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=S.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=I&&"spinCount"in I?I.spinCount:1e5,this.sheetProtection.hashValue=S.convertPasswordToHash(w,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),I&&(this.sheetProtection=Object.assign(this.sheetProtection,I),!w&&"spinCount"in I&&delete this.sheetProtection.spinCount),T()})}unprotect(){this.sheetProtection=null}addTable(w){let I=new v(this,w);return this.tables[w.name]=I,I}getTable(w){return this.tables[w]}removeTable(w){delete this.tables[w]}getTables(){return Object.values(this.tables)}addConditionalFormatting(w){this.conditionalFormattings.push(w)}removeConditionalFormatting(w){typeof w=="number"?this.conditionalFormattings.splice(w,1):this.conditionalFormattings=w instanceof Function?this.conditionalFormattings.filter(w):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(w){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=w}get model(){let w={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(A=>A.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(A=>A.model),conditionalFormattings:this.conditionalFormattings};w.cols=u.toModel(this.columns);let I=w.rows=[],T=w.dimensions=new p;return this._rows.forEach(A=>{let V=A&&A.model;V&&(T.expand(V.number,V.min,V.number,V.max),I.push(V))}),w.merges=[],a.each(this._merges,A=>{w.merges.push(A.range)}),w}_parseRows(w){this._rows=[],w.rows.forEach(I=>{let T=new d(this,I.number);this._rows[T.number-1]=T,T.model=I})}_parseMergeCells(w){a.each(w.mergeCells,I=>{this.mergeCellsWithoutStyle(I)})}set model(w){this.name=w.name,this._columns=u.fromModel(this,w.cols),this._parseRows(w),this._parseMergeCells(w),this.dataValidations=new C(w.dataValidations),this.properties=w.properties,this.pageSetup=w.pageSetup,this.headerFooter=w.headerFooter,this.views=w.views,this.autoFilter=w.autoFilter,this._media=w.media.map(I=>new _(this,I)),this.sheetProtection=w.sheetProtection,this.tables=w.tables.reduce((I,T)=>{let A=new v;return A.model=T,I[T.name]=A,I},{}),this.conditionalFormattings=w.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,r,i){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");let a={Workbook:e("./doc/workbook")},n=e("./doc/enums");Object.keys(n).forEach(p=>{a[p]=n[p]}),r.exports=a},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,r,i){"use strict";let a=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");i.bufferToString=function(n){return typeof n=="string"?n:a?a.decode(n):n.toString()}},{}],17:[function(e,r,i){"use strict";let a=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:n}=e("buffer");i.stringToBuffer=function(p){return typeof p!="string"?p:a?n.from(a.encode(p).buffer):n.from(p)}},{buffer:220}],18:[function(e,r,i){"use strict";let a=e("./under-dash"),n=e("./col-cache");r.exports=class{constructor(p){this.template=p,this.sheets={}}addCell(p){this.addCellEx(n.decodeEx(p))}getCell(p){return this.findCellEx(n.decodeEx(p),!0)}findCell(p){return this.findCellEx(n.decodeEx(p),!1)}findCellAt(p,d,u){let x=this.sheets[p],_=x&&x[d];return _&&_[u]}addCellEx(p){if(p.top)for(let d=p.top;d<=p.bottom;d++)for(let u=p.left;u<=p.right;u++)this.getCellAt(p.sheetName,d,u);else this.findCellEx(p,!0)}getCellEx(p){return this.findCellEx(p,!0)}findCellEx(p,d){let u=this.findSheet(p,d),x=this.findSheetRow(u,p,d);return this.findRowCell(x,p,d)}getCellAt(p,d,u){let x=this.sheets[p]||(this.sheets[p]=[]),_=x[d]||(x[d]=[]);return _[u]||(_[u]={sheetName:p,address:n.n2l(u)+d,row:d,col:u})}removeCellEx(p){let d=this.findSheet(p);if(!d)return;let u=this.findSheetRow(d,p);u&&delete u[p.col]}forEachInSheet(p,d){let u=this.sheets[p];u&&u.forEach((x,_)=>{x&&x.forEach((v,C)=>{v&&d(v,_,C)})})}forEach(p){a.each(this.sheets,(d,u)=>{this.forEachInSheet(u,p)})}map(p){let d=[];return this.forEach(u=>{d.push(p(u))}),d}findSheet(p,d){let u=p.sheetName;return this.sheets[u]?this.sheets[u]:d?this.sheets[u]=[]:void 0}findSheetRow(p,d,u){let{row:x}=d;return p&&p[x]?p[x]:u?p[x]=[]:void 0}findRowCell(p,d,u){let{col:x}=d;return p&&p[x]?p[x]:u?p[x]=this.template?Object.assign(d,JSON.parse(JSON.stringify(this.template))):d:void 0}spliceRows(p,d,u,x){let _=this.sheets[p];if(_){let v=[];for(let C=0;C{C.splice(d,u,...v)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,r,i){"use strict";let a=/^[A-Z]+\d+$/,n={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:p=>p<=26?1:p<=676?2:3,_fill(p){let d,u,x,_,v,C=1;if(p>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&p>=1){for(;C<=26;)d=this._dictionary[C-1],this._n2l[C]=d,this._l2n[d]=C,C++;this._l2nFill=1}if(this._l2nFill<2&&p>=2){for(C=27;C<=702;)u=C-27,x=u%26,_=Math.floor(u/26),d=this._dictionary[_]+this._dictionary[x],this._n2l[C]=d,this._l2n[d]=C,C++;this._l2nFill=2}if(this._l2nFill<3&&p>=3){for(C=703;C<=16384;)u=C-703,x=u%26,_=Math.floor(u/26)%26,v=Math.floor(u/676),d=this._dictionary[v]+this._dictionary[_]+this._dictionary[x],this._n2l[C]=d,this._l2n[d]=C,C++;this._l2nFill=3}},l2n(p){if(this._l2n[p]||this._fill(p.length),!this._l2n[p])throw new Error("Out of bounds. Invalid column letter: "+p);return this._l2n[p]},n2l(p){if(p<1||p>16384)throw new Error(p+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[p]||this._fill(this._level(p)),this._n2l[p]},_hash:{},validateAddress(p){if(!a.test(p))throw new Error("Invalid Address: "+p);return!0},decodeAddress(p){let d=p.length<5&&this._hash[p];if(d)return d;let u=!1,x="",_=0,v=!1,C="",S=0;for(let w,I=0;I=65&&w<=90)u=!0,x+=p[I],_=26*_+w-64;else if(w>=48&&w<=57)v=!0,C+=p[I],S=10*S+w-48;else if(v&&u&&w!==36)break;if(u){if(_>16384)throw new Error("Out of bounds. Invalid column letter: "+x)}else _=void 0;v||(S=void 0);let E={address:p=x+C,col:_,row:S,$col$row:`$${x}$${C}`};return _<=100&&S<=100&&(this._hash[p]=E,this._hash[E.$col$row]=E),E},getAddress(p,d){if(d){let u=this.n2l(d)+p;return this.decodeAddress(u)}return this.decodeAddress(p)},decode(p){let d=p.split(":");if(d.length===2){let u=this.decodeAddress(d[0]),x=this.decodeAddress(d[1]),_={top:Math.min(u.row,x.row),left:Math.min(u.col,x.col),bottom:Math.max(u.row,x.row),right:Math.max(u.col,x.col)};return _.tl=this.n2l(_.left)+_.top,_.br=this.n2l(_.right)+_.bottom,_.dimensions=`${_.tl}:${_.br}`,_}return this.decodeAddress(p)},decodeEx(p){let d=p.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),u=d[1]||d[2],x=d[3],_=x.split(":");if(_.length>1){let C=this.decodeAddress(_[0]),S=this.decodeAddress(_[1]),E=Math.min(C.row,S.row),w=Math.min(C.col,S.col),I=Math.max(C.row,S.row),T=Math.max(C.col,S.col);return C=this.n2l(w)+E,S=this.n2l(T)+I,{top:E,left:w,bottom:I,right:T,sheetName:u,tl:{address:C,col:w,row:E,$col$row:`$${this.n2l(w)}$${E}`,sheetName:u},br:{address:S,col:T,row:I,$col$row:`$${this.n2l(T)}$${I}`,sheetName:u},dimensions:`${C}:${S}`}}if(x.startsWith("#"))return u?{sheetName:u,error:x}:{error:x};let v=this.decodeAddress(x);return u?ae({sheetName:u},v):v},encodeAddress:(p,d)=>n.n2l(d)+p,encode(){switch(arguments.length){case 2:return n.encodeAddress(arguments[0],arguments[1]);case 4:return`${n.encodeAddress(arguments[0],arguments[1])}:${n.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(p,d){let[u,x,,_,v]=p,[C,S]=d;return C>=u&&C<=_&&S>=x&&S<=v}};r.exports=n},{}],20:[function(e,r,i){"use strict";let a=(p,d)=>ae(ae({},p),d.reduce((u,x)=>(p[x]&&(u[x]=ae({},p[x])),u),{})),n=function(p,d,u){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];p[u]&&(d[u]=a(p[u],x))};i.copyStyle=p=>{if(!p)return p;if(d=p,Object.keys(d).length===0)return{};var d;let u=ae({},p);return n(p,u,"font",["color"]),n(p,u,"alignment"),n(p,u,"protection"),p.border&&(n(p,u,"border"),n(p.border,u.border,"top",["color"]),n(p.border,u.border,"left",["color"]),n(p.border,u.border,"bottom",["color"]),n(p.border,u.border,"right",["color"]),n(p.border,u.border,"diagonal",["color"])),p.fill&&(n(p,u,"fill",["fgColor","bgColor","center"]),p.fill.stops&&(u.fill.stops=p.fill.stops.map(x=>a(x,["color"])))),u}},{}],21:[function(e,r,i){(function(a){(function(){"use strict";let n=e("crypto"),p={hash(d){let u=n.createHash(d);for(var x=arguments.length,_=new Array(x>1?x-1:0),v=1;vn.randomBytes(d)};r.exports=p}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,r,i){"use strict";let{SaxesParser:a}=e("saxes"),{PassThrough:n}=e("readable-stream"),{bufferToString:p}=e("./browser-buffer-decode");r.exports=function(d){return m9(this,null,function*(){d.pipe&&!d[Symbol.asyncIterator]&&(d=d.pipe(new n));let u=new a,x;u.on("error",w=>{x=w});let _=[];u.on("opentag",w=>_.push({eventType:"opentag",value:w})),u.on("text",w=>_.push({eventType:"text",value:w})),u.on("closetag",w=>_.push({eventType:"closetag",value:w}));try{for(var v=Px(d),C,S,E;C=!(S=yield new Gw(v.next())).done;C=!1){let w=S.value;if(u.write(p(w)),x)throw x;yield _,_=[]}}catch{E=[S]}finally{try{C&&(S=v.return)&&(yield new Gw(S.call(v)))}finally{if(E)throw E[0]}}})}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,r,i){"use strict";let a=e("./col-cache"),n=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,p=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;r.exports={slideFormula:function(d,u,x){let _=a.decode(u),v=a.decode(x);return d.replace(n,(C,S,E,w,I)=>{if(I)return C;let T=p.exec(w);if(T){let A=T[1],V=T[2].toUpperCase(),G=T[3],J=T[4];if(V.length>3||V.length===3&&V>"XFD")return C;let at=a.l2n(V),X=parseInt(J,10);return A||(at+=v.col-_.col),G||(X+=v.row-_.row),(S||"")+(A||"")+a.n2l(at)+(G||"")+X}return C})}}},{"./col-cache":19}],24:[function(e,r,i){(function(a,n){(function(){"use strict";let p=e("readable-stream"),d=e("./utils"),u=e("./string-buf");class x{constructor(I,T){this._data=I,this._encoding=T}get length(){return this.toBuffer().length}copy(I,T,A,V){return this.toBuffer().copy(I,T,A,V)}toBuffer(){return this._buffer||(this._buffer=n.from(this._data,this._encoding)),this._buffer}}class _{constructor(I){this._data=I}get length(){return this._data.length}copy(I,T,A,V){return this._data._buf.copy(I,T,A,V)}toBuffer(){return this._data.toBuffer()}}class v{constructor(I){this._data=I}get length(){return this._data.length}copy(I,T,A,V){this._data.copy(I,T,A,V)}toBuffer(){return this._data}}class C{constructor(I){this.size=I,this.buffer=n.alloc(I),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;let I=n.alloc(this.iWrite-this.iRead);return this.buffer.copy(I,0,this.iRead,this.iWrite),I}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(I){let T;return I===0?null:I===void 0||I>=this.length?(T=this.toBuffer(),this.iRead=this.iWrite,T):(T=n.alloc(I),this.buffer.copy(T,0,this.iRead,I),this.iRead+=I,T)}write(I,T,A){let V=Math.min(A,this.size-this.iWrite);return I.copy(this.buffer,this.iWrite,T,T+V),this.iWrite+=V,V}}let S=function(w){w=w||{},this.bufSize=w.bufSize||1048576,this.buffers=[],this.batch=w.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};d.inherits(S,p.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return n.concat(this.buffers.map(w=>w.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){let I=this.buffers[this.buffers.length-1];if(!I.full)return I}let w=new C(this.bufSize);return this.buffers.push(w),w},_pipe(w){return Zn(this,null,function*(){yield Promise.all(this.pipes.map(function(I){return new Promise(T=>{I.write(w.toBuffer(),()=>{T()})})}))})},_writeToBuffers(w){let I=0,T=w.length;for(;I1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(A),a.nextTick(T)):(yield this._pipe(A),T());else this.paused||this.emit("data",A.toBuffer()),this._writeToBuffers(A),this.emit("readable");return!0})},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(w,I,T){let A=V=>{V?T(V):(this._flush(),this.pipes.forEach(G=>{G.end()}),this.emit("finish"))};w?this.write(w,I,A):A()},read(w){let I;if(w){for(I=[];w&&this.buffers.length&&!this.buffers[0].eod;){let T=this.buffers[0],A=T.read(w);w-=A.length,I.push(A),T.eod&&T.full&&this.buffers.shift()}return n.concat(I)}return I=this.buffers.map(T=>T.toBuffer()).filter(Boolean),this.buffers=[],n.concat(I)},setEncoding(w){this.encoding=w},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(w){this.pipes.push(w),!this.paused&&this.buffers.length&&this.end()},unpipe(w){this.pipes=this.pipes.filter(I=>I!==w)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),r.exports=S}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,r,i){(function(a){(function(){"use strict";r.exports=class{constructor(n){this._buf=a.alloc(n&&n.size||16384),this._encoding=n&&n.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=a.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(n){n=n||0,this._buffer=void 0,this._inPos=n}_grow(n){let p=2*this._buf.length;for(;p=this._buf.length-4;)this._grow(this._inPos+n.length),p=this._inPos+this._buf.write(n,this._inPos,this._encoding);this._inPos=p}addStringBuf(n){n.length&&(this._buffer=void 0,this.length+n.length>this.capacity&&this._grow(this.length+n.length),n._buf.copy(this._buf,this._inPos,0,n.length),this._inPos+=n.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,r,i){"use strict";let{toString:a}=Object.prototype,n=/["&<>]/,p={each:function(d,u){d&&(Array.isArray(d)?d.forEach(u):Object.keys(d).forEach(x=>{u(d[x],x)}))},some:function(d,u){return!!d&&(Array.isArray(d)?d.some(u):Object.keys(d).some(x=>u(d[x],x)))},every:function(d,u){return!d||(Array.isArray(d)?d.every(u):Object.keys(d).every(x=>u(d[x],x)))},map:function(d,u){return d?Array.isArray(d)?d.map(u):Object.keys(d).map(x=>u(d[x],x)):[]},keyBy:(d,u)=>d.reduce((x,_)=>(x[_[u]]=_,x),{}),isEqual:function(d,u){let x=typeof d,_=typeof u,v=Array.isArray(d),C=Array.isArray(u),S;if(x!==_)return!1;switch(typeof d){case"object":if(v||C)return!(!v||!C)&&d.length===u.length&&d.every((E,w)=>{let I=u[w];return p.isEqual(E,I)});if(d===null||u===null)return d===u;if(S=Object.keys(d),Object.keys(u).length!==S.length)return!1;for(let E of S)if(!u.hasOwnProperty(E))return!1;return p.every(d,(E,w)=>{let I=u[w];return p.isEqual(E,I)});default:return d===u}},escapeHtml(d){let u=n.exec(d);if(!u)return d;let x="",_="",v=0,C=u.index;for(;C":_=">";break;default:continue}v!==C&&(x+=d.substring(v,C)),v=C+1,x+=_}return v!==C?x+d.substring(v,C):x},strcmp:(d,u)=>du?1:0,isUndefined:d=>a.call(d)==="[object Undefined]",isObject:d=>a.call(d)==="[object Object]",deepMerge(){let d=arguments[0]||{},{length:u}=arguments,x,_,v;function C(S,E){x=d[E],v=Array.isArray(S),p.isObject(S)||v?(v?(v=!1,_=x&&Array.isArray(x)?x:[]):_=x&&p.isObject(x)?x:{},d[E]=p.deepMerge(_,S)):p.isUndefined(S)||(d[E]=S)}for(let S=0;S&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,u={nop(){},promiseImmediate:x=>new Promise(_=>{a.setImmediate?n(()=>{_(x)}):setTimeout(()=>{_(x)},1)}),inherits:function(x,_,v,C){x.super_=_,C||(C=v,v=null),v&&Object.keys(v).forEach(E=>{Object.defineProperty(x,E,Object.getOwnPropertyDescriptor(v,E))});let S={constructor:{value:x,enumerable:!1,writable:!1,configurable:!0}};C&&Object.keys(C).forEach(E=>{S[E]=Object.getOwnPropertyDescriptor(C,E)}),x.prototype=Object.create(_.prototype,S)},dateToExcel:(x,_)=>25569+x.getTime()/864e5-(_?1462:0),excelToDate(x,_){let v=Math.round(24*(x-25569+(_?1462:0))*3600*1e3);return new Date(v)},parsePath(x){let _=x.lastIndexOf("/");return{path:x.substring(0,_),name:x.substring(_+1)}},getRelsPath(x){let _=u.parsePath(x);return`${_.path}/_rels/${_.name}.rels`},xmlEncode(x){let _=d.exec(x);if(!_)return x;let v="",C="",S=0,E=_.index;for(;E=11&&w!==13)){C="";break}continue}S!==E&&(v+=x.substring(S,E)),S=E+1,C&&(v+=C)}return S!==E?v+x.substring(S,E):v},xmlDecode:x=>x.replace(/&([a-z]*);/g,_=>{switch(_){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return _}}),validInt(x){let _=parseInt(x,10);return Number.isNaN(_)?0:_},isDateFmt(x){return x?(x=(x=x.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:x=>new Promise(_=>{p.access(x,p.constants.F_OK,v=>{_(!v)})})},toIsoDateString:x=>x.toIsoString().subsstr(0,10),parseBoolean:x=>x===!0||x==="true"||x===1||x==="1"};r.exports=u}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,r,i){"use strict";let a=e("./under-dash"),n=e("./utils");function p(x,_,v){x.push(` ${_}="${n.xmlEncode(v.toString())}"`)}function d(x,_){if(_){let v=[];a.each(_,(C,S)=>{C!==void 0&&p(v,S,C)}),x.push(v.join(""))}}class u{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(_){let v=this._xml;v.push(" `)}openNode(_,v){let C=this.tos,S=this._xml;C&&this.open&&S.push(">"),this._stack.push(_),S.push("<"),S.push(_),d(S,v),this.leaf=!0,this.open=!0}addAttribute(_,v){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");v!==void 0&&p(this._xml,_,v)}addAttributes(_){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");d(this._xml,_)}writeText(_){let v=this._xml;this.open&&(v.push(">"),this.open=!1),this.leaf=!1,v.push(n.xmlEncode(_.toString()))}writeXml(_){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(_)}closeNode(){let _=this._stack.pop(),v=this._xml;this.leaf?v.push("/>"):(v.push("")),this.open=!1,this.leaf=!1}leafNode(_,v,C){this.openNode(_,v),C!==void 0&&this.writeText(C),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){let _=this._rollbacks.pop();this._xml.length>_.xml&&this._xml.splice(_.xml,this._xml.length-_.xml),this._stack.length>_.stack&&this._stack.splice(_.stack,this._stack.length-_.stack),this.leaf=_.leaf,this.open=_.open}get xml(){return this.closeAll(),this._xml.join("")}}u.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},r.exports=u},{"./under-dash":26,"./utils":27}],29:[function(e,r,i){(function(a){(function(){"use strict";let n=e("events"),p=e("jszip"),d=e("./stream-buf"),{stringToBuffer:u}=e("./browser-buffer-encode");class x extends n.EventEmitter{constructor(v){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},v),this.zip=new p,this.stream=new d}append(v,C){C.hasOwnProperty("base64")&&C.base64?this.zip.file(C.name,v,{base64:!0}):(a.browser&&typeof v=="string"&&(v=u(v)),this.zip.file(C.name,v))}finalize(){return Zn(this,null,function*(){let v=yield this.zip.generateAsync(this.options);this.stream.end(v),this.emit("finish")})}read(v){return this.stream.read(v)}setEncoding(v){return this.stream.setEncoding(v)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(v,C){return this.stream.pipe(v,C)}unpipe(v){return this.stream.unpipe(v)}unshift(v){return this.stream.unshift(v)}wrap(v){return this.stream.wrap(v)}}r.exports={ZipWriter:x}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,r,i){"use strict";r.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},28:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"ja-jp":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":'yyyy"\uB144" mm"\uC6D4" dd"\uC77C"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65F6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uC2DC" mm"\uBD84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79D2"',"ko-kr":'h"\uC2DC" mm"\uBD84" ss"\uCD08"'},34:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},51:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},58:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,r,i){"use strict";r.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,r,i){"use strict";let a=e("../../utils/parse-sax"),n=e("../../utils/xml-stream");class p{prepare(){}render(){}parseOpen(u){}parseText(u){}parseClose(u){}reconcile(u,x){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(u=>{u instanceof p?u.reset():u.xform&&u.xform.reset()})}mergeModel(u){this.model=Object.assign(this.model||{},u)}parse(u){return Zn(this,null,function*(){try{for(var x=Px(u),_,v,C;_=!(v=yield x.next()).done;_=!1){let S=v.value;for(let{eventType:E,value:w}of S)if(E==="opentag")this.parseOpen(w);else if(E==="text")this.parseText(w);else if(E==="closetag"&&!this.parseClose(w.name))return this.model}}catch{C=[v]}finally{try{_&&(v=x.return)&&(yield v.call(x))}finally{if(C)throw C[0]}}return this.model})}parseStream(u){return Zn(this,null,function*(){return this.parse(a(u))})}get xml(){return this.toXml(this.model)}toXml(u){let x=new n;return this.render(x,u),x.xml}static toAttribute(u,x){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u===void 0){if(_)return x}else if(_||u!==x)return u.toString()}static toStringAttribute(u,x){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return p.toAttribute(u,x,_)}static toStringValue(u,x){return u===void 0?x:u}static toBoolAttribute(u,x){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u===void 0){if(_)return x}else if(_||u!==x)return u?"1":"0"}static toBoolValue(u,x){return u===void 0?x:u==="1"}static toIntAttribute(u,x){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return p.toAttribute(u,x,_)}static toIntValue(u,x){return u===void 0?x:parseInt(u,10)}static toFloatAttribute(u,x){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return p.toAttribute(u,x,_)}static toFloatValue(u,x){return u===void 0?x:parseFloat(u)}}r.exports=p},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("../../../utils/col-cache");function p(u){try{return n.decodeEx(u),!0}catch{return!1}}function d(u){let x=[],_=!1,v="";return u.split(",").forEach(C=>{if(!C)return;let S=(C.match(/'/g)||[]).length;if(!S)return void(_?v+=C+",":p(C)&&x.push(C));let E=S%2==0;!_&&E&&p(C)?x.push(C):_&&!E?(_=!1,p(v+C)&&x.push(v+C),v=""):(_=!0,v+=C+",")}),x}r.exports=class extends a{render(u,x){u.openNode("definedName",{name:x.name,localSheetId:x.localSheetId}),u.writeText(x.ranges.join(",")),u.closeNode()}parseOpen(u){switch(u.name){case"definedName":return this._parsedName=u.attributes.name,this._parsedLocalSheetId=u.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(u){this._parsedText.push(u)}parseClose(){return this.model={name:this._parsedName,ranges:d(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,r,i){"use strict";let a=e("../../../utils/utils"),n=e("../base-xform");r.exports=class extends n{render(p,d){p.leafNode("sheet",{sheetId:d.id,name:d.name,state:d.state,"r:id":d.rId})}parseOpen(p){return p.name==="sheet"&&(this.model={name:a.xmlDecode(p.attributes.name),id:parseInt(p.attributes.sheetId,10),state:p.attributes.state,rId:p.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{render(n,p){n.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:p.fullCalcOnLoad?1:void 0})}parseOpen(n){return n.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{render(n,p){n.leafNode("workbookPr",{date1904:p.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(n){return n.name==="workbookPr"&&(this.model={date1904:n.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{render(n,p){let d={xWindow:p.x||0,yWindow:p.y||0,windowWidth:p.width||12e3,windowHeight:p.height||24e3,firstSheet:p.firstSheet,activeTab:p.activeTab};p.visibility&&p.visibility!=="visible"&&(d.visibility=p.visibility),n.leafNode("workbookView",d)}parseOpen(n){if(n.name==="workbookView"){let p=this.model={},d=function(x,_,v){let C=_!==void 0?p[x]=_:v;C!==void 0&&(p[x]=C)},u=function(x,_,v){let C=_!==void 0?p[x]=parseInt(_,10):v;C!==void 0&&(p[x]=C)};return u("x",n.attributes.xWindow,0),u("y",n.attributes.yWindow,0),u("width",n.attributes.windowWidth,25e3),u("height",n.attributes.windowHeight,1e4),d("visibility",n.attributes.visibility,"visible"),u("activeTab",n.attributes.activeTab,void 0),u("firstSheet",n.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../../../utils/col-cache"),p=e("../../../utils/xml-stream"),d=e("../base-xform"),u=e("../static-xform"),x=e("../list-xform"),_=e("./defined-name-xform"),v=e("./sheet-xform"),C=e("./workbook-view-xform"),S=e("./workbook-properties-xform"),E=e("./workbook-calc-properties-xform");class w extends d{constructor(){super(),this.map={fileVersion:w.STATIC_XFORMS.fileVersion,workbookPr:new S,bookViews:new x({tag:"bookViews",count:!1,childXform:new C}),sheets:new x({tag:"sheets",count:!1,childXform:new v}),definedNames:new x({tag:"definedNames",count:!1,childXform:new _}),calcPr:new E}}prepare(T){T.sheets=T.worksheets;let A=[],V=0;T.sheets.forEach(G=>{if(G.pageSetup&&G.pageSetup.printArea&&G.pageSetup.printArea.split("&&").forEach(J=>{let at=J.split(":"),X={name:"_xlnm.Print_Area",ranges:[`'${G.name}'!$${at[0]}:$${at[1]}`],localSheetId:V};A.push(X)}),G.pageSetup&&(G.pageSetup.printTitlesRow||G.pageSetup.printTitlesColumn)){let J=[];if(G.pageSetup.printTitlesColumn){let X=G.pageSetup.printTitlesColumn.split(":");J.push(`'${G.name}'!$${X[0]}:$${X[1]}`)}if(G.pageSetup.printTitlesRow){let X=G.pageSetup.printTitlesRow.split(":");J.push(`'${G.name}'!$${X[0]}:$${X[1]}`)}let at={name:"_xlnm.Print_Titles",ranges:J,localSheetId:V};A.push(at)}V++}),A.length&&(T.definedNames=T.definedNames.concat(A)),(T.media||[]).forEach((G,J)=>{G.name=G.type+(J+1)})}render(T,A){T.openXml(p.StdDocAttributes),T.openNode("workbook",w.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(T),this.map.workbookPr.render(T,A.properties),this.map.bookViews.render(T,A.views),this.map.sheets.render(T,A.sheets),this.map.definedNames.render(T,A.definedNames),this.map.calcPr.render(T,A.calcProperties),T.closeNode()}parseOpen(T){if(this.parser)return this.parser.parseOpen(T),!0;switch(T.name){case"workbook":return!0;default:return this.parser=this.map[T.name],this.parser&&this.parser.parseOpen(T),!0}}parseText(T){this.parser&&this.parser.parseText(T)}parseClose(T){if(this.parser)return this.parser.parseClose(T)||(this.parser=void 0),!0;switch(T){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(T){let A=(T.workbookRels||[]).reduce((X,nt)=>(X[nt.Id]=nt,X),{}),V=[],G,J=0;(T.sheets||[]).forEach(X=>{let nt=A[X.rId];nt&&(G=T.worksheetHash["xl/"+nt.Target.replace(/^(\s|\/xl\/)+/,"")],G&&(G.name=X.name,G.id=X.id,G.state=X.state,V[J++]=G))});let at=[];a.each(T.definedNames,X=>{if(X.name==="_xlnm.Print_Area"){if(G=V[X.localSheetId],G){G.pageSetup||(G.pageSetup={});let nt=n.decodeEx(X.ranges[0]);G.pageSetup.printArea=G.pageSetup.printArea?`${G.pageSetup.printArea}&&${nt.dimensions}`:nt.dimensions}}else if(X.name==="_xlnm.Print_Titles"){if(G=V[X.localSheetId],G){G.pageSetup||(G.pageSetup={});let nt=X.ranges.join(","),ot=/\$/g,ht=/\$\d+:\$\d+/,ct=nt.match(ht);if(ct&&ct.length){let st=ct[0];G.pageSetup.printTitlesRow=st.replace(ot,"")}let z=/\$[A-Z]+:\$[A-Z]+/,U=nt.match(z);if(U&&U.length){let st=U[0];G.pageSetup.printTitlesColumn=st.replace(ot,"")}}}else at.push(X)}),T.definedNames=at,T.media.forEach((X,nt)=>{X.index=nt})}}w.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},w.STATIC_XFORMS={fileVersion:new u({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},r.exports=w},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,r,i){"use strict";let a=e("../strings/rich-text-xform"),n=e("../../../utils/utils"),p=e("../base-xform"),d=r.exports=function(u){this.model=u};n.inherits(d,p,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new a),this._richTextXform},render(u,x){x=x||this.model,u.openNode("comment",{ref:x.ref,authorId:0}),u.openNode("text"),x&&x.note&&x.note.texts&&x.note.texts.forEach(_=>{this.richTextXform.render(u,_)}),u.closeNode(),u.closeNode()},parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"comment":return this.model=ae({type:"note",note:{texts:[]}},u.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(u),!0;default:return!1}},parseText(u){this.parser&&this.parser.parseText(u)},parseClose(u){switch(u){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(u),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,r,i){"use strict";let a=e("../../../utils/xml-stream"),n=e("../../../utils/utils"),p=e("../base-xform"),d=e("./comment-xform"),u=r.exports=function(){this.map={comment:new d}};n.inherits(u,p,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(x,_){_=_||this.model,x.openXml(a.StdDocAttributes),x.openNode("comments",u.COMMENTS_ATTRIBUTES),x.openNode("authors"),x.leafNode("author",null,"Author"),x.closeNode(),x.openNode("commentList"),_.comments.forEach(v=>{this.map.comment.render(x,v)}),x.closeNode(),x.closeNode()},parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;switch(x.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(x),!0;default:return!1}},parseText(x){this.parser&&this.parser.parseText(x)},parseClose(x){switch(x){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(x),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,r,i){"use strict";let a=e("../../base-xform");r.exports=class extends a{constructor(n){super(),this._model=n}get tag(){return this._model&&this._model.tag}render(n,p,d){(p===d[2]||this.tag==="x:SizeWithCells"&&p===d[1])&&n.leafNode(this.tag)}parseOpen(n){switch(n.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,r,i){"use strict";let a=e("../../base-xform");r.exports=class extends a{constructor(n){super(),this._model=n}get tag(){return this._model&&this._model.tag}render(n,p){n.leafNode(this.tag,null,p)}parseOpen(n){switch(n.name){case this.tag:return this.text="",!0;default:return!1}}parseText(n){this.text=n}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"x:Anchor"}getAnchorRect(n){let p=Math.floor(n.left),d=Math.floor(68*(n.left-p)),u=Math.floor(n.top),x=Math.floor(18*(n.top-u)),_=Math.floor(n.right),v=Math.floor(68*(n.right-_)),C=Math.floor(n.bottom);return[p,d,u,x,_,v,C,Math.floor(18*(n.bottom-C))]}getDefaultRect(n){let p=n.col,d=Math.max(n.row-2,0);return[p,6,d,14,p+2,2,d+4,16]}render(n,p){let d=p.anchor?this.getAnchorRect(p.anchor):this.getDefaultRect(p.refAddress);n.leafNode("x:Anchor",null,d.join(", "))}parseOpen(n){switch(n.name){case this.tag:return this.text="",!0;default:return!1}}parseText(n){this.text=n}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./vml-anchor-xform"),p=e("./style/vml-protection-xform"),d=e("./style/vml-position-xform"),u=["twoCells","oneCells","absolute"];r.exports=class extends a{constructor(){super(),this.map={"x:Anchor":new n,"x:Locked":new p({tag:"x:Locked"}),"x:LockText":new p({tag:"x:LockText"}),"x:SizeWithCells":new d({tag:"x:SizeWithCells"}),"x:MoveWithCells":new d({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(x,_){let{protection:v,editAs:C}=_.note;x.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(x,C,u),this.map["x:SizeWithCells"].render(x,C,u),this.map["x:Anchor"].render(x,_),this.map["x:Locked"].render(x,v.locked),x.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(x,v.lockText),x.leafNode("x:Row",null,_.refAddress.row-1),x.leafNode("x:Column",null,_.refAddress.col-1),x.closeNode()}parseOpen(x){switch(x.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[x.name],this.parser&&this.parser.parseOpen(x)}return!0}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){if(this.parser)return this.parser.parseClose(x)||(this.parser=void 0),!0;switch(x){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){let x=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),_=Object.keys(x).length;this.model.editAs=u[_],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,r,i){"use strict";let a=e("../../../utils/xml-stream"),n=e("../base-xform"),p=e("./vml-shape-xform");class d extends n{constructor(){super(),this.map={"v:shape":new p}}get tag(){return"xml"}render(x,_){x.openXml(a.StdDocAttributes),x.openNode(this.tag,d.DRAWING_ATTRIBUTES),x.openNode("o:shapelayout",{"v:ext":"edit"}),x.leafNode("o:idmap",{"v:ext":"edit",data:1}),x.closeNode(),x.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),x.leafNode("v:stroke",{joinstyle:"miter"}),x.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),x.closeNode(),_.comments.forEach((v,C)=>{this.map["v:shape"].render(x,v,C)}),x.closeNode()}parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;switch(x.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[x.name],this.parser&&this.parser.parseOpen(x)}return!0}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){if(this.parser)return this.parser.parseClose(x)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(x){case this.tag:return!1;default:return!0}}reconcile(x,_){x.anchors.forEach(v=>{v.br?this.map["xdr:twoCellAnchor"].reconcile(v,_):this.map["xdr:oneCellAnchor"].reconcile(v,_)})}}d.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},r.exports=d},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./vml-textbox-xform"),p=e("./vml-client-data-xform");class d extends a{constructor(){super(),this.map={"v:textbox":new n,"x:ClientData":new p}}get tag(){return"v:shape"}render(x,_,v){x.openNode("v:shape",d.V_SHAPE_ATTRIBUTES(_,v)),x.leafNode("v:fill",{color2:"infoBackground [80]"}),x.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),x.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(x,_),this.map["x:ClientData"].render(x,_),x.closeNode()}parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;switch(x.name){case this.tag:this.reset(),this.model={margins:{insetmode:x.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[x.name],this.parser&&this.parser.parseOpen(x)}return!0}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){if(this.parser)return this.parser.parseClose(x)||(this.parser=void 0),!0;switch(x){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}d.V_SHAPE_ATTRIBUTES=(u,x)=>({id:"_x0000_s"+(1025+x),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":u.note.margins&&u.note.margins.insetmode}),r.exports=d},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"v:textbox"}conversionUnit(n,p,d){return`${parseFloat(n)*p.toFixed(2)}${d}`}reverseConversionUnit(n){return(n||"").split(",").map(p=>Number(parseFloat(this.conversionUnit(parseFloat(p),.1,"")).toFixed(2)))}render(n,p){let d={style:"mso-direction-alt:auto"};if(p&&p.note){let{inset:u}=p.note&&p.note.margins;Array.isArray(u)&&(u=u.map(x=>this.conversionUnit(x,10,"mm")).join(",")),u&&(d.inset=u)}n.openNode("v:textbox",d),n.leafNode("div",{style:"text-align:left"}),n.closeNode()}parseOpen(n){switch(n.name){case this.tag:return this.model={inset:this.reverseConversionUnit(n.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(n){switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(e,r,i){"use strict";let a=e("./base-xform");r.exports=class extends a{createNewModel(n){return{}}parseOpen(n){return this.parser=this.parser||this.map[n.name],this.parser?(this.parser.parseOpen(n),!0):n.name===this.tag&&(this.model=this.createNewModel(n),!0)}parseText(n){this.parser&&this.parser.parseText(n)}onParserClose(n,p){this.model[n]=p.model}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.onParserClose(n,this.parser),this.parser=void 0),!0):n!==this.tag}}},{"./base-xform":32}],49:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{render(n,p){n.openNode("HeadingPairs"),n.openNode("vt:vector",{size:2,baseType:"variant"}),n.openNode("vt:variant"),n.leafNode("vt:lpstr",void 0,"Worksheets"),n.closeNode(),n.openNode("vt:variant"),n.leafNode("vt:i4",void 0,p.length),n.closeNode(),n.closeNode(),n.closeNode()}parseOpen(n){return n.name==="HeadingPairs"}parseText(){}parseClose(n){return n!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{render(n,p){n.openNode("TitlesOfParts"),n.openNode("vt:vector",{size:p.length,baseType:"lpstr"}),p.forEach(d=>{n.leafNode("vt:lpstr",void 0,d.name)}),n.closeNode(),n.closeNode()}parseOpen(n){return n.name==="TitlesOfParts"}parseText(){}parseClose(n){return n!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(e,r,i){"use strict";let a=e("../../../utils/xml-stream"),n=e("../base-xform"),p=e("../simple/string-xform"),d=e("./app-heading-pairs-xform"),u=e("./app-titles-of-parts-xform");class x extends n{constructor(){super(),this.map={Company:new p({tag:"Company"}),Manager:new p({tag:"Manager"}),HeadingPairs:new d,TitleOfParts:new u}}render(v,C){v.openXml(a.StdDocAttributes),v.openNode("Properties",x.PROPERTY_ATTRIBUTES),v.leafNode("Application",void 0,"Microsoft Excel"),v.leafNode("DocSecurity",void 0,"0"),v.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(v,C.worksheets),this.map.TitleOfParts.render(v,C.worksheets),this.map.Company.render(v,C.company||""),this.map.Manager.render(v,C.manager),v.leafNode("LinksUpToDate",void 0,"false"),v.leafNode("SharedDoc",void 0,"false"),v.leafNode("HyperlinksChanged",void 0,"false"),v.leafNode("AppVersion",void 0,"16.0300"),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case"Properties":return!0;default:return this.parser=this.map[v.name],!!this.parser&&(this.parser.parseOpen(v),!0)}}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){if(this.parser)return this.parser.parseClose(v)||(this.parser=void 0),!0;switch(v){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}x.DateFormat=function(_){return _.toISOString().replace(/[.]\d{3,6}/,"")},x.DateAttrs={"xsi:type":"dcterms:W3CDTF"},x.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},r.exports=x},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,r,i){"use strict";let a=e("../../../utils/xml-stream"),n=e("../base-xform");class p extends n{render(u,x){u.openXml(a.StdDocAttributes),u.openNode("Types",p.PROPERTY_ATTRIBUTES);let _={};(x.media||[]).forEach(v=>{if(v.type==="image"){let C=v.extension;_[C]||(_[C]=!0,u.leafNode("Default",{Extension:C,ContentType:"image/"+C}))}}),u.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),u.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),u.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),x.worksheets.forEach(v=>{let C=`/xl/worksheets/sheet${v.id}.xml`;u.leafNode("Override",{PartName:C,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),u.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),u.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),x.sharedStrings&&x.sharedStrings.count&&u.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),x.tables&&x.tables.forEach(v=>{u.leafNode("Override",{PartName:"/xl/tables/"+v.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),x.drawings&&x.drawings.forEach(v=>{u.leafNode("Override",{PartName:`/xl/drawings/${v.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),x.commentRefs&&(u.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),x.commentRefs.forEach(v=>{let{commentName:C}=v;u.leafNode("Override",{PartName:`/xl/${C}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),u.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),u.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),u.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}p.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},r.exports=p},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,r,i){"use strict";let a=e("../../../utils/xml-stream"),n=e("../base-xform"),p=e("../simple/date-xform"),d=e("../simple/string-xform"),u=e("../simple/integer-xform");class x extends n{constructor(){super(),this.map={"dc:creator":new d({tag:"dc:creator"}),"dc:title":new d({tag:"dc:title"}),"dc:subject":new d({tag:"dc:subject"}),"dc:description":new d({tag:"dc:description"}),"dc:identifier":new d({tag:"dc:identifier"}),"dc:language":new d({tag:"dc:language"}),"cp:keywords":new d({tag:"cp:keywords"}),"cp:category":new d({tag:"cp:category"}),"cp:lastModifiedBy":new d({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new p({tag:"cp:lastPrinted",format:x.DateFormat}),"cp:revision":new u({tag:"cp:revision"}),"cp:version":new d({tag:"cp:version"}),"cp:contentStatus":new d({tag:"cp:contentStatus"}),"cp:contentType":new d({tag:"cp:contentType"}),"dcterms:created":new p({tag:"dcterms:created",attrs:x.DateAttrs,format:x.DateFormat}),"dcterms:modified":new p({tag:"dcterms:modified",attrs:x.DateAttrs,format:x.DateFormat})}}render(v,C){v.openXml(a.StdDocAttributes),v.openNode("cp:coreProperties",x.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(v,C.creator),this.map["dc:title"].render(v,C.title),this.map["dc:subject"].render(v,C.subject),this.map["dc:description"].render(v,C.description),this.map["dc:identifier"].render(v,C.identifier),this.map["dc:language"].render(v,C.language),this.map["cp:keywords"].render(v,C.keywords),this.map["cp:category"].render(v,C.category),this.map["cp:lastModifiedBy"].render(v,C.lastModifiedBy),this.map["cp:lastPrinted"].render(v,C.lastPrinted),this.map["cp:revision"].render(v,C.revision),this.map["cp:version"].render(v,C.version),this.map["cp:contentStatus"].render(v,C.contentStatus),this.map["cp:contentType"].render(v,C.contentType),this.map["dcterms:created"].render(v,C.created),this.map["dcterms:modified"].render(v,C.modified),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[v.name],this.parser)return this.parser.parseOpen(v),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(v))}}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){if(this.parser)return this.parser.parseClose(v)||(this.parser=void 0),!0;switch(v){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+v)}}}x.DateFormat=function(_){return _.toISOString().replace(/[.]\d{3}/,"")},x.DateAttrs={"xsi:type":"dcterms:W3CDTF"},x.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},r.exports=x},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{render(n,p){n.leafNode("Relationship",p)}parseOpen(n){switch(n.name){case"Relationship":return this.model=n.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,r,i){"use strict";let a=e("../../../utils/xml-stream"),n=e("../base-xform"),p=e("./relationship-xform");class d extends n{constructor(){super(),this.map={Relationship:new p}}render(x,_){_=_||this._values,x.openXml(a.StdDocAttributes),x.openNode("Relationships",d.RELATIONSHIPS_ATTRIBUTES),_.forEach(v=>{this.map.Relationship.render(x,v)}),x.closeNode()}parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;switch(x.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[x.name],this.parser)return this.parser.parseOpen(x),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(x))}}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){if(this.parser)return this.parser.parseClose(x)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(x){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+x)}}}d.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},r.exports=d},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={range:{editAs:n.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}reconcilePicture(n,p){if(n&&n.rId){let d=p.rels[n.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(d){let u=d[1],x=p.mediaIndex[u];return p.media[x]}}}}},{"../base-xform":32}],57:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./blip-xform");r.exports=class extends a{constructor(){super(),this.map={"a:blip":new n}}get tag(){return"xdr:blipFill"}render(p,d){p.openNode(this.tag),this.map["a:blip"].render(p,d),p.openNode("a:stretch"),p.leafNode("a:fillRect"),p.closeNode(),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case this.tag:this.reset();break;default:this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p)}return!0}parseText(){}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"a:blip"}render(n,p){n.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":p.rId,cstate:"print"})}parseOpen(n){switch(n.name){case this.tag:return this.model={rId:n.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(n){switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"xdr:cNvPicPr"}render(n){n.openNode(this.tag),n.leafNode("a:picLocks",{noChangeAspect:"1"}),n.closeNode()}parseOpen(n){switch(n.name){case this.tag:default:return!0}}parseText(){}parseClose(n){switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./hlink-click-xform"),p=e("./ext-lst-xform");r.exports=class extends a{constructor(){super(),this.map={"a:hlinkClick":new n,"a:extLst":new p}}get tag(){return"xdr:cNvPr"}render(d,u){d.openNode(this.tag,{id:u.index,name:"Picture "+u.index}),this.map["a:hlinkClick"].render(d,u),this.map["a:extLst"].render(d,u),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case this.tag:this.reset();break;default:this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)}return!0}parseText(){}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.parser=void 0),!0;switch(d){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("../simple/integer-xform");r.exports=class extends a{constructor(p){super(),this.tag=p.tag,this.map={"xdr:col":new n({tag:"xdr:col",zero:!0}),"xdr:colOff":new n({tag:"xdr:colOff",zero:!0}),"xdr:row":new n({tag:"xdr:row",zero:!0}),"xdr:rowOff":new n({tag:"xdr:rowOff",zero:!0})}}render(p,d){p.openNode(this.tag),this.map["xdr:col"].render(p,d.nativeCol),this.map["xdr:colOff"].render(p,d.nativeColOff),this.map["xdr:row"].render(p,d.nativeRow),this.map["xdr:rowOff"].render(p,d.nativeRowOff),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case this.tag:this.reset();break;default:this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p)}return!0}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,r,i){"use strict";let a=e("../../../utils/col-cache"),n=e("../../../utils/xml-stream"),p=e("../base-xform"),d=e("./two-cell-anchor-xform"),u=e("./one-cell-anchor-xform");class x extends p{constructor(){super(),this.map={"xdr:twoCellAnchor":new d,"xdr:oneCellAnchor":new u}}prepare(v){v.anchors.forEach((C,S)=>{C.anchorType=function(E){return(typeof E.range=="string"?a.decode(E.range):E.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(C),this.map[C.anchorType].prepare(C,{index:S})})}get tag(){return"xdr:wsDr"}render(v,C){v.openXml(n.StdDocAttributes),v.openNode(this.tag,x.DRAWING_ATTRIBUTES),C.anchors.forEach(S=>{this.map[S.anchorType].render(v,S)}),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[v.name],this.parser&&this.parser.parseOpen(v)}return!0}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){if(this.parser)return this.parser.parseClose(v)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(v){case this.tag:return!1;default:return!0}}reconcile(v,C){v.anchors.forEach(S=>{S.br?this.map["xdr:twoCellAnchor"].reconcile(S,C):this.map["xdr:oneCellAnchor"].reconcile(S,C)})}}x.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},r.exports=x},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"a:extLst"}render(n){n.openNode(this.tag),n.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),n.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),n.closeNode(),n.closeNode()}parseOpen(n){switch(n.name){case this.tag:default:return!0}}parseText(){}parseClose(n){switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{constructor(n){super(),this.tag=n.tag,this.map={}}render(n,p){n.openNode(this.tag);let d=Math.floor(9525*p.width),u=Math.floor(9525*p.height);n.addAttribute("cx",d),n.addAttribute("cy",u),n.closeNode()}parseOpen(n){return n.name===this.tag&&(this.model={width:parseInt(n.attributes.cx||"0",10)/9525,height:parseInt(n.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"a:hlinkClick"}render(n,p){p.hyperlinks&&p.hyperlinks.rId&&n.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":p.hyperlinks.rId,tooltip:p.hyperlinks.tooltip})}parseOpen(n){switch(n.name){case this.tag:return this.model={hyperlinks:{rId:n.attributes["r:id"],tooltip:n.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./c-nv-pr-xform"),p=e("./c-nv-pic-pr-xform");r.exports=class extends a{constructor(){super(),this.map={"xdr:cNvPr":new n,"xdr:cNvPicPr":new p}}get tag(){return"xdr:nvPicPr"}render(d,u){d.openNode(this.tag),this.map["xdr:cNvPr"].render(d,u),this.map["xdr:cNvPicPr"].render(d,u),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case this.tag:this.reset();break;default:this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)}return!0}parseText(){}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.parser=void 0),!0;switch(d){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,r,i){"use strict";let a=e("./base-cell-anchor-xform"),n=e("../static-xform"),p=e("./cell-position-xform"),d=e("./ext-xform"),u=e("./pic-xform");r.exports=class extends a{constructor(){super(),this.map={"xdr:from":new p({tag:"xdr:from"}),"xdr:ext":new d({tag:"xdr:ext"}),"xdr:pic":new u,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(x,_){this.map["xdr:pic"].prepare(x.picture,_)}render(x,_){x.openNode(this.tag,{editAs:_.range.editAs||"oneCell"}),this.map["xdr:from"].render(x,_.range.tl),this.map["xdr:ext"].render(x,_.range.ext),this.map["xdr:pic"].render(x,_.picture),this.map["xdr:clientData"].render(x,{}),x.closeNode()}parseClose(x){if(this.parser)return this.parser.parseClose(x)||(this.parser=void 0),!0;switch(x){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(x,_){x.medium=this.reconcilePicture(x.picture,_)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("../static-xform"),p=e("./blip-fill-xform"),d=e("./nv-pic-pr-xform"),u=e("./sp-pr");r.exports=class extends a{constructor(){super(),this.map={"xdr:nvPicPr":new d,"xdr:blipFill":new p,"xdr:spPr":new n(u)}}get tag(){return"xdr:pic"}prepare(x,_){x.index=_.index+1}render(x,_){x.openNode(this.tag),this.map["xdr:nvPicPr"].render(x,_),this.map["xdr:blipFill"].render(x,_),this.map["xdr:spPr"].render(x,_),x.closeNode()}parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;switch(x.name){case this.tag:this.reset();break;default:this.parser=this.map[x.name],this.parser&&this.parser.parseOpen(x)}return!0}parseText(){}parseClose(x){if(this.parser)return this.parser.parseClose(x)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(x){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,r,i){"use strict";r.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,r,i){"use strict";let a=e("./base-cell-anchor-xform"),n=e("../static-xform"),p=e("./cell-position-xform"),d=e("./pic-xform");r.exports=class extends a{constructor(){super(),this.map={"xdr:from":new p({tag:"xdr:from"}),"xdr:to":new p({tag:"xdr:to"}),"xdr:pic":new d,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(u,x){this.map["xdr:pic"].prepare(u.picture,x)}render(u,x){u.openNode(this.tag,{editAs:x.range.editAs||"oneCell"}),this.map["xdr:from"].render(u,x.range.tl),this.map["xdr:to"].render(u,x.range.br),this.map["xdr:pic"].render(u,x.picture),this.map["xdr:clientData"].render(u,{}),u.closeNode()}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(u,x){u.medium=this.reconcilePicture(u.picture,x)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,r,i){"use strict";let a=e("./base-xform");r.exports=class extends a{constructor(n){super(),this.tag=n.tag,this.always=!!n.always,this.count=n.count,this.empty=n.empty,this.$count=n.$count||"count",this.$=n.$,this.childXform=n.childXform,this.maxItems=n.maxItems}prepare(n,p){let{childXform:d}=this;n&&n.forEach((u,x)=>{p.index=x,d.prepare(u,p)})}render(n,p){if(this.always||p&&p.length){n.openNode(this.tag,this.$),this.count&&n.addAttribute(this.$count,p&&p.length||0);let{childXform:d}=this;(p||[]).forEach((u,x)=>{d.render(n,u,x)}),n.closeNode()}else this.empty&&n.leafNode(this.tag)}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(n)&&(this.parser=this.childXform,!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(n,p){if(n){let{childXform:d}=this;n.forEach(u=>{d.reconcile(u,p)})}}}},{"./base-xform":32}],72:[function(e,r,i){"use strict";let a=e("../../../utils/col-cache"),n=e("../base-xform");r.exports=class extends n{get tag(){return"autoFilter"}render(p,d){if(d)if(typeof d=="string")p.leafNode("autoFilter",{ref:d});else{let u=function(v){return typeof v=="string"?v:a.getAddress(v.row,v.column).address},x=u(d.from),_=u(d.to);x&&_&&p.leafNode("autoFilter",{ref:`${x}:${_}`})}}parseOpen(p){p.name==="autoFilter"&&(this.model=p.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,r,i){"use strict";let a=e("../../../utils/utils"),n=e("../base-xform"),p=e("../../../doc/range"),d=e("../../../doc/enums"),u=e("../strings/rich-text-xform");function x(_){if(_==null)return d.ValueType.Null;if(_ instanceof String||typeof _=="string")return d.ValueType.String;if(typeof _=="number")return d.ValueType.Number;if(typeof _=="boolean")return d.ValueType.Boolean;if(_ instanceof Date)return d.ValueType.Date;if(_.text&&_.hyperlink)return d.ValueType.Hyperlink;if(_.formula)return d.ValueType.Formula;if(_.error)return d.ValueType.Error;throw new Error("I could not understand type of value")}r.exports=class extends n{constructor(){super(),this.richTextXForm=new u}get tag(){return"c"}prepare(_,v){let C=v.styles.addStyleModel(_.style||{},function(S){switch(S.type){case d.ValueType.Formula:return x(S.result);default:return S.type}}(_));switch(C&&(_.styleId=C),_.comment&&v.comments.push(Le(ae({},_.comment),{ref:_.address})),_.type){case d.ValueType.String:case d.ValueType.RichText:v.sharedStrings&&(_.ssId=v.sharedStrings.add(_.value));break;case d.ValueType.Date:v.date1904&&(_.date1904=!0);break;case d.ValueType.Hyperlink:v.sharedStrings&&_.text!==void 0&&_.text!==null&&(_.ssId=v.sharedStrings.add(_.text)),v.hyperlinks.push({address:_.address,target:_.hyperlink,tooltip:_.tooltip});break;case d.ValueType.Merge:v.merges.add(_);break;case d.ValueType.Formula:if(v.date1904&&(_.date1904=!0),_.shareType==="shared"&&(_.si=v.siFormulae++),_.formula)v.formulae[_.address]=_;else if(_.sharedFormula){let S=v.formulae[_.sharedFormula];if(!S)throw new Error("Shared Formula master must exist above and or left of clone for cell "+_.address);S.si===void 0?(S.shareType="shared",S.si=v.siFormulae++,S.range=new p(S.address,_.address)):S.range&&S.range.expandToAddress(_.address),_.si=S.si}}}renderFormula(_,v){let C=null;switch(v.shareType){case"shared":C={t:"shared",ref:v.ref||v.range.range,si:v.si};break;case"array":C={t:"array",ref:v.ref};break;default:v.si!==void 0&&(C={t:"shared",si:v.si})}switch(x(v.result)){case d.ValueType.Null:_.leafNode("f",C,v.formula);break;case d.ValueType.String:_.addAttribute("t","str"),_.leafNode("f",C,v.formula),_.leafNode("v",null,v.result);break;case d.ValueType.Number:_.leafNode("f",C,v.formula),_.leafNode("v",null,v.result);break;case d.ValueType.Boolean:_.addAttribute("t","b"),_.leafNode("f",C,v.formula),_.leafNode("v",null,v.result?1:0);break;case d.ValueType.Error:_.addAttribute("t","e"),_.leafNode("f",C,v.formula),_.leafNode("v",null,v.result.error);break;case d.ValueType.Date:_.leafNode("f",C,v.formula),_.leafNode("v",null,a.dateToExcel(v.result,v.date1904));break;default:throw new Error("I could not understand type of value")}}render(_,v){if(v.type!==d.ValueType.Null||v.styleId){switch(_.openNode("c"),_.addAttribute("r",v.address),v.styleId&&_.addAttribute("s",v.styleId),v.type){case d.ValueType.Null:break;case d.ValueType.Number:_.leafNode("v",null,v.value);break;case d.ValueType.Boolean:_.addAttribute("t","b"),_.leafNode("v",null,v.value?"1":"0");break;case d.ValueType.Error:_.addAttribute("t","e"),_.leafNode("v",null,v.value.error);break;case d.ValueType.String:case d.ValueType.RichText:v.ssId!==void 0?(_.addAttribute("t","s"),_.leafNode("v",null,v.ssId)):v.value&&v.value.richText?(_.addAttribute("t","inlineStr"),_.openNode("is"),v.value.richText.forEach(C=>{this.richTextXForm.render(_,C)}),_.closeNode("is")):(_.addAttribute("t","str"),_.leafNode("v",null,v.value));break;case d.ValueType.Date:_.leafNode("v",null,a.dateToExcel(v.value,v.date1904));break;case d.ValueType.Hyperlink:v.ssId!==void 0?(_.addAttribute("t","s"),_.leafNode("v",null,v.ssId)):(_.addAttribute("t","str"),_.leafNode("v",null,v.text));break;case d.ValueType.Formula:this.renderFormula(_,v);break;case d.ValueType.Merge:}_.closeNode()}}parseOpen(_){if(this.parser)return this.parser.parseOpen(_),!0;switch(_.name){case"c":return this.model={address:_.attributes.r},this.t=_.attributes.t,_.attributes.s&&(this.model.styleId=parseInt(_.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=_.attributes.si,this.model.shareType=_.attributes.t,this.model.ref=_.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(_),!0;default:return!1}}parseText(_){if(this.parser)this.parser.parseText(_);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+_:_;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+_:_:this.model.value=this.model.value?this.model.value+_:_}}parseClose(_){switch(_){case"c":{let{model:v}=this;if(v.formula||v.shareType)v.type=d.ValueType.Formula,v.value&&(this.t==="str"?v.result=a.xmlDecode(v.value):this.t==="b"?v.result=parseInt(v.value,10)!==0:this.t==="e"?v.result={error:v.value}:v.result=parseFloat(v.value),v.value=void 0);else if(v.value!==void 0)switch(this.t){case"s":v.type=d.ValueType.String,v.value=parseInt(v.value,10);break;case"str":v.type=d.ValueType.String,v.value=a.xmlDecode(v.value);break;case"inlineStr":v.type=d.ValueType.String;break;case"b":v.type=d.ValueType.Boolean,v.value=parseInt(v.value,10)!==0;break;case"e":v.type=d.ValueType.Error,v.value={error:v.value};break;default:v.type=d.ValueType.Number,v.value=parseFloat(v.value)}else v.styleId?v.type=d.ValueType.Null:v.type=d.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(_),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(_),!0)}}reconcile(_,v){let C=_.styleId&&v.styles&&v.styles.getStyleModel(_.styleId);switch(C&&(_.style=C),_.styleId!==void 0&&(_.styleId=void 0),_.type){case d.ValueType.String:typeof _.value=="number"&&v.sharedStrings&&(_.value=v.sharedStrings.getString(_.value)),_.value.richText&&(_.type=d.ValueType.RichText);break;case d.ValueType.Number:C&&a.isDateFmt(C.numFmt)&&(_.type=d.ValueType.Date,_.value=a.excelToDate(_.value,v.date1904));break;case d.ValueType.Formula:_.result!==void 0&&C&&a.isDateFmt(C.numFmt)&&(_.result=a.excelToDate(_.result,v.date1904)),_.shareType==="shared"&&(_.ref?v.formulae[_.si]=_.address:(_.sharedFormula=v.formulae[_.si],delete _.shareType),delete _.si)}let S=v.hyperlinkMap[_.address];S&&(_.type===d.ValueType.Formula?(_.text=_.result,_.result=void 0):(_.text=_.value,_.value=void 0),_.type=d.ValueType.Hyperlink,_.hyperlink=S);let E=v.commentsMap&&v.commentsMap[_.address];E&&(_.comment=E)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,r,i){"use strict";let a=e("../../base-xform");r.exports=class extends a{get tag(){return"x14:cfIcon"}render(n,p){n.leafNode(this.tag,{iconSet:p.iconSet,iconId:p.iconId})}parseOpen(n){let{attributes:p}=n;this.model={iconSet:p.iconSet,iconId:a.toIntValue(p.iconId)}}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],75:[function(e,r,i){"use strict";let{v4:a}=e("uuid"),n=e("../../base-xform"),p=e("../../composite-xform"),d=e("./databar-ext-xform"),u=e("./icon-set-ext-xform"),x={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class _ extends p{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new d,"x14:iconSet":this.iconSetXform=new u}}get tag(){return"x14:cfRule"}static isExt(C){return C.type==="dataBar"?d.isExt(C):!(C.type!=="iconSet"||!C.custom&&!x[C.iconSet])}prepare(C){_.isExt(C)&&(C.x14Id=`{${a()}}`.toUpperCase())}render(C,S){if(_.isExt(S))switch(S.type){case"dataBar":this.renderDataBar(C,S);break;case"iconSet":this.renderIconSet(C,S)}}renderDataBar(C,S){C.openNode(this.tag,{type:"dataBar",id:S.x14Id}),this.databarXform.render(C,S),C.closeNode()}renderIconSet(C,S){C.openNode(this.tag,{type:"iconSet",priority:S.priority,id:S.x14Id||`{${a()}}`}),this.iconSetXform.render(C,S),C.closeNode()}createNewModel(C){let{attributes:S}=C;return{type:S.type,x14Id:S.id,priority:n.toIntValue(S.priority)}}onParserClose(C,S){Object.assign(this.model,S.model)}}r.exports=_},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,r,i){"use strict";let a=e("../../composite-xform"),n=e("./f-ext-xform");r.exports=class extends a{constructor(){super(),this.map={"xm:f":this.fExtXform=new n}}get tag(){return"x14:cfvo"}render(p,d){p.openNode(this.tag,{type:d.type}),d.value!==void 0&&this.fExtXform.render(p,d.value),p.closeNode()}createNewModel(p){return{type:p.attributes.type}}onParserClose(p,d){switch(p){case"xm:f":this.model.value=d.model?parseFloat(d.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,r,i){"use strict";let a=e("../../composite-xform"),n=e("./sqref-ext-xform"),p=e("./cf-rule-ext-xform");r.exports=class extends a{constructor(){super(),this.map={"xm:sqref":this.sqRef=new n,"x14:cfRule":this.cfRule=new p}}get tag(){return"x14:conditionalFormatting"}prepare(d,u){d.rules.forEach(x=>{this.cfRule.prepare(x,u)})}render(d,u){u.rules.some(p.isExt)&&(d.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),u.rules.filter(p.isExt).forEach(x=>this.cfRule.render(d,x)),this.sqRef.render(d,u.ref),d.closeNode())}createNewModel(){return{rules:[]}}onParserClose(d,u){switch(d){case"xm:sqref":this.model.ref=u.model;break;case"x14:cfRule":this.model.rules.push(u.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,r,i){"use strict";let a=e("../../composite-xform"),n=e("./cf-rule-ext-xform"),p=e("./conditional-formatting-ext-xform");r.exports=class extends a{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new p}}get tag(){return"x14:conditionalFormattings"}hasContent(d){return d.hasExtContent===void 0&&(d.hasExtContent=d.some(u=>u.rules.some(n.isExt))),d.hasExtContent}prepare(d,u){d.forEach(x=>{this.cfXform.prepare(x,u)})}render(d,u){this.hasContent(u)&&(d.openNode(this.tag),u.forEach(x=>this.cfXform.render(d,x)),d.closeNode())}createNewModel(){return[]}onParserClose(d,u){this.model.push(u.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,r,i){"use strict";let a=e("../../base-xform"),n=e("../../composite-xform"),p=e("../../style/color-xform"),d=e("./cfvo-ext-xform");r.exports=class extends n{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new d,"x14:borderColor":this.borderColorXform=new p("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new p("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new p("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new p("x14:axisColor")}}static isExt(u){return!u.gradient}get tag(){return"x14:dataBar"}render(u,x){u.openNode(this.tag,{minLength:a.toIntAttribute(x.minLength,0,!0),maxLength:a.toIntAttribute(x.maxLength,100,!0),border:a.toBoolAttribute(x.border,!1),gradient:a.toBoolAttribute(x.gradient,!0),negativeBarColorSameAsPositive:a.toBoolAttribute(x.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:a.toBoolAttribute(x.negativeBarBorderColorSameAsPositive,!0),axisPosition:a.toAttribute(x.axisPosition,"auto"),direction:a.toAttribute(x.direction,"leftToRight")}),x.cfvo.forEach(_=>{this.cfvoXform.render(u,_)}),this.borderColorXform.render(u,x.borderColor),this.negativeBorderColorXform.render(u,x.negativeBorderColor),this.negativeFillColorXform.render(u,x.negativeFillColor),this.axisColorXform.render(u,x.axisColor),u.closeNode()}createNewModel(u){let{attributes:x}=u;return{cfvo:[],minLength:a.toIntValue(x.minLength,0),maxLength:a.toIntValue(x.maxLength,100),border:a.toBoolValue(x.border,!1),gradient:a.toBoolValue(x.gradient,!0),negativeBarColorSameAsPositive:a.toBoolValue(x.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:a.toBoolValue(x.negativeBarBorderColorSameAsPositive,!0),axisPosition:a.toStringValue(x.axisPosition,"auto"),direction:a.toStringValue(x.direction,"leftToRight")}}onParserClose(u,x){let[,_]=u.split(":");switch(_){case"cfvo":this.model.cfvo.push(x.model);break;default:this.model[_]=x.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,r,i){"use strict";let a=e("../../base-xform");r.exports=class extends a{get tag(){return"xm:f"}render(n,p){n.leafNode(this.tag,null,p)}parseOpen(){this.model=""}parseText(n){this.model+=n}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],81:[function(e,r,i){"use strict";let a=e("../../base-xform"),n=e("../../composite-xform"),p=e("./cfvo-ext-xform"),d=e("./cf-icon-ext-xform");r.exports=class extends n{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new p,"x14:cfIcon":this.cfIconXform=new d}}get tag(){return"x14:iconSet"}render(u,x){u.openNode(this.tag,{iconSet:a.toStringAttribute(x.iconSet),reverse:a.toBoolAttribute(x.reverse,!1),showValue:a.toBoolAttribute(x.showValue,!0),custom:a.toBoolAttribute(x.icons,!1)}),x.cfvo.forEach(_=>{this.cfvoXform.render(u,_)}),x.icons&&x.icons.forEach((_,v)=>{_.iconId=v,this.cfIconXform.render(u,_)}),u.closeNode()}createNewModel(u){let{attributes:x}=u;return{cfvo:[],iconSet:a.toStringValue(x.iconSet,"3TrafficLights"),reverse:a.toBoolValue(x.reverse,!1),showValue:a.toBoolValue(x.showValue,!0)}}onParserClose(u,x){let[,_]=u.split(":");switch(_){case"cfvo":this.model.cfvo.push(x.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(x.model);break;default:this.model[_]=x.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,r,i){"use strict";let a=e("../../base-xform");r.exports=class extends a{get tag(){return"xm:sqref"}render(n,p){n.leafNode(this.tag,null,p)}parseOpen(){this.model=""}parseText(n){this.model+=n}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],83:[function(e,r,i){"use strict";let a=e("../../base-xform"),n=e("../../composite-xform"),p=e("../../../../doc/range"),d=e("./databar-xform"),u=e("./ext-lst-ref-xform"),x=e("./formula-xform"),_=e("./color-scale-xform"),v=e("./icon-set-xform"),C={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},S=w=>{let{type:I,operator:T}=w;switch(I){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:I};default:return{type:I,operator:T}}};class E extends n{constructor(){super(),this.map={dataBar:this.databarXform=new d,extLst:this.extLstRefXform=new u,formula:this.formulaXform=new x,colorScale:this.colorScaleXform=new _,iconSet:this.iconSetXform=new v}}get tag(){return"cfRule"}static isPrimitive(I){return I.type!=="iconSet"||!I.custom&&!C[I.iconSet]}render(I,T){switch(T.type){case"expression":this.renderExpression(I,T);break;case"cellIs":this.renderCellIs(I,T);break;case"top10":this.renderTop10(I,T);break;case"aboveAverage":this.renderAboveAverage(I,T);break;case"dataBar":this.renderDataBar(I,T);break;case"colorScale":this.renderColorScale(I,T);break;case"iconSet":this.renderIconSet(I,T);break;case"containsText":this.renderText(I,T);break;case"timePeriod":this.renderTimePeriod(I,T)}}renderExpression(I,T){I.openNode(this.tag,{type:"expression",dxfId:T.dxfId,priority:T.priority}),this.formulaXform.render(I,T.formulae[0]),I.closeNode()}renderCellIs(I,T){I.openNode(this.tag,{type:"cellIs",dxfId:T.dxfId,priority:T.priority,operator:T.operator}),T.formulae.forEach(A=>{this.formulaXform.render(I,A)}),I.closeNode()}renderTop10(I,T){I.leafNode(this.tag,{type:"top10",dxfId:T.dxfId,priority:T.priority,percent:a.toBoolAttribute(T.percent,!1),bottom:a.toBoolAttribute(T.bottom,!1),rank:a.toIntValue(T.rank,10,!0)})}renderAboveAverage(I,T){I.leafNode(this.tag,{type:"aboveAverage",dxfId:T.dxfId,priority:T.priority,aboveAverage:a.toBoolAttribute(T.aboveAverage,!0)})}renderDataBar(I,T){I.openNode(this.tag,{type:"dataBar",priority:T.priority}),this.databarXform.render(I,T),this.extLstRefXform.render(I,T),I.closeNode()}renderColorScale(I,T){I.openNode(this.tag,{type:"colorScale",priority:T.priority}),this.colorScaleXform.render(I,T),I.closeNode()}renderIconSet(I,T){E.isPrimitive(T)&&(I.openNode(this.tag,{type:"iconSet",priority:T.priority}),this.iconSetXform.render(I,T),I.closeNode())}renderText(I,T){I.openNode(this.tag,{type:T.operator,dxfId:T.dxfId,priority:T.priority,operator:a.toStringAttribute(T.operator,"containsText")});let A=(V=>{if(V.formulae&&V.formulae[0])return V.formulae[0];let G=new p(V.ref),{tl:J}=G;switch(V.operator){case"containsText":return`NOT(ISERROR(SEARCH("${V.text}",${J})))`;case"containsBlanks":return`LEN(TRIM(${J}))=0`;case"notContainsBlanks":return`LEN(TRIM(${J}))>0`;case"containsErrors":return`ISERROR(${J})`;case"notContainsErrors":return`NOT(ISERROR(${J}))`;default:return}})(T);A&&this.formulaXform.render(I,A),I.closeNode()}renderTimePeriod(I,T){I.openNode(this.tag,{type:"timePeriod",dxfId:T.dxfId,priority:T.priority,timePeriod:T.timePeriod});let A=(V=>{if(V.formulae&&V.formulae[0])return V.formulae[0];let G=new p(V.ref),{tl:J}=G;switch(V.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${J},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${J},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${J},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${J},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${J},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${J},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${J},1)=TODAY()-1`;case"today":return`FLOOR(${J},1)=TODAY()`;case"tomorrow":return`FLOOR(${J},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${J},1)<=6,FLOOR(${J},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${J})=MONTH(EDATE(TODAY(),0-1)),YEAR(${J})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${J})=MONTH(TODAY()),YEAR(${J})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${J})=MONTH(EDATE(TODAY(),0+1)),YEAR(${J})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(T);A&&this.formulaXform.render(I,A),I.closeNode()}createNewModel(I){let{attributes:T}=I;return Le(ae({},S(T)),{dxfId:a.toIntValue(T.dxfId),priority:a.toIntValue(T.priority),timePeriod:T.timePeriod,percent:a.toBoolValue(T.percent),bottom:a.toBoolValue(T.bottom),rank:a.toIntValue(T.rank),aboveAverage:a.toBoolValue(T.aboveAverage)})}onParserClose(I,T){switch(I){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,T.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(T.model)}}}r.exports=E},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,r,i){"use strict";let a=e("../../base-xform");r.exports=class extends a{get tag(){return"cfvo"}render(n,p){n.leafNode(this.tag,{type:p.type,val:p.value})}parseOpen(n){this.model={type:n.attributes.type,value:a.toFloatValue(n.attributes.val)}}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],85:[function(e,r,i){"use strict";let a=e("../../composite-xform"),n=e("../../style/color-xform"),p=e("./cfvo-xform");r.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new p,color:this.colorXform=new n}}get tag(){return"colorScale"}render(d,u){d.openNode(this.tag),u.cfvo.forEach(x=>{this.cfvoXform.render(d,x)}),u.color.forEach(x=>{this.colorXform.render(d,x)}),d.closeNode()}createNewModel(d){return{cfvo:[],color:[]}}onParserClose(d,u){this.model[d].push(u.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,r,i){"use strict";let a=e("../../composite-xform"),n=e("./cf-rule-xform");r.exports=class extends a{constructor(){super(),this.map={cfRule:new n}}get tag(){return"conditionalFormatting"}render(p,d){d.rules.some(n.isPrimitive)&&(p.openNode(this.tag,{sqref:d.ref}),d.rules.forEach(u=>{n.isPrimitive(u)&&(u.ref=d.ref,this.map.cfRule.render(p,u))}),p.closeNode())}createNewModel(p){let{attributes:d}=p;return{ref:d.sqref,rules:[]}}onParserClose(p,d){this.model.rules.push(d.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,r,i){"use strict";let a=e("../../base-xform"),n=e("./conditional-formatting-xform");r.exports=class extends a{constructor(){super(),this.cfXform=new n}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(p,d){let u=p.reduce((x,_)=>Math.max(x,..._.rules.map(v=>v.priority||0)),1);p.forEach(x=>{x.rules.forEach(_=>{_.priority||(_.priority=u++),_.style&&(_.dxfId=d.styles.addDxfStyle(_.style))})})}render(p,d){d.forEach(u=>{this.cfXform.render(p,u)})}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(p),!0;default:return!1}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){return!!this.parser&&(!!this.parser.parseClose(p)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(p,d){p.forEach(u=>{u.rules.forEach(x=>{x.dxfId!==void 0&&(x.style=d.styles.getDxfStyle(x.dxfId),delete x.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,r,i){"use strict";let a=e("../../composite-xform"),n=e("../../style/color-xform"),p=e("./cfvo-xform");r.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new p,color:this.colorXform=new n}}get tag(){return"dataBar"}render(d,u){d.openNode(this.tag),u.cfvo.forEach(x=>{this.cfvoXform.render(d,x)}),this.colorXform.render(d,u.color),d.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(d,u){switch(d){case"cfvo":this.model.cfvo.push(u.model);break;case"color":this.model.color=u.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,r,i){"use strict";let a=e("../../base-xform"),n=e("../../composite-xform");class p extends a{get tag(){return"x14:id"}render(x,_){x.leafNode(this.tag,null,_)}parseOpen(){this.model=""}parseText(x){this.model+=x}parseClose(x){return x!==this.tag}}class d extends n{constructor(){super(),this.map={"x14:id":this.idXform=new p}}get tag(){return"ext"}render(x,_){x.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(x,_.x14Id),x.closeNode()}createNewModel(){return{}}onParserClose(x,_){this.model.x14Id=_.model}}r.exports=class extends n{constructor(){super(),this.map={ext:new d}}get tag(){return"extLst"}render(u,x){u.openNode(this.tag),this.map.ext.render(u,x),u.closeNode()}createNewModel(){return{}}onParserClose(u,x){Object.assign(this.model,x.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,r,i){"use strict";let a=e("../../base-xform");r.exports=class extends a{get tag(){return"formula"}render(n,p){n.leafNode(this.tag,null,p)}parseOpen(){this.model=""}parseText(n){this.model+=n}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],91:[function(e,r,i){"use strict";let a=e("../../base-xform"),n=e("../../composite-xform"),p=e("./cfvo-xform");r.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new p}}get tag(){return"iconSet"}render(d,u){d.openNode(this.tag,{iconSet:a.toStringAttribute(u.iconSet,"3TrafficLights"),reverse:a.toBoolAttribute(u.reverse,!1),showValue:a.toBoolAttribute(u.showValue,!0)}),u.cfvo.forEach(x=>{this.cfvoXform.render(d,x)}),d.closeNode()}createNewModel(d){let{attributes:u}=d;return{iconSet:a.toStringValue(u.iconSet,"3TrafficLights"),reverse:a.toBoolValue(u.reverse),showValue:a.toBoolValue(u.showValue),cfvo:[]}}onParserClose(d,u){this.model[d].push(u.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,r,i){"use strict";let a=e("../../../utils/utils"),n=e("../base-xform");r.exports=class extends n{get tag(){return"col"}prepare(p,d){let u=d.styles.addStyleModel(p.style||{});u&&(p.styleId=u)}render(p,d){p.openNode("col"),p.addAttribute("min",d.min),p.addAttribute("max",d.max),d.width&&p.addAttribute("width",d.width),d.styleId&&p.addAttribute("style",d.styleId),d.hidden&&p.addAttribute("hidden","1"),d.bestFit&&p.addAttribute("bestFit","1"),d.outlineLevel&&p.addAttribute("outlineLevel",d.outlineLevel),d.collapsed&&p.addAttribute("collapsed","1"),p.addAttribute("customWidth","1"),p.closeNode()}parseOpen(p){if(p.name==="col"){let d=this.model={min:parseInt(p.attributes.min||"0",10),max:parseInt(p.attributes.max||"0",10),width:p.attributes.width===void 0?void 0:parseFloat(p.attributes.width||"0")};return p.attributes.style&&(d.styleId=parseInt(p.attributes.style,10)),a.parseBoolean(p.attributes.hidden)&&(d.hidden=!0),a.parseBoolean(p.attributes.bestFit)&&(d.bestFit=!0),p.attributes.outlineLevel&&(d.outlineLevel=parseInt(p.attributes.outlineLevel,10)),a.parseBoolean(p.attributes.collapsed)&&(d.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(p,d){p.styleId&&(p.style=d.styles.getStyleModel(p.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../../../utils/utils"),p=e("../../../utils/col-cache"),d=e("../base-xform"),u=e("../../../doc/range");function x(v,C,S,E){let w=C[S];w!==void 0?v[S]=w:E!==void 0&&(v[S]=E)}function _(v,C,S,E){let w=C[S];w!==void 0?v[S]=n.parseBoolean(w):E!==void 0&&(v[S]=E)}r.exports=class extends d{get tag(){return"dataValidations"}render(v,C){let S=function(E){let w=a.map(E,(A,V)=>({address:V,dataValidation:A,marked:!1})).sort((A,V)=>a.strcmp(A.address,V.address)),I=a.keyBy(w,"address"),T=(A,V,G)=>{for(let J=0;J{if(!A.marked){let V=p.decodeEx(A.address);if(V.dimensions)return I[V.dimensions].marked=!0,Le(ae({},A.dataValidation),{sqref:A.address});let G=1,J=p.encodeAddress(V.row+G,V.col);for(;E[J]&&a.isEqual(A.dataValidation,E[J]);)G++,J=p.encodeAddress(V.row+G,V.col);let at=1;for(;T(V,G,V.col+at);)at++;for(let X=0;X1||at>1){let X=V.row+(G-1),nt=V.col+(at-1);return Le(ae({},A.dataValidation),{sqref:`${A.address}:${p.encodeAddress(X,nt)}`})}return Le(ae({},A.dataValidation),{sqref:A.address})}return null}).filter(Boolean)}(C);S.length&&(v.openNode("dataValidations",{count:S.length}),S.forEach(E=>{v.openNode("dataValidation"),E.type!=="any"&&(v.addAttribute("type",E.type),E.operator&&E.type!=="list"&&E.operator!=="between"&&v.addAttribute("operator",E.operator),E.allowBlank&&v.addAttribute("allowBlank","1")),E.showInputMessage&&v.addAttribute("showInputMessage","1"),E.promptTitle&&v.addAttribute("promptTitle",E.promptTitle),E.prompt&&v.addAttribute("prompt",E.prompt),E.showErrorMessage&&v.addAttribute("showErrorMessage","1"),E.errorStyle&&v.addAttribute("errorStyle",E.errorStyle),E.errorTitle&&v.addAttribute("errorTitle",E.errorTitle),E.error&&v.addAttribute("error",E.error),v.addAttribute("sqref",E.sqref),(E.formulae||[]).forEach((w,I)=>{v.openNode("formula"+(I+1)),E.type==="date"?v.writeText(n.dateToExcel(new Date(w))):v.writeText(w),v.closeNode()}),v.closeNode()}),v.closeNode())}parseOpen(v){switch(v.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=v.attributes.sqref;let C={type:v.attributes.type||"any",formulae:[]};switch(v.attributes.type&&_(C,v.attributes,"allowBlank"),_(C,v.attributes,"showInputMessage"),_(C,v.attributes,"showErrorMessage"),C.type){case"any":case"list":case"custom":break;default:x(C,v.attributes,"operator","between")}return x(C,v.attributes,"promptTitle"),x(C,v.attributes,"prompt"),x(C,v.attributes,"errorStyle"),x(C,v.attributes,"errorTitle"),x(C,v.attributes,"error"),this._dataValidation=C,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(v){this._formula&&this._formula.push(v)}parseClose(v){switch(v){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(C=>{C.includes(":")?new u(C).forEachAddress(S=>{this.model[S]=this._dataValidation}):this.model[C]=this._dataValidation}),!0;case"formula1":case"formula2":{let C=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":C=parseInt(C,10);break;case"decimal":C=parseFloat(C);break;case"date":C=n.excelToDate(parseFloat(C))}return this._dataValidation.formulae.push(C),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"dimension"}render(n,p){p&&n.leafNode("dimension",{ref:p})}parseOpen(n){return n.name==="dimension"&&(this.model=n.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"drawing"}render(n,p){p&&n.leafNode(this.tag,{"r:id":p.rId})}parseOpen(n){switch(n.name){case this.tag:return this.model={rId:n.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,r,i){"use strict";let a=e("../composite-xform"),n=e("./cf-ext/conditional-formattings-ext-xform");class p extends a{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new n}}get tag(){return"ext"}hasContent(u){return this.conditionalFormattings.hasContent(u.conditionalFormattings)}prepare(u,x){this.conditionalFormattings.prepare(u.conditionalFormattings,x)}render(u,x){u.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(u,x.conditionalFormattings),u.closeNode()}createNewModel(){return{}}onParserClose(u,x){this.model[u]=x.model}}r.exports=class extends a{constructor(){super(),this.map={ext:this.ext=new p}}get tag(){return"extLst"}prepare(d,u){this.ext.prepare(d,u)}hasContent(d){return this.ext.hasContent(d)}render(d,u){this.hasContent(u)&&(d.openNode("extLst"),this.ext.render(d,u),d.closeNode())}createNewModel(){return{}}onParserClose(d,u){Object.assign(this.model,u.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"headerFooter"}render(n,p){if(p){n.addRollback();let d=!1;n.openNode("headerFooter"),p.differentFirst&&(n.addAttribute("differentFirst","1"),d=!0),p.differentOddEven&&(n.addAttribute("differentOddEven","1"),d=!0),p.oddHeader&&typeof p.oddHeader=="string"&&(n.leafNode("oddHeader",null,p.oddHeader),d=!0),p.oddFooter&&typeof p.oddFooter=="string"&&(n.leafNode("oddFooter",null,p.oddFooter),d=!0),p.evenHeader&&typeof p.evenHeader=="string"&&(n.leafNode("evenHeader",null,p.evenHeader),d=!0),p.evenFooter&&typeof p.evenFooter=="string"&&(n.leafNode("evenFooter",null,p.evenFooter),d=!0),p.firstHeader&&typeof p.firstHeader=="string"&&(n.leafNode("firstHeader",null,p.firstHeader),d=!0),p.firstFooter&&typeof p.firstFooter=="string"&&(n.leafNode("firstFooter",null,p.firstFooter),d=!0),d?(n.closeNode(),n.commit()):n.rollback()}}parseOpen(n){switch(n.name){case"headerFooter":return this.model={},n.attributes.differentFirst&&(this.model.differentFirst=parseInt(n.attributes.differentFirst,0)===1),n.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(n.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(n){switch(this.currentNode){case"oddHeader":this.model.oddHeader=n;break;case"oddFooter":this.model.oddFooter=n;break;case"evenHeader":this.model.evenHeader=n;break;case"evenFooter":this.model.evenFooter=n;break;case"firstHeader":this.model.firstHeader=n;break;case"firstFooter":this.model.firstFooter=n}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"hyperlink"}render(n,p){this.isInternalLink(p)?n.leafNode("hyperlink",{ref:p.address,"r:id":p.rId,tooltip:p.tooltip,location:p.target}):n.leafNode("hyperlink",{ref:p.address,"r:id":p.rId,tooltip:p.tooltip})}parseOpen(n){return n.name==="hyperlink"&&(this.model={address:n.attributes.ref,rId:n.attributes["r:id"],tooltip:n.attributes.tooltip},n.attributes.location&&(this.model.target=n.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(n){return n.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(n.target)}}},{"../base-xform":32}],99:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"mergeCell"}render(n,p){n.leafNode("mergeCell",{ref:p})}parseOpen(n){return n.name==="mergeCell"&&(this.model=n.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../../../doc/range"),p=e("../../../utils/col-cache"),d=e("../../../doc/enums");r.exports=class{constructor(){this.merges={}}add(u){if(this.merges[u.master])this.merges[u.master].expandToAddress(u.address);else{let x=`${u.master}:${u.address}`;this.merges[u.master]=new n(x)}}get mergeCells(){return a.map(this.merges,u=>u.range)}reconcile(u,x){a.each(u,_=>{let v=p.decode(_);for(let C=v.top;C<=v.bottom;C++){let S=x[C-1];for(let E=v.left;E<=v.right;E++){let w=S.cells[E-1];w?w.type===d.ValueType.Merge&&(w.master=v.tl):S.cells[E]={type:d.ValueType.Null,address:p.encodeAddress(C,E)}}}})}getMasterAddress(u){let x=this.hash[u];return x&&x.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,r,i){"use strict";let a=e("../base-xform"),n=p=>p!==void 0;r.exports=class extends a{get tag(){return"outlinePr"}render(p,d){return!(!d||!n(d.summaryBelow)&&!n(d.summaryRight))&&(p.leafNode(this.tag,{summaryBelow:n(d.summaryBelow)?Number(d.summaryBelow):void 0,summaryRight:n(d.summaryRight)?Number(d.summaryRight):void 0}),!0)}parseOpen(p){return p.name===this.tag&&(this.model={summaryBelow:n(p.attributes.summaryBelow)?!!Number(p.attributes.summaryBelow):void 0,summaryRight:n(p.attributes.summaryRight)?!!Number(p.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"brk"}render(n,p){n.leafNode("brk",p)}parseOpen(n){return n.name==="brk"&&(this.model=n.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../base-xform");r.exports=class extends n{get tag(){return"pageMargins"}render(p,d){if(d){let u={left:d.left,right:d.right,top:d.top,bottom:d.bottom,header:d.header,footer:d.footer};a.some(u,x=>x!==void 0)&&p.leafNode(this.tag,u)}}parseOpen(p){switch(p.name){case this.tag:return this.model={left:parseFloat(p.attributes.left||.7),right:parseFloat(p.attributes.right||.7),top:parseFloat(p.attributes.top||.75),bottom:parseFloat(p.attributes.bottom||.75),header:parseFloat(p.attributes.header||.3),footer:parseFloat(p.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"pageSetUpPr"}render(n,p){return!(!p||!p.fitToPage)&&(n.leafNode(this.tag,{fitToPage:p.fitToPage?"1":void 0}),!0)}parseOpen(n){return n.name===this.tag&&(this.model={fitToPage:n.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../base-xform");function p(_){return _?"1":void 0}function d(_){switch(_){case"overThenDown":return _;default:return}}function u(_){switch(_){case"atEnd":case"asDisplyed":return _;default:return}}function x(_){switch(_){case"dash":case"blank":case"NA":return _;default:return}}r.exports=class extends n{get tag(){return"pageSetup"}render(_,v){if(v){let C={paperSize:v.paperSize,orientation:v.orientation,horizontalDpi:v.horizontalDpi,verticalDpi:v.verticalDpi,pageOrder:d(v.pageOrder),blackAndWhite:p(v.blackAndWhite),draft:p(v.draft),cellComments:u(v.cellComments),errors:x(v.errors),scale:v.scale,fitToWidth:v.fitToWidth,fitToHeight:v.fitToHeight,firstPageNumber:v.firstPageNumber,useFirstPageNumber:p(v.firstPageNumber),usePrinterDefaults:p(v.usePrinterDefaults),copies:v.copies};a.some(C,S=>S!==void 0)&&_.leafNode(this.tag,C)}}parseOpen(_){switch(_.name){case this.tag:return this.model={paperSize:(v=_.attributes.paperSize,v!==void 0?parseInt(v,10):void 0),orientation:_.attributes.orientation||"portrait",horizontalDpi:parseInt(_.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(_.attributes.verticalDpi||"4294967295",10),pageOrder:_.attributes.pageOrder||"downThenOver",blackAndWhite:_.attributes.blackAndWhite==="1",draft:_.attributes.draft==="1",cellComments:_.attributes.cellComments||"None",errors:_.attributes.errors||"displayed",scale:parseInt(_.attributes.scale||"100",10),fitToWidth:parseInt(_.attributes.fitToWidth||"1",10),fitToHeight:parseInt(_.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(_.attributes.firstPageNumber||"1",10),useFirstPageNumber:_.attributes.useFirstPageNumber==="1",usePrinterDefaults:_.attributes.usePrinterDefaults==="1",copies:parseInt(_.attributes.copies||"1",10)},!0;default:return!1}var v}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"picture"}render(n,p){p&&n.leafNode(this.tag,{"r:id":p.rId})}parseOpen(n){switch(n.name){case this.tag:return this.model={rId:n.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../base-xform");function p(d){return d?"1":void 0}r.exports=class extends n{get tag(){return"printOptions"}render(d,u){if(u){let x={headings:p(u.showRowColHeaders),gridLines:p(u.showGridLines),horizontalCentered:p(u.horizontalCentered),verticalCentered:p(u.verticalCentered)};a.some(x,_=>_!==void 0)&&d.leafNode(this.tag,x)}}parseOpen(d){switch(d.name){case this.tag:return this.model={showRowColHeaders:d.attributes.headings==="1",showGridLines:d.attributes.gridLines==="1",horizontalCentered:d.attributes.horizontalCentered==="1",verticalCentered:d.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,r,i){"use strict";let a=e("./page-breaks-xform"),n=e("../list-xform");r.exports=class extends n{constructor(){super({tag:"rowBreaks",count:!0,childXform:new a})}render(p,d){if(d&&d.length){p.openNode(this.tag,this.$),this.count&&(p.addAttribute(this.$count,d.length),p.addAttribute("manualBreakCount",d.length));let{childXform:u}=this;d.forEach(x=>{u.render(p,x)}),p.closeNode()}else this.empty&&p.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("../../../utils/utils"),p=e("./cell-xform");r.exports=class extends a{constructor(d){super(),this.maxItems=d&&d.maxItems,this.map={c:new p}}get tag(){return"row"}prepare(d,u){let x=u.styles.addStyleModel(d.style);x&&(d.styleId=x);let _=this.map.c;d.cells.forEach(v=>{_.prepare(v,u)})}render(d,u,x){d.openNode("row"),d.addAttribute("r",u.number),u.height&&(d.addAttribute("ht",u.height),d.addAttribute("customHeight","1")),u.hidden&&d.addAttribute("hidden","1"),u.min>0&&u.max>0&&u.min<=u.max&&d.addAttribute("spans",`${u.min}:${u.max}`),u.styleId&&(d.addAttribute("s",u.styleId),d.addAttribute("customFormat","1")),d.addAttribute("x14ac:dyDescent","0.25"),u.outlineLevel&&d.addAttribute("outlineLevel",u.outlineLevel),u.collapsed&&d.addAttribute("collapsed","1");let _=this.map.c;u.cells.forEach(v=>{_.render(d,v,x)}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;if(d.name==="row"){this.numRowsSeen+=1;let u=d.attributes.spans?d.attributes.spans.split(":").map(_=>parseInt(_,10)):[void 0,void 0],x=this.model={number:parseInt(d.attributes.r,10),min:u[0],max:u[1],cells:[]};return d.attributes.s&&(x.styleId=parseInt(d.attributes.s,10)),n.parseBoolean(d.attributes.hidden)&&(x.hidden=!0),n.parseBoolean(d.attributes.bestFit)&&(x.bestFit=!0),d.attributes.ht&&(x.height=parseFloat(d.attributes.ht)),d.attributes.outlineLevel&&(x.outlineLevel=parseInt(d.attributes.outlineLevel,10)),n.parseBoolean(d.attributes.collapsed)&&(x.collapsed=!0),!0}return this.parser=this.map[d.name],!!this.parser&&(this.parser.parseOpen(d),!0)}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser){if(!this.parser.parseClose(d)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(d,u){d.style=d.styleId?u.styles.getStyleModel(d.styleId):{},d.styleId!==void 0&&(d.styleId=void 0);let x=this.map.c;d.cells.forEach(_=>{x.reconcile(_,u)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../base-xform");r.exports=class extends n{get tag(){return"sheetFormatPr"}render(p,d){if(d){let u={defaultRowHeight:d.defaultRowHeight,outlineLevelRow:d.outlineLevelRow,outlineLevelCol:d.outlineLevelCol,"x14ac:dyDescent":d.dyDescent};d.defaultColWidth&&(u.defaultColWidth=d.defaultColWidth),d.defaultRowHeight&&d.defaultRowHeight===15||(u.customHeight="1"),a.some(u,x=>x!==void 0)&&p.leafNode("sheetFormatPr",u)}}parseOpen(p){return p.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(p.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(p.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(p.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(p.attributes.outlineLevelCol||"0",10)},p.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(p.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("../style/color-xform"),p=e("./page-setup-properties-xform"),d=e("./outline-properties-xform");r.exports=class extends a{constructor(){super(),this.map={tabColor:new n("tabColor"),pageSetUpPr:new p,outlinePr:new d}}get tag(){return"sheetPr"}render(u,x){if(x){u.addRollback(),u.openNode("sheetPr");let _=!1;_=this.map.tabColor.render(u,x.tabColor)||_,_=this.map.pageSetUpPr.render(u,x.pageSetup)||_,_=this.map.outlinePr.render(u,x.outlineProperties)||_,_?(u.closeNode(),u.commit()):u.rollback()}}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):u.name===this.tag?(this.reset(),!0):!!this.map[u.name]&&(this.parser=this.map[u.name],this.parser.parseOpen(u),!0)}parseText(u){return!!this.parser&&(this.parser.parseText(u),!0)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../base-xform");function p(u,x){return u?x:void 0}function d(u,x){return u===x||void 0}r.exports=class extends n{get tag(){return"sheetProtection"}render(u,x){if(x){let _={sheet:p(x.sheet,"1"),selectLockedCells:x.selectLockedCells===!1?"1":void 0,selectUnlockedCells:x.selectUnlockedCells===!1?"1":void 0,formatCells:p(x.formatCells,"0"),formatColumns:p(x.formatColumns,"0"),formatRows:p(x.formatRows,"0"),insertColumns:p(x.insertColumns,"0"),insertRows:p(x.insertRows,"0"),insertHyperlinks:p(x.insertHyperlinks,"0"),deleteColumns:p(x.deleteColumns,"0"),deleteRows:p(x.deleteRows,"0"),sort:p(x.sort,"0"),autoFilter:p(x.autoFilter,"0"),pivotTables:p(x.pivotTables,"0")};x.sheet&&(_.algorithmName=x.algorithmName,_.hashValue=x.hashValue,_.saltValue=x.saltValue,_.spinCount=x.spinCount,_.objects=p(x.objects===!1,"1"),_.scenarios=p(x.scenarios===!1,"1")),a.some(_,v=>v!==void 0)&&u.leafNode(this.tag,_)}}parseOpen(u){switch(u.name){case this.tag:return this.model={sheet:d(u.attributes.sheet,"1"),objects:u.attributes.objects!=="1"&&void 0,scenarios:u.attributes.scenarios!=="1"&&void 0,selectLockedCells:u.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:u.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:d(u.attributes.formatCells,"0"),formatColumns:d(u.attributes.formatColumns,"0"),formatRows:d(u.attributes.formatRows,"0"),insertColumns:d(u.attributes.insertColumns,"0"),insertRows:d(u.attributes.insertRows,"0"),insertHyperlinks:d(u.attributes.insertHyperlinks,"0"),deleteColumns:d(u.attributes.deleteColumns,"0"),deleteRows:d(u.attributes.deleteRows,"0"),sort:d(u.attributes.sort,"0"),autoFilter:d(u.attributes.autoFilter,"0"),pivotTables:d(u.attributes.pivotTables,"0")},u.attributes.algorithmName&&(this.model.algorithmName=u.attributes.algorithmName,this.model.hashValue=u.attributes.hashValue,this.model.saltValue=u.attributes.saltValue,this.model.spinCount=parseInt(u.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,r,i){"use strict";let a=e("../../../utils/col-cache"),n=e("../base-xform"),p={frozen:"frozen",frozenSplit:"frozen",split:"split"};r.exports=class extends n{get tag(){return"sheetView"}prepare(d){switch(d.state){case"frozen":case"split":break;default:d.state="normal"}}render(d,u){d.openNode("sheetView",{workbookViewId:u.workbookViewId||0});let x=function(E,w,I){I&&d.addAttribute(E,w)},_,v,C,S;switch(x("rightToLeft","1",u.rightToLeft===!0),x("tabSelected","1",u.tabSelected),x("showRuler","0",u.showRuler===!1),x("showRowColHeaders","0",u.showRowColHeaders===!1),x("showGridLines","0",u.showGridLines===!1),x("zoomScale",u.zoomScale,u.zoomScale),x("zoomScaleNormal",u.zoomScaleNormal,u.zoomScaleNormal),x("view",u.style,u.style),u.state){case"frozen":v=u.xSplit||0,C=u.ySplit||0,_=u.topLeftCell||a.getAddress(C+1,v+1).address,S=(u.xSplit&&u.ySplit?"bottomRight":u.xSplit&&"topRight")||"bottomLeft",d.leafNode("pane",{xSplit:u.xSplit||void 0,ySplit:u.ySplit||void 0,topLeftCell:_,activePane:S,state:"frozen"}),d.leafNode("selection",{pane:S,activeCell:u.activeCell,sqref:u.activeCell});break;case"split":u.activePane==="topLeft"&&(u.activePane=void 0),d.leafNode("pane",{xSplit:u.xSplit||void 0,ySplit:u.ySplit||void 0,topLeftCell:u.topLeftCell,activePane:u.activePane}),d.leafNode("selection",{pane:u.activePane,activeCell:u.activeCell,sqref:u.activeCell});break;case"normal":u.activeCell&&d.leafNode("selection",{activeCell:u.activeCell,sqref:u.activeCell})}d.closeNode()}parseOpen(d){switch(d.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(d.attributes.workbookViewId,10),rightToLeft:d.attributes.rightToLeft==="1",tabSelected:d.attributes.tabSelected==="1",showRuler:d.attributes.showRuler!=="0",showRowColHeaders:d.attributes.showRowColHeaders!=="0",showGridLines:d.attributes.showGridLines!=="0",zoomScale:parseInt(d.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(d.attributes.zoomScaleNormal||"100",10),style:d.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(d.attributes.xSplit||"0",10),ySplit:parseInt(d.attributes.ySplit||"0",10),topLeftCell:d.attributes.topLeftCell,activePane:d.attributes.activePane||"topLeft",state:d.attributes.state},!0;case"selection":{let u=d.attributes.pane||"topLeft";return this.selections[u]={pane:u,activeCell:d.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(d){let u,x;switch(d){case"sheetView":return this.sheetView&&this.pane?(u=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:p[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(u.activePane=this.pane.activePane),x=this.selections[this.pane.activePane],x&&x.activeCell&&(u.activeCell=x.activeCell),this.sheetView.style&&(u.style=this.sheetView.style)):(u=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},x=this.selections.topLeft,x&&x.activeCell&&(u.activeCell=x.activeCell),this.sheetView.style&&(u.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"tablePart"}render(n,p){p&&n.leafNode(this.tag,{"r:id":p.rId})}parseOpen(n){switch(n.name){case this.tag:return this.model={rId:n.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../../../utils/col-cache"),p=e("../../../utils/xml-stream"),d=e("../../rel-type"),u=e("./merges"),x=e("../base-xform"),_=e("../list-xform"),v=e("./row-xform"),C=e("./col-xform"),S=e("./dimension-xform"),E=e("./hyperlink-xform"),w=e("./merge-cell-xform"),I=e("./data-validations-xform"),T=e("./sheet-properties-xform"),A=e("./sheet-format-properties-xform"),V=e("./sheet-view-xform"),G=e("./sheet-protection-xform"),J=e("./page-margins-xform"),at=e("./page-setup-xform"),X=e("./print-options-xform"),nt=e("./auto-filter-xform"),ot=e("./picture-xform"),ht=e("./drawing-xform"),ct=e("./table-part-xform"),z=e("./row-breaks-xform"),U=e("./header-footer-xform"),st=e("./cf/conditional-formattings-xform"),M=e("./ext-lst-xform"),F=(R,j)=>{if(!j||!j.length)return R;if(!R||!R.length)return j;let H={},et={};return R.forEach(vt=>{H[vt.ref]=vt,vt.rules.forEach(bt=>{let{x14Id:kt}=bt;kt&&(et[kt]=bt)})}),j.forEach(vt=>{vt.rules.forEach(bt=>{let kt=et[bt.x14Id];kt?((Z,Tt)=>{Object.keys(Tt).forEach(K=>{let Q=Z[K],xt=Tt[K];Q===void 0&&xt!==void 0&&(Z[K]=xt)})})(kt,bt):H[vt.ref]?H[vt.ref].rules.push(bt):R.push({ref:vt.ref,rules:[bt]})})}),R};class B extends x{constructor(j){super();let{maxRows:H,maxCols:et,ignoreNodes:vt}=j||{};this.ignoreNodes=vt||[],this.map={sheetPr:new T,dimension:new S,sheetViews:new _({tag:"sheetViews",count:!1,childXform:new V}),sheetFormatPr:new A,cols:new _({tag:"cols",count:!1,childXform:new C}),sheetData:new _({tag:"sheetData",count:!1,empty:!0,childXform:new v({maxItems:et}),maxItems:H}),autoFilter:new nt,mergeCells:new _({tag:"mergeCells",count:!0,childXform:new w}),rowBreaks:new z,hyperlinks:new _({tag:"hyperlinks",count:!1,childXform:new E}),pageMargins:new J,dataValidations:new I,pageSetup:new at,headerFooter:new U,printOptions:new X,picture:new ot,drawing:new ht,sheetProtection:new G,tableParts:new _({tag:"tableParts",count:!0,childXform:new ct}),conditionalFormatting:new st,extLst:new M}}prepare(j,H){H.merges=new u,j.hyperlinks=H.hyperlinks=[],j.comments=H.comments=[],H.formulae={},H.siFormulae=0,this.map.cols.prepare(j.cols,H),this.map.sheetData.prepare(j.rows,H),this.map.conditionalFormatting.prepare(j.conditionalFormattings,H),j.mergeCells=H.merges.mergeCells;let et=j.rels=[];function vt(Z){return"rId"+(Z.length+1)}if(j.hyperlinks.forEach(Z=>{let Tt=vt(et);Z.rId=Tt,et.push({Id:Tt,Type:d.Hyperlink,Target:Z.target,TargetMode:"External"})}),j.comments.length>0){let Z={Id:vt(et),Type:d.Comments,Target:`../comments${j.id}.xml`};et.push(Z);let Tt={Id:vt(et),Type:d.VmlDrawing,Target:`../drawings/vmlDrawing${j.id}.vml`};et.push(Tt),j.comments.forEach(K=>{K.refAddress=n.decodeAddress(K.ref)}),H.commentRefs.push({commentName:"comments"+j.id,vmlDrawing:"vmlDrawing"+j.id})}let bt=[],kt;j.media.forEach(Z=>{if(Z.type==="background"){let Tt=vt(et);kt=H.media[Z.imageId],et.push({Id:Tt,Type:d.Image,Target:`../media/${kt.name}.${kt.extension}`}),j.background={rId:Tt},j.image=H.media[Z.imageId]}else if(Z.type==="image"){let{drawing:Tt}=j;kt=H.media[Z.imageId],Tt||(Tt=j.drawing={rId:vt(et),name:"drawing"+ ++H.drawingsCount,anchors:[],rels:[]},H.drawings.push(Tt),et.push({Id:Tt.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${Tt.name}.xml`}));let K=this.preImageId===Z.imageId?bt[Z.imageId]:bt[Tt.rels.length];K||(K=vt(Tt.rels),bt[Tt.rels.length]=K,Tt.rels.push({Id:K,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${kt.name}.${kt.extension}`}));let Q={picture:{rId:K},range:Z.range};if(Z.hyperlinks&&Z.hyperlinks.hyperlink){let xt=vt(Tt.rels);bt[Tt.rels.length]=xt,Q.picture.hyperlinks={tooltip:Z.hyperlinks.tooltip,rId:xt},Tt.rels.push({Id:xt,Type:d.Hyperlink,Target:Z.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=Z.imageId,Tt.anchors.push(Q)}}),j.tables.forEach(Z=>{let Tt=vt(et);Z.rId=Tt,et.push({Id:Tt,Type:d.Table,Target:"../tables/"+Z.target}),Z.columns.forEach(K=>{let{style:Q}=K;Q&&(K.dxfId=H.styles.addDxfStyle(Q))})}),this.map.extLst.prepare(j,H)}render(j,H){j.openXml(p.StdDocAttributes),j.openNode("worksheet",B.WORKSHEET_ATTRIBUTES);let et=H.properties?{defaultRowHeight:H.properties.defaultRowHeight,dyDescent:H.properties.dyDescent,outlineLevelCol:H.properties.outlineLevelCol,outlineLevelRow:H.properties.outlineLevelRow}:void 0;H.properties&&H.properties.defaultColWidth&&(et.defaultColWidth=H.properties.defaultColWidth);let vt={outlineProperties:H.properties&&H.properties.outlineProperties,tabColor:H.properties&&H.properties.tabColor,pageSetup:H.pageSetup&&H.pageSetup.fitToPage?{fitToPage:H.pageSetup.fitToPage}:void 0},bt=H.pageSetup&&H.pageSetup.margins,kt={showRowColHeaders:H.pageSetup&&H.pageSetup.showRowColHeaders,showGridLines:H.pageSetup&&H.pageSetup.showGridLines,horizontalCentered:H.pageSetup&&H.pageSetup.horizontalCentered,verticalCentered:H.pageSetup&&H.pageSetup.verticalCentered},Z=H.sheetProtection;this.map.sheetPr.render(j,vt),this.map.dimension.render(j,H.dimensions),this.map.sheetViews.render(j,H.views),this.map.sheetFormatPr.render(j,et),this.map.cols.render(j,H.cols),this.map.sheetData.render(j,H.rows),this.map.sheetProtection.render(j,Z),this.map.autoFilter.render(j,H.autoFilter),this.map.mergeCells.render(j,H.mergeCells),this.map.conditionalFormatting.render(j,H.conditionalFormattings),this.map.dataValidations.render(j,H.dataValidations),this.map.hyperlinks.render(j,H.hyperlinks),this.map.printOptions.render(j,kt),this.map.pageMargins.render(j,bt),this.map.pageSetup.render(j,H.pageSetup),this.map.headerFooter.render(j,H.headerFooter),this.map.rowBreaks.render(j,H.rowBreaks),this.map.drawing.render(j,H.drawing),this.map.picture.render(j,H.background),this.map.tableParts.render(j,H.tables),this.map.extLst.render(j,H),H.rels&&H.rels.forEach(Tt=>{Tt.Type===d.VmlDrawing&&j.leafNode("legacyDrawing",{"r:id":Tt.Id})}),j.closeNode()}parseOpen(j){return this.parser?(this.parser.parseOpen(j),!0):j.name==="worksheet"?(a.each(this.map,H=>{H.reset()}),!0):(this.map[j.name]&&!this.ignoreNodes.includes(j.name)&&(this.parser=this.map[j.name],this.parser.parseOpen(j)),!0)}parseText(j){this.parser&&this.parser.parseText(j)}parseClose(j){if(this.parser)return this.parser.parseClose(j)||(this.parser=void 0),!0;switch(j){case"worksheet":{let H=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(H.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(H.outlineProperties=this.map.sheetPr.model.outlineProperties);let et={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},vt=Object.assign(et,this.map.pageSetup.model,this.map.printOptions.model),bt=F(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:H,views:this.map.sheetViews.model,pageSetup:vt,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:bt},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(j,H){let et=(j.relationships||[]).reduce((bt,kt)=>{if(bt[kt.Id]=kt,kt.Type===d.Comments&&(j.comments=H.comments[kt.Target].comments),kt.Type===d.VmlDrawing&&j.comments&&j.comments.length){let Z=H.vmlDrawings[kt.Target].comments;j.comments.forEach((Tt,K)=>{Tt.note=Object.assign({},Tt.note,Z[K])})}return bt},{});if(H.commentsMap=(j.comments||[]).reduce((bt,kt)=>(kt.ref&&(bt[kt.ref]=kt),bt),{}),H.hyperlinkMap=(j.hyperlinks||[]).reduce((bt,kt)=>(kt.rId&&(bt[kt.address]=et[kt.rId].Target),bt),{}),H.formulae={},j.rows=j.rows&&j.rows.filter(Boolean)||[],j.rows.forEach(bt=>{bt.cells=bt.cells&&bt.cells.filter(Boolean)||[]}),this.map.cols.reconcile(j.cols,H),this.map.sheetData.reconcile(j.rows,H),this.map.conditionalFormatting.reconcile(j.conditionalFormattings,H),j.media=[],j.drawing){let bt=et[j.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(bt){let kt=bt[1];H.drawings[kt].anchors.forEach(Z=>{if(Z.medium){let Tt={type:"image",imageId:Z.medium.index,range:Z.range,hyperlinks:Z.picture.hyperlinks};j.media.push(Tt)}})}}let vt=j.background&&et[j.background.rId];if(vt){let bt=vt.Target.split("/media/")[1],kt=H.mediaIndex&&H.mediaIndex[bt];kt!==void 0&&j.media.push({type:"background",imageId:kt})}j.tables=(j.tables||[]).map(bt=>{let kt=et[bt.rId];return H.tables[kt.Target]}),delete j.relationships,delete j.hyperlinks,delete j.comments}}B.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},r.exports=B},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{constructor(n){super(),this.tag=n.tag,this.attr=n.attr}render(n,p){p&&(n.openNode(this.tag),n.closeNode())}parseOpen(n){n.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{constructor(n){super(),this.tag=n.tag,this.attr=n.attr,this.attrs=n.attrs,this._format=n.format||function(p){try{return Number.isNaN(p.getTime())?"":p.toISOString()}catch{return""}},this._parse=n.parse||function(p){return new Date(p)}}render(n,p){p&&(n.openNode(this.tag),this.attrs&&n.addAttributes(this.attrs),this.attr?n.addAttribute(this.attr,this._format(p)):n.writeText(this._format(p)),n.closeNode())}parseOpen(n){n.name===this.tag&&(this.attr?this.model=this._parse(n.attributes[this.attr]):this.text=[])}parseText(n){this.attr||this.text.push(n)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{constructor(n){super(),this.tag=n.tag,this.attr=n.attr,this.attrs=n.attrs,this.zero=n.zero}render(n,p){(p||this.zero)&&(n.openNode(this.tag),this.attrs&&n.addAttributes(this.attrs),this.attr?n.addAttribute(this.attr,p):n.writeText(p),n.closeNode())}parseOpen(n){return n.name===this.tag&&(this.attr?this.model=parseInt(n.attributes[this.attr],10):this.text=[],!0)}parseText(n){this.attr||this.text.push(n)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{constructor(n){super(),this.tag=n.tag,this.attr=n.attr,this.attrs=n.attrs}render(n,p){p!==void 0&&(n.openNode(this.tag),this.attrs&&n.addAttributes(this.attrs),this.attr?n.addAttribute(this.attr,p):n.writeText(p),n.closeNode())}parseOpen(n){n.name===this.tag&&(this.attr?this.model=n.attributes[this.attr]:this.text=[])}parseText(n){this.attr||this.text.push(n)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,r,i){"use strict";let a=e("./base-xform"),n=e("../../utils/xml-stream");r.exports=class extends a{constructor(p){super(),this._model=p}render(p){if(!this._xml){let d=new n;(function u(x,_){x.openNode(_.tag,_.$),_.c&&_.c.forEach(v=>{u(x,v)}),_.t&&x.writeText(_.t),x.closeNode()})(d,this._model),this._xml=d.xml}p.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(p){switch(p){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,r,i){"use strict";let a=e("./text-xform"),n=e("./rich-text-xform"),p=e("../base-xform");r.exports=class extends p{constructor(){super(),this.map={r:new n,t:new a}}get tag(){return"rPh"}render(d,u){if(d.openNode(this.tag,{sb:u.sb||0,eb:u.eb||0}),u&&u.hasOwnProperty("richText")&&u.richText){let{r:x}=this.map;u.richText.forEach(_=>{x.render(d,_)})}else u&&this.map.t.render(d,u.text);d.closeNode()}parseOpen(d){let{name:u}=d;return this.parser?(this.parser.parseOpen(d),!0):u===this.tag?(this.model={sb:parseInt(d.attributes.sb,10),eb:parseInt(d.attributes.eb,10)},!0):(this.parser=this.map[u],!!this.parser&&(this.parser.parseOpen(d),!0))}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser){if(!this.parser.parseClose(d)){switch(d){case"r":{let u=this.model.richText;u||(u=this.model.richText=[]),u.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(d){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,r,i){"use strict";let a=e("./text-xform"),n=e("../style/font-xform"),p=e("../base-xform");class d extends p{constructor(x){super(),this.model=x}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new a)}get fontXform(){return this._fontXform||(this._fontXform=new n(d.FONT_OPTIONS))}render(x,_){_=_||this.model,x.openNode("r"),_.font&&this.fontXform.render(x,_.font),this.textXform.render(x,_.text),x.closeNode()}parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;switch(x.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(x),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(x),!0;default:return!1}}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){switch(x){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(x),!0}}}d.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},r.exports=d},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,r,i){"use strict";let a=e("./text-xform"),n=e("./rich-text-xform"),p=e("./phonetic-text-xform"),d=e("../base-xform");r.exports=class extends d{constructor(u){super(),this.model=u,this.map={r:new n,t:new a,rPh:new p}}get tag(){return"si"}render(u,x){u.openNode(this.tag),x&&x.hasOwnProperty("richText")&&x.richText?x.richText.length?x.richText.forEach(_=>{this.map.r.render(u,_)}):this.map.t.render(u,""):x!=null&&this.map.t.render(u,x),u.closeNode()}parseOpen(u){let{name:x}=u;return this.parser?(this.parser.parseOpen(u),!0):x===this.tag?(this.model={},!0):(this.parser=this.map[x],!!this.parser&&(this.parser.parseOpen(u),!0))}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser){if(!this.parser.parseClose(u)){switch(u){case"r":{let x=this.model.richText;x||(x=this.model.richText=[]),x.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(u){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,r,i){"use strict";let a=e("../../../utils/xml-stream"),n=e("../base-xform"),p=e("./shared-string-xform");r.exports=class extends n{constructor(d){super(),this.model=d||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new p)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(d){return this.model.values[d]}add(d){return d.richText?this.addRichText(d):this.addText(d)}addText(d){let u=this.hash[d];return u===void 0&&(u=this.hash[d]=this.model.values.length,this.model.values.push(d)),this.model.count++,u}addRichText(d){let u=this.sharedStringXform.toXml(d),x=this.rich[u];return x===void 0&&(x=this.rich[u]=this.model.values.length,this.model.values.push(d)),this.model.count++,x}render(d,u){u=u||this._values,d.openXml(a.StdDocAttributes),d.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:u.count,uniqueCount:u.values.length});let x=this.sharedStringXform;u.values.forEach(_=>{x.render(d,_)}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(d),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(d))}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(d){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+d)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"t"}render(n,p){n.openNode("t"),/^\s|\n|\s$/.test(p)&&n.addAttribute("xml:space","preserve"),n.writeText(p),n.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(n,p)=>String.fromCharCode(parseInt(p,16)))}parseOpen(n){switch(n.name){case"t":return this._text=[],!0;default:return!1}}parseText(n){this._text.push(n)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,r,i){"use strict";let a=e("../../../doc/enums"),n=e("../../../utils/utils"),p=e("../base-xform"),d={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((x,_)=>(x[_]=!0,x),{}),horizontal(x){return this.horizontalValues[x]?x:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((x,_)=>(x[_]=!0,x),{}),vertical(x){return x==="middle"?"center":this.verticalValues[x]?x:void 0},wrapText:x=>!!x||void 0,shrinkToFit:x=>!!x||void 0,textRotation(x){switch(x){case"vertical":return x;default:return(x=n.validInt(x))>=-90&&x<=90?x:void 0}},indent:x=>(x=n.validInt(x),Math.max(0,x)),readingOrder(x){switch(x){case"ltr":return a.ReadingOrder.LeftToRight;case"rtl":return a.ReadingOrder.RightToLeft;default:return}}},u={toXml(x){if(x=d.textRotation(x)){if(x==="vertical")return 255;let _=Math.round(x);if(_>=0&&_<=90)return _;if(_<0&&_>=-90)return 90-_}},toModel(x){let _=n.validInt(x);if(_!==void 0){if(_===255)return"vertical";if(_>=0&&_<=90)return _;if(_>90&&_<=180)return 90-_}}};r.exports=class extends p{get tag(){return"alignment"}render(x,_){x.addRollback(),x.openNode("alignment");let v=!1;function C(S,E){E&&(x.addAttribute(S,E),v=!0)}C("horizontal",d.horizontal(_.horizontal)),C("vertical",d.vertical(_.vertical)),C("wrapText",!!d.wrapText(_.wrapText)&&"1"),C("shrinkToFit",!!d.shrinkToFit(_.shrinkToFit)&&"1"),C("indent",d.indent(_.indent)),C("textRotation",u.toXml(_.textRotation)),C("readingOrder",d.readingOrder(_.readingOrder)),x.closeNode(),v?x.commit():x.rollback()}parseOpen(x){let _={},v=!1;function C(S,E,w){S&&(_[E]=w,v=!0)}C(x.attributes.horizontal,"horizontal",x.attributes.horizontal),C(x.attributes.vertical,"vertical",x.attributes.vertical==="center"?"middle":x.attributes.vertical),C(x.attributes.wrapText,"wrapText",n.parseBoolean(x.attributes.wrapText)),C(x.attributes.shrinkToFit,"shrinkToFit",n.parseBoolean(x.attributes.shrinkToFit)),C(x.attributes.indent,"indent",parseInt(x.attributes.indent,10)),C(x.attributes.textRotation,"textRotation",u.toModel(x.attributes.textRotation)),C(x.attributes.readingOrder,"readingOrder",x.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=v?_:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("../../../utils/utils"),p=e("./color-xform");class d extends a{constructor(x){super(),this.name=x,this.map={color:new p}}get tag(){return this.name}render(x,_,v){let C=_&&_.color||v||this.defaultColor;x.openNode(this.name),_&&_.style&&(x.addAttribute("style",_.style),C&&this.map.color.render(x,C)),x.closeNode()}parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;switch(x.name){case this.name:{let{style:_}=x.attributes;return this.model=_?{style:_}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(x),!0;default:return!1}}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){return this.parser?(this.parser.parseClose(x)||(this.parser=void 0),!0):(x===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(x){return d.validStyleValues[x]}}d.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((u,x)=>(u[x]=!0,u),{}),r.exports=class extends a{constructor(){super(),this.map={top:new d("top"),left:new d("left"),bottom:new d("bottom"),right:new d("right"),diagonal:new d("diagonal")}}render(u,x){let{color:_}=x;function v(C,S){C&&!C.color&&x.color&&(C=Le(ae({},C),{color:x.color})),S.render(u,C,_)}u.openNode("border"),x.diagonal&&x.diagonal.style&&(x.diagonal.up&&u.addAttribute("diagonalUp","1"),x.diagonal.down&&u.addAttribute("diagonalDown","1")),v(x.left,this.map.left),v(x.right,this.map.right),v(x.top,this.map.top),v(x.bottom,this.map.bottom),v(x.diagonal,this.map.diagonal),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"border":return this.reset(),this.diagonalUp=n.parseBoolean(u.attributes.diagonalUp),this.diagonalDown=n.parseBoolean(u.attributes.diagonalDown),!0;default:return this.parser=this.map[u.name],!!this.parser&&(this.parser.parseOpen(u),!0)}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;if(u==="border"){let x=this.model={},_=function(v,C,S){C&&(S&&Object.assign(C,S),x[v]=C)};_("left",this.map.left.model),_("right",this.map.right.model),_("top",this.map.top.model),_("bottom",this.map.bottom.model),_("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{constructor(n){super(),this.name=n||"color"}get tag(){return this.name}render(n,p){return!!p&&(n.openNode(this.name),p.argb?n.addAttribute("rgb",p.argb):p.theme!==void 0?(n.addAttribute("theme",p.theme),p.tint!==void 0&&n.addAttribute("tint",p.tint)):p.indexed!==void 0?n.addAttribute("indexed",p.indexed):n.addAttribute("auto","1"),n.closeNode(),!0)}parseOpen(n){return n.name===this.name&&(n.attributes.rgb?this.model={argb:n.attributes.rgb}:n.attributes.theme?(this.model={theme:parseInt(n.attributes.theme,10)},n.attributes.tint&&(this.model.tint=parseFloat(n.attributes.tint))):n.attributes.indexed?this.model={indexed:parseInt(n.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./alignment-xform"),p=e("./border-xform"),d=e("./fill-xform"),u=e("./font-xform"),x=e("./numfmt-xform"),_=e("./protection-xform");r.exports=class extends a{constructor(){super(),this.map={alignment:new n,border:new p,fill:new d,font:new u,numFmt:new x,protection:new _}}get tag(){return"dxf"}render(v,C){if(v.openNode(this.tag),C.font&&this.map.font.render(v,C.font),C.numFmt&&C.numFmtId){let S={id:C.numFmtId,formatCode:C.numFmt};this.map.numFmt.render(v,S)}C.fill&&this.map.fill.render(v,C.fill),C.alignment&&this.map.alignment.render(v,C.alignment),C.border&&this.map.border.render(v,C.border),C.protection&&this.map.protection.render(v,C.protection),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[v.name],this.parser&&this.parser.parseOpen(v),!0}}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){return this.parser?(this.parser.parseClose(v)||(this.parser=void 0),!0):v!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./color-xform");class p extends a{constructor(){super(),this.map={color:new n}}get tag(){return"stop"}render(v,C){v.openNode("stop"),v.addAttribute("position",C.position),this.map.color.render(v,C.color),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case"stop":return this.model={position:parseFloat(v.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(v),!0;default:return!1}}parseText(){}parseClose(v){return!!this.parser&&(this.parser.parseClose(v)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class d extends a{constructor(){super(),this.map={fgColor:new n("fgColor"),bgColor:new n("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(v,C){v.openNode("patternFill"),v.addAttribute("patternType",C.pattern),C.fgColor&&this.map.fgColor.render(v,C.fgColor),C.bgColor&&this.map.bgColor.render(v,C.bgColor),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case"patternFill":return this.model={type:"pattern",pattern:v.attributes.patternType},!0;default:return this.parser=this.map[v.name],!!this.parser&&(this.parser.parseOpen(v),!0)}}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){return!!this.parser&&(this.parser.parseClose(v)||(this.parser.model&&(this.model[v]=this.parser.model),this.parser=void 0),!0)}}class u extends a{constructor(){super(),this.map={stop:new p}}get name(){return"gradient"}get tag(){return"gradientFill"}render(v,C){switch(v.openNode("gradientFill"),C.gradient){case"angle":v.addAttribute("degree",C.degree);break;case"path":v.addAttribute("type","path"),C.center.left&&(v.addAttribute("left",C.center.left),C.center.right===void 0&&v.addAttribute("right",C.center.left)),C.center.right&&v.addAttribute("right",C.center.right),C.center.top&&(v.addAttribute("top",C.center.top),C.center.bottom===void 0&&v.addAttribute("bottom",C.center.top)),C.center.bottom&&v.addAttribute("bottom",C.center.bottom)}let S=this.map.stop;C.stops.forEach(E=>{S.render(v,E)}),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case"gradientFill":{let C=this.model={stops:[]};return v.attributes.degree?(C.gradient="angle",C.degree=parseInt(v.attributes.degree,10)):v.attributes.type==="path"&&(C.gradient="path",C.center={left:v.attributes.left?parseFloat(v.attributes.left):0,top:v.attributes.top?parseFloat(v.attributes.top):0},v.attributes.right!==v.attributes.left&&(C.center.right=v.attributes.right?parseFloat(v.attributes.right):0),v.attributes.bottom!==v.attributes.top&&(C.center.bottom=v.attributes.bottom?parseFloat(v.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(v),!0;default:return!1}}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){return!!this.parser&&(this.parser.parseClose(v)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class x extends a{constructor(){super(),this.map={patternFill:new d,gradientFill:new u}}get tag(){return"fill"}render(v,C){switch(v.addRollback(),v.openNode("fill"),C.type){case"pattern":this.map.patternFill.render(v,C);break;case"gradient":this.map.gradientFill.render(v,C);break;default:return void v.rollback()}v.closeNode(),v.commit()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case"fill":return this.model={},!0;default:return this.parser=this.map[v.name],!!this.parser&&(this.parser.parseOpen(v),!0)}}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){return!!this.parser&&(this.parser.parseClose(v)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(v){return x.validPatternValues[v]}}x.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((_,v)=>(_[v]=!0,_),{}),x.StopXform=p,x.PatternFillXform=d,x.GradientFillXform=u,r.exports=x},{"../base-xform":32,"./color-xform":128}],131:[function(e,r,i){"use strict";let a=e("./color-xform"),n=e("../simple/boolean-xform"),p=e("../simple/integer-xform"),d=e("../simple/string-xform"),u=e("./underline-xform"),x=e("../../../utils/under-dash"),_=e("../base-xform");class v extends _{constructor(S){super(),this.options=S||v.OPTIONS,this.map={b:{prop:"bold",xform:new n({tag:"b",attr:"val"})},i:{prop:"italic",xform:new n({tag:"i",attr:"val"})},u:{prop:"underline",xform:new u},charset:{prop:"charset",xform:new p({tag:"charset",attr:"val"})},color:{prop:"color",xform:new a},condense:{prop:"condense",xform:new n({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new n({tag:"extend",attr:"val"})},family:{prop:"family",xform:new p({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new n({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new d({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new d({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new n({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new n({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new p({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new d({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(S,E){let{map:w}=this;S.openNode(this.options.tagName),x.each(this.map,(I,T)=>{w[T].xform.render(S,E[I.prop])}),S.closeNode()}parseOpen(S){if(this.parser)return this.parser.parseOpen(S),!0;if(this.map[S.name])return this.parser=this.map[S.name].xform,this.parser.parseOpen(S);switch(S.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(S){this.parser&&this.parser.parseText(S)}parseClose(S){if(this.parser&&!this.parser.parseClose(S)){let E=this.map[S];return this.parser.model&&(this.model[E.prop]=this.parser.model),this.parser=void 0,!0}switch(S){case this.options.tagName:return!1;default:return!0}}}v.OPTIONS={tagName:"font",fontNameTag:"name"},r.exports=v},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,r,i){"use strict";let a=e("../../../utils/under-dash"),n=e("../../defaultnumformats"),p=e("../base-xform"),d=function(){let x={};return a.each(n,(_,v)=>{_.f&&(x[_.f]=parseInt(v,10))}),x}();class u extends p{constructor(_,v){super(),this.id=_,this.formatCode=v}get tag(){return"numFmt"}render(_,v){_.leafNode("numFmt",{numFmtId:v.id,formatCode:v.formatCode})}parseOpen(_){switch(_.name){case"numFmt":return this.model={id:parseInt(_.attributes.numFmtId,10),formatCode:_.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}u.getDefaultFmtId=function(x){return d[x]},u.getDefaultFmtCode=function(x){return n[x]&&n[x].f},r.exports=u},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,r,i){"use strict";let a=e("../base-xform"),n={boolean:(p,d)=>p===void 0?d:p};r.exports=class extends a{get tag(){return"protection"}render(p,d){p.addRollback(),p.openNode("protection");let u=!1;function x(_,v){v!==void 0&&(p.addAttribute(_,v),u=!0)}x("locked",n.boolean(d.locked,!0)?void 0:"0"),x("hidden",n.boolean(d.hidden,!1)?"1":void 0),p.closeNode(),u?p.commit():p.rollback()}parseOpen(p){let d={locked:p.attributes.locked!=="0",hidden:p.attributes.hidden==="1"},u=!d.locked||d.hidden;this.model=u?d:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./alignment-xform"),p=e("./protection-xform");r.exports=class extends a{constructor(d){super(),this.xfId=!(!d||!d.xfId),this.map={alignment:new n,protection:new p}}get tag(){return"xf"}render(d,u){d.openNode("xf",{numFmtId:u.numFmtId||0,fontId:u.fontId||0,fillId:u.fillId||0,borderId:u.borderId||0}),this.xfId&&d.addAttribute("xfId",u.xfId||0),u.numFmtId&&d.addAttribute("applyNumberFormat","1"),u.fontId&&d.addAttribute("applyFont","1"),u.fillId&&d.addAttribute("applyFill","1"),u.borderId&&d.addAttribute("applyBorder","1"),u.alignment&&d.addAttribute("applyAlignment","1"),u.protection&&d.addAttribute("applyProtection","1"),u.alignment&&this.map.alignment.render(d,u.alignment),u.protection&&this.map.protection.render(d,u.protection),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"xf":return this.model={numFmtId:parseInt(d.attributes.numFmtId,10),fontId:parseInt(d.attributes.fontId,10),fillId:parseInt(d.attributes.fillId,10),borderId:parseInt(d.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(d.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(d),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(d),!0;default:return!1}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):d!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,r,i){"use strict";let a=e("../../../doc/enums"),n=e("../../../utils/xml-stream"),p=e("../base-xform"),d=e("../static-xform"),u=e("../list-xform"),x=e("./font-xform"),_=e("./fill-xform"),v=e("./border-xform"),C=e("./numfmt-xform"),S=e("./style-xform"),E=e("./dxf-xform");class w extends p{constructor(T){super(),this.map={numFmts:new u({tag:"numFmts",count:!0,childXform:new C}),fonts:new u({tag:"fonts",count:!0,childXform:new x,$:{"x14ac:knownFonts":1}}),fills:new u({tag:"fills",count:!0,childXform:new _}),borders:new u({tag:"borders",count:!0,childXform:new v}),cellStyleXfs:new u({tag:"cellStyleXfs",count:!0,childXform:new S}),cellXfs:new u({tag:"cellXfs",count:!0,childXform:new S({xfId:!0})}),dxfs:new u({tag:"dxfs",always:!0,count:!0,childXform:new E}),numFmt:new C,font:new x,fill:new _,border:new v,style:new S({xfId:!0}),cellStyles:w.STATIC_XFORMS.cellStyles,tableStyles:w.STATIC_XFORMS.tableStyles,extLst:w.STATIC_XFORMS.extLst},T&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(T,A){A=A||this.model,T.openXml(n.StdDocAttributes),T.openNode("styleSheet",w.STYLESHEET_ATTRIBUTES),this.index?(A.numFmts&&A.numFmts.length&&(T.openNode("numFmts",{count:A.numFmts.length}),A.numFmts.forEach(V=>{T.writeXml(V)}),T.closeNode()),A.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),T.openNode("fonts",{count:A.fonts.length,"x14ac:knownFonts":1}),A.fonts.forEach(V=>{T.writeXml(V)}),T.closeNode(),T.openNode("fills",{count:A.fills.length}),A.fills.forEach(V=>{T.writeXml(V)}),T.closeNode(),T.openNode("borders",{count:A.borders.length}),A.borders.forEach(V=>{T.writeXml(V)}),T.closeNode(),this.map.cellStyleXfs.render(T,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),T.openNode("cellXfs",{count:A.styles.length}),A.styles.forEach(V=>{T.writeXml(V)}),T.closeNode()):(this.map.numFmts.render(T,A.numFmts),this.map.fonts.render(T,A.fonts),this.map.fills.render(T,A.fills),this.map.borders.render(T,A.borders),this.map.cellStyleXfs.render(T,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(T,A.styles)),w.STATIC_XFORMS.cellStyles.render(T),this.map.dxfs.render(T,A.dxfs),w.STATIC_XFORMS.tableStyles.render(T),w.STATIC_XFORMS.extLst.render(T),T.closeNode()}parseOpen(T){if(this.parser)return this.parser.parseOpen(T),!0;switch(T.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[T.name],this.parser&&this.parser.parseOpen(T),!0}}parseText(T){this.parser&&this.parser.parseText(T)}parseClose(T){if(this.parser)return this.parser.parseClose(T)||(this.parser=void 0),!0;switch(T){case"styleSheet":{this.model={};let A=(V,G)=>{G.model&&G.model.length&&(this.model[V]=G.model)};if(A("numFmts",this.map.numFmts),A("fonts",this.map.fonts),A("fills",this.map.fills),A("borders",this.map.borders),A("styles",this.map.cellXfs),A("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){let V=this.index.numFmt;this.model.numFmts.forEach(G=>{V[G.id]=G.formatCode})}return!1}default:return!0}}addStyleModel(T,A){if(!T)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(T))return this.weakMap.get(T);let V={};if(A=A||a.ValueType.Number,T.numFmt)V.numFmtId=this._addNumFmtStr(T.numFmt);else switch(A){case a.ValueType.Number:V.numFmtId=this._addNumFmtStr("General");break;case a.ValueType.Date:V.numFmtId=this._addNumFmtStr("mm-dd-yy")}T.font&&(V.fontId=this._addFont(T.font)),T.border&&(V.borderId=this._addBorder(T.border)),T.fill&&(V.fillId=this._addFill(T.fill)),T.alignment&&(V.alignment=T.alignment),T.protection&&(V.protection=T.protection);let G=this._addStyle(V);return this.weakMap&&this.weakMap.set(T,G),G}getStyleModel(T){let A=this.model.styles[T];if(!A)return null;let V=this.index.model[T];if(V)return V;if(V=this.index.model[T]={},A.numFmtId){let J=this.index.numFmt[A.numFmtId]||C.getDefaultFmtCode(A.numFmtId);J&&(V.numFmt=J)}function G(J,at,X){if(X||X===0){let nt=at[X];nt&&(V[J]=nt)}}return G("font",this.model.fonts,A.fontId),G("border",this.model.borders,A.borderId),G("fill",this.model.fills,A.fillId),A.alignment&&(V.alignment=A.alignment),A.protection&&(V.protection=A.protection),V}addDxfStyle(T){return T.numFmt&&(T.numFmtId=this._addNumFmtStr(T.numFmt)),this.model.dxfs.push(T),this.model.dxfs.length-1}getDxfStyle(T){return this.model.dxfs[T]}_addStyle(T){let A=this.map.style.toXml(T),V=this.index.style[A];return V===void 0&&(V=this.index.style[A]=this.model.styles.length,this.model.styles.push(A)),V}_addNumFmtStr(T){let A=C.getDefaultFmtId(T);if(A!==void 0||(A=this.index.numFmt[T],A!==void 0))return A;A=this.index.numFmt[T]=164+this.model.numFmts.length;let V=this.map.numFmt.toXml({id:A,formatCode:T});return this.model.numFmts.push(V),A}_addFont(T){let A=this.map.font.toXml(T),V=this.index.font[A];return V===void 0&&(V=this.index.font[A]=this.model.fonts.length,this.model.fonts.push(A)),V}_addBorder(T){let A=this.map.border.toXml(T),V=this.index.border[A];return V===void 0&&(V=this.index.border[A]=this.model.borders.length,this.model.borders.push(A)),V}_addFill(T){let A=this.map.fill.toXml(T),V=this.index.fill[A];return V===void 0&&(V=this.index.fill[A]=this.model.fills.length,this.model.fills.push(A)),V}}w.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},w.STATIC_XFORMS={cellStyles:new d({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new d({tag:"dxfs",$:{count:0}}),tableStyles:new d({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new d({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},w.Mock=class extends w{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(I){return I.autodrain(),Promise.resolve()}addStyleModel(I,T){switch(T){case a.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){let I={numFmtId:C.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(I)}return this._dateStyleId}getStyleModel(){return{}}},r.exports=w},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,r,i){"use strict";let a=e("../base-xform");class n extends a{constructor(d){super(),this.model=d}get tag(){return"u"}render(d,u){if((u=u||this.model)===!0)d.leafNode("u");else{let x=n.Attributes[u];x&&d.leafNode("u",x)}}parseOpen(d){d.name==="u"&&(this.model=d.attributes.val||!0)}parseText(){}parseClose(){return!1}}n.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},r.exports=n},{"../base-xform":32}],137:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("./filter-column-xform");r.exports=class extends a{constructor(){super(),this.map={filterColumn:new n}}get tag(){return"autoFilter"}prepare(p){p.columns.forEach((d,u)=>{this.map.filterColumn.prepare(d,{index:u})})}render(p,d){return p.openNode(this.tag,{ref:d.autoFilterRef}),d.columns.forEach(u=>{this.map.filterColumn.render(p,u)}),p.closeNode(),!0}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case this.tag:return this.model={autoFilterRef:p.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[p.name],this.parser)return this.parseOpen(p),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(p))}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(p){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+p)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"customFilter"}render(n,p){n.leafNode(this.tag,{val:p.val,operator:p.operator})}parseOpen(n){return n.name===this.tag&&(this.model={val:n.attributes.val,operator:n.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,r,i){"use strict";let a=e("../base-xform"),n=e("../list-xform"),p=e("./custom-filter-xform"),d=e("./filter-xform");r.exports=class extends a{constructor(){super(),this.map={customFilters:new n({tag:"customFilters",count:!1,empty:!0,childXform:new p}),filters:new n({tag:"filters",count:!1,empty:!0,childXform:new d})}}get tag(){return"filterColumn"}prepare(u,x){u.colId=x.index.toString()}render(u,x){return x.customFilters?(u.openNode(this.tag,{colId:x.colId,hiddenButton:x.filterButton?"0":"1"}),this.map.customFilters.render(u,x.customFilters),u.closeNode(),!0):(u.leafNode(this.tag,{colId:x.colId,hiddenButton:x.filterButton?"0":"1"}),!0)}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;let{attributes:x}=u;switch(u.name){case this.tag:return this.model={filterButton:x.hiddenButton==="0"},!0;default:if(this.parser=this.map[u.name],this.parser)return this.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(u))}}parseText(){}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"filter"}render(n,p){n.leafNode(this.tag,{val:p.val})}parseOpen(n){return n.name===this.tag&&(this.model={val:n.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"tableColumn"}prepare(n,p){n.id=p.index+1}render(n,p){return n.leafNode(this.tag,{id:p.id.toString(),name:p.name,totalsRowLabel:p.totalsRowLabel,totalsRowFunction:p.totalsRowFunction,dxfId:p.dxfId}),!0}parseOpen(n){if(n.name===this.tag){let{attributes:p}=n;return this.model={name:p.name,totalsRowLabel:p.totalsRowLabel,totalsRowFunction:p.totalsRowFunction,dxfId:p.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,r,i){"use strict";let a=e("../base-xform");r.exports=class extends a{get tag(){return"tableStyleInfo"}render(n,p){return n.leafNode(this.tag,{name:p.theme?p.theme:void 0,showFirstColumn:p.showFirstColumn?"1":"0",showLastColumn:p.showLastColumn?"1":"0",showRowStripes:p.showRowStripes?"1":"0",showColumnStripes:p.showColumnStripes?"1":"0"}),!0}parseOpen(n){if(n.name===this.tag){let{attributes:p}=n;return this.model={theme:p.name?p.name:null,showFirstColumn:p.showFirstColumn==="1",showLastColumn:p.showLastColumn==="1",showRowStripes:p.showRowStripes==="1",showColumnStripes:p.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,r,i){"use strict";let a=e("../../../utils/xml-stream"),n=e("../base-xform"),p=e("../list-xform"),d=e("./auto-filter-xform"),u=e("./table-column-xform"),x=e("./table-style-info-xform");class _ extends n{constructor(){super(),this.map={autoFilter:new d,tableColumns:new p({tag:"tableColumns",count:!0,empty:!0,childXform:new u}),tableStyleInfo:new x}}prepare(C,S){this.map.autoFilter.prepare(C),this.map.tableColumns.prepare(C.columns,S)}get tag(){return"table"}render(C,S){C.openXml(a.StdDocAttributes),C.openNode(this.tag,Le(ae({},_.TABLE_ATTRIBUTES),{id:S.id,name:S.name,displayName:S.displayName||S.name,ref:S.tableRef,totalsRowCount:S.totalsRow?"1":void 0,totalsRowShown:S.totalsRow?void 0:"1",headerRowCount:S.headerRow?"1":"0"})),this.map.autoFilter.render(C,S),this.map.tableColumns.render(C,S.columns),this.map.tableStyleInfo.render(C,S.style),C.closeNode()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;let{name:S,attributes:E}=C;switch(S){case this.tag:this.reset(),this.model={name:E.name,displayName:E.displayName||E.name,tableRef:E.ref,totalsRow:E.totalsRowCount==="1",headerRow:E.headerRowCount==="1"};break;default:this.parser=this.map[C.name],this.parser&&this.parser.parseOpen(C)}return!0}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){if(this.parser)return this.parser.parseClose(C)||(this.parser=void 0),!0;switch(C){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((S,E)=>{this.model.columns[E].filterButton=S.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(C,S){C.columns.forEach(E=>{E.dxfId!==void 0&&(E.style=S.styles.getDxfStyle(E.dxfId))})}}_.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},r.exports=_},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,r,i){(function(a,n){(function(){"use strict";let p=e("fs"),d=e("jszip"),{PassThrough:u}=e("readable-stream"),x=e("../utils/zip-stream"),_=e("../utils/stream-buf"),v=e("../utils/utils"),C=e("../utils/xml-stream"),{bufferToString:S}=e("../utils/browser-buffer-decode"),E=e("./xform/style/styles-xform"),w=e("./xform/core/core-xform"),I=e("./xform/strings/shared-strings-xform"),T=e("./xform/core/relationships-xform"),A=e("./xform/core/content-types-xform"),V=e("./xform/core/app-xform"),G=e("./xform/book/workbook-xform"),J=e("./xform/sheet/worksheet-xform"),at=e("./xform/drawing/drawing-xform"),X=e("./xform/table/table-xform"),nt=e("./xform/comment/comments-xform"),ot=e("./xform/comment/vml-notes-xform"),ht=e("./xml/theme1");class ct{constructor(U){this.workbook=U}readFile(U,st){return Zn(this,null,function*(){if(!(yield v.fs.exists(U)))throw new Error("File not found: "+U);let M=p.createReadStream(U);try{let F=yield this.read(M,st);return M.close(),F}catch(F){throw M.close(),F}})}parseRels(U){return new T().parseStream(U)}parseWorkbook(U){return new G().parseStream(U)}parseSharedStrings(U){return new I().parseStream(U)}reconcile(U,st){let M=new G,F=new J(st),B=new at,R=new X;M.reconcile(U);let j={media:U.media,mediaIndex:U.mediaIndex};Object.keys(U.drawings).forEach(vt=>{let bt=U.drawings[vt],kt=U.drawingRels[vt];kt&&(j.rels=kt.reduce((Z,Tt)=>(Z[Tt.Id]=Tt,Z),{}),(bt.anchors||[]).forEach(Z=>{let Tt=Z.picture&&Z.picture.hyperlinks;Tt&&j.rels[Tt.rId]&&(Tt.hyperlink=j.rels[Tt.rId].Target,delete Tt.rId)}),B.reconcile(bt,j))});let H={styles:U.styles};Object.values(U.tables).forEach(vt=>{R.reconcile(vt,H)});let et={styles:U.styles,sharedStrings:U.sharedStrings,media:U.media,mediaIndex:U.mediaIndex,date1904:U.properties&&U.properties.date1904,drawings:U.drawings,comments:U.comments,tables:U.tables,vmlDrawings:U.vmlDrawings};U.worksheets.forEach(vt=>{vt.relationships=U.worksheetRels[vt.sheetNo],F.reconcile(vt,et)}),delete U.worksheetHash,delete U.worksheetRels,delete U.globalRels,delete U.sharedStrings,delete U.workbookRels,delete U.sheetDefs,delete U.styles,delete U.mediaIndex,delete U.drawings,delete U.drawingRels,delete U.vmlDrawings}_processWorksheetEntry(U,st,M,F,B){return Zn(this,null,function*(){let R=new J(F),j=yield R.parseStream(U);j.sheetNo=M,st.worksheetHash[B]=j,st.worksheets.push(j)})}_processCommentEntry(U,st,M){return Zn(this,null,function*(){let F=new nt,B=yield F.parseStream(U);st.comments[`../${M}.xml`]=B})}_processTableEntry(U,st,M){return Zn(this,null,function*(){let F=new X,B=yield F.parseStream(U);st.tables[`../tables/${M}.xml`]=B})}_processWorksheetRelsEntry(U,st,M){return Zn(this,null,function*(){let F=new T,B=yield F.parseStream(U);st.worksheetRels[M]=B})}_processMediaEntry(U,st,M){return Zn(this,null,function*(){let F=M.lastIndexOf(".");if(F>=1){let B=M.substr(F+1),R=M.substr(0,F);yield new Promise((j,H)=>{let et=new _;et.on("finish",()=>{st.mediaIndex[M]=st.media.length,st.mediaIndex[R]=st.media.length;let vt={type:"image",name:R,extension:B,buffer:et.toBuffer()};st.media.push(vt),j()}),U.on("error",vt=>{H(vt)}),U.pipe(et)})}})}_processDrawingEntry(U,st,M){return Zn(this,null,function*(){let F=new at,B=yield F.parseStream(U);st.drawings[M]=B})}_processDrawingRelsEntry(U,st,M){return Zn(this,null,function*(){let F=new T,B=yield F.parseStream(U);st.drawingRels[M]=B})}_processVmlDrawingEntry(U,st,M){return Zn(this,null,function*(){let F=new ot,B=yield F.parseStream(U);st.vmlDrawings[`../drawings/${M}.vml`]=B})}_processThemeEntry(U,st,M){return Zn(this,null,function*(){yield new Promise((F,B)=>{let R=new _;U.on("error",B),R.on("error",B),R.on("finish",()=>{st.themes[M]=R.read().toString(),F()}),U.pipe(R)})})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}read(U,st){return Zn(this,null,function*(){!U[Symbol.asyncIterator]&&U.pipe&&(U=U.pipe(new u));let M=[];try{for(var F=Px(U),B,R,j;B=!(R=yield F.next()).done;B=!1){let H=R.value;M.push(H)}}catch{j=[R]}finally{try{B&&(R=F.return)&&(yield R.call(F))}finally{if(j)throw j[0]}}return this.load(n.concat(M),st)})}load(U,st){return Zn(this,null,function*(){let M;M=st&&st.base64?n.from(U.toString(),"base64"):U;let F={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},B=yield d.loadAsync(M);for(let R of Object.values(B.files))if(!R.dir){let j,H=R.name;if(H[0]==="/"&&(H=H.substr(1)),H.match(/xl\/media\//)||H.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))j=new u,j.write(yield R.async("nodebuffer"));else{let et;j=new u({writableObjectMode:!0,readableObjectMode:!0}),et=a.browser?S(yield R.async("nodebuffer")):yield R.async("string");let vt=16384;for(let bt=0;btZn(null,null,function*(){if(M.type==="image"){let F=`xl/media/${M.name}.${M.extension}`;if(M.filename){let B=yield function(R,j){return new Promise((H,et)=>{p.readFile(R,j,(vt,bt)=>{vt?et(vt):H(bt)})})}(M.filename);return U.append(B,{name:F})}if(M.buffer)return U.append(M.buffer,{name:F});if(M.base64){let B=M.base64,R=B.substring(B.indexOf(",")+1);return U.append(R,{name:F,base64:!0})}}throw new Error("Unsupported media")})))})}addDrawings(U,st){let M=new at,F=new T;st.worksheets.forEach(B=>{let{drawing:R}=B;if(R){M.prepare(R,{});let j=M.toXml(R);U.append(j,{name:`xl/drawings/${R.name}.xml`}),j=F.toXml(R.rels),U.append(j,{name:`xl/drawings/_rels/${R.name}.xml.rels`})}})}addTables(U,st){let M=new X;st.worksheets.forEach(F=>{let{tables:B}=F;B.forEach(R=>{M.prepare(R,{});let j=M.toXml(R);U.append(j,{name:"xl/tables/"+R.target})})})}addContentTypes(U,st){return Zn(this,null,function*(){let M=new A().toXml(st);U.append(M,{name:"[Content_Types].xml"})})}addApp(U,st){return Zn(this,null,function*(){let M=new V().toXml(st);U.append(M,{name:"docProps/app.xml"})})}addCore(U,st){return Zn(this,null,function*(){let M=new w;U.append(M.toXml(st),{name:"docProps/core.xml"})})}addThemes(U,st){return Zn(this,null,function*(){let M=st.themes||{theme1:ht};Object.keys(M).forEach(F=>{let B=M[F],R=`xl/theme/${F}.xml`;U.append(B,{name:R})})})}addOfficeRels(U){return Zn(this,null,function*(){let st=new T().toXml([{Id:"rId1",Type:ct.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:ct.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:ct.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);U.append(st,{name:"_rels/.rels"})})}addWorkbookRels(U,st){return Zn(this,null,function*(){let M=1,F=[{Id:"rId"+M++,Type:ct.RelType.Styles,Target:"styles.xml"},{Id:"rId"+M++,Type:ct.RelType.Theme,Target:"theme/theme1.xml"}];st.sharedStrings.count&&F.push({Id:"rId"+M++,Type:ct.RelType.SharedStrings,Target:"sharedStrings.xml"}),st.worksheets.forEach(R=>{R.rId="rId"+M++,F.push({Id:R.rId,Type:ct.RelType.Worksheet,Target:`worksheets/sheet${R.id}.xml`})});let B=new T().toXml(F);U.append(B,{name:"xl/_rels/workbook.xml.rels"})})}addSharedStrings(U,st){return Zn(this,null,function*(){st.sharedStrings&&st.sharedStrings.count&&U.append(st.sharedStrings.xml,{name:"xl/sharedStrings.xml"})})}addStyles(U,st){return Zn(this,null,function*(){let{xml:M}=st.styles;M&&U.append(M,{name:"xl/styles.xml"})})}addWorkbook(U,st){return Zn(this,null,function*(){let M=new G;U.append(M.toXml(st),{name:"xl/workbook.xml"})})}addWorksheets(U,st){return Zn(this,null,function*(){let M=new J,F=new T,B=new nt,R=new ot;st.worksheets.forEach(j=>{let H=new C;M.render(H,j),U.append(H.xml,{name:`xl/worksheets/sheet${j.id}.xml`}),j.rels&&j.rels.length&&(H=new C,F.render(H,j.rels),U.append(H.xml,{name:`xl/worksheets/_rels/sheet${j.id}.xml.rels`})),j.comments.length>0&&(H=new C,B.render(H,j),U.append(H.xml,{name:`xl/comments${j.id}.xml`}),H=new C,R.render(H,j),U.append(H.xml,{name:`xl/drawings/vmlDrawing${j.id}.vml`}))})})}_finalize(U){return new Promise((st,M)=>{U.on("finish",()=>{st(this)}),U.on("error",M),U.finalize()})}prepareModel(U,st){U.creator=U.creator||"ExcelJS",U.lastModifiedBy=U.lastModifiedBy||"ExcelJS",U.created=U.created||new Date,U.modified=U.modified||new Date,U.useSharedStrings=st.useSharedStrings===void 0||st.useSharedStrings,U.useStyles=st.useStyles===void 0||st.useStyles,U.sharedStrings=new I,U.styles=U.useStyles?new E(!0):new E.Mock;let M=new G,F=new J;M.prepare(U);let B={sharedStrings:U.sharedStrings,styles:U.styles,date1904:U.properties.date1904,drawingsCount:0,media:U.media};B.drawings=U.drawings=[],B.commentRefs=U.commentRefs=[];let R=0;U.tables=[],U.worksheets.forEach(j=>{j.tables.forEach(H=>{R++,H.target=`table${R}.xml`,H.id=R,U.tables.push(H)}),F.prepare(j,B)})}write(U,st){return Zn(this,null,function*(){st=st||{};let{model:M}=this.workbook,F=new x.ZipWriter(st.zip);return F.pipe(U),this.prepareModel(M,st),yield this.addContentTypes(F,M),yield this.addOfficeRels(F,M),yield this.addWorkbookRels(F,M),yield this.addWorksheets(F,M),yield this.addSharedStrings(F,M),yield this.addDrawings(F,M),yield this.addTables(F,M),yield Promise.all([this.addThemes(F,M),this.addStyles(F,M)]),yield this.addMedia(F,M),yield Promise.all([this.addApp(F,M),this.addCore(F,M)]),yield this.addWorkbook(F,M),this._finalize(F)})}writeFile(U,st){let M=p.createWriteStream(U);return new Promise((F,B)=>{M.on("finish",()=>{F()}),M.on("error",R=>{B(R)}),this.write(M,st).then(()=>{M.end()}).catch(R=>{B(R)})})}writeBuffer(U){return Zn(this,null,function*(){let st=new _;return yield this.write(st,U),st.read()})}}ct.RelType=e("./rel-type"),r.exports=ct}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,r,i){"use strict";r.exports=` `},{}],146:[function(e,r,i){(function(a){(function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CsvFormatterStream=void 0;let n=e("stream"),p=e("./formatter");class d extends n.Transform{constructor(x){super({writableObjectMode:x.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=x,this.rowFormatter=new p.RowFormatter(x),this.hasWrittenBOM=!x.writeBOM}transform(x){return this.rowFormatter.rowTransform=x,this}_transform(x,_,v){let C=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(x,(S,E)=>S?(C=!0,v(S)):(E&&E.forEach(w=>{this.push(a.from(w,"utf8"))}),C=!0,v()))}catch(S){if(C)throw S;v(S)}}_flush(x){this.rowFormatter.finish((_,v)=>_?x(_):(v&&v.forEach(C=>{this.push(a.from(C,"utf8"))}),x()))}}i.CsvFormatterStream=d}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.FormatterOptions=void 0,i.FormatterOptions=class{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var n;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,a||{}),a?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),a?.quote===!0?this.quote='"':a?.quote===!1&&(this.quote=""),typeof a?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((n=a.writeHeaders)===null||n===void 0||n),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,r,i){"use strict";var a=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(i,"__esModule",{value:!0}),i.FieldFormatter=void 0;let n=a(e("lodash.isboolean")),p=a(e("lodash.isnil")),d=a(e("lodash.escaperegexp"));i.FieldFormatter=class{constructor(u){this._headers=null,this.formatterOptions=u,u.headers!==null&&(this.headers=u.headers),this.REPLACE_REGEXP=new RegExp(u.quote,"g");let x=`[${u.delimiter}${d.default(u.rowDelimiter)}|\r| ]`;this.ESCAPE_REGEXP=new RegExp(x)}set headers(u){this._headers=u}shouldQuote(u,x){let _=x?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return n.default(_)?_:Array.isArray(_)?_[u]:this._headers!==null&&_[this._headers[u]]}format(u,x,_){let v=(""+(p.default(u)?"":u)).replace(/\0/g,""),{formatterOptions:C}=this;return C.quote!==""&&v.indexOf(C.quote)!==-1?this.quoteField(v.replace(this.REPLACE_REGEXP,C.escapedQuote)):v.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(x,_)?this.quoteField(v):v}quoteField(u){let{quote:x}=this.formatterOptions;return`${x}${u}${x}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,r,i){"use strict";var a=function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(i,"__esModule",{value:!0}),i.RowFormatter=void 0;let n=a(e("lodash.isfunction")),p=a(e("lodash.isequal")),d=e("./FieldFormatter"),u=e("../types");class x{constructor(v){this.rowCount=0,this.formatterOptions=v,this.fieldFormatter=new d.FieldFormatter(v),this.headers=v.headers,this.shouldWriteHeaders=v.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),v.transform&&(this.rowTransform=v.transform)}static isRowHashArray(v){return!!Array.isArray(v)&&Array.isArray(v[0])&&v[0].length===2}static isRowArray(v){return Array.isArray(v)&&!this.isRowHashArray(v)}static gatherHeaders(v){return x.isRowHashArray(v)?v.map(C=>C[0]):Array.isArray(v)?v:Object.keys(v)}static createTransform(v){return u.isSyncTransform(v)?(C,S)=>{let E=null;try{E=v(C)}catch(w){return S(w)}return S(null,E)}:(C,S)=>{v(C,S)}}set rowTransform(v){if(!n.default(v))throw new TypeError("The transform should be a function");this._rowTransform=x.createTransform(v)}format(v,C){this.callTransformer(v,(S,E)=>{if(S)return C(S);if(!v)return C(null);let w=[];if(E){let{shouldFormatColumns:I,headers:T}=this.checkHeaders(E);if(this.shouldWriteHeaders&&T&&!this.hasWrittenHeaders&&(w.push(this.formatColumns(T,!0)),this.hasWrittenHeaders=!0),I){let A=this.gatherColumns(E);w.push(this.formatColumns(A,!1))}}return C(null,w)})}finish(v){let C=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return v(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));C.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&C.push(this.formatterOptions.rowDelimiter),v(null,C)}checkHeaders(v){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};let C=x.gatherHeaders(v);return this.headers=C,this.fieldFormatter.headers=C,this.shouldWriteHeaders?{shouldFormatColumns:!p.default(C,v),headers:C}:{shouldFormatColumns:!0,headers:null}}gatherColumns(v){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(v)?x.isRowHashArray(v)?this.headers.map((C,S)=>{let E=v[S];return E?E[1]:""}):x.isRowArray(v)&&!this.shouldWriteHeaders?v:this.headers.map((C,S)=>v[S]):this.headers.map(C=>v[C])}callTransformer(v,C){return this._rowTransform?this._rowTransform(v,C):C(null,v)}formatColumns(v,C){let S=v.map((w,I)=>this.fieldFormatter.format(w,I,C)).join(this.formatterOptions.delimiter),{rowCount:E}=this;return this.rowCount+=1,E?[this.formatterOptions.rowDelimiter,S].join(""):S}}i.RowFormatter=x},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.FieldFormatter=i.RowFormatter=void 0;var a=e("./RowFormatter");Object.defineProperty(i,"RowFormatter",{enumerable:!0,get:function(){return a.RowFormatter}});var n=e("./FieldFormatter");Object.defineProperty(i,"FieldFormatter",{enumerable:!0,get:function(){return n.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,r,i){(function(a){(function(){"use strict";var n=Object.create?function(I,T,A,V){V===void 0&&(V=A),Object.defineProperty(I,V,{enumerable:!0,get:function(){return T[A]}})}:function(I,T,A,V){V===void 0&&(V=A),I[V]=T[A]},p=Object.create?function(I,T){Object.defineProperty(I,"default",{enumerable:!0,value:T})}:function(I,T){I.default=T},d=function(I){if(I&&I.__esModule)return I;var T={};if(I!=null)for(var A in I)A!=="default"&&Object.prototype.hasOwnProperty.call(I,A)&&n(T,I,A);return p(T,I),T},u=function(I,T){for(var A in I)A==="default"||Object.prototype.hasOwnProperty.call(T,A)||n(T,I,A)};Object.defineProperty(i,"__esModule",{value:!0}),i.writeToPath=i.writeToString=i.writeToBuffer=i.writeToStream=i.write=i.format=i.FormatterOptions=i.CsvFormatterStream=void 0;let x=e("util"),_=e("stream"),v=d(e("fs")),C=e("./FormatterOptions"),S=e("./CsvFormatterStream");u(e("./types"),i);var E=e("./CsvFormatterStream");Object.defineProperty(i,"CsvFormatterStream",{enumerable:!0,get:function(){return E.CsvFormatterStream}});var w=e("./FormatterOptions");Object.defineProperty(i,"FormatterOptions",{enumerable:!0,get:function(){return w.FormatterOptions}}),i.format=I=>new S.CsvFormatterStream(new C.FormatterOptions(I)),i.write=(I,T)=>{let A=i.format(T),V=x.promisify((G,J)=>{A.write(G,void 0,J)});return I.reduce((G,J)=>G.then(()=>V(J)),Promise.resolve()).then(()=>A.end()).catch(G=>{A.emit("error",G)}),A},i.writeToStream=(I,T,A)=>i.write(T,A).pipe(I),i.writeToBuffer=function(I){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=[],V=new _.Writable({write(G,J,at){A.push(G),at()}});return new Promise((G,J)=>{V.on("error",J).on("finish",()=>G(a.concat(A))),i.write(I,T).pipe(V)})},i.writeToString=(I,T)=>i.writeToBuffer(I,T).then(A=>A.toString()),i.writeToPath=(I,T,A)=>{let V=v.createWriteStream(I,{encoding:"utf8"});return i.write(T,A).pipe(V)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncTransform=void 0,i.isSyncTransform=a=>a.length===1},{}],153:[function(e,r,i){(function(a){(function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CsvParserStream=void 0;let n=e("string_decoder"),p=e("stream"),d=e("./transforms"),u=e("./parser");class x extends p.Transform{constructor(v){super({objectMode:v.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=v,this.parser=new u.Parser(v),this.headerTransformer=new d.HeaderTransformer(v),this.decoder=new n.StringDecoder(v.encoding),this.rowTransformerValidator=new d.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(v){return this.rowTransformerValidator.rowTransform=v,this}validate(v){return this.rowTransformerValidator.rowValidator=v,this}emit(v){if(v==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var C=arguments.length,S=new Array(C>1?C-1:0),E=1;E{let I=V=>V?C(V):w%100!=0?E(w+1):void a(()=>E(w+1));if(this.checkAndEmitHeaders(),w>=S||this.hasHitRowLimit)return C();if(this.parsedLineCount+=1,this.shouldSkipLine)return I();let T=v[w];this.rowCount+=1,this.parsedRowCount+=1;let A=this.rowCount;return this.transformRow(T,(V,G)=>{if(V)return this.rowCount-=1,I(V);if(!G)return I(new Error("expected transform result"));if(G.isValid){if(G.row)return this.pushRow(G.row,I)}else this.emit("data-invalid",G.row,A,G.reason);return I()})};E(0)}transformRow(v,C){try{this.headerTransformer.transform(v,(S,E)=>S?C(S):E?E.isValid?E.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(E.row,C):this.skipRow(C):(this.rowCount-=1,this.parsedRowCount-=1,C(null,{row:null,isValid:!0})):this.shouldEmitRows?C(null,{isValid:!1,row:v}):this.skipRow(C):C(new Error("Expected result from header transform")))}catch(S){C(S)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(v){return this.rowCount-=1,v(null,{row:null,isValid:!0})}pushRow(v,C){try{this.parserOptions.objectMode?this.push(v):this.push(JSON.stringify(v)),C()}catch(S){C(S)}}static wrapDoneCallback(v){let C=!1;return function(S){if(S){if(C)throw S;return C=!0,void v(S)}for(var E=arguments.length,w=new Array(E>1?E-1:0),I=1;I1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=n.default(this.delimiter),this.escapeChar=(u=this.escape)!==null&&u!==void 0?u:this.quote,this.supportsComments=!p.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,r,i){"use strict";var a=Object.create?function(E,w,I,T){T===void 0&&(T=I),Object.defineProperty(E,T,{enumerable:!0,get:function(){return w[I]}})}:function(E,w,I,T){T===void 0&&(T=I),E[T]=w[I]},n=Object.create?function(E,w){Object.defineProperty(E,"default",{enumerable:!0,value:w})}:function(E,w){E.default=w},p=function(E){if(E&&E.__esModule)return E;var w={};if(E!=null)for(var I in E)I!=="default"&&Object.prototype.hasOwnProperty.call(E,I)&&a(w,E,I);return n(w,E),w},d=function(E,w){for(var I in E)I==="default"||Object.prototype.hasOwnProperty.call(w,I)||a(w,E,I)};Object.defineProperty(i,"__esModule",{value:!0}),i.parseString=i.parseFile=i.parseStream=i.parse=i.ParserOptions=i.CsvParserStream=void 0;let u=p(e("fs")),x=e("stream"),_=e("./ParserOptions"),v=e("./CsvParserStream");d(e("./types"),i);var C=e("./CsvParserStream");Object.defineProperty(i,"CsvParserStream",{enumerable:!0,get:function(){return C.CsvParserStream}});var S=e("./ParserOptions");Object.defineProperty(i,"ParserOptions",{enumerable:!0,get:function(){return S.ParserOptions}}),i.parse=E=>new v.CsvParserStream(new _.ParserOptions(E)),i.parseStream=(E,w)=>E.pipe(new v.CsvParserStream(new _.ParserOptions(w))),i.parseFile=function(E){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return u.createReadStream(E).pipe(new v.CsvParserStream(new _.ParserOptions(w)))},i.parseString=(E,w)=>{let I=new x.Readable;return I.push(E),I.push(null),I.pipe(new v.CsvParserStream(new _.ParserOptions(w)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Parser=void 0;let a=e("./Scanner"),n=e("./RowParser"),p=e("./Token");class d{constructor(x){this.parserOptions=x,this.rowParser=new n.RowParser(this.parserOptions)}static removeBOM(x){return x&&x.charCodeAt(0)===65279?x.slice(1):x}parse(x,_){let v=new a.Scanner({line:d.removeBOM(x),parserOptions:this.parserOptions,hasMoreData:_});return this.parserOptions.supportsComments?this.parseWithComments(v):this.parseWithoutComments(v)}parseWithoutComments(x){let _=[],v=!0;for(;v;)v=this.parseRow(x,_);return{line:x.line,rows:_}}parseWithComments(x){let{parserOptions:_}=this,v=[];for(let C=x.nextCharacterToken;C!==null;C=x.nextCharacterToken)if(p.Token.isTokenComment(C,_)){if(x.advancePastLine()===null)return{line:x.lineFromCursor,rows:v};if(!x.hasMoreCharacters)return{line:x.lineFromCursor,rows:v};x.truncateToCursor()}else if(!this.parseRow(x,v))break;return{line:x.line,rows:v}}parseRow(x,_){if(!x.nextNonSpaceToken)return!1;let v=this.rowParser.parse(x);return v!==null&&(this.parserOptions.ignoreEmpty&&n.RowParser.isEmptyRow(v)||_.push(v),!0)}}i.Parser=d},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.RowParser=void 0;let a=e("./column"),n=e("./Token");i.RowParser=class{constructor(p){this.parserOptions=p,this.columnParser=new a.ColumnParser(p)}static isEmptyRow(p){return p.join("").replace(/\s+/g,"")===""}parse(p){let{parserOptions:d}=this,{hasMoreData:u}=p,x=p,_=[],v=this.getStartToken(x,_);for(;v;){if(n.Token.isTokenRowDelimiter(v))return x.advancePastToken(v),!x.hasMoreCharacters&&n.Token.isTokenCarriageReturn(v,d)&&u?null:(x.truncateToCursor(),_);if(!this.shouldSkipColumnParse(x,v,_)){let C=this.columnParser.parse(x);if(C===null)return null;_.push(C)}v=x.nextNonSpaceToken}return u?null:(x.truncateToCursor(),_)}getStartToken(p,d){let u=p.nextNonSpaceToken;return u!==null&&n.Token.isTokenDelimiter(u,this.parserOptions)?(d.push(""),p.nextNonSpaceToken):u}shouldSkipColumnParse(p,d,u){let{parserOptions:x}=this;if(n.Token.isTokenDelimiter(d,x)){p.advancePastToken(d);let _=p.nextCharacterToken;if(!p.hasMoreCharacters||_!==null&&n.Token.isTokenRowDelimiter(_)||_!==null&&n.Token.isTokenDelimiter(_,x))return u.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Scanner=void 0;let a=e("./Token"),n=/((?:\r\n)|\n|\r)/;i.Scanner=class{constructor(p){this.cursor=0,this.line=p.line,this.lineLength=this.line.length,this.parserOptions=p.parserOptions,this.hasMoreData=p.hasMoreData,this.cursor=p.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){let{lineFromCursor:p}=this,d=this.parserOptions.NEXT_TOKEN_REGEXP;if(p.search(d)===-1)return null;let u=d.exec(p);if(u==null)return null;let x=u[1],_=this.cursor+(u.index||0);return new a.Token({token:x,startCursor:_,endCursor:_+x.length-1})}get nextCharacterToken(){let{cursor:p,lineLength:d}=this;return d<=p?null:new a.Token({token:this.line[p],startCursor:p,endCursor:p})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){let p=n.exec(this.lineFromCursor);return p?(this.cursor+=(p.index||0)+p[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(p){return this.cursor=p,this}advanceToToken(p){return this.cursor=p.startCursor,this}advancePastToken(p){return this.cursor=p.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Token=void 0,i.Token=class{constructor(a){this.token=a.token,this.startCursor=a.startCursor,this.endCursor=a.endCursor}static isTokenRowDelimiter(a){let n=a.token;return n==="\r"||n===` `||n===`\r `}static isTokenCarriageReturn(a,n){return a.token===n.carriageReturn}static isTokenComment(a,n){return n.supportsComments&&!!a&&a.token===n.comment}static isTokenEscapeCharacter(a,n){return a.token===n.escapeChar}static isTokenQuote(a,n){return a.token===n.quote}static isTokenDelimiter(a,n){return a.token===n.delimiter}}},{}],160:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnFormatter=void 0,i.ColumnFormatter=class{constructor(a){a.trim?this.format=n=>n.trim():a.ltrim?this.format=n=>n.trimLeft():a.rtrim?this.format=n=>n.trimRight():this.format=n=>n}}},{}],161:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnParser=void 0;let a=e("./NonQuotedColumnParser"),n=e("./QuotedColumnParser"),p=e("../Token");i.ColumnParser=class{constructor(d){this.parserOptions=d,this.quotedColumnParser=new n.QuotedColumnParser(d),this.nonQuotedColumnParser=new a.NonQuotedColumnParser(d)}parse(d){let{nextNonSpaceToken:u}=d;return u!==null&&p.Token.isTokenQuote(u,this.parserOptions)?(d.advanceToToken(u),this.quotedColumnParser.parse(d)):this.nonQuotedColumnParser.parse(d)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.NonQuotedColumnParser=void 0;let a=e("./ColumnFormatter"),n=e("../Token");i.NonQuotedColumnParser=class{constructor(p){this.parserOptions=p,this.columnFormatter=new a.ColumnFormatter(p)}parse(p){if(!p.hasMoreCharacters)return null;let{parserOptions:d}=this,u=[],x=p.nextCharacterToken;for(;x&&!n.Token.isTokenDelimiter(x,d)&&!n.Token.isTokenRowDelimiter(x);x=p.nextCharacterToken)u.push(x.token),p.advancePastToken(x);return this.columnFormatter.format(u.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.QuotedColumnParser=void 0;let a=e("./ColumnFormatter"),n=e("../Token");i.QuotedColumnParser=class{constructor(p){this.parserOptions=p,this.columnFormatter=new a.ColumnFormatter(p)}parse(p){if(!p.hasMoreCharacters)return null;let d=p.cursor,{foundClosingQuote:u,col:x}=this.gatherDataBetweenQuotes(p);if(!u){if(p.advanceTo(d),!p.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${p.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(p),x}gatherDataBetweenQuotes(p){let{parserOptions:d}=this,u=!1,x=!1,_=[],v=p.nextCharacterToken;for(;!x&&v!==null;v=p.nextCharacterToken){let C=n.Token.isTokenQuote(v,d);if(!u&&C)u=!0;else if(u)if(n.Token.isTokenEscapeCharacter(v,d)){p.advancePastToken(v);let S=p.nextCharacterToken;S!==null&&(n.Token.isTokenQuote(S,d)||n.Token.isTokenEscapeCharacter(S,d))?(_.push(S.token),v=S):C?x=!0:_.push(v.token)}else C?x=!0:_.push(v.token);p.advancePastToken(v)}return{col:this.columnFormatter.format(_.join("")),foundClosingQuote:x}}checkForMalformedColumn(p){let{parserOptions:d}=this,{nextNonSpaceToken:u}=p;if(u){let x=n.Token.isTokenDelimiter(u,d),_=n.Token.isTokenRowDelimiter(u);if(!x&&!_){let v=p.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${d.escapedDelimiter}' OR new line got: '${u.token}'. at '${v}`)}p.advanceToToken(u)}else p.hasMoreData||p.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnFormatter=i.QuotedColumnParser=i.NonQuotedColumnParser=i.ColumnParser=void 0;var a=e("./ColumnParser");Object.defineProperty(i,"ColumnParser",{enumerable:!0,get:function(){return a.ColumnParser}});var n=e("./NonQuotedColumnParser");Object.defineProperty(i,"NonQuotedColumnParser",{enumerable:!0,get:function(){return n.NonQuotedColumnParser}});var p=e("./QuotedColumnParser");Object.defineProperty(i,"QuotedColumnParser",{enumerable:!0,get:function(){return p.QuotedColumnParser}});var d=e("./ColumnFormatter");Object.defineProperty(i,"ColumnFormatter",{enumerable:!0,get:function(){return d.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.QuotedColumnParser=i.NonQuotedColumnParser=i.ColumnParser=i.Token=i.Scanner=i.RowParser=i.Parser=void 0;var a=e("./Parser");Object.defineProperty(i,"Parser",{enumerable:!0,get:function(){return a.Parser}});var n=e("./RowParser");Object.defineProperty(i,"RowParser",{enumerable:!0,get:function(){return n.RowParser}});var p=e("./Scanner");Object.defineProperty(i,"Scanner",{enumerable:!0,get:function(){return p.Scanner}});var d=e("./Token");Object.defineProperty(i,"Token",{enumerable:!0,get:function(){return d.Token}});var u=e("./column");Object.defineProperty(i,"ColumnParser",{enumerable:!0,get:function(){return u.ColumnParser}}),Object.defineProperty(i,"NonQuotedColumnParser",{enumerable:!0,get:function(){return u.NonQuotedColumnParser}}),Object.defineProperty(i,"QuotedColumnParser",{enumerable:!0,get:function(){return u.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,r,i){"use strict";var a=function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(i,"__esModule",{value:!0}),i.HeaderTransformer=void 0;let n=a(e("lodash.isundefined")),p=a(e("lodash.isfunction")),d=a(e("lodash.uniq")),u=a(e("lodash.groupby"));i.HeaderTransformer=class{constructor(x){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=x,x.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(x.headers)?this.setHeaders(x.headers):p.default(x.headers)&&(this.headersTransform=x.headers)}transform(x,_){return this.shouldMapRow(x)?_(null,this.processRow(x)):_(null,{row:null,isValid:!0})}shouldMapRow(x){let{parserOptions:_}=this;if(!this.headersTransform&&_.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(x)){if(this.headersTransform)this.setHeaders(this.headersTransform(x));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(x)}return!1}return!0}processRow(x){if(!this.headers)return{row:x,isValid:!0};let{parserOptions:_}=this;if(!_.discardUnmappedColumns&&x.length>this.headersLength){if(!_.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${x.length}`);return{row:x,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${x.length}`}}return _.strictColumnHandling&&x.length!!C);if(d.default(v).length!==v.length){let C=u.default(v),S=Object.keys(C).filter(E=>C[E].length>1);throw new Error("Duplicate headers found "+JSON.stringify(S))}this.headers=x,this.receivedHeaders=!0,this.headersLength=((_=this.headers)===null||_===void 0?void 0:_.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,r,i){"use strict";var a=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(i,"__esModule",{value:!0}),i.RowTransformerValidator=void 0;let n=a(e("lodash.isfunction")),p=e("../types");class d{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(x){return p.isSyncTransform(x)?(_,v)=>{let C=null;try{C=x(_)}catch(S){return v(S)}return v(null,C)}:x}static createValidator(x){return p.isSyncValidate(x)?(_,v)=>{v(null,{row:_,isValid:x(_)})}:(_,v)=>{x(_,(C,S,E)=>C?v(C):v(null,S?{row:_,isValid:S,reason:E}:{row:_,isValid:!1,reason:E}))}}set rowTransform(x){if(!n.default(x))throw new TypeError("The transform should be a function");this._rowTransform=d.createTransform(x)}set rowValidator(x){if(!n.default(x))throw new TypeError("The validate should be a function");this._rowValidator=d.createValidator(x)}transformAndValidate(x,_){return this.callTransformer(x,(v,C)=>v?_(v):C?this.callValidator(C,(S,E)=>S?_(S):E&&!E.isValid?_(null,{row:C,isValid:!1,reason:E.reason}):_(null,{row:C,isValid:!0})):_(null,{row:null,isValid:!0}))}callTransformer(x,_){return this._rowTransform?this._rowTransform(x,_):_(null,x)}callValidator(x,_){return this._rowValidator?this._rowValidator(x,_):_(null,{row:x,isValid:!0})}}i.RowTransformerValidator=d},{"../types":169,"lodash.isfunction":446}],168:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.HeaderTransformer=i.RowTransformerValidator=void 0;var a=e("./RowTransformerValidator");Object.defineProperty(i,"RowTransformerValidator",{enumerable:!0,get:function(){return a.RowTransformerValidator}});var n=e("./HeaderTransformer");Object.defineProperty(i,"HeaderTransformer",{enumerable:!0,get:function(){return n.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncValidate=i.isSyncTransform=void 0,i.isSyncTransform=a=>a.length===1,i.isSyncValidate=a=>a.length===1},{}],170:[function(e,r,i){"use strict";let a=i;a.bignum=e("bn.js"),a.define=e("./asn1/api").define,a.base=e("./asn1/base"),a.constants=e("./asn1/constants"),a.decoders=e("./asn1/decoders"),a.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,r,i){"use strict";let a=e("./encoders"),n=e("./decoders"),p=e("inherits");function d(u,x){this.name=u,this.body=x,this.decoders={},this.encoders={}}i.define=function(u,x){return new d(u,x)},d.prototype._createNamed=function(u){let x=this.name;function _(v){this._initNamed(v,x)}return p(_,u),_.prototype._initNamed=function(v,C){u.call(this,v,C)},new _(this)},d.prototype._getDecoder=function(u){return u=u||"der",this.decoders.hasOwnProperty(u)||(this.decoders[u]=this._createNamed(n[u])),this.decoders[u]},d.prototype.decode=function(u,x,_){return this._getDecoder(x).decode(u,_)},d.prototype._getEncoder=function(u){return u=u||"der",this.encoders.hasOwnProperty(u)||(this.encoders[u]=this._createNamed(a[u])),this.encoders[u]},d.prototype.encode=function(u,x,_){return this._getEncoder(x).encode(u,_)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,r,i){"use strict";let a=e("inherits"),n=e("../base/reporter").Reporter,p=e("safer-buffer").Buffer;function d(x,_){n.call(this,_),p.isBuffer(x)?(this.base=x,this.offset=0,this.length=x.length):this.error("Input not Buffer")}function u(x,_){if(Array.isArray(x))this.length=0,this.value=x.map(function(v){return u.isEncoderBuffer(v)||(v=new u(v,_)),this.length+=v.length,v},this);else if(typeof x=="number"){if(!(0<=x&&x<=255))return _.error("non-byte EncoderBuffer value");this.value=x,this.length=1}else if(typeof x=="string")this.value=x,this.length=p.byteLength(x);else{if(!p.isBuffer(x))return _.error("Unsupported type: "+typeof x);this.value=x,this.length=x.length}}a(d,n),i.DecoderBuffer=d,d.isDecoderBuffer=function(x){return x instanceof d?!0:typeof x=="object"&&p.isBuffer(x.base)&&x.constructor.name==="DecoderBuffer"&&typeof x.offset=="number"&&typeof x.length=="number"&&typeof x.save=="function"&&typeof x.restore=="function"&&typeof x.isEmpty=="function"&&typeof x.readUInt8=="function"&&typeof x.skip=="function"&&typeof x.raw=="function"},d.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},d.prototype.restore=function(x){let _=new d(this.base);return _.offset=x.offset,_.length=this.offset,this.offset=x.offset,n.prototype.restore.call(this,x.reporter),_},d.prototype.isEmpty=function(){return this.offset===this.length},d.prototype.readUInt8=function(x){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(x||"DecoderBuffer overrun")},d.prototype.skip=function(x,_){if(!(this.offset+x<=this.length))return this.error(_||"DecoderBuffer overrun");let v=new d(this.base);return v._reporterState=this._reporterState,v.offset=this.offset,v.length=this.offset+x,this.offset+=x,v},d.prototype.raw=function(x){return this.base.slice(x?x.offset:this.offset,this.length)},i.EncoderBuffer=u,u.isEncoderBuffer=function(x){return x instanceof u?!0:typeof x=="object"&&x.constructor.name==="EncoderBuffer"&&typeof x.length=="number"&&typeof x.join=="function"},u.prototype.join=function(x,_){return x||(x=p.alloc(this.length)),_||(_=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(v){v.join(x,_),_+=v.length}):(typeof this.value=="number"?x[_]=this.value:typeof this.value=="string"?x.write(this.value,_):p.isBuffer(this.value)&&this.value.copy(x,_),_+=this.length)),x}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,r,i){"use strict";let a=i;a.Reporter=e("./reporter").Reporter,a.DecoderBuffer=e("./buffer").DecoderBuffer,a.EncoderBuffer=e("./buffer").EncoderBuffer,a.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,r,i){"use strict";let a=e("../base/reporter").Reporter,n=e("../base/buffer").EncoderBuffer,p=e("../base/buffer").DecoderBuffer,d=e("minimalistic-assert"),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],x=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u);function _(C,S,E){let w={};this._baseState=w,w.name=E,w.enc=C,w.parent=S||null,w.children=null,w.tag=null,w.args=null,w.reverseArgs=null,w.choice=null,w.optional=!1,w.any=!1,w.obj=!1,w.use=null,w.useDecoder=null,w.key=null,w.default=null,w.explicit=null,w.implicit=null,w.contains=null,w.parent||(w.children=[],this._wrap())}r.exports=_;let v=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];_.prototype.clone=function(){let C=this._baseState,S={};v.forEach(function(w){S[w]=C[w]});let E=new this.constructor(S.parent);return E._baseState=S,E},_.prototype._wrap=function(){let C=this._baseState;x.forEach(function(S){this[S]=function(){let E=new this.constructor(this);return C.children.push(E),E[S].apply(E,arguments)}},this)},_.prototype._init=function(C){let S=this._baseState;d(S.parent===null),C.call(this),S.children=S.children.filter(function(E){return E._baseState.parent===this},this),d.equal(S.children.length,1,"Root node can have only one child")},_.prototype._useArgs=function(C){let S=this._baseState,E=C.filter(function(w){return w instanceof this.constructor},this);C=C.filter(function(w){return!(w instanceof this.constructor)},this),E.length!==0&&(d(S.children===null),S.children=E,E.forEach(function(w){w._baseState.parent=this},this)),C.length!==0&&(d(S.args===null),S.args=C,S.reverseArgs=C.map(function(w){if(typeof w!="object"||w.constructor!==Object)return w;let I={};return Object.keys(w).forEach(function(T){T==(0|T)&&(T|=0);let A=w[T];I[A]=T}),I}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(C){_.prototype[C]=function(){let S=this._baseState;throw new Error(C+" not implemented for encoding: "+S.enc)}}),u.forEach(function(C){_.prototype[C]=function(){let S=this._baseState,E=Array.prototype.slice.call(arguments);return d(S.tag===null),S.tag=C,this._useArgs(E),this}}),_.prototype.use=function(C){d(C);let S=this._baseState;return d(S.use===null),S.use=C,this},_.prototype.optional=function(){return this._baseState.optional=!0,this},_.prototype.def=function(C){let S=this._baseState;return d(S.default===null),S.default=C,S.optional=!0,this},_.prototype.explicit=function(C){let S=this._baseState;return d(S.explicit===null&&S.implicit===null),S.explicit=C,this},_.prototype.implicit=function(C){let S=this._baseState;return d(S.explicit===null&&S.implicit===null),S.implicit=C,this},_.prototype.obj=function(){let C=this._baseState,S=Array.prototype.slice.call(arguments);return C.obj=!0,S.length!==0&&this._useArgs(S),this},_.prototype.key=function(C){let S=this._baseState;return d(S.key===null),S.key=C,this},_.prototype.any=function(){return this._baseState.any=!0,this},_.prototype.choice=function(C){let S=this._baseState;return d(S.choice===null),S.choice=C,this._useArgs(Object.keys(C).map(function(E){return C[E]})),this},_.prototype.contains=function(C){let S=this._baseState;return d(S.use===null),S.contains=C,this},_.prototype._decode=function(C,S){let E=this._baseState;if(E.parent===null)return C.wrapResult(E.children[0]._decode(C,S));let w,I=E.default,T=!0,A=null;if(E.key!==null&&(A=C.enterKey(E.key)),E.optional){let V=null;if(E.explicit!==null?V=E.explicit:E.implicit!==null?V=E.implicit:E.tag!==null&&(V=E.tag),V!==null||E.any){if(T=this._peekTag(C,V,E.any),C.isError(T))return T}else{let G=C.save();try{E.choice===null?this._decodeGeneric(E.tag,C,S):this._decodeChoice(C,S),T=!0}catch{T=!1}C.restore(G)}}if(E.obj&&T&&(w=C.enterObject()),T){if(E.explicit!==null){let G=this._decodeTag(C,E.explicit);if(C.isError(G))return G;C=G}let V=C.offset;if(E.use===null&&E.choice===null){let G;E.any&&(G=C.save());let J=this._decodeTag(C,E.implicit!==null?E.implicit:E.tag,E.any);if(C.isError(J))return J;E.any?I=C.raw(G):C=J}if(S&&S.track&&E.tag!==null&&S.track(C.path(),V,C.length,"tagged"),S&&S.track&&E.tag!==null&&S.track(C.path(),C.offset,C.length,"content"),E.any||(I=E.choice===null?this._decodeGeneric(E.tag,C,S):this._decodeChoice(C,S)),C.isError(I))return I;if(E.any||E.choice!==null||E.children===null||E.children.forEach(function(G){G._decode(C,S)}),E.contains&&(E.tag==="octstr"||E.tag==="bitstr")){let G=new p(I);I=this._getUse(E.contains,C._reporterState.obj)._decode(G,S)}}return E.obj&&T&&(I=C.leaveObject(w)),E.key===null||I===null&&T!==!0?A!==null&&C.exitKey(A):C.leaveKey(A,E.key,I),I},_.prototype._decodeGeneric=function(C,S,E){let w=this._baseState;return C==="seq"||C==="set"?null:C==="seqof"||C==="setof"?this._decodeList(S,C,w.args[0],E):/str$/.test(C)?this._decodeStr(S,C,E):C==="objid"&&w.args?this._decodeObjid(S,w.args[0],w.args[1],E):C==="objid"?this._decodeObjid(S,null,null,E):C==="gentime"||C==="utctime"?this._decodeTime(S,C,E):C==="null_"?this._decodeNull(S,E):C==="bool"?this._decodeBool(S,E):C==="objDesc"?this._decodeStr(S,C,E):C==="int"||C==="enum"?this._decodeInt(S,w.args&&w.args[0],E):w.use!==null?this._getUse(w.use,S._reporterState.obj)._decode(S,E):S.error("unknown tag: "+C)},_.prototype._getUse=function(C,S){let E=this._baseState;return E.useDecoder=this._use(C,S),d(E.useDecoder._baseState.parent===null),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},_.prototype._decodeChoice=function(C,S){let E=this._baseState,w=null,I=!1;return Object.keys(E.choice).some(function(T){let A=C.save(),V=E.choice[T];try{let G=V._decode(C,S);if(C.isError(G))return!1;w={type:T,value:G},I=!0}catch{return C.restore(A),!1}return!0},this),I?w:C.error("Choice not matched")},_.prototype._createEncoderBuffer=function(C){return new n(C,this.reporter)},_.prototype._encode=function(C,S,E){let w=this._baseState;if(w.default!==null&&w.default===C)return;let I=this._encodeValue(C,S,E);return I===void 0||this._skipDefault(I,S,E)?void 0:I},_.prototype._encodeValue=function(C,S,E){let w=this._baseState;if(w.parent===null)return w.children[0]._encode(C,S||new a);let I=null;if(this.reporter=S,w.optional&&C===void 0){if(w.default===null)return;C=w.default}let T=null,A=!1;if(w.any)I=this._createEncoderBuffer(C);else if(w.choice)I=this._encodeChoice(C,S);else if(w.contains)T=this._getUse(w.contains,E)._encode(C,S),A=!0;else if(w.children)T=w.children.map(function(V){if(V._baseState.tag==="null_")return V._encode(null,S,C);if(V._baseState.key===null)return S.error("Child should have a key");let G=S.enterKey(V._baseState.key);if(typeof C!="object")return S.error("Child expected, but input is not object");let J=V._encode(C[V._baseState.key],S,C);return S.leaveKey(G),J},this).filter(function(V){return V}),T=this._createEncoderBuffer(T);else if(w.tag==="seqof"||w.tag==="setof"){if(!w.args||w.args.length!==1)return S.error("Too many args for : "+w.tag);if(!Array.isArray(C))return S.error("seqof/setof, but data is not Array");let V=this.clone();V._baseState.implicit=null,T=this._createEncoderBuffer(C.map(function(G){let J=this._baseState;return this._getUse(J.args[0],C)._encode(G,S)},V))}else w.use!==null?I=this._getUse(w.use,E)._encode(C,S):(T=this._encodePrimitive(w.tag,C),A=!0);if(!w.any&&w.choice===null){let V=w.implicit!==null?w.implicit:w.tag,G=w.implicit===null?"universal":"context";V===null?w.use===null&&S.error("Tag could be omitted only for .use()"):w.use===null&&(I=this._encodeComposite(V,A,G,T))}return w.explicit!==null&&(I=this._encodeComposite(w.explicit,!1,"context",I)),I},_.prototype._encodeChoice=function(C,S){let E=this._baseState,w=E.choice[C.type];return w||d(!1,C.type+" not found in "+JSON.stringify(Object.keys(E.choice))),w._encode(C.value,S)},_.prototype._encodePrimitive=function(C,S){let E=this._baseState;if(/str$/.test(C))return this._encodeStr(S,C);if(C==="objid"&&E.args)return this._encodeObjid(S,E.reverseArgs[0],E.args[1]);if(C==="objid")return this._encodeObjid(S,null,null);if(C==="gentime"||C==="utctime")return this._encodeTime(S,C);if(C==="null_")return this._encodeNull();if(C==="int"||C==="enum")return this._encodeInt(S,E.args&&E.reverseArgs[0]);if(C==="bool")return this._encodeBool(S);if(C==="objDesc")return this._encodeStr(S,C);throw new Error("Unsupported tag: "+C)},_.prototype._isNumstr=function(C){return/^[0-9 ]*$/.test(C)},_.prototype._isPrintstr=function(C){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(C)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,r,i){"use strict";let a=e("inherits");function n(d){this._reporterState={obj:null,path:[],options:d||{},errors:[]}}function p(d,u){this.path=d,this.rethrow(u)}i.Reporter=n,n.prototype.isError=function(d){return d instanceof p},n.prototype.save=function(){let d=this._reporterState;return{obj:d.obj,pathLen:d.path.length}},n.prototype.restore=function(d){let u=this._reporterState;u.obj=d.obj,u.path=u.path.slice(0,d.pathLen)},n.prototype.enterKey=function(d){return this._reporterState.path.push(d)},n.prototype.exitKey=function(d){let u=this._reporterState;u.path=u.path.slice(0,d-1)},n.prototype.leaveKey=function(d,u,x){let _=this._reporterState;this.exitKey(d),_.obj!==null&&(_.obj[u]=x)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){let d=this._reporterState,u=d.obj;return d.obj={},u},n.prototype.leaveObject=function(d){let u=this._reporterState,x=u.obj;return u.obj=d,x},n.prototype.error=function(d){let u,x=this._reporterState,_=d instanceof p;if(u=_?d:new p(x.path.map(function(v){return"["+JSON.stringify(v)+"]"}).join(""),d.message||d,d.stack),!x.options.partial)throw u;return _||x.errors.push(u),u},n.prototype.wrapResult=function(d){let u=this._reporterState;return u.options.partial?{result:this.isError(d)?null:d,errors:u.errors}:d},a(p,Error),p.prototype.rethrow=function(d){if(this.message=d+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,p),!this.stack)try{throw new Error(this.message)}catch(u){this.stack=u.stack}return this}},{inherits:440}],176:[function(e,r,i){"use strict";function a(n){let p={};return Object.keys(n).forEach(function(d){(0|d)==d&&(d|=0);let u=n[d];p[u]=d}),p}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=a(i.tagClass),i.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i.tagByName=a(i.tag)},{}],177:[function(e,r,i){"use strict";let a=i;a._reverse=function(n){let p={};return Object.keys(n).forEach(function(d){(0|d)==d&&(d|=0);let u=n[d];p[u]=d}),p},a.der=e("./der")},{"./der":176}],178:[function(e,r,i){"use strict";let a=e("inherits"),n=e("bn.js"),p=e("../base/buffer").DecoderBuffer,d=e("../base/node"),u=e("../constants/der");function x(S){this.enc="der",this.name=S.name,this.entity=S,this.tree=new _,this.tree._init(S.body)}function _(S){d.call(this,"der",S)}function v(S,E){let w=S.readUInt8(E);if(S.isError(w))return w;let I=u.tagClass[w>>6],T=(32&w)==0;if((31&w)==31){let A=w;for(w=0;(128&A)==128;){if(A=S.readUInt8(E),S.isError(A))return A;w<<=7,w|=127&A}}else w&=31;return{cls:I,primitive:T,tag:w,tagStr:u.tag[w]}}function C(S,E,w){let I=S.readUInt8(w);if(S.isError(I))return I;if(!E&&I===128)return null;if((128&I)==0)return I;let T=127&I;if(T>4)return S.error("length octect is too long");I=0;for(let A=0;A=31?J.error("Multi-octet tag encoding unsupported"):(V||(at|=32),at|=d.tagClassByName[G||"universal"]<<6,at)}(v,C,S,this.reporter);if(E.length<128){let A=n.alloc(2);return A[0]=w,A[1]=E.length,this._createEncoderBuffer([A,E])}let I=1;for(let A=E.length;A>=256;A>>=8)I++;let T=n.alloc(2+I);T[0]=w,T[1]=128|I;for(let A=1+I,V=E.length;V>0;A--,V>>=8)T[A]=255&V;return this._createEncoderBuffer([T,E])},x.prototype._encodeStr=function(v,C){if(C==="bitstr")return this._createEncoderBuffer([0|v.unused,v.data]);if(C==="bmpstr"){let S=n.alloc(2*v.length);for(let E=0;E=40)return this.reporter.error("Second objid identifier OOB");v.splice(0,2,40*v[0]+v[1])}let E=0;for(let T=0;T=128;A>>=7)E++}let w=n.alloc(E),I=w.length-1;for(let T=v.length-1;T>=0;T--){let A=v[T];for(w[I--]=127&A;(A>>=7)>0;)w[I--]=128|127&A}return this._createEncoderBuffer(w)},x.prototype._encodeTime=function(v,C){let S,E=new Date(v);return C==="gentime"?S=[_(E.getUTCFullYear()),_(E.getUTCMonth()+1),_(E.getUTCDate()),_(E.getUTCHours()),_(E.getUTCMinutes()),_(E.getUTCSeconds()),"Z"].join(""):C==="utctime"?S=[_(E.getUTCFullYear()%100),_(E.getUTCMonth()+1),_(E.getUTCDate()),_(E.getUTCHours()),_(E.getUTCMinutes()),_(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+C+" time is not supported yet"),this._encodeStr(S,"octstr")},x.prototype._encodeNull=function(){return this._createEncoderBuffer("")},x.prototype._encodeInt=function(v,C){if(typeof v=="string"){if(!C)return this.reporter.error("String int or enum given, but no values map");if(!C.hasOwnProperty(v))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(v));v=C[v]}if(typeof v!="number"&&!n.isBuffer(v)){let w=v.toArray();!v.sign&&128&w[0]&&w.unshift(0),v=n.from(w)}if(n.isBuffer(v)){let w=v.length;v.length===0&&w++;let I=n.alloc(w);return v.copy(I),v.length===0&&(I[0]=0),this._createEncoderBuffer(I)}if(v<128)return this._createEncoderBuffer(v);if(v<256)return this._createEncoderBuffer([0,v]);let S=1;for(let w=v;w>=256;w>>=8)S++;let E=new Array(S);for(let w=E.length-1;w>=0;w--)E[w]=255&v,v>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(n.from(E))},x.prototype._encodeBool=function(v){return this._createEncoderBuffer(v?255:0)},x.prototype._use=function(v,C){return typeof v=="function"&&(v=v(C)),v._getEncoder("der").tree},x.prototype._skipDefault=function(v,C,S){let E=this._baseState,w;if(E.default===null)return!1;let I=v.join();if(E.defaultBuffer===void 0&&(E.defaultBuffer=this._encodeValue(E.default,C,S).join()),I.length!==E.defaultBuffer.length)return!1;for(w=0;w=65&&st<=70?st-55:st>=97&&st<=102?st-87:st-48&15}function v(z,U,st){var M=_(z,st);return st-1>=U&&(M|=_(z,st-1)<<4),M}function C(z,U,st,M){for(var F=0,B=Math.min(z.length,st),R=U;R=49?j-49+10:j>=17?j-17+10:j}return F}u.isBN=function(z){return z instanceof u||z!==null&&typeof z=="object"&&z.constructor.wordSize===u.wordSize&&Array.isArray(z.words)},u.max=function(z,U){return z.cmp(U)>0?z:U},u.min=function(z,U){return z.cmp(U)<0?z:U},u.prototype._init=function(z,U,st){if(typeof z=="number")return this._initNumber(z,U,st);if(typeof z=="object")return this._initArray(z,U,st);U==="hex"&&(U=16),p(U===(0|U)&&U>=2&&U<=36);var M=0;(z=z.toString().replace(/\s+/g,""))[0]==="-"&&(M++,this.negative=1),M=0;M-=3)B=z[M]|z[M-1]<<8|z[M-2]<<16,this.words[F]|=B<>>26-R&67108863,(R+=24)>=26&&(R-=26,F++);else if(st==="le")for(M=0,F=0;M>>26-R&67108863,(R+=24)>=26&&(R-=26,F++);return this.strip()},u.prototype._parseHex=function(z,U,st){this.length=Math.ceil((z.length-U)/6),this.words=new Array(this.length);for(var M=0;M=U;M-=2)F=v(z,U,M)<=18?(B-=18,R+=1,this.words[R]|=F>>>26):B+=8;else for(M=(z.length-U)%2==0?U+1:U;M=18?(B-=18,R+=1,this.words[R]|=F>>>26):B+=8;this.strip()},u.prototype._parseBase=function(z,U,st){this.words=[0],this.length=1;for(var M=0,F=1;F<=67108863;F*=U)M++;M--,F=F/U|0;for(var B=z.length-st,R=B%M,j=Math.min(B,B-R)+st,H=0,et=st;et1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function I(z,U,st){st.negative=U.negative^z.negative;var M=z.length+U.length|0;st.length=M,M=M-1|0;var F=0|z.words[0],B=0|U.words[0],R=F*B,j=67108863&R,H=R/67108864|0;st.words[0]=j;for(var et=1;et>>26,bt=67108863&H,kt=Math.min(et,U.length-1),Z=Math.max(0,et-z.length+1);Z<=kt;Z++){var Tt=et-Z|0;vt+=(R=(F=0|z.words[Tt])*(B=0|U.words[Z])+bt)/67108864|0,bt=67108863&R}st.words[et]=0|bt,H=0|vt}return H!==0?st.words[et]=0|H:st.length--,st.strip()}u.prototype.toString=function(z,U){var st;if(U=0|U||1,(z=z||10)===16||z==="hex"){st="";for(var M=0,F=0,B=0;B>>24-M&16777215)!==0||B!==this.length-1?S[6-j.length]+j+st:j+st,(M+=2)>=26&&(M-=26,B--)}for(F!==0&&(st=F.toString(16)+st);st.length%U!=0;)st="0"+st;return this.negative!==0&&(st="-"+st),st}if(z===(0|z)&&z>=2&&z<=36){var H=E[z],et=w[z];st="";var vt=this.clone();for(vt.negative=0;!vt.isZero();){var bt=vt.modn(et).toString(z);st=(vt=vt.idivn(et)).isZero()?bt+st:S[H-bt.length]+bt+st}for(this.isZero()&&(st="0"+st);st.length%U!=0;)st="0"+st;return this.negative!==0&&(st="-"+st),st}p(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var z=this.words[0];return this.length===2?z+=67108864*this.words[1]:this.length===3&&this.words[2]===1?z+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-z:z},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(z,U){return p(x!==void 0),this.toArrayLike(x,z,U)},u.prototype.toArray=function(z,U){return this.toArrayLike(Array,z,U)},u.prototype.toArrayLike=function(z,U,st){var M=this.byteLength(),F=st||Math.max(1,M);p(M<=F,"byte array longer than desired length"),p(F>0,"Requested array length <= 0"),this.strip();var B,R,j=U==="le",H=new z(F),et=this.clone();if(j){for(R=0;!et.isZero();R++)B=et.andln(255),et.iushrn(8),H[R]=B;for(;R=4096&&(st+=13,U>>>=13),U>=64&&(st+=7,U>>>=7),U>=8&&(st+=4,U>>>=4),U>=2&&(st+=2,U>>>=2),st+U},u.prototype._zeroBits=function(z){if(z===0)return 26;var U=z,st=0;return(8191&U)==0&&(st+=13,U>>>=13),(127&U)==0&&(st+=7,U>>>=7),(15&U)==0&&(st+=4,U>>>=4),(3&U)==0&&(st+=2,U>>>=2),(1&U)==0&&st++,st},u.prototype.bitLength=function(){var z=this.words[this.length-1],U=this._countBits(z);return 26*(this.length-1)+U},u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var z=0,U=0;Uz.length?this.clone().ior(z):z.clone().ior(this)},u.prototype.uor=function(z){return this.length>z.length?this.clone().iuor(z):z.clone().iuor(this)},u.prototype.iuand=function(z){var U;U=this.length>z.length?z:this;for(var st=0;stz.length?this.clone().iand(z):z.clone().iand(this)},u.prototype.uand=function(z){return this.length>z.length?this.clone().iuand(z):z.clone().iuand(this)},u.prototype.iuxor=function(z){var U,st;this.length>z.length?(U=this,st=z):(U=z,st=this);for(var M=0;Mz.length?this.clone().ixor(z):z.clone().ixor(this)},u.prototype.uxor=function(z){return this.length>z.length?this.clone().iuxor(z):z.clone().iuxor(this)},u.prototype.inotn=function(z){p(typeof z=="number"&&z>=0);var U=0|Math.ceil(z/26),st=z%26;this._expand(U),st>0&&U--;for(var M=0;M0&&(this.words[M]=~this.words[M]&67108863>>26-st),this.strip()},u.prototype.notn=function(z){return this.clone().inotn(z)},u.prototype.setn=function(z,U){p(typeof z=="number"&&z>=0);var st=z/26|0,M=z%26;return this._expand(st+1),this.words[st]=U?this.words[st]|1<z.length?(st=this,M=z):(st=z,M=this);for(var F=0,B=0;B>>26;for(;F!==0&&B>>26;if(this.length=st.length,F!==0)this.words[this.length]=F,this.length++;else if(st!==this)for(;Bz.length?this.clone().iadd(z):z.clone().iadd(this)},u.prototype.isub=function(z){if(z.negative!==0){z.negative=0;var U=this.iadd(z);return z.negative=1,U._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(z),this.negative=1,this._normSign();var st,M,F=this.cmp(z);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;F>0?(st=this,M=z):(st=z,M=this);for(var B=0,R=0;R>26,this.words[R]=67108863&U;for(;B!==0&&R>26,this.words[R]=67108863&U;if(B===0&&R>>13,Z=0|R[1],Tt=8191&Z,K=Z>>>13,Q=0|R[2],xt=8191&Q,Bt=Q>>>13,ce=0|R[3],Wt=8191&ce,ne=ce>>>13,Ue=0|R[4],qe=8191&Ue,$t=Ue>>>13,Ne=0|R[5],Fe=8191&Ne,He=Ne>>>13,Qe=0|R[6],Xe=8191&Qe,ei=Qe>>>13,Mi=0|R[7],Ai=8191&Mi,Ni=Mi>>>13,un=0|R[8],Ui=8191&un,Zi=un>>>13,na=0|R[9],vn=8191&na,nn=na>>>13,bn=0|j[0],ji=8191&bn,Li=bn>>>13,ta=0|j[1],dn=8191&ta,En=ta>>>13,Ll=0|j[2],wn=8191&Ll,Mn=Ll>>>13,qr=0|j[3],Un=8191&qr,$n=qr>>>13,cl=0|j[4],Fn=8191&cl,Dn=cl>>>13,vo=0|j[5],Gn=8191&vo,On=vo>>>13,ml=0|j[6],Wn=8191&ml,ke=ml>>>13,mi=0|j[7],hi=8191&mi,Fi=mi>>>13,Ma=0|j[8],Ji=8191&Ma,mn=Ma>>>13,Wa=0|j[9],In=8191&Wa,sn=Wa>>>13;st.negative=z.negative^U.negative,st.length=19;var Ga=(et+(M=Math.imul(bt,ji))|0)+((8191&(F=(F=Math.imul(bt,Li))+Math.imul(kt,ji)|0))<<13)|0;et=((B=Math.imul(kt,Li))+(F>>>13)|0)+(Ga>>>26)|0,Ga&=67108863,M=Math.imul(Tt,ji),F=(F=Math.imul(Tt,Li))+Math.imul(K,ji)|0,B=Math.imul(K,Li);var fa=(et+(M=M+Math.imul(bt,dn)|0)|0)+((8191&(F=(F=F+Math.imul(bt,En)|0)+Math.imul(kt,dn)|0))<<13)|0;et=((B=B+Math.imul(kt,En)|0)+(F>>>13)|0)+(fa>>>26)|0,fa&=67108863,M=Math.imul(xt,ji),F=(F=Math.imul(xt,Li))+Math.imul(Bt,ji)|0,B=Math.imul(Bt,Li),M=M+Math.imul(Tt,dn)|0,F=(F=F+Math.imul(Tt,En)|0)+Math.imul(K,dn)|0,B=B+Math.imul(K,En)|0;var ha=(et+(M=M+Math.imul(bt,wn)|0)|0)+((8191&(F=(F=F+Math.imul(bt,Mn)|0)+Math.imul(kt,wn)|0))<<13)|0;et=((B=B+Math.imul(kt,Mn)|0)+(F>>>13)|0)+(ha>>>26)|0,ha&=67108863,M=Math.imul(Wt,ji),F=(F=Math.imul(Wt,Li))+Math.imul(ne,ji)|0,B=Math.imul(ne,Li),M=M+Math.imul(xt,dn)|0,F=(F=F+Math.imul(xt,En)|0)+Math.imul(Bt,dn)|0,B=B+Math.imul(Bt,En)|0,M=M+Math.imul(Tt,wn)|0,F=(F=F+Math.imul(Tt,Mn)|0)+Math.imul(K,wn)|0,B=B+Math.imul(K,Mn)|0;var Ja=(et+(M=M+Math.imul(bt,Un)|0)|0)+((8191&(F=(F=F+Math.imul(bt,$n)|0)+Math.imul(kt,Un)|0))<<13)|0;et=((B=B+Math.imul(kt,$n)|0)+(F>>>13)|0)+(Ja>>>26)|0,Ja&=67108863,M=Math.imul(qe,ji),F=(F=Math.imul(qe,Li))+Math.imul($t,ji)|0,B=Math.imul($t,Li),M=M+Math.imul(Wt,dn)|0,F=(F=F+Math.imul(Wt,En)|0)+Math.imul(ne,dn)|0,B=B+Math.imul(ne,En)|0,M=M+Math.imul(xt,wn)|0,F=(F=F+Math.imul(xt,Mn)|0)+Math.imul(Bt,wn)|0,B=B+Math.imul(Bt,Mn)|0,M=M+Math.imul(Tt,Un)|0,F=(F=F+Math.imul(Tt,$n)|0)+Math.imul(K,Un)|0,B=B+Math.imul(K,$n)|0;var Fr=(et+(M=M+Math.imul(bt,Fn)|0)|0)+((8191&(F=(F=F+Math.imul(bt,Dn)|0)+Math.imul(kt,Fn)|0))<<13)|0;et=((B=B+Math.imul(kt,Dn)|0)+(F>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,M=Math.imul(Fe,ji),F=(F=Math.imul(Fe,Li))+Math.imul(He,ji)|0,B=Math.imul(He,Li),M=M+Math.imul(qe,dn)|0,F=(F=F+Math.imul(qe,En)|0)+Math.imul($t,dn)|0,B=B+Math.imul($t,En)|0,M=M+Math.imul(Wt,wn)|0,F=(F=F+Math.imul(Wt,Mn)|0)+Math.imul(ne,wn)|0,B=B+Math.imul(ne,Mn)|0,M=M+Math.imul(xt,Un)|0,F=(F=F+Math.imul(xt,$n)|0)+Math.imul(Bt,Un)|0,B=B+Math.imul(Bt,$n)|0,M=M+Math.imul(Tt,Fn)|0,F=(F=F+Math.imul(Tt,Dn)|0)+Math.imul(K,Fn)|0,B=B+Math.imul(K,Dn)|0;var ao=(et+(M=M+Math.imul(bt,Gn)|0)|0)+((8191&(F=(F=F+Math.imul(bt,On)|0)+Math.imul(kt,Gn)|0))<<13)|0;et=((B=B+Math.imul(kt,On)|0)+(F>>>13)|0)+(ao>>>26)|0,ao&=67108863,M=Math.imul(Xe,ji),F=(F=Math.imul(Xe,Li))+Math.imul(ei,ji)|0,B=Math.imul(ei,Li),M=M+Math.imul(Fe,dn)|0,F=(F=F+Math.imul(Fe,En)|0)+Math.imul(He,dn)|0,B=B+Math.imul(He,En)|0,M=M+Math.imul(qe,wn)|0,F=(F=F+Math.imul(qe,Mn)|0)+Math.imul($t,wn)|0,B=B+Math.imul($t,Mn)|0,M=M+Math.imul(Wt,Un)|0,F=(F=F+Math.imul(Wt,$n)|0)+Math.imul(ne,Un)|0,B=B+Math.imul(ne,$n)|0,M=M+Math.imul(xt,Fn)|0,F=(F=F+Math.imul(xt,Dn)|0)+Math.imul(Bt,Fn)|0,B=B+Math.imul(Bt,Dn)|0,M=M+Math.imul(Tt,Gn)|0,F=(F=F+Math.imul(Tt,On)|0)+Math.imul(K,Gn)|0,B=B+Math.imul(K,On)|0;var bo=(et+(M=M+Math.imul(bt,Wn)|0)|0)+((8191&(F=(F=F+Math.imul(bt,ke)|0)+Math.imul(kt,Wn)|0))<<13)|0;et=((B=B+Math.imul(kt,ke)|0)+(F>>>13)|0)+(bo>>>26)|0,bo&=67108863,M=Math.imul(Ai,ji),F=(F=Math.imul(Ai,Li))+Math.imul(Ni,ji)|0,B=Math.imul(Ni,Li),M=M+Math.imul(Xe,dn)|0,F=(F=F+Math.imul(Xe,En)|0)+Math.imul(ei,dn)|0,B=B+Math.imul(ei,En)|0,M=M+Math.imul(Fe,wn)|0,F=(F=F+Math.imul(Fe,Mn)|0)+Math.imul(He,wn)|0,B=B+Math.imul(He,Mn)|0,M=M+Math.imul(qe,Un)|0,F=(F=F+Math.imul(qe,$n)|0)+Math.imul($t,Un)|0,B=B+Math.imul($t,$n)|0,M=M+Math.imul(Wt,Fn)|0,F=(F=F+Math.imul(Wt,Dn)|0)+Math.imul(ne,Fn)|0,B=B+Math.imul(ne,Dn)|0,M=M+Math.imul(xt,Gn)|0,F=(F=F+Math.imul(xt,On)|0)+Math.imul(Bt,Gn)|0,B=B+Math.imul(Bt,On)|0,M=M+Math.imul(Tt,Wn)|0,F=(F=F+Math.imul(Tt,ke)|0)+Math.imul(K,Wn)|0,B=B+Math.imul(K,ke)|0;var Zr=(et+(M=M+Math.imul(bt,hi)|0)|0)+((8191&(F=(F=F+Math.imul(bt,Fi)|0)+Math.imul(kt,hi)|0))<<13)|0;et=((B=B+Math.imul(kt,Fi)|0)+(F>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,M=Math.imul(Ui,ji),F=(F=Math.imul(Ui,Li))+Math.imul(Zi,ji)|0,B=Math.imul(Zi,Li),M=M+Math.imul(Ai,dn)|0,F=(F=F+Math.imul(Ai,En)|0)+Math.imul(Ni,dn)|0,B=B+Math.imul(Ni,En)|0,M=M+Math.imul(Xe,wn)|0,F=(F=F+Math.imul(Xe,Mn)|0)+Math.imul(ei,wn)|0,B=B+Math.imul(ei,Mn)|0,M=M+Math.imul(Fe,Un)|0,F=(F=F+Math.imul(Fe,$n)|0)+Math.imul(He,Un)|0,B=B+Math.imul(He,$n)|0,M=M+Math.imul(qe,Fn)|0,F=(F=F+Math.imul(qe,Dn)|0)+Math.imul($t,Fn)|0,B=B+Math.imul($t,Dn)|0,M=M+Math.imul(Wt,Gn)|0,F=(F=F+Math.imul(Wt,On)|0)+Math.imul(ne,Gn)|0,B=B+Math.imul(ne,On)|0,M=M+Math.imul(xt,Wn)|0,F=(F=F+Math.imul(xt,ke)|0)+Math.imul(Bt,Wn)|0,B=B+Math.imul(Bt,ke)|0,M=M+Math.imul(Tt,hi)|0,F=(F=F+Math.imul(Tt,Fi)|0)+Math.imul(K,hi)|0,B=B+Math.imul(K,Fi)|0;var ro=(et+(M=M+Math.imul(bt,Ji)|0)|0)+((8191&(F=(F=F+Math.imul(bt,mn)|0)+Math.imul(kt,Ji)|0))<<13)|0;et=((B=B+Math.imul(kt,mn)|0)+(F>>>13)|0)+(ro>>>26)|0,ro&=67108863,M=Math.imul(vn,ji),F=(F=Math.imul(vn,Li))+Math.imul(nn,ji)|0,B=Math.imul(nn,Li),M=M+Math.imul(Ui,dn)|0,F=(F=F+Math.imul(Ui,En)|0)+Math.imul(Zi,dn)|0,B=B+Math.imul(Zi,En)|0,M=M+Math.imul(Ai,wn)|0,F=(F=F+Math.imul(Ai,Mn)|0)+Math.imul(Ni,wn)|0,B=B+Math.imul(Ni,Mn)|0,M=M+Math.imul(Xe,Un)|0,F=(F=F+Math.imul(Xe,$n)|0)+Math.imul(ei,Un)|0,B=B+Math.imul(ei,$n)|0,M=M+Math.imul(Fe,Fn)|0,F=(F=F+Math.imul(Fe,Dn)|0)+Math.imul(He,Fn)|0,B=B+Math.imul(He,Dn)|0,M=M+Math.imul(qe,Gn)|0,F=(F=F+Math.imul(qe,On)|0)+Math.imul($t,Gn)|0,B=B+Math.imul($t,On)|0,M=M+Math.imul(Wt,Wn)|0,F=(F=F+Math.imul(Wt,ke)|0)+Math.imul(ne,Wn)|0,B=B+Math.imul(ne,ke)|0,M=M+Math.imul(xt,hi)|0,F=(F=F+Math.imul(xt,Fi)|0)+Math.imul(Bt,hi)|0,B=B+Math.imul(Bt,Fi)|0,M=M+Math.imul(Tt,Ji)|0,F=(F=F+Math.imul(Tt,mn)|0)+Math.imul(K,Ji)|0,B=B+Math.imul(K,mn)|0;var fe=(et+(M=M+Math.imul(bt,In)|0)|0)+((8191&(F=(F=F+Math.imul(bt,sn)|0)+Math.imul(kt,In)|0))<<13)|0;et=((B=B+Math.imul(kt,sn)|0)+(F>>>13)|0)+(fe>>>26)|0,fe&=67108863,M=Math.imul(vn,dn),F=(F=Math.imul(vn,En))+Math.imul(nn,dn)|0,B=Math.imul(nn,En),M=M+Math.imul(Ui,wn)|0,F=(F=F+Math.imul(Ui,Mn)|0)+Math.imul(Zi,wn)|0,B=B+Math.imul(Zi,Mn)|0,M=M+Math.imul(Ai,Un)|0,F=(F=F+Math.imul(Ai,$n)|0)+Math.imul(Ni,Un)|0,B=B+Math.imul(Ni,$n)|0,M=M+Math.imul(Xe,Fn)|0,F=(F=F+Math.imul(Xe,Dn)|0)+Math.imul(ei,Fn)|0,B=B+Math.imul(ei,Dn)|0,M=M+Math.imul(Fe,Gn)|0,F=(F=F+Math.imul(Fe,On)|0)+Math.imul(He,Gn)|0,B=B+Math.imul(He,On)|0,M=M+Math.imul(qe,Wn)|0,F=(F=F+Math.imul(qe,ke)|0)+Math.imul($t,Wn)|0,B=B+Math.imul($t,ke)|0,M=M+Math.imul(Wt,hi)|0,F=(F=F+Math.imul(Wt,Fi)|0)+Math.imul(ne,hi)|0,B=B+Math.imul(ne,Fi)|0,M=M+Math.imul(xt,Ji)|0,F=(F=F+Math.imul(xt,mn)|0)+Math.imul(Bt,Ji)|0,B=B+Math.imul(Bt,mn)|0;var ii=(et+(M=M+Math.imul(Tt,In)|0)|0)+((8191&(F=(F=F+Math.imul(Tt,sn)|0)+Math.imul(K,In)|0))<<13)|0;et=((B=B+Math.imul(K,sn)|0)+(F>>>13)|0)+(ii>>>26)|0,ii&=67108863,M=Math.imul(vn,wn),F=(F=Math.imul(vn,Mn))+Math.imul(nn,wn)|0,B=Math.imul(nn,Mn),M=M+Math.imul(Ui,Un)|0,F=(F=F+Math.imul(Ui,$n)|0)+Math.imul(Zi,Un)|0,B=B+Math.imul(Zi,$n)|0,M=M+Math.imul(Ai,Fn)|0,F=(F=F+Math.imul(Ai,Dn)|0)+Math.imul(Ni,Fn)|0,B=B+Math.imul(Ni,Dn)|0,M=M+Math.imul(Xe,Gn)|0,F=(F=F+Math.imul(Xe,On)|0)+Math.imul(ei,Gn)|0,B=B+Math.imul(ei,On)|0,M=M+Math.imul(Fe,Wn)|0,F=(F=F+Math.imul(Fe,ke)|0)+Math.imul(He,Wn)|0,B=B+Math.imul(He,ke)|0,M=M+Math.imul(qe,hi)|0,F=(F=F+Math.imul(qe,Fi)|0)+Math.imul($t,hi)|0,B=B+Math.imul($t,Fi)|0,M=M+Math.imul(Wt,Ji)|0,F=(F=F+Math.imul(Wt,mn)|0)+Math.imul(ne,Ji)|0,B=B+Math.imul(ne,mn)|0;var Ei=(et+(M=M+Math.imul(xt,In)|0)|0)+((8191&(F=(F=F+Math.imul(xt,sn)|0)+Math.imul(Bt,In)|0))<<13)|0;et=((B=B+Math.imul(Bt,sn)|0)+(F>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,M=Math.imul(vn,Un),F=(F=Math.imul(vn,$n))+Math.imul(nn,Un)|0,B=Math.imul(nn,$n),M=M+Math.imul(Ui,Fn)|0,F=(F=F+Math.imul(Ui,Dn)|0)+Math.imul(Zi,Fn)|0,B=B+Math.imul(Zi,Dn)|0,M=M+Math.imul(Ai,Gn)|0,F=(F=F+Math.imul(Ai,On)|0)+Math.imul(Ni,Gn)|0,B=B+Math.imul(Ni,On)|0,M=M+Math.imul(Xe,Wn)|0,F=(F=F+Math.imul(Xe,ke)|0)+Math.imul(ei,Wn)|0,B=B+Math.imul(ei,ke)|0,M=M+Math.imul(Fe,hi)|0,F=(F=F+Math.imul(Fe,Fi)|0)+Math.imul(He,hi)|0,B=B+Math.imul(He,Fi)|0,M=M+Math.imul(qe,Ji)|0,F=(F=F+Math.imul(qe,mn)|0)+Math.imul($t,Ji)|0,B=B+Math.imul($t,mn)|0;var _i=(et+(M=M+Math.imul(Wt,In)|0)|0)+((8191&(F=(F=F+Math.imul(Wt,sn)|0)+Math.imul(ne,In)|0))<<13)|0;et=((B=B+Math.imul(ne,sn)|0)+(F>>>13)|0)+(_i>>>26)|0,_i&=67108863,M=Math.imul(vn,Fn),F=(F=Math.imul(vn,Dn))+Math.imul(nn,Fn)|0,B=Math.imul(nn,Dn),M=M+Math.imul(Ui,Gn)|0,F=(F=F+Math.imul(Ui,On)|0)+Math.imul(Zi,Gn)|0,B=B+Math.imul(Zi,On)|0,M=M+Math.imul(Ai,Wn)|0,F=(F=F+Math.imul(Ai,ke)|0)+Math.imul(Ni,Wn)|0,B=B+Math.imul(Ni,ke)|0,M=M+Math.imul(Xe,hi)|0,F=(F=F+Math.imul(Xe,Fi)|0)+Math.imul(ei,hi)|0,B=B+Math.imul(ei,Fi)|0,M=M+Math.imul(Fe,Ji)|0,F=(F=F+Math.imul(Fe,mn)|0)+Math.imul(He,Ji)|0,B=B+Math.imul(He,mn)|0;var Vi=(et+(M=M+Math.imul(qe,In)|0)|0)+((8191&(F=(F=F+Math.imul(qe,sn)|0)+Math.imul($t,In)|0))<<13)|0;et=((B=B+Math.imul($t,sn)|0)+(F>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,M=Math.imul(vn,Gn),F=(F=Math.imul(vn,On))+Math.imul(nn,Gn)|0,B=Math.imul(nn,On),M=M+Math.imul(Ui,Wn)|0,F=(F=F+Math.imul(Ui,ke)|0)+Math.imul(Zi,Wn)|0,B=B+Math.imul(Zi,ke)|0,M=M+Math.imul(Ai,hi)|0,F=(F=F+Math.imul(Ai,Fi)|0)+Math.imul(Ni,hi)|0,B=B+Math.imul(Ni,Fi)|0,M=M+Math.imul(Xe,Ji)|0,F=(F=F+Math.imul(Xe,mn)|0)+Math.imul(ei,Ji)|0,B=B+Math.imul(ei,mn)|0;var fn=(et+(M=M+Math.imul(Fe,In)|0)|0)+((8191&(F=(F=F+Math.imul(Fe,sn)|0)+Math.imul(He,In)|0))<<13)|0;et=((B=B+Math.imul(He,sn)|0)+(F>>>13)|0)+(fn>>>26)|0,fn&=67108863,M=Math.imul(vn,Wn),F=(F=Math.imul(vn,ke))+Math.imul(nn,Wn)|0,B=Math.imul(nn,ke),M=M+Math.imul(Ui,hi)|0,F=(F=F+Math.imul(Ui,Fi)|0)+Math.imul(Zi,hi)|0,B=B+Math.imul(Zi,Fi)|0,M=M+Math.imul(Ai,Ji)|0,F=(F=F+Math.imul(Ai,mn)|0)+Math.imul(Ni,Ji)|0,B=B+Math.imul(Ni,mn)|0;var xn=(et+(M=M+Math.imul(Xe,In)|0)|0)+((8191&(F=(F=F+Math.imul(Xe,sn)|0)+Math.imul(ei,In)|0))<<13)|0;et=((B=B+Math.imul(ei,sn)|0)+(F>>>13)|0)+(xn>>>26)|0,xn&=67108863,M=Math.imul(vn,hi),F=(F=Math.imul(vn,Fi))+Math.imul(nn,hi)|0,B=Math.imul(nn,Fi),M=M+Math.imul(Ui,Ji)|0,F=(F=F+Math.imul(Ui,mn)|0)+Math.imul(Zi,Ji)|0,B=B+Math.imul(Zi,mn)|0;var va=(et+(M=M+Math.imul(Ai,In)|0)|0)+((8191&(F=(F=F+Math.imul(Ai,sn)|0)+Math.imul(Ni,In)|0))<<13)|0;et=((B=B+Math.imul(Ni,sn)|0)+(F>>>13)|0)+(va>>>26)|0,va&=67108863,M=Math.imul(vn,Ji),F=(F=Math.imul(vn,mn))+Math.imul(nn,Ji)|0,B=Math.imul(nn,mn);var Qn=(et+(M=M+Math.imul(Ui,In)|0)|0)+((8191&(F=(F=F+Math.imul(Ui,sn)|0)+Math.imul(Zi,In)|0))<<13)|0;et=((B=B+Math.imul(Zi,sn)|0)+(F>>>13)|0)+(Qn>>>26)|0,Qn&=67108863;var Bn=(et+(M=Math.imul(vn,In))|0)+((8191&(F=(F=Math.imul(vn,sn))+Math.imul(nn,In)|0))<<13)|0;return et=((B=Math.imul(nn,sn))+(F>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,H[0]=Ga,H[1]=fa,H[2]=ha,H[3]=Ja,H[4]=Fr,H[5]=ao,H[6]=bo,H[7]=Zr,H[8]=ro,H[9]=fe,H[10]=ii,H[11]=Ei,H[12]=_i,H[13]=Vi,H[14]=fn,H[15]=xn,H[16]=va,H[17]=Qn,H[18]=Bn,et!==0&&(H[19]=et,st.length++),st};function A(z,U,st){return new V().mulp(z,U,st)}function V(z,U){this.x=z,this.y=U}Math.imul||(T=I),u.prototype.mulTo=function(z,U){var st=this.length+z.length;return this.length===10&&z.length===10?T(this,z,U):st<63?I(this,z,U):st<1024?function(M,F,B){B.negative=F.negative^M.negative,B.length=M.length+F.length;for(var R=0,j=0,H=0;H>>26)|0)>>>26,et&=67108863}B.words[H]=vt,R=et,et=j}return R!==0?B.words[H]=R:B.length--,B.strip()}(this,z,U):A(this,z,U)},V.prototype.makeRBT=function(z){for(var U=new Array(z),st=u.prototype._countBits(z)-1,M=0;M>=1;return M},V.prototype.permute=function(z,U,st,M,F,B){for(var R=0;R>>=1)F++;return 1<>>=13,st[2*B+1]=8191&F,F>>>=13;for(B=2*U;B>=26,U+=M/67108864|0,U+=F>>>26,this.words[st]=67108863&F}return U!==0&&(this.words[st]=U,this.length++),this},u.prototype.muln=function(z){return this.clone().imuln(z)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(z){var U=function(B){for(var R=new Array(B.bitLength()),j=0;j>>et}return R}(z);if(U.length===0)return new u(1);for(var st=this,M=0;M=0);var U,st=z%26,M=(z-st)/26,F=67108863>>>26-st<<26-st;if(st!==0){var B=0;for(U=0;U>>26-st}B&&(this.words[U]=B,this.length++)}if(M!==0){for(U=this.length-1;U>=0;U--)this.words[U+M]=this.words[U];for(U=0;U=0),M=U?(U-U%26)/26:0;var F=z%26,B=Math.min((z-F)/26,this.length),R=67108863^67108863>>>F<B)for(this.length-=B,H=0;H=0&&(et!==0||H>=M);H--){var vt=0|this.words[H];this.words[H]=et<<26-F|vt>>>F,et=vt&R}return j&&et!==0&&(j.words[j.length++]=et),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(z,U,st){return p(this.negative===0),this.iushrn(z,U,st)},u.prototype.shln=function(z){return this.clone().ishln(z)},u.prototype.ushln=function(z){return this.clone().iushln(z)},u.prototype.shrn=function(z){return this.clone().ishrn(z)},u.prototype.ushrn=function(z){return this.clone().iushrn(z)},u.prototype.testn=function(z){p(typeof z=="number"&&z>=0);var U=z%26,st=(z-U)/26,M=1<=0);var U=z%26,st=(z-U)/26;if(p(this.negative===0,"imaskn works only with positive numbers"),this.length<=st)return this;if(U!==0&&st++,this.length=Math.min(st,this.length),U!==0){var M=67108863^67108863>>>U<=67108864;U++)this.words[U]-=67108864,U===this.length-1?this.words[U+1]=1:this.words[U+1]++;return this.length=Math.max(this.length,U+1),this},u.prototype.isubn=function(z){if(p(typeof z=="number"),p(z<67108864),z<0)return this.iaddn(-z);if(this.negative!==0)return this.negative=0,this.iaddn(z),this.negative=1,this;if(this.words[0]-=z,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var U=0;U>26)-(j/67108864|0),this.words[M+st]=67108863&F}for(;M>26,this.words[M+st]=67108863&F;if(R===0)return this.strip();for(p(R===-1),R=0,M=0;M>26,this.words[M]=67108863&F;return this.negative=1,this.strip()},u.prototype._wordDiv=function(z,U){var st=(this.length,z.length),M=this.clone(),F=z,B=0|F.words[F.length-1];(st=26-this._countBits(B))!==0&&(F=F.ushln(st),M.iushln(st),B=0|F.words[F.length-1]);var R,j=M.length-F.length;if(U!=="mod"){(R=new u(null)).length=j+1,R.words=new Array(R.length);for(var H=0;H=0;vt--){var bt=67108864*(0|M.words[F.length+vt])+(0|M.words[F.length+vt-1]);for(bt=Math.min(bt/B|0,67108863),M._ishlnsubmul(F,bt,vt);M.negative!==0;)bt--,M.negative=0,M._ishlnsubmul(F,1,vt),M.isZero()||(M.negative^=1);R&&(R.words[vt]=bt)}return R&&R.strip(),M.strip(),U!=="div"&&st!==0&&M.iushrn(st),{div:R||null,mod:M}},u.prototype.divmod=function(z,U,st){return p(!z.isZero()),this.isZero()?{div:new u(0),mod:new u(0)}:this.negative!==0&&z.negative===0?(B=this.neg().divmod(z,U),U!=="mod"&&(M=B.div.neg()),U!=="div"&&(F=B.mod.neg(),st&&F.negative!==0&&F.iadd(z)),{div:M,mod:F}):this.negative===0&&z.negative!==0?(B=this.divmod(z.neg(),U),U!=="mod"&&(M=B.div.neg()),{div:M,mod:B.mod}):(this.negative&z.negative)!=0?(B=this.neg().divmod(z.neg(),U),U!=="div"&&(F=B.mod.neg(),st&&F.negative!==0&&F.isub(z)),{div:B.div,mod:F}):z.length>this.length||this.cmp(z)<0?{div:new u(0),mod:this}:z.length===1?U==="div"?{div:this.divn(z.words[0]),mod:null}:U==="mod"?{div:null,mod:new u(this.modn(z.words[0]))}:{div:this.divn(z.words[0]),mod:new u(this.modn(z.words[0]))}:this._wordDiv(z,U);var M,F,B},u.prototype.div=function(z){return this.divmod(z,"div",!1).div},u.prototype.mod=function(z){return this.divmod(z,"mod",!1).mod},u.prototype.umod=function(z){return this.divmod(z,"mod",!0).mod},u.prototype.divRound=function(z){var U=this.divmod(z);if(U.mod.isZero())return U.div;var st=U.div.negative!==0?U.mod.isub(z):U.mod,M=z.ushrn(1),F=z.andln(1),B=st.cmp(M);return B<0||F===1&&B===0?U.div:U.div.negative!==0?U.div.isubn(1):U.div.iaddn(1)},u.prototype.modn=function(z){p(z<=67108863);for(var U=(1<<26)%z,st=0,M=this.length-1;M>=0;M--)st=(U*st+(0|this.words[M]))%z;return st},u.prototype.idivn=function(z){p(z<=67108863);for(var U=0,st=this.length-1;st>=0;st--){var M=(0|this.words[st])+67108864*U;this.words[st]=M/z|0,U=M%z}return this.strip()},u.prototype.divn=function(z){return this.clone().idivn(z)},u.prototype.egcd=function(z){p(z.negative===0),p(!z.isZero());var U=this,st=z.clone();U=U.negative!==0?U.umod(z):U.clone();for(var M=new u(1),F=new u(0),B=new u(0),R=new u(1),j=0;U.isEven()&&st.isEven();)U.iushrn(1),st.iushrn(1),++j;for(var H=st.clone(),et=U.clone();!U.isZero();){for(var vt=0,bt=1;(U.words[0]&bt)==0&&vt<26;++vt,bt<<=1);if(vt>0)for(U.iushrn(vt);vt-- >0;)(M.isOdd()||F.isOdd())&&(M.iadd(H),F.isub(et)),M.iushrn(1),F.iushrn(1);for(var kt=0,Z=1;(st.words[0]&Z)==0&&kt<26;++kt,Z<<=1);if(kt>0)for(st.iushrn(kt);kt-- >0;)(B.isOdd()||R.isOdd())&&(B.iadd(H),R.isub(et)),B.iushrn(1),R.iushrn(1);U.cmp(st)>=0?(U.isub(st),M.isub(B),F.isub(R)):(st.isub(U),B.isub(M),R.isub(F))}return{a:B,b:R,gcd:st.iushln(j)}},u.prototype._invmp=function(z){p(z.negative===0),p(!z.isZero());var U=this,st=z.clone();U=U.negative!==0?U.umod(z):U.clone();for(var M,F=new u(1),B=new u(0),R=st.clone();U.cmpn(1)>0&&st.cmpn(1)>0;){for(var j=0,H=1;(U.words[0]&H)==0&&j<26;++j,H<<=1);if(j>0)for(U.iushrn(j);j-- >0;)F.isOdd()&&F.iadd(R),F.iushrn(1);for(var et=0,vt=1;(st.words[0]&vt)==0&&et<26;++et,vt<<=1);if(et>0)for(st.iushrn(et);et-- >0;)B.isOdd()&&B.iadd(R),B.iushrn(1);U.cmp(st)>=0?(U.isub(st),F.isub(B)):(st.isub(U),B.isub(F))}return(M=U.cmpn(1)===0?F:B).cmpn(0)<0&&M.iadd(z),M},u.prototype.gcd=function(z){if(this.isZero())return z.abs();if(z.isZero())return this.abs();var U=this.clone(),st=z.clone();U.negative=0,st.negative=0;for(var M=0;U.isEven()&&st.isEven();M++)U.iushrn(1),st.iushrn(1);for(;;){for(;U.isEven();)U.iushrn(1);for(;st.isEven();)st.iushrn(1);var F=U.cmp(st);if(F<0){var B=U;U=st,st=B}else if(F===0||st.cmpn(1)===0)break;U.isub(st)}return st.iushln(M)},u.prototype.invm=function(z){return this.egcd(z).a.umod(z)},u.prototype.isEven=function(){return(1&this.words[0])==0},u.prototype.isOdd=function(){return(1&this.words[0])==1},u.prototype.andln=function(z){return this.words[0]&z},u.prototype.bincn=function(z){p(typeof z=="number");var U=z%26,st=(z-U)/26,M=1<>>26,R&=67108863,this.words[B]=R}return F!==0&&(this.words[B]=F,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(z){var U,st=z<0;if(this.negative!==0&&!st)return-1;if(this.negative===0&&st)return 1;if(this.strip(),this.length>1)U=1;else{st&&(z=-z),p(z<=67108863,"Number is too big");var M=0|this.words[0];U=M===z?0:Mz.length)return 1;if(this.length=0;st--){var M=0|this.words[st],F=0|z.words[st];if(M!==F){MF&&(U=1);break}}return U},u.prototype.gtn=function(z){return this.cmpn(z)===1},u.prototype.gt=function(z){return this.cmp(z)===1},u.prototype.gten=function(z){return this.cmpn(z)>=0},u.prototype.gte=function(z){return this.cmp(z)>=0},u.prototype.ltn=function(z){return this.cmpn(z)===-1},u.prototype.lt=function(z){return this.cmp(z)===-1},u.prototype.lten=function(z){return this.cmpn(z)<=0},u.prototype.lte=function(z){return this.cmp(z)<=0},u.prototype.eqn=function(z){return this.cmpn(z)===0},u.prototype.eq=function(z){return this.cmp(z)===0},u.red=function(z){return new ht(z)},u.prototype.toRed=function(z){return p(!this.red,"Already a number in reduction context"),p(this.negative===0,"red works only with positives"),z.convertTo(this)._forceRed(z)},u.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(z){return this.red=z,this},u.prototype.forceRed=function(z){return p(!this.red,"Already a number in reduction context"),this._forceRed(z)},u.prototype.redAdd=function(z){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,z)},u.prototype.redIAdd=function(z){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,z)},u.prototype.redSub=function(z){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,z)},u.prototype.redISub=function(z){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,z)},u.prototype.redShl=function(z){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,z)},u.prototype.redMul=function(z){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,z),this.red.mul(this,z)},u.prototype.redIMul=function(z){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,z),this.red.imul(this,z)},u.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(z){return p(this.red&&!z.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,z)};var G={k256:null,p224:null,p192:null,p25519:null};function J(z,U){this.name=z,this.p=new u(U,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function at(){J.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function X(){J.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function nt(){J.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ot(){J.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ht(z){if(typeof z=="string"){var U=u._prime(z);this.m=U.p,this.prime=U}else p(z.gtn(1),"modulus must be greater than 1"),this.m=z,this.prime=null}function ct(z){ht.call(this,z),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}J.prototype._tmp=function(){var z=new u(null);return z.words=new Array(Math.ceil(this.n/13)),z},J.prototype.ireduce=function(z){var U,st=z;do this.split(st,this.tmp),U=(st=(st=this.imulK(st)).iadd(this.tmp)).bitLength();while(U>this.n);var M=U0?st.isub(this.p):st.strip!==void 0?st.strip():st._strip(),st},J.prototype.split=function(z,U){z.iushrn(this.n,0,U)},J.prototype.imulK=function(z){return z.imul(this.k)},d(at,J),at.prototype.split=function(z,U){for(var st=Math.min(z.length,9),M=0;M>>22,F=B}F>>>=22,z.words[M-10]=F,F===0&&z.length>10?z.length-=10:z.length-=9},at.prototype.imulK=function(z){z.words[z.length]=0,z.words[z.length+1]=0,z.length+=2;for(var U=0,st=0;st>>=26,z.words[st]=F,U=M}return U!==0&&(z.words[z.length++]=U),z},u._prime=function(z){if(G[z])return G[z];var U;if(z==="k256")U=new at;else if(z==="p224")U=new X;else if(z==="p192")U=new nt;else{if(z!=="p25519")throw new Error("Unknown prime "+z);U=new ot}return G[z]=U,U},ht.prototype._verify1=function(z){p(z.negative===0,"red works only with positives"),p(z.red,"red works only with red numbers")},ht.prototype._verify2=function(z,U){p((z.negative|U.negative)==0,"red works only with positives"),p(z.red&&z.red===U.red,"red works only with red numbers")},ht.prototype.imod=function(z){return this.prime?this.prime.ireduce(z)._forceRed(this):z.umod(this.m)._forceRed(this)},ht.prototype.neg=function(z){return z.isZero()?z.clone():this.m.sub(z)._forceRed(this)},ht.prototype.add=function(z,U){this._verify2(z,U);var st=z.add(U);return st.cmp(this.m)>=0&&st.isub(this.m),st._forceRed(this)},ht.prototype.iadd=function(z,U){this._verify2(z,U);var st=z.iadd(U);return st.cmp(this.m)>=0&&st.isub(this.m),st},ht.prototype.sub=function(z,U){this._verify2(z,U);var st=z.sub(U);return st.cmpn(0)<0&&st.iadd(this.m),st._forceRed(this)},ht.prototype.isub=function(z,U){this._verify2(z,U);var st=z.isub(U);return st.cmpn(0)<0&&st.iadd(this.m),st},ht.prototype.shl=function(z,U){return this._verify1(z),this.imod(z.ushln(U))},ht.prototype.imul=function(z,U){return this._verify2(z,U),this.imod(z.imul(U))},ht.prototype.mul=function(z,U){return this._verify2(z,U),this.imod(z.mul(U))},ht.prototype.isqr=function(z){return this.imul(z,z.clone())},ht.prototype.sqr=function(z){return this.mul(z,z)},ht.prototype.sqrt=function(z){if(z.isZero())return z.clone();var U=this.m.andln(3);if(p(U%2==1),U===3){var st=this.m.add(new u(1)).iushrn(2);return this.pow(z,st)}for(var M=this.m.subn(1),F=0;!M.isZero()&&M.andln(1)===0;)F++,M.iushrn(1);p(!M.isZero());var B=new u(1).toRed(this),R=B.redNeg(),j=this.m.subn(1).iushrn(1),H=this.m.bitLength();for(H=new u(2*H*H).toRed(this);this.pow(H,j).cmp(R)!==0;)H.redIAdd(R);for(var et=this.pow(H,M),vt=this.pow(z,M.addn(1).iushrn(1)),bt=this.pow(z,M),kt=F;bt.cmp(B)!==0;){for(var Z=bt,Tt=0;Z.cmp(B)!==0;Tt++)Z=Z.redSqr();p(Tt=0;M--){for(var H=U.words[M],et=j-1;et>=0;et--){var vt=H>>et&1;F!==st[0]&&(F=this.sqr(F)),vt!==0||B!==0?(B<<=1,B|=vt,(++R===4||M===0&&et===0)&&(F=this.mul(F,st[B]),R=0,B=0)):R=0}j=26}return F},ht.prototype.convertTo=function(z){var U=z.umod(this.m);return U===z?U.clone():U},ht.prototype.convertFrom=function(z){var U=z.clone();return U.red=null,U},u.mont=function(z){return new ct(z)},d(ct,ht),ct.prototype.convertTo=function(z){return this.imod(z.ushln(this.shift))},ct.prototype.convertFrom=function(z){var U=this.imod(z.mul(this.rinv));return U.red=null,U},ct.prototype.imul=function(z,U){if(z.isZero()||U.isZero())return z.words[0]=0,z.length=1,z;var st=z.imul(U),M=st.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=st.isub(M).iushrn(this.shift),B=F;return F.cmp(this.m)>=0?B=F.isub(this.m):F.cmpn(0)<0&&(B=F.iadd(this.m)),B._forceRed(this)},ct.prototype.mul=function(z,U){if(z.isZero()||U.isZero())return new u(0)._forceRed(this);var st=z.mul(U),M=st.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=st.isub(M).iushrn(this.shift),B=F;return F.cmp(this.m)>=0?B=F.isub(this.m):F.cmpn(0)<0&&(B=F.iadd(this.m)),B._forceRed(this)},ct.prototype.invm=function(z){return this.imod(z._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r)},{buffer:188}],185:[function(e,r,i){"use strict";i.byteLength=function(C){var S=_(C),E=S[0],w=S[1];return 3*(E+w)/4-w},i.toByteArray=function(C){var S,E,w=_(C),I=w[0],T=w[1],A=new p(function(J,at,X){return 3*(at+X)/4-X}(0,I,T)),V=0,G=T>0?I-4:I;for(E=0;E>16&255,A[V++]=S>>8&255,A[V++]=255&S;return T===2&&(S=n[C.charCodeAt(E)]<<2|n[C.charCodeAt(E+1)]>>4,A[V++]=255&S),T===1&&(S=n[C.charCodeAt(E)]<<10|n[C.charCodeAt(E+1)]<<4|n[C.charCodeAt(E+2)]>>2,A[V++]=S>>8&255,A[V++]=255&S),A},i.fromByteArray=function(C){for(var S,E=C.length,w=E%3,I=[],T=0,A=E-w;TA?A:T+16383));return w===1?(S=C[E-1],I.push(a[S>>2]+a[S<<4&63]+"==")):w===2&&(S=(C[E-2]<<8)+C[E-1],I.push(a[S>>10]+a[S>>4&63]+a[S<<2&63]+"=")),I.join("")};for(var a=[],n=[],p=typeof Uint8Array<"u"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,x=d.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var E=C.indexOf("=");return E===-1&&(E=S),[E,E===S?0:4-E%4]}function v(C,S,E){for(var w,I,T=[],A=S;A>18&63]+a[I>>12&63]+a[I>>6&63]+a[63&I]);return T.join("")}n[45]=62,n[95]=63},{}],186:[function(e,r,i){"use strict";(function(a,n){function p(M,F){if(!M)throw new Error(F||"Assertion failed")}function d(M,F){M.super_=F;var B=function(){};B.prototype=F.prototype,M.prototype=new B,M.prototype.constructor=M}function u(M,F,B){if(u.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,M!==null&&(F!=="le"&&F!=="be"||(B=F,F=10),this._init(M||0,F||10,B||"be"))}var x;typeof a=="object"?a.exports=u:(void 0).BN=u,u.BN=u,u.wordSize=26;try{x=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function _(M,F){var B=M.charCodeAt(F);return B>=48&&B<=57?B-48:B>=65&&B<=70?B-55:B>=97&&B<=102?B-87:void p(!1,"Invalid character in "+M)}function v(M,F,B){var R=_(M,B);return B-1>=F&&(R|=_(M,B-1)<<4),R}function C(M,F,B,R){for(var j=0,H=0,et=Math.min(M.length,B),vt=F;vt=49?bt-49+10:bt>=17?bt-17+10:bt,p(bt>=0&&H0?M:F},u.min=function(M,F){return M.cmp(F)<0?M:F},u.prototype._init=function(M,F,B){if(typeof M=="number")return this._initNumber(M,F,B);if(typeof M=="object")return this._initArray(M,F,B);F==="hex"&&(F=16),p(F===(0|F)&&F>=2&&F<=36);var R=0;(M=M.toString().replace(/\s+/g,""))[0]==="-"&&(R++,this.negative=1),R=0;R-=3)H=M[R]|M[R-1]<<8|M[R-2]<<16,this.words[j]|=H<>>26-et&67108863,(et+=24)>=26&&(et-=26,j++);else if(B==="le")for(R=0,j=0;R>>26-et&67108863,(et+=24)>=26&&(et-=26,j++);return this._strip()},u.prototype._parseHex=function(M,F,B){this.length=Math.ceil((M.length-F)/6),this.words=new Array(this.length);for(var R=0;R=F;R-=2)j=v(M,F,R)<=18?(H-=18,et+=1,this.words[et]|=j>>>26):H+=8;else for(R=(M.length-F)%2==0?F+1:F;R=18?(H-=18,et+=1,this.words[et]|=j>>>26):H+=8;this._strip()},u.prototype._parseBase=function(M,F,B){this.words=[0],this.length=1;for(var R=0,j=1;j<=67108863;j*=F)R++;R--,j=j/F|0;for(var H=M.length-B,et=H%R,vt=Math.min(H,H-et)+B,bt=0,kt=B;kt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=E}catch{u.prototype.inspect=E}else u.prototype.inspect=E;function E(){return(this.red?""}var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(M,F){var B;if(F=0|F||1,(M=M||10)===16||M==="hex"){B="";for(var R=0,j=0,H=0;H>>24-R&16777215,(R+=2)>=26&&(R-=26,H--),B=j!==0||H!==this.length-1?w[6-vt.length]+vt+B:vt+B}for(j!==0&&(B=j.toString(16)+B);B.length%F!=0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(M===(0|M)&&M>=2&&M<=36){var bt=I[M],kt=T[M];B="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var Tt=Z.modrn(kt).toString(M);B=(Z=Z.idivn(kt)).isZero()?Tt+B:w[bt-Tt.length]+Tt+B}for(this.isZero()&&(B="0"+B);B.length%F!=0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}p(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var M=this.words[0];return this.length===2?M+=67108864*this.words[1]:this.length===3&&this.words[2]===1?M+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-M:M},u.prototype.toJSON=function(){return this.toString(16,2)},x&&(u.prototype.toBuffer=function(M,F){return this.toArrayLike(x,M,F)}),u.prototype.toArray=function(M,F){return this.toArrayLike(Array,M,F)};function A(M,F,B){B.negative=F.negative^M.negative;var R=M.length+F.length|0;B.length=R,R=R-1|0;var j=0|M.words[0],H=0|F.words[0],et=j*H,vt=67108863&et,bt=et/67108864|0;B.words[0]=vt;for(var kt=1;kt>>26,Tt=67108863&bt,K=Math.min(kt,F.length-1),Q=Math.max(0,kt-M.length+1);Q<=K;Q++){var xt=kt-Q|0;Z+=(et=(j=0|M.words[xt])*(H=0|F.words[Q])+Tt)/67108864|0,Tt=67108863&et}B.words[kt]=0|Tt,bt=0|Z}return bt!==0?B.words[kt]=0|bt:B.length--,B._strip()}u.prototype.toArrayLike=function(M,F,B){this._strip();var R=this.byteLength(),j=B||Math.max(1,R);p(R<=j,"byte array longer than desired length"),p(j>0,"Requested array length <= 0");var H=function(et,vt){return et.allocUnsafe?et.allocUnsafe(vt):new et(vt)}(M,j);return this["_toArrayLike"+(F==="le"?"LE":"BE")](H,R),H},u.prototype._toArrayLikeLE=function(M,F){for(var B=0,R=0,j=0,H=0;j>8&255),B>16&255),H===6?(B>24&255),R=0,H=0):(R=et>>>24,H+=2)}if(B=0&&(M[B--]=et>>8&255),B>=0&&(M[B--]=et>>16&255),H===6?(B>=0&&(M[B--]=et>>24&255),R=0,H=0):(R=et>>>24,H+=2)}if(B>=0)for(M[B--]=R;B>=0;)M[B--]=0},Math.clz32?u.prototype._countBits=function(M){return 32-Math.clz32(M)}:u.prototype._countBits=function(M){var F=M,B=0;return F>=4096&&(B+=13,F>>>=13),F>=64&&(B+=7,F>>>=7),F>=8&&(B+=4,F>>>=4),F>=2&&(B+=2,F>>>=2),B+F},u.prototype._zeroBits=function(M){if(M===0)return 26;var F=M,B=0;return(8191&F)==0&&(B+=13,F>>>=13),(127&F)==0&&(B+=7,F>>>=7),(15&F)==0&&(B+=4,F>>>=4),(3&F)==0&&(B+=2,F>>>=2),(1&F)==0&&B++,B},u.prototype.bitLength=function(){var M=this.words[this.length-1],F=this._countBits(M);return 26*(this.length-1)+F},u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var M=0,F=0;FM.length?this.clone().ior(M):M.clone().ior(this)},u.prototype.uor=function(M){return this.length>M.length?this.clone().iuor(M):M.clone().iuor(this)},u.prototype.iuand=function(M){var F;F=this.length>M.length?M:this;for(var B=0;BM.length?this.clone().iand(M):M.clone().iand(this)},u.prototype.uand=function(M){return this.length>M.length?this.clone().iuand(M):M.clone().iuand(this)},u.prototype.iuxor=function(M){var F,B;this.length>M.length?(F=this,B=M):(F=M,B=this);for(var R=0;RM.length?this.clone().ixor(M):M.clone().ixor(this)},u.prototype.uxor=function(M){return this.length>M.length?this.clone().iuxor(M):M.clone().iuxor(this)},u.prototype.inotn=function(M){p(typeof M=="number"&&M>=0);var F=0|Math.ceil(M/26),B=M%26;this._expand(F),B>0&&F--;for(var R=0;R0&&(this.words[R]=~this.words[R]&67108863>>26-B),this._strip()},u.prototype.notn=function(M){return this.clone().inotn(M)},u.prototype.setn=function(M,F){p(typeof M=="number"&&M>=0);var B=M/26|0,R=M%26;return this._expand(B+1),this.words[B]=F?this.words[B]|1<M.length?(B=this,R=M):(B=M,R=this);for(var j=0,H=0;H>>26;for(;j!==0&&H>>26;if(this.length=B.length,j!==0)this.words[this.length]=j,this.length++;else if(B!==this)for(;HM.length?this.clone().iadd(M):M.clone().iadd(this)},u.prototype.isub=function(M){if(M.negative!==0){M.negative=0;var F=this.iadd(M);return M.negative=1,F._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(M),this.negative=1,this._normSign();var B,R,j=this.cmp(M);if(j===0)return this.negative=0,this.length=1,this.words[0]=0,this;j>0?(B=this,R=M):(B=M,R=this);for(var H=0,et=0;et>26,this.words[et]=67108863&F;for(;H!==0&&et>26,this.words[et]=67108863&F;if(H===0&&et>>13,Q=0|et[1],xt=8191&Q,Bt=Q>>>13,ce=0|et[2],Wt=8191&ce,ne=ce>>>13,Ue=0|et[3],qe=8191&Ue,$t=Ue>>>13,Ne=0|et[4],Fe=8191&Ne,He=Ne>>>13,Qe=0|et[5],Xe=8191&Qe,ei=Qe>>>13,Mi=0|et[6],Ai=8191&Mi,Ni=Mi>>>13,un=0|et[7],Ui=8191&un,Zi=un>>>13,na=0|et[8],vn=8191&na,nn=na>>>13,bn=0|et[9],ji=8191&bn,Li=bn>>>13,ta=0|vt[0],dn=8191&ta,En=ta>>>13,Ll=0|vt[1],wn=8191&Ll,Mn=Ll>>>13,qr=0|vt[2],Un=8191&qr,$n=qr>>>13,cl=0|vt[3],Fn=8191&cl,Dn=cl>>>13,vo=0|vt[4],Gn=8191&vo,On=vo>>>13,ml=0|vt[5],Wn=8191&ml,ke=ml>>>13,mi=0|vt[6],hi=8191&mi,Fi=mi>>>13,Ma=0|vt[7],Ji=8191&Ma,mn=Ma>>>13,Wa=0|vt[8],In=8191&Wa,sn=Wa>>>13,Ga=0|vt[9],fa=8191&Ga,ha=Ga>>>13;B.negative=M.negative^F.negative,B.length=19;var Ja=(kt+(R=Math.imul(Tt,dn))|0)+((8191&(j=(j=Math.imul(Tt,En))+Math.imul(K,dn)|0))<<13)|0;kt=((H=Math.imul(K,En))+(j>>>13)|0)+(Ja>>>26)|0,Ja&=67108863,R=Math.imul(xt,dn),j=(j=Math.imul(xt,En))+Math.imul(Bt,dn)|0,H=Math.imul(Bt,En);var Fr=(kt+(R=R+Math.imul(Tt,wn)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,Mn)|0)+Math.imul(K,wn)|0))<<13)|0;kt=((H=H+Math.imul(K,Mn)|0)+(j>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,R=Math.imul(Wt,dn),j=(j=Math.imul(Wt,En))+Math.imul(ne,dn)|0,H=Math.imul(ne,En),R=R+Math.imul(xt,wn)|0,j=(j=j+Math.imul(xt,Mn)|0)+Math.imul(Bt,wn)|0,H=H+Math.imul(Bt,Mn)|0;var ao=(kt+(R=R+Math.imul(Tt,Un)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,$n)|0)+Math.imul(K,Un)|0))<<13)|0;kt=((H=H+Math.imul(K,$n)|0)+(j>>>13)|0)+(ao>>>26)|0,ao&=67108863,R=Math.imul(qe,dn),j=(j=Math.imul(qe,En))+Math.imul($t,dn)|0,H=Math.imul($t,En),R=R+Math.imul(Wt,wn)|0,j=(j=j+Math.imul(Wt,Mn)|0)+Math.imul(ne,wn)|0,H=H+Math.imul(ne,Mn)|0,R=R+Math.imul(xt,Un)|0,j=(j=j+Math.imul(xt,$n)|0)+Math.imul(Bt,Un)|0,H=H+Math.imul(Bt,$n)|0;var bo=(kt+(R=R+Math.imul(Tt,Fn)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,Dn)|0)+Math.imul(K,Fn)|0))<<13)|0;kt=((H=H+Math.imul(K,Dn)|0)+(j>>>13)|0)+(bo>>>26)|0,bo&=67108863,R=Math.imul(Fe,dn),j=(j=Math.imul(Fe,En))+Math.imul(He,dn)|0,H=Math.imul(He,En),R=R+Math.imul(qe,wn)|0,j=(j=j+Math.imul(qe,Mn)|0)+Math.imul($t,wn)|0,H=H+Math.imul($t,Mn)|0,R=R+Math.imul(Wt,Un)|0,j=(j=j+Math.imul(Wt,$n)|0)+Math.imul(ne,Un)|0,H=H+Math.imul(ne,$n)|0,R=R+Math.imul(xt,Fn)|0,j=(j=j+Math.imul(xt,Dn)|0)+Math.imul(Bt,Fn)|0,H=H+Math.imul(Bt,Dn)|0;var Zr=(kt+(R=R+Math.imul(Tt,Gn)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,On)|0)+Math.imul(K,Gn)|0))<<13)|0;kt=((H=H+Math.imul(K,On)|0)+(j>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,R=Math.imul(Xe,dn),j=(j=Math.imul(Xe,En))+Math.imul(ei,dn)|0,H=Math.imul(ei,En),R=R+Math.imul(Fe,wn)|0,j=(j=j+Math.imul(Fe,Mn)|0)+Math.imul(He,wn)|0,H=H+Math.imul(He,Mn)|0,R=R+Math.imul(qe,Un)|0,j=(j=j+Math.imul(qe,$n)|0)+Math.imul($t,Un)|0,H=H+Math.imul($t,$n)|0,R=R+Math.imul(Wt,Fn)|0,j=(j=j+Math.imul(Wt,Dn)|0)+Math.imul(ne,Fn)|0,H=H+Math.imul(ne,Dn)|0,R=R+Math.imul(xt,Gn)|0,j=(j=j+Math.imul(xt,On)|0)+Math.imul(Bt,Gn)|0,H=H+Math.imul(Bt,On)|0;var ro=(kt+(R=R+Math.imul(Tt,Wn)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,ke)|0)+Math.imul(K,Wn)|0))<<13)|0;kt=((H=H+Math.imul(K,ke)|0)+(j>>>13)|0)+(ro>>>26)|0,ro&=67108863,R=Math.imul(Ai,dn),j=(j=Math.imul(Ai,En))+Math.imul(Ni,dn)|0,H=Math.imul(Ni,En),R=R+Math.imul(Xe,wn)|0,j=(j=j+Math.imul(Xe,Mn)|0)+Math.imul(ei,wn)|0,H=H+Math.imul(ei,Mn)|0,R=R+Math.imul(Fe,Un)|0,j=(j=j+Math.imul(Fe,$n)|0)+Math.imul(He,Un)|0,H=H+Math.imul(He,$n)|0,R=R+Math.imul(qe,Fn)|0,j=(j=j+Math.imul(qe,Dn)|0)+Math.imul($t,Fn)|0,H=H+Math.imul($t,Dn)|0,R=R+Math.imul(Wt,Gn)|0,j=(j=j+Math.imul(Wt,On)|0)+Math.imul(ne,Gn)|0,H=H+Math.imul(ne,On)|0,R=R+Math.imul(xt,Wn)|0,j=(j=j+Math.imul(xt,ke)|0)+Math.imul(Bt,Wn)|0,H=H+Math.imul(Bt,ke)|0;var fe=(kt+(R=R+Math.imul(Tt,hi)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,Fi)|0)+Math.imul(K,hi)|0))<<13)|0;kt=((H=H+Math.imul(K,Fi)|0)+(j>>>13)|0)+(fe>>>26)|0,fe&=67108863,R=Math.imul(Ui,dn),j=(j=Math.imul(Ui,En))+Math.imul(Zi,dn)|0,H=Math.imul(Zi,En),R=R+Math.imul(Ai,wn)|0,j=(j=j+Math.imul(Ai,Mn)|0)+Math.imul(Ni,wn)|0,H=H+Math.imul(Ni,Mn)|0,R=R+Math.imul(Xe,Un)|0,j=(j=j+Math.imul(Xe,$n)|0)+Math.imul(ei,Un)|0,H=H+Math.imul(ei,$n)|0,R=R+Math.imul(Fe,Fn)|0,j=(j=j+Math.imul(Fe,Dn)|0)+Math.imul(He,Fn)|0,H=H+Math.imul(He,Dn)|0,R=R+Math.imul(qe,Gn)|0,j=(j=j+Math.imul(qe,On)|0)+Math.imul($t,Gn)|0,H=H+Math.imul($t,On)|0,R=R+Math.imul(Wt,Wn)|0,j=(j=j+Math.imul(Wt,ke)|0)+Math.imul(ne,Wn)|0,H=H+Math.imul(ne,ke)|0,R=R+Math.imul(xt,hi)|0,j=(j=j+Math.imul(xt,Fi)|0)+Math.imul(Bt,hi)|0,H=H+Math.imul(Bt,Fi)|0;var ii=(kt+(R=R+Math.imul(Tt,Ji)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,mn)|0)+Math.imul(K,Ji)|0))<<13)|0;kt=((H=H+Math.imul(K,mn)|0)+(j>>>13)|0)+(ii>>>26)|0,ii&=67108863,R=Math.imul(vn,dn),j=(j=Math.imul(vn,En))+Math.imul(nn,dn)|0,H=Math.imul(nn,En),R=R+Math.imul(Ui,wn)|0,j=(j=j+Math.imul(Ui,Mn)|0)+Math.imul(Zi,wn)|0,H=H+Math.imul(Zi,Mn)|0,R=R+Math.imul(Ai,Un)|0,j=(j=j+Math.imul(Ai,$n)|0)+Math.imul(Ni,Un)|0,H=H+Math.imul(Ni,$n)|0,R=R+Math.imul(Xe,Fn)|0,j=(j=j+Math.imul(Xe,Dn)|0)+Math.imul(ei,Fn)|0,H=H+Math.imul(ei,Dn)|0,R=R+Math.imul(Fe,Gn)|0,j=(j=j+Math.imul(Fe,On)|0)+Math.imul(He,Gn)|0,H=H+Math.imul(He,On)|0,R=R+Math.imul(qe,Wn)|0,j=(j=j+Math.imul(qe,ke)|0)+Math.imul($t,Wn)|0,H=H+Math.imul($t,ke)|0,R=R+Math.imul(Wt,hi)|0,j=(j=j+Math.imul(Wt,Fi)|0)+Math.imul(ne,hi)|0,H=H+Math.imul(ne,Fi)|0,R=R+Math.imul(xt,Ji)|0,j=(j=j+Math.imul(xt,mn)|0)+Math.imul(Bt,Ji)|0,H=H+Math.imul(Bt,mn)|0;var Ei=(kt+(R=R+Math.imul(Tt,In)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,sn)|0)+Math.imul(K,In)|0))<<13)|0;kt=((H=H+Math.imul(K,sn)|0)+(j>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,R=Math.imul(ji,dn),j=(j=Math.imul(ji,En))+Math.imul(Li,dn)|0,H=Math.imul(Li,En),R=R+Math.imul(vn,wn)|0,j=(j=j+Math.imul(vn,Mn)|0)+Math.imul(nn,wn)|0,H=H+Math.imul(nn,Mn)|0,R=R+Math.imul(Ui,Un)|0,j=(j=j+Math.imul(Ui,$n)|0)+Math.imul(Zi,Un)|0,H=H+Math.imul(Zi,$n)|0,R=R+Math.imul(Ai,Fn)|0,j=(j=j+Math.imul(Ai,Dn)|0)+Math.imul(Ni,Fn)|0,H=H+Math.imul(Ni,Dn)|0,R=R+Math.imul(Xe,Gn)|0,j=(j=j+Math.imul(Xe,On)|0)+Math.imul(ei,Gn)|0,H=H+Math.imul(ei,On)|0,R=R+Math.imul(Fe,Wn)|0,j=(j=j+Math.imul(Fe,ke)|0)+Math.imul(He,Wn)|0,H=H+Math.imul(He,ke)|0,R=R+Math.imul(qe,hi)|0,j=(j=j+Math.imul(qe,Fi)|0)+Math.imul($t,hi)|0,H=H+Math.imul($t,Fi)|0,R=R+Math.imul(Wt,Ji)|0,j=(j=j+Math.imul(Wt,mn)|0)+Math.imul(ne,Ji)|0,H=H+Math.imul(ne,mn)|0,R=R+Math.imul(xt,In)|0,j=(j=j+Math.imul(xt,sn)|0)+Math.imul(Bt,In)|0,H=H+Math.imul(Bt,sn)|0;var _i=(kt+(R=R+Math.imul(Tt,fa)|0)|0)+((8191&(j=(j=j+Math.imul(Tt,ha)|0)+Math.imul(K,fa)|0))<<13)|0;kt=((H=H+Math.imul(K,ha)|0)+(j>>>13)|0)+(_i>>>26)|0,_i&=67108863,R=Math.imul(ji,wn),j=(j=Math.imul(ji,Mn))+Math.imul(Li,wn)|0,H=Math.imul(Li,Mn),R=R+Math.imul(vn,Un)|0,j=(j=j+Math.imul(vn,$n)|0)+Math.imul(nn,Un)|0,H=H+Math.imul(nn,$n)|0,R=R+Math.imul(Ui,Fn)|0,j=(j=j+Math.imul(Ui,Dn)|0)+Math.imul(Zi,Fn)|0,H=H+Math.imul(Zi,Dn)|0,R=R+Math.imul(Ai,Gn)|0,j=(j=j+Math.imul(Ai,On)|0)+Math.imul(Ni,Gn)|0,H=H+Math.imul(Ni,On)|0,R=R+Math.imul(Xe,Wn)|0,j=(j=j+Math.imul(Xe,ke)|0)+Math.imul(ei,Wn)|0,H=H+Math.imul(ei,ke)|0,R=R+Math.imul(Fe,hi)|0,j=(j=j+Math.imul(Fe,Fi)|0)+Math.imul(He,hi)|0,H=H+Math.imul(He,Fi)|0,R=R+Math.imul(qe,Ji)|0,j=(j=j+Math.imul(qe,mn)|0)+Math.imul($t,Ji)|0,H=H+Math.imul($t,mn)|0,R=R+Math.imul(Wt,In)|0,j=(j=j+Math.imul(Wt,sn)|0)+Math.imul(ne,In)|0,H=H+Math.imul(ne,sn)|0;var Vi=(kt+(R=R+Math.imul(xt,fa)|0)|0)+((8191&(j=(j=j+Math.imul(xt,ha)|0)+Math.imul(Bt,fa)|0))<<13)|0;kt=((H=H+Math.imul(Bt,ha)|0)+(j>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,R=Math.imul(ji,Un),j=(j=Math.imul(ji,$n))+Math.imul(Li,Un)|0,H=Math.imul(Li,$n),R=R+Math.imul(vn,Fn)|0,j=(j=j+Math.imul(vn,Dn)|0)+Math.imul(nn,Fn)|0,H=H+Math.imul(nn,Dn)|0,R=R+Math.imul(Ui,Gn)|0,j=(j=j+Math.imul(Ui,On)|0)+Math.imul(Zi,Gn)|0,H=H+Math.imul(Zi,On)|0,R=R+Math.imul(Ai,Wn)|0,j=(j=j+Math.imul(Ai,ke)|0)+Math.imul(Ni,Wn)|0,H=H+Math.imul(Ni,ke)|0,R=R+Math.imul(Xe,hi)|0,j=(j=j+Math.imul(Xe,Fi)|0)+Math.imul(ei,hi)|0,H=H+Math.imul(ei,Fi)|0,R=R+Math.imul(Fe,Ji)|0,j=(j=j+Math.imul(Fe,mn)|0)+Math.imul(He,Ji)|0,H=H+Math.imul(He,mn)|0,R=R+Math.imul(qe,In)|0,j=(j=j+Math.imul(qe,sn)|0)+Math.imul($t,In)|0,H=H+Math.imul($t,sn)|0;var fn=(kt+(R=R+Math.imul(Wt,fa)|0)|0)+((8191&(j=(j=j+Math.imul(Wt,ha)|0)+Math.imul(ne,fa)|0))<<13)|0;kt=((H=H+Math.imul(ne,ha)|0)+(j>>>13)|0)+(fn>>>26)|0,fn&=67108863,R=Math.imul(ji,Fn),j=(j=Math.imul(ji,Dn))+Math.imul(Li,Fn)|0,H=Math.imul(Li,Dn),R=R+Math.imul(vn,Gn)|0,j=(j=j+Math.imul(vn,On)|0)+Math.imul(nn,Gn)|0,H=H+Math.imul(nn,On)|0,R=R+Math.imul(Ui,Wn)|0,j=(j=j+Math.imul(Ui,ke)|0)+Math.imul(Zi,Wn)|0,H=H+Math.imul(Zi,ke)|0,R=R+Math.imul(Ai,hi)|0,j=(j=j+Math.imul(Ai,Fi)|0)+Math.imul(Ni,hi)|0,H=H+Math.imul(Ni,Fi)|0,R=R+Math.imul(Xe,Ji)|0,j=(j=j+Math.imul(Xe,mn)|0)+Math.imul(ei,Ji)|0,H=H+Math.imul(ei,mn)|0,R=R+Math.imul(Fe,In)|0,j=(j=j+Math.imul(Fe,sn)|0)+Math.imul(He,In)|0,H=H+Math.imul(He,sn)|0;var xn=(kt+(R=R+Math.imul(qe,fa)|0)|0)+((8191&(j=(j=j+Math.imul(qe,ha)|0)+Math.imul($t,fa)|0))<<13)|0;kt=((H=H+Math.imul($t,ha)|0)+(j>>>13)|0)+(xn>>>26)|0,xn&=67108863,R=Math.imul(ji,Gn),j=(j=Math.imul(ji,On))+Math.imul(Li,Gn)|0,H=Math.imul(Li,On),R=R+Math.imul(vn,Wn)|0,j=(j=j+Math.imul(vn,ke)|0)+Math.imul(nn,Wn)|0,H=H+Math.imul(nn,ke)|0,R=R+Math.imul(Ui,hi)|0,j=(j=j+Math.imul(Ui,Fi)|0)+Math.imul(Zi,hi)|0,H=H+Math.imul(Zi,Fi)|0,R=R+Math.imul(Ai,Ji)|0,j=(j=j+Math.imul(Ai,mn)|0)+Math.imul(Ni,Ji)|0,H=H+Math.imul(Ni,mn)|0,R=R+Math.imul(Xe,In)|0,j=(j=j+Math.imul(Xe,sn)|0)+Math.imul(ei,In)|0,H=H+Math.imul(ei,sn)|0;var va=(kt+(R=R+Math.imul(Fe,fa)|0)|0)+((8191&(j=(j=j+Math.imul(Fe,ha)|0)+Math.imul(He,fa)|0))<<13)|0;kt=((H=H+Math.imul(He,ha)|0)+(j>>>13)|0)+(va>>>26)|0,va&=67108863,R=Math.imul(ji,Wn),j=(j=Math.imul(ji,ke))+Math.imul(Li,Wn)|0,H=Math.imul(Li,ke),R=R+Math.imul(vn,hi)|0,j=(j=j+Math.imul(vn,Fi)|0)+Math.imul(nn,hi)|0,H=H+Math.imul(nn,Fi)|0,R=R+Math.imul(Ui,Ji)|0,j=(j=j+Math.imul(Ui,mn)|0)+Math.imul(Zi,Ji)|0,H=H+Math.imul(Zi,mn)|0,R=R+Math.imul(Ai,In)|0,j=(j=j+Math.imul(Ai,sn)|0)+Math.imul(Ni,In)|0,H=H+Math.imul(Ni,sn)|0;var Qn=(kt+(R=R+Math.imul(Xe,fa)|0)|0)+((8191&(j=(j=j+Math.imul(Xe,ha)|0)+Math.imul(ei,fa)|0))<<13)|0;kt=((H=H+Math.imul(ei,ha)|0)+(j>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,R=Math.imul(ji,hi),j=(j=Math.imul(ji,Fi))+Math.imul(Li,hi)|0,H=Math.imul(Li,Fi),R=R+Math.imul(vn,Ji)|0,j=(j=j+Math.imul(vn,mn)|0)+Math.imul(nn,Ji)|0,H=H+Math.imul(nn,mn)|0,R=R+Math.imul(Ui,In)|0,j=(j=j+Math.imul(Ui,sn)|0)+Math.imul(Zi,In)|0,H=H+Math.imul(Zi,sn)|0;var Bn=(kt+(R=R+Math.imul(Ai,fa)|0)|0)+((8191&(j=(j=j+Math.imul(Ai,ha)|0)+Math.imul(Ni,fa)|0))<<13)|0;kt=((H=H+Math.imul(Ni,ha)|0)+(j>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,R=Math.imul(ji,Ji),j=(j=Math.imul(ji,mn))+Math.imul(Li,Ji)|0,H=Math.imul(Li,mn),R=R+Math.imul(vn,In)|0,j=(j=j+Math.imul(vn,sn)|0)+Math.imul(nn,In)|0,H=H+Math.imul(nn,sn)|0;var Yn=(kt+(R=R+Math.imul(Ui,fa)|0)|0)+((8191&(j=(j=j+Math.imul(Ui,ha)|0)+Math.imul(Zi,fa)|0))<<13)|0;kt=((H=H+Math.imul(Zi,ha)|0)+(j>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,R=Math.imul(ji,In),j=(j=Math.imul(ji,sn))+Math.imul(Li,In)|0,H=Math.imul(Li,sn);var Er=(kt+(R=R+Math.imul(vn,fa)|0)|0)+((8191&(j=(j=j+Math.imul(vn,ha)|0)+Math.imul(nn,fa)|0))<<13)|0;kt=((H=H+Math.imul(nn,ha)|0)+(j>>>13)|0)+(Er>>>26)|0,Er&=67108863;var kr=(kt+(R=Math.imul(ji,fa))|0)+((8191&(j=(j=Math.imul(ji,ha))+Math.imul(Li,fa)|0))<<13)|0;return kt=((H=Math.imul(Li,ha))+(j>>>13)|0)+(kr>>>26)|0,kr&=67108863,bt[0]=Ja,bt[1]=Fr,bt[2]=ao,bt[3]=bo,bt[4]=Zr,bt[5]=ro,bt[6]=fe,bt[7]=ii,bt[8]=Ei,bt[9]=_i,bt[10]=Vi,bt[11]=fn,bt[12]=xn,bt[13]=va,bt[14]=Qn,bt[15]=Bn,bt[16]=Yn,bt[17]=Er,bt[18]=kr,kt!==0&&(bt[19]=kt,B.length++),B};function G(M,F,B){B.negative=F.negative^M.negative,B.length=M.length+F.length;for(var R=0,j=0,H=0;H>>26)|0)>>>26,et&=67108863}B.words[H]=vt,R=et,et=j}return R!==0?B.words[H]=R:B.length--,B._strip()}function J(M,F,B){return G(M,F,B)}function at(M,F){this.x=M,this.y=F}Math.imul||(V=A),u.prototype.mulTo=function(M,F){var B=this.length+M.length;return this.length===10&&M.length===10?V(this,M,F):B<63?A(this,M,F):B<1024?G(this,M,F):J(this,M,F)},at.prototype.makeRBT=function(M){for(var F=new Array(M),B=u.prototype._countBits(M)-1,R=0;R>=1;return R},at.prototype.permute=function(M,F,B,R,j,H){for(var et=0;et>>=1)j++;return 1<>>=13,B[2*H+1]=8191&j,j>>>=13;for(H=2*F;H>=26,B+=j/67108864|0,B+=H>>>26,this.words[R]=67108863&H}return B!==0&&(this.words[R]=B,this.length++),F?this.ineg():this},u.prototype.muln=function(M){return this.clone().imuln(M)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(M){var F=function(H){for(var et=new Array(H.bitLength()),vt=0;vt>>kt&1}return et}(M);if(F.length===0)return new u(1);for(var B=this,R=0;R=0);var F,B=M%26,R=(M-B)/26,j=67108863>>>26-B<<26-B;if(B!==0){var H=0;for(F=0;F>>26-B}H&&(this.words[F]=H,this.length++)}if(R!==0){for(F=this.length-1;F>=0;F--)this.words[F+R]=this.words[F];for(F=0;F=0),R=F?(F-F%26)/26:0;var j=M%26,H=Math.min((M-j)/26,this.length),et=67108863^67108863>>>j<H)for(this.length-=H,bt=0;bt=0&&(kt!==0||bt>=R);bt--){var Z=0|this.words[bt];this.words[bt]=kt<<26-j|Z>>>j,kt=Z&et}return vt&&kt!==0&&(vt.words[vt.length++]=kt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},u.prototype.ishrn=function(M,F,B){return p(this.negative===0),this.iushrn(M,F,B)},u.prototype.shln=function(M){return this.clone().ishln(M)},u.prototype.ushln=function(M){return this.clone().iushln(M)},u.prototype.shrn=function(M){return this.clone().ishrn(M)},u.prototype.ushrn=function(M){return this.clone().iushrn(M)},u.prototype.testn=function(M){p(typeof M=="number"&&M>=0);var F=M%26,B=(M-F)/26,R=1<=0);var F=M%26,B=(M-F)/26;if(p(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(F!==0&&B++,this.length=Math.min(B,this.length),F!==0){var R=67108863^67108863>>>F<=67108864;F++)this.words[F]-=67108864,F===this.length-1?this.words[F+1]=1:this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},u.prototype.isubn=function(M){if(p(typeof M=="number"),p(M<67108864),M<0)return this.iaddn(-M);if(this.negative!==0)return this.negative=0,this.iaddn(M),this.negative=1,this;if(this.words[0]-=M,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F>26)-(vt/67108864|0),this.words[R+B]=67108863&j}for(;R>26,this.words[R+B]=67108863&j;if(et===0)return this._strip();for(p(et===-1),et=0,R=0;R>26,this.words[R]=67108863&j;return this.negative=1,this._strip()},u.prototype._wordDiv=function(M,F){var B=(this.length,M.length),R=this.clone(),j=M,H=0|j.words[j.length-1];(B=26-this._countBits(H))!==0&&(j=j.ushln(B),R.iushln(B),H=0|j.words[j.length-1]);var et,vt=R.length-j.length;if(F!=="mod"){(et=new u(null)).length=vt+1,et.words=new Array(et.length);for(var bt=0;bt=0;Z--){var Tt=67108864*(0|R.words[j.length+Z])+(0|R.words[j.length+Z-1]);for(Tt=Math.min(Tt/H|0,67108863),R._ishlnsubmul(j,Tt,Z);R.negative!==0;)Tt--,R.negative=0,R._ishlnsubmul(j,1,Z),R.isZero()||(R.negative^=1);et&&(et.words[Z]=Tt)}return et&&et._strip(),R._strip(),F!=="div"&&B!==0&&R.iushrn(B),{div:et||null,mod:R}},u.prototype.divmod=function(M,F,B){return p(!M.isZero()),this.isZero()?{div:new u(0),mod:new u(0)}:this.negative!==0&&M.negative===0?(H=this.neg().divmod(M,F),F!=="mod"&&(R=H.div.neg()),F!=="div"&&(j=H.mod.neg(),B&&j.negative!==0&&j.iadd(M)),{div:R,mod:j}):this.negative===0&&M.negative!==0?(H=this.divmod(M.neg(),F),F!=="mod"&&(R=H.div.neg()),{div:R,mod:H.mod}):(this.negative&M.negative)!=0?(H=this.neg().divmod(M.neg(),F),F!=="div"&&(j=H.mod.neg(),B&&j.negative!==0&&j.isub(M)),{div:H.div,mod:j}):M.length>this.length||this.cmp(M)<0?{div:new u(0),mod:this}:M.length===1?F==="div"?{div:this.divn(M.words[0]),mod:null}:F==="mod"?{div:null,mod:new u(this.modrn(M.words[0]))}:{div:this.divn(M.words[0]),mod:new u(this.modrn(M.words[0]))}:this._wordDiv(M,F);var R,j,H},u.prototype.div=function(M){return this.divmod(M,"div",!1).div},u.prototype.mod=function(M){return this.divmod(M,"mod",!1).mod},u.prototype.umod=function(M){return this.divmod(M,"mod",!0).mod},u.prototype.divRound=function(M){var F=this.divmod(M);if(F.mod.isZero())return F.div;var B=F.div.negative!==0?F.mod.isub(M):F.mod,R=M.ushrn(1),j=M.andln(1),H=B.cmp(R);return H<0||j===1&&H===0?F.div:F.div.negative!==0?F.div.isubn(1):F.div.iaddn(1)},u.prototype.modrn=function(M){var F=M<0;F&&(M=-M),p(M<=67108863);for(var B=(1<<26)%M,R=0,j=this.length-1;j>=0;j--)R=(B*R+(0|this.words[j]))%M;return F?-R:R},u.prototype.modn=function(M){return this.modrn(M)},u.prototype.idivn=function(M){var F=M<0;F&&(M=-M),p(M<=67108863);for(var B=0,R=this.length-1;R>=0;R--){var j=(0|this.words[R])+67108864*B;this.words[R]=j/M|0,B=j%M}return this._strip(),F?this.ineg():this},u.prototype.divn=function(M){return this.clone().idivn(M)},u.prototype.egcd=function(M){p(M.negative===0),p(!M.isZero());var F=this,B=M.clone();F=F.negative!==0?F.umod(M):F.clone();for(var R=new u(1),j=new u(0),H=new u(0),et=new u(1),vt=0;F.isEven()&&B.isEven();)F.iushrn(1),B.iushrn(1),++vt;for(var bt=B.clone(),kt=F.clone();!F.isZero();){for(var Z=0,Tt=1;(F.words[0]&Tt)==0&&Z<26;++Z,Tt<<=1);if(Z>0)for(F.iushrn(Z);Z-- >0;)(R.isOdd()||j.isOdd())&&(R.iadd(bt),j.isub(kt)),R.iushrn(1),j.iushrn(1);for(var K=0,Q=1;(B.words[0]&Q)==0&&K<26;++K,Q<<=1);if(K>0)for(B.iushrn(K);K-- >0;)(H.isOdd()||et.isOdd())&&(H.iadd(bt),et.isub(kt)),H.iushrn(1),et.iushrn(1);F.cmp(B)>=0?(F.isub(B),R.isub(H),j.isub(et)):(B.isub(F),H.isub(R),et.isub(j))}return{a:H,b:et,gcd:B.iushln(vt)}},u.prototype._invmp=function(M){p(M.negative===0),p(!M.isZero());var F=this,B=M.clone();F=F.negative!==0?F.umod(M):F.clone();for(var R,j=new u(1),H=new u(0),et=B.clone();F.cmpn(1)>0&&B.cmpn(1)>0;){for(var vt=0,bt=1;(F.words[0]&bt)==0&&vt<26;++vt,bt<<=1);if(vt>0)for(F.iushrn(vt);vt-- >0;)j.isOdd()&&j.iadd(et),j.iushrn(1);for(var kt=0,Z=1;(B.words[0]&Z)==0&&kt<26;++kt,Z<<=1);if(kt>0)for(B.iushrn(kt);kt-- >0;)H.isOdd()&&H.iadd(et),H.iushrn(1);F.cmp(B)>=0?(F.isub(B),j.isub(H)):(B.isub(F),H.isub(j))}return(R=F.cmpn(1)===0?j:H).cmpn(0)<0&&R.iadd(M),R},u.prototype.gcd=function(M){if(this.isZero())return M.abs();if(M.isZero())return this.abs();var F=this.clone(),B=M.clone();F.negative=0,B.negative=0;for(var R=0;F.isEven()&&B.isEven();R++)F.iushrn(1),B.iushrn(1);for(;;){for(;F.isEven();)F.iushrn(1);for(;B.isEven();)B.iushrn(1);var j=F.cmp(B);if(j<0){var H=F;F=B,B=H}else if(j===0||B.cmpn(1)===0)break;F.isub(B)}return B.iushln(R)},u.prototype.invm=function(M){return this.egcd(M).a.umod(M)},u.prototype.isEven=function(){return(1&this.words[0])==0},u.prototype.isOdd=function(){return(1&this.words[0])==1},u.prototype.andln=function(M){return this.words[0]&M},u.prototype.bincn=function(M){p(typeof M=="number");var F=M%26,B=(M-F)/26,R=1<>>26,et&=67108863,this.words[H]=et}return j!==0&&(this.words[H]=j,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(M){var F,B=M<0;if(this.negative!==0&&!B)return-1;if(this.negative===0&&B)return 1;if(this._strip(),this.length>1)F=1;else{B&&(M=-M),p(M<=67108863,"Number is too big");var R=0|this.words[0];F=R===M?0:RM.length)return 1;if(this.length=0;B--){var R=0|this.words[B],j=0|M.words[B];if(R!==j){Rj&&(F=1);break}}return F},u.prototype.gtn=function(M){return this.cmpn(M)===1},u.prototype.gt=function(M){return this.cmp(M)===1},u.prototype.gten=function(M){return this.cmpn(M)>=0},u.prototype.gte=function(M){return this.cmp(M)>=0},u.prototype.ltn=function(M){return this.cmpn(M)===-1},u.prototype.lt=function(M){return this.cmp(M)===-1},u.prototype.lten=function(M){return this.cmpn(M)<=0},u.prototype.lte=function(M){return this.cmp(M)<=0},u.prototype.eqn=function(M){return this.cmpn(M)===0},u.prototype.eq=function(M){return this.cmp(M)===0},u.red=function(M){return new U(M)},u.prototype.toRed=function(M){return p(!this.red,"Already a number in reduction context"),p(this.negative===0,"red works only with positives"),M.convertTo(this)._forceRed(M)},u.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(M){return this.red=M,this},u.prototype.forceRed=function(M){return p(!this.red,"Already a number in reduction context"),this._forceRed(M)},u.prototype.redAdd=function(M){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,M)},u.prototype.redIAdd=function(M){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,M)},u.prototype.redSub=function(M){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,M)},u.prototype.redISub=function(M){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,M)},u.prototype.redShl=function(M){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,M)},u.prototype.redMul=function(M){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,M),this.red.mul(this,M)},u.prototype.redIMul=function(M){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,M),this.red.imul(this,M)},u.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(M){return p(this.red&&!M.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,M)};var X={k256:null,p224:null,p192:null,p25519:null};function nt(M,F){this.name=M,this.p=new u(F,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ot(){nt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ht(){nt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ct(){nt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function z(){nt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function U(M){if(typeof M=="string"){var F=u._prime(M);this.m=F.p,this.prime=F}else p(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function st(M){U.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}nt.prototype._tmp=function(){var M=new u(null);return M.words=new Array(Math.ceil(this.n/13)),M},nt.prototype.ireduce=function(M){var F,B=M;do this.split(B,this.tmp),F=(B=(B=this.imulK(B)).iadd(this.tmp)).bitLength();while(F>this.n);var R=F0?B.isub(this.p):B.strip!==void 0?B.strip():B._strip(),B},nt.prototype.split=function(M,F){M.iushrn(this.n,0,F)},nt.prototype.imulK=function(M){return M.imul(this.k)},d(ot,nt),ot.prototype.split=function(M,F){for(var B=Math.min(M.length,9),R=0;R>>22,j=H}j>>>=22,M.words[R-10]=j,j===0&&M.length>10?M.length-=10:M.length-=9},ot.prototype.imulK=function(M){M.words[M.length]=0,M.words[M.length+1]=0,M.length+=2;for(var F=0,B=0;B>>=26,M.words[B]=j,F=R}return F!==0&&(M.words[M.length++]=F),M},u._prime=function(M){if(X[M])return X[M];var F;if(M==="k256")F=new ot;else if(M==="p224")F=new ht;else if(M==="p192")F=new ct;else{if(M!=="p25519")throw new Error("Unknown prime "+M);F=new z}return X[M]=F,F},U.prototype._verify1=function(M){p(M.negative===0,"red works only with positives"),p(M.red,"red works only with red numbers")},U.prototype._verify2=function(M,F){p((M.negative|F.negative)==0,"red works only with positives"),p(M.red&&M.red===F.red,"red works only with red numbers")},U.prototype.imod=function(M){return this.prime?this.prime.ireduce(M)._forceRed(this):(S(M,M.umod(this.m)._forceRed(this)),M)},U.prototype.neg=function(M){return M.isZero()?M.clone():this.m.sub(M)._forceRed(this)},U.prototype.add=function(M,F){this._verify2(M,F);var B=M.add(F);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},U.prototype.iadd=function(M,F){this._verify2(M,F);var B=M.iadd(F);return B.cmp(this.m)>=0&&B.isub(this.m),B},U.prototype.sub=function(M,F){this._verify2(M,F);var B=M.sub(F);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},U.prototype.isub=function(M,F){this._verify2(M,F);var B=M.isub(F);return B.cmpn(0)<0&&B.iadd(this.m),B},U.prototype.shl=function(M,F){return this._verify1(M),this.imod(M.ushln(F))},U.prototype.imul=function(M,F){return this._verify2(M,F),this.imod(M.imul(F))},U.prototype.mul=function(M,F){return this._verify2(M,F),this.imod(M.mul(F))},U.prototype.isqr=function(M){return this.imul(M,M.clone())},U.prototype.sqr=function(M){return this.mul(M,M)},U.prototype.sqrt=function(M){if(M.isZero())return M.clone();var F=this.m.andln(3);if(p(F%2==1),F===3){var B=this.m.add(new u(1)).iushrn(2);return this.pow(M,B)}for(var R=this.m.subn(1),j=0;!R.isZero()&&R.andln(1)===0;)j++,R.iushrn(1);p(!R.isZero());var H=new u(1).toRed(this),et=H.redNeg(),vt=this.m.subn(1).iushrn(1),bt=this.m.bitLength();for(bt=new u(2*bt*bt).toRed(this);this.pow(bt,vt).cmp(et)!==0;)bt.redIAdd(et);for(var kt=this.pow(bt,R),Z=this.pow(M,R.addn(1).iushrn(1)),Tt=this.pow(M,R),K=j;Tt.cmp(H)!==0;){for(var Q=Tt,xt=0;Q.cmp(H)!==0;xt++)Q=Q.redSqr();p(xt=0;R--){for(var bt=F.words[R],kt=vt-1;kt>=0;kt--){var Z=bt>>kt&1;j!==B[0]&&(j=this.sqr(j)),Z!==0||H!==0?(H<<=1,H|=Z,(++et===4||R===0&&kt===0)&&(j=this.mul(j,B[H]),et=0,H=0)):et=0}vt=26}return j},U.prototype.convertTo=function(M){var F=M.umod(this.m);return F===M?F.clone():F},U.prototype.convertFrom=function(M){var F=M.clone();return F.red=null,F},u.mont=function(M){return new st(M)},d(st,U),st.prototype.convertTo=function(M){return this.imod(M.ushln(this.shift))},st.prototype.convertFrom=function(M){var F=this.imod(M.mul(this.rinv));return F.red=null,F},st.prototype.imul=function(M,F){if(M.isZero()||F.isZero())return M.words[0]=0,M.length=1,M;var B=M.imul(F),R=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),j=B.isub(R).iushrn(this.shift),H=j;return j.cmp(this.m)>=0?H=j.isub(this.m):j.cmpn(0)<0&&(H=j.iadd(this.m)),H._forceRed(this)},st.prototype.mul=function(M,F){if(M.isZero()||F.isZero())return new u(0)._forceRed(this);var B=M.mul(F),R=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),j=B.isub(R).iushrn(this.shift),H=j;return j.cmp(this.m)>=0?H=j.isub(this.m):j.cmpn(0)<0&&(H=j.iadd(this.m)),H._forceRed(this)},st.prototype.invm=function(M){return this.imod(M._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r)},{buffer:188}],187:[function(e,r,i){"use strict";var a;function n(d){this.rand=d}if(r.exports=function(d){return a||(a=new n(null)),a.generate(d)},r.exports.Rand=n,n.prototype.generate=function(d){return this._rand(d)},n.prototype._rand=function(d){if(this.rand.getBytes)return this.rand.getBytes(d);for(var u=new Uint8Array(d),x=0;x>>24]^J[ot>>>16&255]^at[ht>>>8&255]^X[255&ct]^C[z++],T=G[ot>>>24]^J[ht>>>16&255]^at[ct>>>8&255]^X[255&nt]^C[z++],A=G[ht>>>24]^J[ct>>>16&255]^at[nt>>>8&255]^X[255&ot]^C[z++],V=G[ct>>>24]^J[nt>>>16&255]^at[ot>>>8&255]^X[255&ht]^C[z++],nt=I,ot=T,ht=A,ct=V;return I=(E[nt>>>24]<<24|E[ot>>>16&255]<<16|E[ht>>>8&255]<<8|E[255&ct])^C[z++],T=(E[ot>>>24]<<24|E[ht>>>16&255]<<16|E[ct>>>8&255]<<8|E[255&nt])^C[z++],A=(E[ht>>>24]<<24|E[ct>>>16&255]<<16|E[nt>>>8&255]<<8|E[255&ot])^C[z++],V=(E[ct>>>24]<<24|E[nt>>>16&255]<<16|E[ot>>>8&255]<<8|E[255&ht])^C[z++],[I>>>=0,T>>>=0,A>>>=0,V>>>=0]}var u=[0,1,2,4,8,16,32,64,128,27,54],x=function(){for(var v=new Array(256),C=0;C<256;C++)v[C]=C<128?C<<1:C<<1^283;for(var S=[],E=[],w=[[],[],[],[]],I=[[],[],[],[]],T=0,A=0,V=0;V<256;++V){var G=A^A<<1^A<<2^A<<3^A<<4;G=G>>>8^255&G^99,S[T]=G,E[G]=T;var J=v[T],at=v[J],X=v[at],nt=257*v[G]^16843008*G;w[0][T]=nt<<24|nt>>>8,w[1][T]=nt<<16|nt>>>16,w[2][T]=nt<<8|nt>>>24,w[3][T]=nt,nt=16843009*X^65537*at^257*J^16843008*T,I[0][G]=nt<<24|nt>>>8,I[1][G]=nt<<16|nt>>>16,I[2][G]=nt<<8|nt>>>24,I[3][G]=nt,T===0?T=A=1:(T=J^v[v[v[X^J]]],A^=v[v[A]])}return{SBOX:S,INV_SBOX:E,SUB_MIX:w,INV_SUB_MIX:I}}();function _(v){this._key=n(v),this._reset()}_.blockSize=16,_.keySize=32,_.prototype.blockSize=_.blockSize,_.prototype.keySize=_.keySize,_.prototype._reset=function(){for(var v=this._key,C=v.length,S=C+6,E=4*(S+1),w=[],I=0;I>>24,T=x.SBOX[T>>>24]<<24|x.SBOX[T>>>16&255]<<16|x.SBOX[T>>>8&255]<<8|x.SBOX[255&T],T^=u[I/C|0]<<24):C>6&&I%C==4&&(T=x.SBOX[T>>>24]<<24|x.SBOX[T>>>16&255]<<16|x.SBOX[T>>>8&255]<<8|x.SBOX[255&T]),w[I]=w[I-C]^T}for(var A=[],V=0;V>>24]]^x.INV_SUB_MIX[1][x.SBOX[J>>>16&255]]^x.INV_SUB_MIX[2][x.SBOX[J>>>8&255]]^x.INV_SUB_MIX[3][x.SBOX[255&J]]}this._nRounds=S,this._keySchedule=w,this._invKeySchedule=A},_.prototype.encryptBlockRaw=function(v){return d(v=n(v),this._keySchedule,x.SUB_MIX,x.SBOX,this._nRounds)},_.prototype.encryptBlock=function(v){var C=this.encryptBlockRaw(v),S=a.allocUnsafe(16);return S.writeUInt32BE(C[0],0),S.writeUInt32BE(C[1],4),S.writeUInt32BE(C[2],8),S.writeUInt32BE(C[3],12),S},_.prototype.decryptBlock=function(v){var C=(v=n(v))[1];v[1]=v[3],v[3]=C;var S=d(v,this._invKeySchedule,x.INV_SUB_MIX,x.INV_SBOX,this._nRounds),E=a.allocUnsafe(16);return E.writeUInt32BE(S[0],0),E.writeUInt32BE(S[3],4),E.writeUInt32BE(S[2],8),E.writeUInt32BE(S[1],12),E},_.prototype.scrub=function(){p(this._keySchedule),p(this._invKeySchedule),p(this._key)},r.exports.AES=_},{"safe-buffer":494}],190:[function(e,r,i){"use strict";var a=e("./aes"),n=e("safe-buffer").Buffer,p=e("cipher-base"),d=e("inherits"),u=e("./ghash"),x=e("buffer-xor"),_=e("./incr32");function v(C,S,E,w){p.call(this);var I=n.alloc(4,0);this._cipher=new a.AES(S);var T=this._cipher.encryptBlock(I);this._ghash=new u(T),E=function(A,V,G){if(V.length===12)return A._finID=n.concat([V,n.from([0,0,0,1])]),n.concat([V,n.from([0,0,0,2])]);var J=new u(G),at=V.length,X=at%16;J.update(V),X&&(X=16-X,J.update(n.alloc(X,0))),J.update(n.alloc(8,0));var nt=8*at,ot=n.alloc(8);ot.writeUIntBE(nt,0,8),J.update(ot),A._finID=J.state;var ht=n.from(A._finID);return _(ht),ht}(this,E,T),this._prev=n.from(E),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=w,this._alen=0,this._len=0,this._mode=C,this._authTag=null,this._called=!1}d(v,p),v.prototype._update=function(C){if(!this._called&&this._alen){var S=16-this._alen%16;S<16&&(S=n.alloc(S,0),this._ghash.update(S))}this._called=!0;var E=this._mode.encrypt(this,C);return this._decrypt?this._ghash.update(C):this._ghash.update(E),this._len+=C.length,E},v.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var C=x(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(S,E){var w=0;S.length!==E.length&&w++;for(var I=Math.min(S.length,E.length),T=0;T16)throw new Error("unable to decrypt data");for(var T=-1;++T16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},C.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(E,w){var I=p[E.toLowerCase()];if(!I)throw new TypeError("invalid suite type");var T=_(w,!1,I.key,I.iv);return S(E,T.key,T.iv)},i.createDecipheriv=S},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,r,i){"use strict";var a=e("./modes"),n=e("./authCipher"),p=e("safe-buffer").Buffer,d=e("./streamCipher"),u=e("cipher-base"),x=e("./aes"),_=e("evp_bytestokey");function v(w,I,T){u.call(this),this._cache=new S,this._cipher=new x.AES(I),this._prev=p.from(T),this._mode=w,this._autopadding=!0}e("inherits")(v,u),v.prototype._update=function(w){var I,T;this._cache.add(w);for(var A=[];I=this._cache.get();)T=this._mode.encrypt(this,I),A.push(T);return p.concat(A)};var C=p.alloc(16,16);function S(){this.cache=p.allocUnsafe(0)}function E(w,I,T){var A=a[w.toLowerCase()];if(!A)throw new TypeError("invalid suite type");if(typeof I=="string"&&(I=p.from(I)),I.length!==A.key/8)throw new TypeError("invalid key length "+I.length);if(typeof T=="string"&&(T=p.from(T)),A.mode!=="GCM"&&T.length!==A.iv)throw new TypeError("invalid iv length "+T.length);return A.type==="stream"?new d(A.module,I,T):A.type==="auth"?new n(A.module,I,T):new v(A.module,I,T)}v.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return w=this._mode.encrypt(this,w),this._cipher.scrub(),w;if(!w.equals(C))throw this._cipher.scrub(),new Error("data not multiple of block length")},v.prototype.setAutoPadding=function(w){return this._autopadding=!!w,this},S.prototype.add=function(w){this.cache=p.concat([this.cache,w])},S.prototype.get=function(){if(this.cache.length>15){var w=this.cache.slice(0,16);return this.cache=this.cache.slice(16),w}return null},S.prototype.flush=function(){for(var w=16-this.cache.length,I=p.allocUnsafe(w),T=-1;++T>>0,0),x.writeUInt32BE(u[1]>>>0,4),x.writeUInt32BE(u[2]>>>0,8),x.writeUInt32BE(u[3]>>>0,12),x}function d(u){this.h=u,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}d.prototype.ghash=function(u){for(var x=-1;++x0;x--)v[x]=v[x]>>>1|(1&v[x-1])<<31;v[0]=v[0]>>>1,_&&(v[0]=v[0]^225<<24)}this.state=p(C)},d.prototype.update=function(u){var x;for(this.cache=a.concat([this.cache,u]);this.cache.length>=16;)x=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(x)},d.prototype.final=function(u,x){return this.cache.length&&this.ghash(a.concat([this.cache,n],16)),this.ghash(p([0,u,0,x])),this.state},r.exports=d},{"safe-buffer":494}],195:[function(e,r,i){"use strict";r.exports=function(a){for(var n,p=a.length;p--;){if((n=a.readUInt8(p))!==255){n++,a.writeUInt8(n,p);break}a.writeUInt8(0,p)}}},{}],196:[function(e,r,i){"use strict";var a=e("buffer-xor");i.encrypt=function(n,p){var d=a(p,n._prev);return n._prev=n._cipher.encryptBlock(d),n._prev},i.decrypt=function(n,p){var d=n._prev;n._prev=p;var u=n._cipher.decryptBlock(p);return a(u,d)}},{"buffer-xor":219}],197:[function(e,r,i){"use strict";var a=e("safe-buffer").Buffer,n=e("buffer-xor");function p(d,u,x){var _=u.length,v=n(u,d._cache);return d._cache=d._cache.slice(_),d._prev=a.concat([d._prev,x?u:v]),v}i.encrypt=function(d,u,x){for(var _,v=a.allocUnsafe(0);u.length;){if(d._cache.length===0&&(d._cache=d._cipher.encryptBlock(d._prev),d._prev=a.allocUnsafe(0)),!(d._cache.length<=u.length)){v=a.concat([v,p(d,u,x)]);break}_=d._cache.length,v=a.concat([v,p(d,u.slice(0,_),x)]),u=u.slice(_)}return v}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,r,i){"use strict";var a=e("safe-buffer").Buffer;function n(d,u,x){for(var _,v,C=-1,S=0;++C<8;)_=u&1<<7-C?128:0,S+=(128&(v=d._cipher.encryptBlock(d._prev)[0]^_))>>C%8,d._prev=p(d._prev,x?_:v);return S}function p(d,u){var x=d.length,_=-1,v=a.allocUnsafe(d.length);for(d=a.concat([d,a.from([u])]);++_>7;return v}i.encrypt=function(d,u,x){for(var _=u.length,v=a.allocUnsafe(_),C=-1;++C<_;)v[C]=n(d,u[C],x);return v}},{"safe-buffer":494}],199:[function(e,r,i){"use strict";var a=e("safe-buffer").Buffer;function n(p,d,u){var x=p._cipher.encryptBlock(p._prev)[0]^d;return p._prev=a.concat([p._prev.slice(1),a.from([u?d:x])]),x}i.encrypt=function(p,d,u){for(var x=d.length,_=a.allocUnsafe(x),v=-1;++v=0||!_.umod(x.prime1)||!_.umod(x.prime2));return _}function u(x,_){var v=function(at){var X=d(at);return{blinder:X.toRed(n.mont(at.modulus)).redPow(new n(at.publicExponent)).fromRed(),unblinder:X.invm(at.modulus)}}(_),C=_.modulus.byteLength(),S=new n(x).mul(v.blinder).umod(_.modulus),E=S.toRed(n.mont(_.prime1)),w=S.toRed(n.mont(_.prime2)),I=_.coefficient,T=_.prime1,A=_.prime2,V=E.redPow(_.exponent1).fromRed(),G=w.redPow(_.exponent2).fromRed(),J=V.isub(G).imul(I).umod(T).imul(A);return G.iadd(J).imul(v.unblinder).umod(_.modulus).toArrayLike(a,"be",C)}u.getr=d,r.exports=u}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,r,i){"use strict";r.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,r,i){r.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,r,i){r.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,r,i){"use strict";var a=e("safe-buffer").Buffer,n=e("create-hash"),p=e("readable-stream"),d=e("inherits"),u=e("./sign"),x=e("./verify"),_=e("./algorithms.json");function v(w){p.Writable.call(this);var I=_[w];if(!I)throw new Error("Unknown message digest");this._hashType=I.hash,this._hash=n(I.hash),this._tag=I.id,this._signType=I.sign}function C(w){p.Writable.call(this);var I=_[w];if(!I)throw new Error("Unknown message digest");this._hash=n(I.hash),this._tag=I.id,this._signType=I.sign}function S(w){return new v(w)}function E(w){return new C(w)}Object.keys(_).forEach(function(w){_[w].id=a.from(_[w].id,"hex"),_[w.toLowerCase()]=_[w]}),d(v,p.Writable),v.prototype._write=function(w,I,T){this._hash.update(w),T()},v.prototype.update=function(w,I){return typeof w=="string"&&(w=a.from(w,I)),this._hash.update(w),this},v.prototype.sign=function(w,I){this.end();var T=this._hash.digest(),A=u(T,w,this._hashType,this._signType,this._tag);return I?A.toString(I):A},d(C,p.Writable),C.prototype._write=function(w,I,T){this._hash.update(w),T()},C.prototype.update=function(w,I){return typeof w=="string"&&(w=a.from(w,I)),this._hash.update(w),this},C.prototype.verify=function(w,I,T){typeof I=="string"&&(I=a.from(I,T)),this.end();var A=this._hash.digest();return x(I,A,w,this._signType,this._tag)},r.exports={Sign:S,Verify:E,createSign:S,createVerify:E}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,r,i){"use strict";var a=e("safe-buffer").Buffer,n=e("create-hmac"),p=e("browserify-rsa"),d=e("elliptic").ec,u=e("bn.js"),x=e("parse-asn1"),_=e("./curves.json");function v(w,I,T,A){if((w=a.from(w.toArray())).length0&&T.ishrn(A),T}function S(w,I,T){var A,V;do{for(A=a.alloc(0);8*A.length=v)throw new Error("invalid sig")}r.exports=function(_,v,C,S,E){var w=d(C);if(w.type==="ec"){if(S!=="ecdsa"&&S!=="ecdsa/rsa")throw new Error("wrong public key type");return function(at,X,nt){var ot=u[nt.data.algorithm.curve.join(".")];if(!ot)throw new Error("unknown curve "+nt.data.algorithm.curve.join("."));var ht=new p(ot),ct=nt.data.subjectPrivateKey.data;return ht.verify(X,at,ct)}(_,v,w)}if(w.type==="dsa"){if(S!=="dsa")throw new Error("wrong public key type");return function(at,X,nt){var ot=nt.data.p,ht=nt.data.q,ct=nt.data.g,z=nt.data.pub_key,U=d.signature.decode(at,"der"),st=U.s,M=U.r;x(st,ht),x(M,ht);var F=n.mont(ot),B=st.invm(ht);return ct.toRed(F).redPow(new n(X).mul(B).mod(ht)).fromRed().mul(z.toRed(F).redPow(M.mul(B).mod(ht)).fromRed()).mod(ot).mod(ht).cmp(M)===0}(_,v,w)}if(S!=="rsa"&&S!=="ecdsa/rsa")throw new Error("wrong public key type");v=a.concat([E,v]);for(var I=w.modulus.byteLength(),T=[1],A=0;v.length+T.length+2>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function u(w){var I=this.lastTotal-this.lastNeed,T=function(A,V,G){if((192&V[0])!=128)return A.lastNeed=0,"\uFFFD";if(A.lastNeed>1&&V.length>1){if((192&V[1])!=128)return A.lastNeed=1,"\uFFFD";if(A.lastNeed>2&&V.length>2&&(192&V[2])!=128)return A.lastNeed=2,"\uFFFD"}}(this,w);return T!==void 0?T:this.lastNeed<=w.length?(w.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,I,0,w.length),void(this.lastNeed-=w.length))}function x(w,I){if((w.length-I)%2==0){var T=w.toString("utf16le",I);if(T){var A=T.charCodeAt(T.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",I,w.length-1)}function _(w){var I=w&&w.length?this.write(w):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,T)}return I}function v(w,I){var T=(w.length-I)%3;return T===0?w.toString("base64",I):(this.lastNeed=3-T,this.lastTotal=3,T===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",I,w.length-T))}function C(w){var I=w&&w.length?this.write(w):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function S(w){return w.toString(this.encoding)}function E(w){return w&&w.length?this.write(w):""}i.StringDecoder=p,p.prototype.write=function(w){if(w.length===0)return"";var I,T;if(this.lastNeed){if((I=this.fillLast(w))===void 0)return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T=0?(X>0&&(V.lastNeed=X-1),X):--at=0?(X>0&&(V.lastNeed=X-2),X):--at=0?(X>0&&(X===2?X=0:V.lastNeed=X-3),X):0}(this,w,I);if(!this.lastNeed)return w.toString("utf8",I);this.lastTotal=T;var A=w.length-(T-this.lastNeed);return w.copy(this.lastChar,0,A),w.toString("utf8",I,A)},p.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},{"safe-buffer":217}],219:[function(e,r,i){(function(a){(function(){"use strict";r.exports=function(n,p){for(var d=Math.min(n.length,p.length),u=new a(d),x=0;x2147483647)throw new RangeError('The value "'+K+'" is invalid for option "size"');var Q=new Uint8Array(K);return Q.__proto__=u.prototype,Q}function u(K,Q,xt){if(typeof K=="number"){if(typeof Q=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(K)}return x(K,Q,xt)}function x(K,Q,xt){if(typeof K=="string")return function(Wt,ne){if(typeof ne=="string"&&ne!==""||(ne="utf8"),!u.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);var Ue=0|E(Wt,ne),qe=d(Ue),$t=qe.write(Wt,ne);return $t!==Ue&&(qe=qe.slice(0,$t)),qe}(K,Q);if(ArrayBuffer.isView(K))return C(K);if(K==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Z(K,ArrayBuffer)||K&&Z(K.buffer,ArrayBuffer))return function(Wt,ne,Ue){if(ne<0||Wt.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|K}function E(K,Q){if(u.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Z(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);var xt=K.length,Bt=arguments.length>2&&arguments[2]===!0;if(!Bt&&xt===0)return 0;for(var ce=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return xt;case"utf8":case"utf-8":return vt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*xt;case"hex":return xt>>>1;case"base64":return bt(K).length;default:if(ce)return Bt?-1:vt(K).length;Q=(""+Q).toLowerCase(),ce=!0}}function w(K,Q,xt){var Bt=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length||((xt===void 0||xt>this.length)&&(xt=this.length),xt<=0)||(xt>>>=0)<=(Q>>>=0))return"";for(K||(K="utf8");;)switch(K){case"hex":return U(this,Q,xt);case"utf8":case"utf-8":return ht(this,Q,xt);case"ascii":return ct(this,Q,xt);case"latin1":case"binary":return z(this,Q,xt);case"base64":return ot(this,Q,xt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,Q,xt);default:if(Bt)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),Bt=!0}}function I(K,Q,xt){var Bt=K[Q];K[Q]=K[xt],K[xt]=Bt}function T(K,Q,xt,Bt,ce){if(K.length===0)return-1;if(typeof xt=="string"?(Bt=xt,xt=0):xt>2147483647?xt=2147483647:xt<-2147483648&&(xt=-2147483648),Tt(xt=+xt)&&(xt=ce?0:K.length-1),xt<0&&(xt=K.length+xt),xt>=K.length){if(ce)return-1;xt=K.length-1}else if(xt<0){if(!ce)return-1;xt=0}if(typeof Q=="string"&&(Q=u.from(Q,Bt)),u.isBuffer(Q))return Q.length===0?-1:A(K,Q,xt,Bt,ce);if(typeof Q=="number")return Q&=255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(K,Q,xt):Uint8Array.prototype.lastIndexOf.call(K,Q,xt):A(K,[Q],xt,Bt,ce);throw new TypeError("val must be string, number or Buffer")}function A(K,Q,xt,Bt,ce){var Wt,ne=1,Ue=K.length,qe=Q.length;if(Bt!==void 0&&((Bt=String(Bt).toLowerCase())==="ucs2"||Bt==="ucs-2"||Bt==="utf16le"||Bt==="utf-16le")){if(K.length<2||Q.length<2)return-1;ne=2,Ue/=2,qe/=2,xt/=2}function $t(Qe,Xe){return ne===1?Qe[Xe]:Qe.readUInt16BE(Xe*ne)}if(ce){var Ne=-1;for(Wt=xt;WtUe&&(xt=Ue-qe),Wt=xt;Wt>=0;Wt--){for(var Fe=!0,He=0;Hece&&(Bt=ce):Bt=ce;var Wt=Q.length;Bt>Wt/2&&(Bt=Wt/2);for(var ne=0;ne>8,qe=ne%256,$t.push(qe),$t.push(Ue);return $t}(Q,K.length-xt),K,xt,Bt)}function ot(K,Q,xt){return Q===0&&xt===K.length?n.fromByteArray(K):n.fromByteArray(K.slice(Q,xt))}function ht(K,Q,xt){xt=Math.min(K.length,xt);for(var Bt=[],ce=Q;ce239?4:$t>223?3:$t>191?2:1;if(ce+Fe<=xt)switch(Fe){case 1:$t<128&&(Ne=$t);break;case 2:(192&(Wt=K[ce+1]))==128&&(qe=(31&$t)<<6|63&Wt)>127&&(Ne=qe);break;case 3:Wt=K[ce+1],ne=K[ce+2],(192&Wt)==128&&(192&ne)==128&&(qe=(15&$t)<<12|(63&Wt)<<6|63&ne)>2047&&(qe<55296||qe>57343)&&(Ne=qe);break;case 4:Wt=K[ce+1],ne=K[ce+2],Ue=K[ce+3],(192&Wt)==128&&(192&ne)==128&&(192&Ue)==128&&(qe=(15&$t)<<18|(63&Wt)<<12|(63&ne)<<6|63&Ue)>65535&&qe<1114112&&(Ne=qe)}Ne===null?(Ne=65533,Fe=1):Ne>65535&&(Ne-=65536,Bt.push(Ne>>>10&1023|55296),Ne=56320|1023&Ne),Bt.push(Ne),ce+=Fe}return function(He){var Qe=He.length;if(Qe<=4096)return String.fromCharCode.apply(String,He);for(var Xe="",ei=0;ei"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192,u.from=function(K,Q,xt){return x(K,Q,xt)},u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,u.alloc=function(K,Q,xt){return function(Bt,ce,Wt){return _(Bt),Bt<=0?d(Bt):ce!==void 0?typeof Wt=="string"?d(Bt).fill(ce,Wt):d(Bt).fill(ce):d(Bt)}(K,Q,xt)},u.allocUnsafe=function(K){return v(K)},u.allocUnsafeSlow=function(K){return v(K)},u.isBuffer=function(K){return K!=null&&K._isBuffer===!0&&K!==u.prototype},u.compare=function(K,Q){if(Z(K,Uint8Array)&&(K=u.from(K,K.offset,K.byteLength)),Z(Q,Uint8Array)&&(Q=u.from(Q,Q.offset,Q.byteLength)),!u.isBuffer(K)||!u.isBuffer(Q))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===Q)return 0;for(var xt=K.length,Bt=Q.length,ce=0,Wt=Math.min(xt,Bt);ceQ&&(K+=" ... "),""},u.prototype.compare=function(K,Q,xt,Bt,ce){if(Z(K,Uint8Array)&&(K=u.from(K,K.offset,K.byteLength)),!u.isBuffer(K))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof K);if(Q===void 0&&(Q=0),xt===void 0&&(xt=K?K.length:0),Bt===void 0&&(Bt=0),ce===void 0&&(ce=this.length),Q<0||xt>K.length||Bt<0||ce>this.length)throw new RangeError("out of range index");if(Bt>=ce&&Q>=xt)return 0;if(Bt>=ce)return-1;if(Q>=xt)return 1;if(this===K)return 0;for(var Wt=(ce>>>=0)-(Bt>>>=0),ne=(xt>>>=0)-(Q>>>=0),Ue=Math.min(Wt,ne),qe=this.slice(Bt,ce),$t=K.slice(Q,xt),Ne=0;Ne>>=0,isFinite(xt)?(xt>>>=0,Bt===void 0&&(Bt="utf8")):(Bt=xt,xt=void 0)}var ce=this.length-Q;if((xt===void 0||xt>ce)&&(xt=ce),K.length>0&&(xt<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");Bt||(Bt="utf8");for(var Wt=!1;;)switch(Bt){case"hex":return V(this,K,Q,xt);case"utf8":case"utf-8":return G(this,K,Q,xt);case"ascii":return J(this,K,Q,xt);case"latin1":case"binary":return at(this,K,Q,xt);case"base64":return X(this,K,Q,xt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,K,Q,xt);default:if(Wt)throw new TypeError("Unknown encoding: "+Bt);Bt=(""+Bt).toLowerCase(),Wt=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ct(K,Q,xt){var Bt="";xt=Math.min(K.length,xt);for(var ce=Q;ceBt)&&(xt=Bt);for(var ce="",Wt=Q;Wtxt)throw new RangeError("Trying to access beyond buffer length")}function F(K,Q,xt,Bt,ce,Wt){if(!u.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>ce||QK.length)throw new RangeError("Index out of range")}function B(K,Q,xt,Bt,ce,Wt){if(xt+Bt>K.length)throw new RangeError("Index out of range");if(xt<0)throw new RangeError("Index out of range")}function R(K,Q,xt,Bt,ce){return Q=+Q,xt>>>=0,ce||B(K,0,xt,4),p.write(K,Q,xt,Bt,23,4),xt+4}function j(K,Q,xt,Bt,ce){return Q=+Q,xt>>>=0,ce||B(K,0,xt,8),p.write(K,Q,xt,Bt,52,8),xt+8}u.prototype.slice=function(K,Q){var xt=this.length;(K=~~K)<0?(K+=xt)<0&&(K=0):K>xt&&(K=xt),(Q=Q===void 0?xt:~~Q)<0?(Q+=xt)<0&&(Q=0):Q>xt&&(Q=xt),Q>>=0,Q>>>=0,xt||M(K,Q,this.length);for(var Bt=this[K],ce=1,Wt=0;++Wt>>=0,Q>>>=0,xt||M(K,Q,this.length);for(var Bt=this[K+--Q],ce=1;Q>0&&(ce*=256);)Bt+=this[K+--Q]*ce;return Bt},u.prototype.readUInt8=function(K,Q){return K>>>=0,Q||M(K,1,this.length),this[K]},u.prototype.readUInt16LE=function(K,Q){return K>>>=0,Q||M(K,2,this.length),this[K]|this[K+1]<<8},u.prototype.readUInt16BE=function(K,Q){return K>>>=0,Q||M(K,2,this.length),this[K]<<8|this[K+1]},u.prototype.readUInt32LE=function(K,Q){return K>>>=0,Q||M(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+16777216*this[K+3]},u.prototype.readUInt32BE=function(K,Q){return K>>>=0,Q||M(K,4,this.length),16777216*this[K]+(this[K+1]<<16|this[K+2]<<8|this[K+3])},u.prototype.readIntLE=function(K,Q,xt){K>>>=0,Q>>>=0,xt||M(K,Q,this.length);for(var Bt=this[K],ce=1,Wt=0;++Wt=(ce*=128)&&(Bt-=Math.pow(2,8*Q)),Bt},u.prototype.readIntBE=function(K,Q,xt){K>>>=0,Q>>>=0,xt||M(K,Q,this.length);for(var Bt=Q,ce=1,Wt=this[K+--Bt];Bt>0&&(ce*=256);)Wt+=this[K+--Bt]*ce;return Wt>=(ce*=128)&&(Wt-=Math.pow(2,8*Q)),Wt},u.prototype.readInt8=function(K,Q){return K>>>=0,Q||M(K,1,this.length),128&this[K]?-1*(255-this[K]+1):this[K]},u.prototype.readInt16LE=function(K,Q){K>>>=0,Q||M(K,2,this.length);var xt=this[K]|this[K+1]<<8;return 32768&xt?4294901760|xt:xt},u.prototype.readInt16BE=function(K,Q){K>>>=0,Q||M(K,2,this.length);var xt=this[K+1]|this[K]<<8;return 32768&xt?4294901760|xt:xt},u.prototype.readInt32LE=function(K,Q){return K>>>=0,Q||M(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},u.prototype.readInt32BE=function(K,Q){return K>>>=0,Q||M(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},u.prototype.readFloatLE=function(K,Q){return K>>>=0,Q||M(K,4,this.length),p.read(this,K,!0,23,4)},u.prototype.readFloatBE=function(K,Q){return K>>>=0,Q||M(K,4,this.length),p.read(this,K,!1,23,4)},u.prototype.readDoubleLE=function(K,Q){return K>>>=0,Q||M(K,8,this.length),p.read(this,K,!0,52,8)},u.prototype.readDoubleBE=function(K,Q){return K>>>=0,Q||M(K,8,this.length),p.read(this,K,!1,52,8)},u.prototype.writeUIntLE=function(K,Q,xt,Bt){K=+K,Q>>>=0,xt>>>=0,Bt||F(this,K,Q,xt,Math.pow(2,8*xt)-1,0);var ce=1,Wt=0;for(this[Q]=255&K;++Wt>>=0,xt>>>=0,Bt||F(this,K,Q,xt,Math.pow(2,8*xt)-1,0);var ce=xt-1,Wt=1;for(this[Q+ce]=255&K;--ce>=0&&(Wt*=256);)this[Q+ce]=K/Wt&255;return Q+xt},u.prototype.writeUInt8=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,1,255,0),this[Q]=255&K,Q+1},u.prototype.writeUInt16LE=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,2,65535,0),this[Q]=255&K,this[Q+1]=K>>>8,Q+2},u.prototype.writeUInt16BE=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,2,65535,0),this[Q]=K>>>8,this[Q+1]=255&K,Q+2},u.prototype.writeUInt32LE=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,4,4294967295,0),this[Q+3]=K>>>24,this[Q+2]=K>>>16,this[Q+1]=K>>>8,this[Q]=255&K,Q+4},u.prototype.writeUInt32BE=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,4,4294967295,0),this[Q]=K>>>24,this[Q+1]=K>>>16,this[Q+2]=K>>>8,this[Q+3]=255&K,Q+4},u.prototype.writeIntLE=function(K,Q,xt,Bt){if(K=+K,Q>>>=0,!Bt){var ce=Math.pow(2,8*xt-1);F(this,K,Q,xt,ce-1,-ce)}var Wt=0,ne=1,Ue=0;for(this[Q]=255&K;++Wt>0)-Ue&255;return Q+xt},u.prototype.writeIntBE=function(K,Q,xt,Bt){if(K=+K,Q>>>=0,!Bt){var ce=Math.pow(2,8*xt-1);F(this,K,Q,xt,ce-1,-ce)}var Wt=xt-1,ne=1,Ue=0;for(this[Q+Wt]=255&K;--Wt>=0&&(ne*=256);)K<0&&Ue===0&&this[Q+Wt+1]!==0&&(Ue=1),this[Q+Wt]=(K/ne>>0)-Ue&255;return Q+xt},u.prototype.writeInt8=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,1,127,-128),K<0&&(K=255+K+1),this[Q]=255&K,Q+1},u.prototype.writeInt16LE=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,2,32767,-32768),this[Q]=255&K,this[Q+1]=K>>>8,Q+2},u.prototype.writeInt16BE=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,2,32767,-32768),this[Q]=K>>>8,this[Q+1]=255&K,Q+2},u.prototype.writeInt32LE=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,4,2147483647,-2147483648),this[Q]=255&K,this[Q+1]=K>>>8,this[Q+2]=K>>>16,this[Q+3]=K>>>24,Q+4},u.prototype.writeInt32BE=function(K,Q,xt){return K=+K,Q>>>=0,xt||F(this,K,Q,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[Q]=K>>>24,this[Q+1]=K>>>16,this[Q+2]=K>>>8,this[Q+3]=255&K,Q+4},u.prototype.writeFloatLE=function(K,Q,xt){return R(this,K,Q,!0,xt)},u.prototype.writeFloatBE=function(K,Q,xt){return R(this,K,Q,!1,xt)},u.prototype.writeDoubleLE=function(K,Q,xt){return j(this,K,Q,!0,xt)},u.prototype.writeDoubleBE=function(K,Q,xt){return j(this,K,Q,!1,xt)},u.prototype.copy=function(K,Q,xt,Bt){if(!u.isBuffer(K))throw new TypeError("argument should be a Buffer");if(xt||(xt=0),Bt||Bt===0||(Bt=this.length),Q>=K.length&&(Q=K.length),Q||(Q=0),Bt>0&&Bt=this.length)throw new RangeError("Index out of range");if(Bt<0)throw new RangeError("sourceEnd out of bounds");Bt>this.length&&(Bt=this.length),K.length-Q=0;--Wt)K[Wt+Q]=this[Wt+xt];else Uint8Array.prototype.set.call(K,this.subarray(xt,Bt),Q);return ce},u.prototype.fill=function(K,Q,xt,Bt){if(typeof K=="string"){if(typeof Q=="string"?(Bt=Q,Q=0,xt=this.length):typeof xt=="string"&&(Bt=xt,xt=this.length),Bt!==void 0&&typeof Bt!="string")throw new TypeError("encoding must be a string");if(typeof Bt=="string"&&!u.isEncoding(Bt))throw new TypeError("Unknown encoding: "+Bt);if(K.length===1){var ce=K.charCodeAt(0);(Bt==="utf8"&&ce<128||Bt==="latin1")&&(K=ce)}}else typeof K=="number"&&(K&=255);if(Q<0||this.length>>=0,xt=xt===void 0?this.length:xt>>>0,K||(K=0),typeof K=="number")for(Wt=Q;Wt55295&&xt<57344){if(!ce){if(xt>56319){(Q-=3)>-1&&Wt.push(239,191,189);continue}if(ne+1===Bt){(Q-=3)>-1&&Wt.push(239,191,189);continue}ce=xt;continue}if(xt<56320){(Q-=3)>-1&&Wt.push(239,191,189),ce=xt;continue}xt=65536+(ce-55296<<10|xt-56320)}else ce&&(Q-=3)>-1&&Wt.push(239,191,189);if(ce=null,xt<128){if((Q-=1)<0)break;Wt.push(xt)}else if(xt<2048){if((Q-=2)<0)break;Wt.push(xt>>6|192,63&xt|128)}else if(xt<65536){if((Q-=3)<0)break;Wt.push(xt>>12|224,xt>>6&63|128,63&xt|128)}else{if(!(xt<1114112))throw new Error("Invalid code point");if((Q-=4)<0)break;Wt.push(xt>>18|240,xt>>12&63|128,xt>>6&63|128,63&xt|128)}}return Wt}function bt(K){return n.toByteArray(function(Q){if((Q=(Q=Q.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;Q.length%4!=0;)Q+="=";return Q}(K))}function kt(K,Q,xt,Bt){for(var ce=0;ce=Q.length||ce>=K.length);++ce)Q[ce+xt]=K[ce];return ce}function Z(K,Q){return K instanceof Q||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===Q.name}function Tt(K){return K!=K}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,r,i){"use strict";var a=e("safe-buffer").Buffer,n=e("stream").Transform,p=e("string_decoder").StringDecoder;function d(u){n.call(this),this.hashMode=typeof u=="string",this.hashMode?this[u]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(d,n),d.prototype.update=function(u,x,_){typeof u=="string"&&(u=a.from(u,x));var v=this._update(u);return this.hashMode?this:(_&&(v=this._toString(v,_)),v)},d.prototype.setAutoPadding=function(){},d.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},d.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},d.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},d.prototype._transform=function(u,x,_){var v;try{this.hashMode?this._update(u):this.push(this._update(u))}catch(C){v=C}finally{_(v)}},d.prototype._flush=function(u){var x;try{this.push(this.__final())}catch(_){x=_}u(x)},d.prototype._finalOrDigest=function(u){var x=this.__final()||a.alloc(0);return u&&(x=this._toString(x,u,!0)),x},d.prototype._toString=function(u,x,_){if(this._decoder||(this._decoder=new p(x),this._encoding=x),this._encoding!==x)throw new Error("can't switch encodings");var v=this._decoder.write(u);return _&&(v+=this._decoder.end()),v},r.exports=d},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,r,i){"use strict";var a=e("../internals/is-callable"),n=e("../internals/try-to-string"),p=TypeError;r.exports=function(d){if(a(d))return d;throw new p(n(d)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,r,i){"use strict";var a=e("../internals/is-constructor"),n=e("../internals/try-to-string"),p=TypeError;r.exports=function(d){if(a(d))return d;throw new p(n(d)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,r,i){"use strict";var a=e("../internals/is-callable"),n=String,p=TypeError;r.exports=function(d){if(typeof d=="object"||a(d))return d;throw new p("Can't set "+n(d)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,r,i){"use strict";var a=e("../internals/well-known-symbol"),n=e("../internals/object-create"),p=e("../internals/object-define-property").f,d=a("unscopables"),u=Array.prototype;u[d]===void 0&&p(u,d,{configurable:!0,value:n(null)}),r.exports=function(x){u[d][x]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,r,i){"use strict";var a=e("../internals/object-is-prototype-of"),n=TypeError;r.exports=function(p,d){if(a(d,p))return p;throw new n("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,r,i){"use strict";var a=e("../internals/is-object"),n=String,p=TypeError;r.exports=function(d){if(a(d))return d;throw new p(n(d)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,r,i){"use strict";var a=e("../internals/to-indexed-object"),n=e("../internals/to-absolute-index"),p=e("../internals/length-of-array-like"),d=function(u){return function(x,_,v){var C,S=a(x),E=p(S),w=n(v,E);if(u&&_!=_){for(;E>w;)if((C=S[w++])!=C)return!0}else for(;E>w;w++)if((u||w in S)&&S[w]===_)return u||w||0;return!u&&-1}};r.exports={includes:d(!0),indexOf:d(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,r,i){"use strict";var a=e("../internals/function-bind-context"),n=e("../internals/function-uncurry-this"),p=e("../internals/indexed-object"),d=e("../internals/to-object"),u=e("../internals/length-of-array-like"),x=e("../internals/array-species-create"),_=n([].push),v=function(C){var S=C===1,E=C===2,w=C===3,I=C===4,T=C===6,A=C===7,V=C===5||T;return function(G,J,at,X){for(var nt,ot,ht=d(G),ct=p(ht),z=a(J,at),U=u(ct),st=0,M=X||x,F=S?M(G,U):E||A?M(G,0):void 0;U>st;st++)if((V||st in ct)&&(ot=z(nt=ct[st],st,ht),C))if(S)F[st]=ot;else if(ot)switch(C){case 3:return!0;case 5:return nt;case 6:return st;case 2:_(F,nt)}else switch(C){case 4:return!1;case 7:_(F,nt)}return T?-1:w||I?I:F}};r.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,r,i){"use strict";var a=e("../internals/to-absolute-index"),n=e("../internals/length-of-array-like"),p=e("../internals/create-property"),d=Array,u=Math.max;r.exports=function(x,_,v){for(var C=n(x),S=a(_,C),E=a(v===void 0?C:v,C),w=d(u(E-S,0)),I=0;S0&&a[0]<4?1:+(a[0]+a[1])),!n&&d&&(!(a=d.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=d.match(/Chrome\/(\d+)/))&&(n=+a[1]),r.exports=n},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,r,i){"use strict";r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,r,i){"use strict";var a=e("../internals/global"),n=e("../internals/object-get-own-property-descriptor").f,p=e("../internals/create-non-enumerable-property"),d=e("../internals/define-built-in"),u=e("../internals/define-global-property"),x=e("../internals/copy-constructor-properties"),_=e("../internals/is-forced");r.exports=function(v,C){var S,E,w,I,T,A=v.target,V=v.global,G=v.stat;if(S=V?a:G?a[A]||u(A,{}):(a[A]||{}).prototype)for(E in C){if(I=C[E],w=v.dontCallGetSet?(T=n(S,E))&&T.value:S[E],!_(V?E:A+(G?".":"#")+E,v.forced)&&w!==void 0){if(typeof I==typeof w)continue;x(I,w)}(v.sham||w&&w.sham)&&p(I,"sham",!0),d(S,E,I,v)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,r,i){"use strict";r.exports=function(a){try{return!!a()}catch{return!0}}},{}],261:[function(e,r,i){"use strict";var a=e("../internals/function-bind-native"),n=Function.prototype,p=n.apply,d=n.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(a?d.bind(p):function(){return d.apply(p,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,r,i){"use strict";var a=e("../internals/function-uncurry-this-clause"),n=e("../internals/a-callable"),p=e("../internals/function-bind-native"),d=a(a.bind);r.exports=function(u,x){return n(u),x===void 0?u:p?d(u,x):function(){return u.apply(x,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,r,i){"use strict";var a=e("../internals/fails");r.exports=!a(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,r,i){"use strict";var a=e("../internals/function-bind-native"),n=Function.prototype.call;r.exports=a?n.bind(n):function(){return n.apply(n,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,r,i){"use strict";var a=e("../internals/descriptors"),n=e("../internals/has-own-property"),p=Function.prototype,d=a&&Object.getOwnPropertyDescriptor,u=n(p,"name"),x=u&&function(){}.name==="something",_=u&&(!a||a&&d(p,"name").configurable);r.exports={EXISTS:u,PROPER:x,CONFIGURABLE:_}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,r,i){"use strict";var a=e("../internals/function-uncurry-this"),n=e("../internals/a-callable");r.exports=function(p,d,u){try{return a(n(Object.getOwnPropertyDescriptor(p,d)[u]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,r,i){"use strict";var a=e("../internals/classof-raw"),n=e("../internals/function-uncurry-this");r.exports=function(p){if(a(p)==="Function")return n(p)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,r,i){"use strict";var a=e("../internals/function-bind-native"),n=Function.prototype,p=n.call,d=a&&n.bind.bind(p,p);r.exports=a?d:function(u){return function(){return p.apply(u,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,r,i){"use strict";var a=e("../internals/global"),n=e("../internals/is-callable"),p=function(d){return n(d)?d:void 0};r.exports=function(d,u){return arguments.length<2?p(a[d]):a[d]&&a[d][u]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,r,i){"use strict";var a=e("../internals/classof"),n=e("../internals/get-method"),p=e("../internals/is-null-or-undefined"),d=e("../internals/iterators"),u=e("../internals/well-known-symbol")("iterator");r.exports=function(x){if(!p(x))return n(x,u)||n(x,"@@iterator")||d[a(x)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,r,i){"use strict";var a=e("../internals/function-call"),n=e("../internals/a-callable"),p=e("../internals/an-object"),d=e("../internals/try-to-string"),u=e("../internals/get-iterator-method"),x=TypeError;r.exports=function(_,v){var C=arguments.length<2?u(_):v;if(n(C))return p(a(C,_));throw new x(d(_)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,r,i){"use strict";var a=e("../internals/function-uncurry-this"),n=e("../internals/is-array"),p=e("../internals/is-callable"),d=e("../internals/classof-raw"),u=e("../internals/to-string"),x=a([].push);r.exports=function(_){if(p(_))return _;if(n(_)){for(var v=_.length,C=[],S=0;Sat;at++)if((nt=R(T[at]))&&_(I,nt))return nt;return new w(!1)}G=v(T,J)}for(ot=U?T.next:G.next;!(ht=n(ot,G)).done;){try{nt=R(ht.value)}catch(j){S(G,"throw",j)}if(typeof nt=="object"&&nt&&_(I,nt))return nt}return new w(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,r,i){"use strict";var a=e("../internals/function-call"),n=e("../internals/an-object"),p=e("../internals/get-method");r.exports=function(d,u,x){var _,v;n(d);try{if(!(_=p(d,"return"))){if(u==="throw")throw x;return x}_=a(_,d)}catch(C){v=!0,_=C}if(u==="throw")throw x;if(v)throw _;return n(_),x}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,r,i){"use strict";var a=e("../internals/iterators-core").IteratorPrototype,n=e("../internals/object-create"),p=e("../internals/create-property-descriptor"),d=e("../internals/set-to-string-tag"),u=e("../internals/iterators"),x=function(){return this};r.exports=function(_,v,C,S){var E=v+" Iterator";return _.prototype=n(a,{next:p(+!S,C)}),d(_,E,!1,!0),u[E]=x,_}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,r,i){"use strict";var a=e("../internals/export"),n=e("../internals/function-call"),p=e("../internals/is-pure"),d=e("../internals/function-name"),u=e("../internals/is-callable"),x=e("../internals/iterator-create-constructor"),_=e("../internals/object-get-prototype-of"),v=e("../internals/object-set-prototype-of"),C=e("../internals/set-to-string-tag"),S=e("../internals/create-non-enumerable-property"),E=e("../internals/define-built-in"),w=e("../internals/well-known-symbol"),I=e("../internals/iterators"),T=e("../internals/iterators-core"),A=d.PROPER,V=d.CONFIGURABLE,G=T.IteratorPrototype,J=T.BUGGY_SAFARI_ITERATORS,at=w("iterator"),X=function(){return this};r.exports=function(nt,ot,ht,ct,z,U,st){x(ht,ot,ct);var M,F,B,R=function(Z){if(Z===z&&bt)return bt;if(!J&&Z&&Z in et)return et[Z];switch(Z){case"keys":case"values":case"entries":return function(){return new ht(this,Z)}}return function(){return new ht(this)}},j=ot+" Iterator",H=!1,et=nt.prototype,vt=et[at]||et["@@iterator"]||z&&et[z],bt=!J&&vt||R(z),kt=ot==="Array"&&et.entries||vt;if(kt&&(M=_(kt.call(new nt)))!==Object.prototype&&M.next&&(p||_(M)===G||(v?v(M,G):u(M[at])||E(M,at,X)),C(M,j,!0,!0),p&&(I[j]=X)),A&&z==="values"&&vt&&vt.name!=="values"&&(!p&&V?S(et,"name","values"):(H=!0,bt=function(){return n(vt,this)})),z)if(F={values:R("values"),keys:U?bt:R("keys"),entries:R("entries")},st)for(B in F)(J||H||!(B in et))&&E(et,B,F[B]);else a({target:ot,proto:!0,forced:J||H},F);return p&&!st||et[at]===bt||E(et,at,bt,{name:z}),I[ot]=bt,F}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,r,i){"use strict";var a,n,p,d=e("../internals/fails"),u=e("../internals/is-callable"),x=e("../internals/is-object"),_=e("../internals/object-create"),v=e("../internals/object-get-prototype-of"),C=e("../internals/define-built-in"),S=e("../internals/well-known-symbol"),E=e("../internals/is-pure"),w=S("iterator"),I=!1;[].keys&&("next"in(p=[].keys())?(n=v(v(p)))!==Object.prototype&&(a=n):I=!0),!x(a)||d(function(){var T={};return a[w].call(T)!==T})?a={}:E&&(a=_(a)),u(a[w])||C(a,w,function(){return this}),r.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:I}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,r,i){arguments[4][276][0].apply(i,arguments)},{dup:276}],299:[function(e,r,i){"use strict";var a=e("../internals/to-length");r.exports=function(n){return a(n.length)}},{"../internals/to-length":343}],300:[function(e,r,i){"use strict";var a=e("../internals/function-uncurry-this"),n=e("../internals/fails"),p=e("../internals/is-callable"),d=e("../internals/has-own-property"),u=e("../internals/descriptors"),x=e("../internals/function-name").CONFIGURABLE,_=e("../internals/inspect-source"),v=e("../internals/internal-state"),C=v.enforce,S=v.get,E=String,w=Object.defineProperty,I=a("".slice),T=a("".replace),A=a([].join),V=u&&!n(function(){return w(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),J=r.exports=function(at,X,nt){I(E(X),0,7)==="Symbol("&&(X="["+T(E(X),/^Symbol\(([^)]*)\)/,"$1")+"]"),nt&&nt.getter&&(X="get "+X),nt&&nt.setter&&(X="set "+X),(!d(at,"name")||x&&at.name!==X)&&(u?w(at,"name",{value:X,configurable:!0}):at.name=X),V&&nt&&d(nt,"arity")&&at.length!==nt.arity&&w(at,"length",{value:nt.arity});try{nt&&d(nt,"constructor")&&nt.constructor?u&&w(at,"prototype",{writable:!1}):at.prototype&&(at.prototype=void 0)}catch{}var ot=C(at);return d(ot,"source")||(ot.source=A(G,typeof X=="string"?X:"")),at};Function.prototype.toString=J(function(){return p(this)&&S(this).source||_(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,r,i){"use strict";var a=Math.ceil,n=Math.floor;r.exports=Math.trunc||function(p){var d=+p;return(d>0?n:a)(d)}},{}],302:[function(e,r,i){"use strict";var a,n,p,d,u,x=e("../internals/global"),_=e("../internals/function-bind-context"),v=e("../internals/object-get-own-property-descriptor").f,C=e("../internals/task").set,S=e("../internals/queue"),E=e("../internals/engine-is-ios"),w=e("../internals/engine-is-ios-pebble"),I=e("../internals/engine-is-webos-webkit"),T=e("../internals/engine-is-node"),A=x.MutationObserver||x.WebKitMutationObserver,V=x.document,G=x.process,J=x.Promise,at=v(x,"queueMicrotask"),X=at&&at.value;if(!X){var nt=new S,ot=function(){var ht,ct;for(T&&(ht=G.domain)&&ht.exit();ct=nt.get();)try{ct()}catch(z){throw nt.head&&a(),z}ht&&ht.enter()};E||T||I||!A||!V?!w&&J&&J.resolve?((d=J.resolve(void 0)).constructor=J,u=_(d.then,d),a=function(){u(ot)}):T?a=function(){G.nextTick(ot)}:(C=_(C,x),a=function(){C(ot)}):(n=!0,p=V.createTextNode(""),new A(ot).observe(p,{characterData:!0}),a=function(){p.data=n=!n}),X=function(ht){nt.head||a(),nt.add(ht)}}r.exports=X},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,r,i){"use strict";var a=e("../internals/a-callable"),n=TypeError,p=function(d){var u,x;this.promise=new d(function(_,v){if(u!==void 0||x!==void 0)throw new n("Bad Promise constructor");u=_,x=v}),this.resolve=a(u),this.reject=a(x)};r.exports.f=function(d){return new p(d)}},{"../internals/a-callable":222}],304:[function(e,r,i){"use strict";var a=e("../internals/is-regexp"),n=TypeError;r.exports=function(p){if(a(p))throw new n("The method doesn't accept regular expressions");return p}},{"../internals/is-regexp":291}],305:[function(e,r,i){"use strict";var a=e("../internals/descriptors"),n=e("../internals/function-uncurry-this"),p=e("../internals/function-call"),d=e("../internals/fails"),u=e("../internals/object-keys"),x=e("../internals/object-get-own-property-symbols"),_=e("../internals/object-property-is-enumerable"),v=e("../internals/to-object"),C=e("../internals/indexed-object"),S=Object.assign,E=Object.defineProperty,w=n([].concat);r.exports=!S||d(function(){if(a&&S({b:1},S(E({},"a",{enumerable:!0,get:function(){E(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var I={},T={},A=Symbol("assign detection");return I[A]=7,"abcdefghijklmnopqrst".split("").forEach(function(V){T[V]=V}),S({},I)[A]!==7||u(S({},T)).join("")!=="abcdefghijklmnopqrst"})?function(I,T){for(var A=v(I),V=arguments.length,G=1,J=x.f,at=_.f;V>G;)for(var X,nt=C(arguments[G++]),ot=J?w(u(nt),J(nt)):u(nt),ht=ot.length,ct=0;ht>ct;)X=ot[ct++],a&&!p(at,nt,X)||(A[X]=nt[X]);return A}:S},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,r,i){"use strict";var a,n=e("../internals/an-object"),p=e("../internals/object-define-properties"),d=e("../internals/enum-bug-keys"),u=e("../internals/hidden-keys"),x=e("../internals/html"),_=e("../internals/document-create-element"),v=e("../internals/shared-key"),C=v("IE_PROTO"),S=function(){},E=function(T){return"